Lune

NeurIPS2022Top-tier venue

SignRFF: Sign Random Fourier Features

Xiaoyun Li, Ping Li

Abstract

The industry practice has been moving to embedding based retrieval (EBR). For example, in many applications, the embedding vectors are trained by some form of two-tower models. During serving phase, candidates (embedding vectors) are retrieved according to the rankings of cosine similarities either exhaustively or by approximate near neighbor (ANN) search algorithms. For those applications, it is natural to apply "sign random projections" (SignRP) or variants, on the trained embedding vectors to facilitate efficient data storage and cosine distance computations. SignRP is also one of the standard indexing schemes for conducting approximate near neighbor search. In the literature, SignRP has been popular and, to an extent, becomes the default method for "locality sensitive hashing" (LSH). In this paper, we propose "sign random Fourier features" (SignRFF) as an alternative to SignRP. The original method of random Fourier features (RFF) is a standard technique for approximating the Gaussian kernel (as opposed to the linear cosine kernel), in the literature of large-scale machine learning. Basically, RFF applies a simple nonlinear transformation on the samples generated by random projections (RP). Thus, in the pipeline of EBR, it is straightforward to replace SignRP by SignRFF. This paper explains, in a principled manner, why it makes sense to do so. In this paper, a new analytical measure called Ranking Efficiency (RE) is developed, which in retrospect is closely related to the "two-sample mean" t-test statistic for binomial variables. RE provides a systematic and unified framework for comparing different LSH methods. We compare our proposed SignRP with SignRP, KLSH (kernel LSH), as well SQ-RFF (which is another 1-bit coding scheme for RFF). According to the RE expression, SignRFF consistently outperforms KLSH (for Gaussian kernel) and SQ-RFF. SignRFF also outperforms SignRP in the relatively high similarity region. The theoretical comparison results are consistent with our empirical findings. In addition, experiments are conducted to compare SignRFF with a wide range of data-dependent and deep learning based hashing methods and show the advantage of SignRFF with a sufficient number of hash bits.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Breaking the Linear Iteration Cost Barrier for Some Well-known Conditional Gradient Methods Using MaxIP Data-structures cites Locality Sensitive Teaching
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Smooth Flipping Probability for Differential Private Sign Random Projection MethodsPing Li, Xiaoyun LiNeurIPS 2023 · 7 citations

Builds on9

  1. Joint-modal Distribution-based Similarity Hashing for Large-scale Unsupervised Deep Cross-modal RetrievalSong Liu, Shengsheng Qian, Yang Guan, Jiawei Zhan et al.SIGIR 2020 · 214 citations
  2. SONG: Approximate Nearest Neighbor Search on GPUWeijie Zhao, Shulong Tan, Ping LiICDE 2020 · 103 citations
  3. Neighborhood Preserving Hashing for Scalable Video RetrievalShuyan Li, Zhixiang Chen, Jiwen Lu, Xiu Li et al.ICCV 2019 · 50 citations
  4. Breaking the Linear Iteration Cost Barrier for Some Well-known Conditional Gradient Methods Using MaxIP Data-structuresZhaozhuo Xu, Zhao Song, Anshumali ShrivastavaNeurIPS 2021 · 32 citations
  5. Locality Sensitive TeachingZhaozhuo Xu, Beidi Chen, Chaojian Li, Weiyang Liu et al.NeurIPS 2021 · 18 citations

Related papers

  1. Stochastically Robust Personalized Ranking for LSH Recommendation RetrievalDung D. Le, Hady W. LauwAAAI 2020 · 13 citations
  2. Quantization Algorithms for Random Fourier FeaturesXiaoyun Li, Ping LiICML 2021 · 15 citations
  3. Asymmetric Hashing for Fast Ranking via Neural Network MeasuresKhoa D. Doan, Shulong Tan, Weijie Zhao, Ping LiSIGIR 2023 · 3 citations
  4. SCHash: Speedy Simplicial Complex Neural Networks via Randomized HashingXuan Tan, Wei Wu, Chuan LuoSIGIR 2023 · 3 citations
  5. Locality Sensitive Hashing in Fourier Frequency Domain For Soft Set Containment SearchIndradyumna Roy, Rishi Agarwal, Soumen Chakrabarti, Anirban Dasgupta et al.NeurIPS 2023 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines