Skip to main content
QUICK REVIEW

[Paper Review] The Power of Asymmetry in Binary Hashing

Behnam Neyshabur, Payman Yadollahpour|arXiv (Cornell University)|Nov 29, 2013
Advanced Image and Video Retrieval TechniquesComputer Science15 references57 citations
TL;DR

This paper proposes asymmetric binary hashing, where distinct hash functions map queries and database items, enabling shorter, more accurate similarity approximations than symmetric hashing. Even with symmetric similarity measures, asymmetric codes reduce required bit length from exponential to linear in certain cases, outperforming state-of-the-art methods on real datasets with minimal computational overhead.

ABSTRACT

When approximating binary similarity using the hamming distance between short binary hashes, we show that even if the similarity is symmetric, we can have shorter and more accurate hashes by using two distinct code maps. I.e. by approximating the similarity between $x$ and $x'$ as the hamming distance between $f(x)$ and $g(x')$, for two distinct binary codes $f,g$, rather than as the hamming distance between $f(x)$ and $f(x')$.

Motivation & Objective

  • To investigate whether asymmetric binary hashing—using two distinct hash functions—can achieve better similarity approximation than symmetric hashing with shorter codes.
  • To challenge the assumption that symmetric similarity measures necessitate symmetric hashing schemes.
  • To demonstrate that asymmetric hashing enables significant reductions in code length while improving retrieval accuracy.
  • To show that asymmetric hashing can be implemented with no additional computational, communication, or storage cost in standard retrieval pipelines.

Proposed method

  • Proposes a framework where similarity between objects x and x′ is approximated by the Hamming distance between f(x) and g(x′), with f and g being distinct binary hash functions.
  • Uses linear threshold functions for both f and g, with f(x) = sign(W₁x + b₁) and g(x) = sign(W₂x + b₂), allowing flexible, learned mappings.
  • Employs a training objective that minimizes the discrepancy between the learned Hamming distance and the target similarity, using a margin-based loss function.
  • Applies a two-stage optimization: first learning the hash functions via gradient descent on a proxy similarity, then refining via thresholding and shrinkage.
  • Introduces two variants: Lin:Lin (both linear) and Lin:V (linear for query, learned vector for database), with the latter showing superior performance.
  • Uses standard evaluation metrics like Average Precision and Precision-Recall curves to compare performance against symmetric baselines.

Experimental results

Research questions

  • RQ1Can asymmetric binary hashing achieve better similarity approximation than symmetric hashing with shorter code lengths?
  • RQ2Does the use of two distinct hash functions provide a theoretical advantage in code length for representing symmetric similarity functions?
  • RQ3How does asymmetric hashing perform in practice compared to state-of-the-art symmetric hashing methods on real-world datasets?
  • RQ4Can asymmetric hashing be deployed in standard retrieval systems without increasing computational or storage costs?

Key findings

  • For a specific class of Euclidean point sets, asymmetric hashing requires only O(r) bits to represent neighborhood similarity, while symmetric hashing requires Ω(2^r) bits, demonstrating a super-exponential advantage.
  • On the LabelMe dataset, the asymmetric Lin:V method with 8 bits achieved an Average Precision of 0.54, outperforming MLH and KSH with 16 bits.
  • Precision-Recall curves show that Lin:V and Lin:Lin consistently outperform MLH, KSH, and BRE across all datasets and code lengths, especially for short codes.
  • On the large Semantic 22K LabelMe dataset, 64-bit asymmetric codes (Lin:V) significantly outperformed 64-bit symmetric methods (MLH and KSH) in retrieval accuracy.
  • The performance gain from asymmetry is most pronounced for short codes, indicating that asymmetric hashing enables more efficient representation of similarity.
  • The method requires no additional storage or computational cost in deployment, as it uses the same database and query operations as symmetric hashing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.