Skip to main content
QUICK REVIEW

[Paper Review] Random mappings designed for commercial search engines

Roger Donaldson, Arijit Gupta|arXiv (Cornell University)|Jul 21, 2015
Advanced Image and Video Retrieval TechniquesComputer Science18 references4 citations
TL;DR

This paper proposes a practical random mapping technique that transforms high-dimensional real-valued vectors—such as image color histograms or financial time series—into sparse binary vectors in the Hamming cube, enabling efficient indexing and retrieval using commercial text-based search engines. The method preserves the relative ordering of inner products between vectors, enabling accurate approximate nearest neighbor search with high probability, as validated on real image and financial data sets.

ABSTRACT

We give a practical random mapping that takes any set of documents represented as vectors in Euclidean space and then maps them to a sparse subset of the Hamming cube while retaining ordering of inter-vector inner products. Once represented in the sparse space, it is natural to index documents using commercial text-based search engines which are specialized to take advantage of this sparse and discrete structure for large-scale document retrieval. We give a theoretical analysis of the mapping scheme, characterizing exact asymptotic behavior and also giving non-asymptotic bounds which we verify through numerical simulations. We balance the theoretical treatment with several practical considerations; these allow substantial speed up of the method. We further illustrate the use of this method on search over two real data sets: a corpus of images represented by their color histograms, and a corpus of daily stock market index values.

Motivation & Objective

  • To bridge the gap between high-dimensional real-valued data and existing commercial text search infrastructure, which is optimized for sparse, discrete representations.
  • To develop a practical, efficient, and theoretically grounded mapping that preserves the relative ordering of vector inner products after transformation.
  • To enable large-scale document retrieval for non-textual data—such as images, audio, and financial time series—by converting them into a format natively supported by commercial search engines.
  • To demonstrate that the method achieves high retrieval accuracy comparable to exact search, even when applied to diverse data types with different statistical properties.
  • To provide a computationally efficient implementation that leverages existing search software stacks, minimizing engineering overhead.

Proposed method

  • The method maps each vector in ℝᵈ to a sparse binary vector in {0,1}ᵐ by projecting onto m i.i.d. standard normal random vectors and thresholding at a fixed h > 0.
  • Each component of the output vector is 1 if the inner product ⟨aᵢ, x⟩ ≥ h, and 0 otherwise, ensuring sparsity when h is sufficiently large.
  • The similarity score between a query y and a document x is computed as the normalized Hamming inner product: S(x,y) = (1/m) ∑ᵢ 1_{⟨aᵢ,x⟩≥h} 1_{⟨aᵢ,y⟩≥h}.
  • Theoretical analysis shows that this mapping preserves the relative ordering of inner products between vectors with high probability under appropriate choices of h and m.
  • An optimized variant using structured random projections reduces computational cost from O(md) to O(m log m), maintaining performance while improving speed.
  • The approach is evaluated on two real-world corpora: 128-bin color histograms of images and 10-day return vectors from the Dow Jones Industrial Average.

Experimental results

Research questions

  • RQ1Can a random mapping from ℝᵈ to sparse binary vectors in {0,1}ᵐ preserve the relative ordering of inner products between high-dimensional real vectors?
  • RQ2Does this mapping enable accurate approximate nearest neighbor search when indexed using commercial text search engines?
  • RQ3How do the parameters h (threshold) and m (dimension of binary space) affect retrieval accuracy and sparsity?
  • RQ4Can the method be made computationally efficient without sacrificing retrieval quality, especially for large-scale applications?
  • RQ5Does the method generalize across data types with different statistical distributions, such as image features and financial time series?

Key findings

  • The proposed mapping preserves the relative ordering of inner products between vectors with high probability, enabling accurate approximate nearest neighbor search.
  • The precision-recall area under the curve is nearly 1 for both the image and financial data sets, indicating that the method maintains the correct ranking of results.
  • Search performance is robust across different data types: the method achieves comparable precision-recall curves on image color histograms and Dow Jones financial time series, despite differing statistical properties.
  • The median search time across 270,000 images is approximately 500 ms using Whoosh, a standard open-source search engine, demonstrating feasibility in practice.
  • An optimized implementation using structured random projections reduces computational cost from O(md) to O(m log m), with no loss in performance compared to Gaussian projections.
  • The method enables direct use of existing commercial text search infrastructure, such as Apache Lucene and ElasticSearch, by converting real-valued data into a sparse, discrete format.

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.