Skip to main content
QUICK REVIEW

[Paper Review] Coding for Random Projections and Approximate Near Neighbor Search

Ping Li, Michael Mitzenmacher|arXiv (Cornell University)|Mar 31, 2014
Advanced Image and Video Retrieval TechniquesComputer Science4 references9 citations
TL;DR

This paper compares two quantization schemes for random projections in approximate near neighbor search: uniform quantization (without offset) and uniform quantization with a random offset. It demonstrates that the random offset is unnecessary and often detrimental, recommending bin widths of w≈1.5 for high similarity (ρ>0.85) and w≈2–3 for lower similarity, with minimal sensitivity to w in practical ranges.

ABSTRACT

This technical note compares two coding (quantization) schemes for random projections in the context of sub-linear time approximate near neighbor search. The first scheme is based on uniform quantization while the second scheme utilizes a uniform quantization plus a uniformly random offset (which has been popular in practice). The prior work compared the two schemes in the context of similarity estimation and training linear classifiers, with the conclusion that the step of random offset is not necessary and may hurt the performance (depending on the similarity level). The task of near neighbor search is related to similarity estimation with importance distinctions and requires own study. In this paper, we demonstrate that in the context of near neighbor search, the step of random offset is not needed either and may hurt the performance (sometimes significantly so, depending on the similarity and other parameters).

Motivation & Objective

  • To evaluate the impact of random offset in quantization schemes for random projections used in sublinear time approximate near neighbor search.
  • To determine whether the widely used scheme with random offset outperforms simpler uniform quantization without offset.
  • To provide practical guidelines for selecting bin width w in quantization for optimal retrieval performance.
  • To validate theoretical findings with extensive experiments on real-world datasets (YouTube and Peekaboom).

Proposed method

  • Proposes uniform quantization without random offset, defined as h_w(u) = floor(x_j / w), where x_j is the projected value.
  • Compares this scheme against the standard method with random offset: h_{w,q}(u) = floor((x_j + q)/w), where q is a uniformly random offset.
  • Analyzes collision probabilities and retrieval performance using locality-sensitive hashing (LSH) frameworks.
  • Employs theoretical analysis to derive optimal bin widths w for different target similarity levels (e.g., ρ > 0.85).
  • Validates results through empirical evaluation on two large-scale datasets using varying recall thresholds (top-3 to top-100).
  • Measures performance via the fraction of retrieved items needed to achieve a target recall, minimizing this fraction as the key metric.

Experimental results

Research questions

  • RQ1Does the inclusion of a random offset in quantization improve or degrade performance in approximate near neighbor search?
  • RQ2What is the optimal bin width w for uniform quantization in different similarity regimes (high vs. low correlation)?
  • RQ3How sensitive is retrieval performance to variations in bin width w when using uniform quantization?
  • RQ4Can a simpler quantization scheme (without random offset) outperform the more complex one in practice?
  • RQ5How do retrieval performance and bin width interact across different target recall levels?

Key findings

  • The random offset in the quantization scheme is not necessary and may significantly hurt performance in approximate near neighbor search.
  • For high target similarity (ρ > 0.85), using uniform quantization with bin width w ≈ 1.5 minimizes the fraction of retrieved items needed to achieve target recall.
  • For lower similarity levels, larger bin widths (w ≈ 2–3) yield better performance, reducing the number of items to retrieve.
  • Performance is relatively insensitive to bin width w as long as it is within a reasonable range, which enhances practical usability.
  • Extensive experiments on YouTube and Peekaboom datasets confirm that uniform quantization without offset outperforms the offset-based method across all recall levels.
  • The proposed scheme enables efficient indexing with minimal coding (e.g., 1-bit per projection), making it suitable for large-scale applications.

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.