Locality Sensitive Hashing in Fourier Frequency Domain For Soft Set Containment Search
Indradyumna Roy, Rishi Agarwal, Soumen Chakrabarti, Anirban Dasgupta, Abir De
Abstract
In many search applications related to passage retrieval, text entailment, and subgraph search, the query and each 'document' is a set of elements, with a document being relevant if it contains the query. These elements are not represented by atomic IDs, but by embedded representations, thereby extending set containment to soft set containment. Recent applications address soft set containment by encoding sets into fixed-size vectors and checking for elementwise vector dominance. This 0/1 property can be relaxed to an asymmetric hinge distance for scoring and ranking candidate documents. Here we focus on data-sensitive, trainable indices for fast retrieval of relevant documents. Existing LSH methods are designed for mostly symmetric or few simple asymmetric distance functions, which are not suitable for hinge distance. Instead, we transform hinge distance into a proposed dominance similarity measure, to which we then apply a Fourier transform, thereby expressing dominance similarity as an expectation of inner products of functions in the frequency domain. Next, we approximate the expectation with an importance-sampled estimate. The overall consequence is that now we can use a traditional LSH, but in the frequency domain. To ensure that the LSH uses hash bits efficiently, we learn hash functions that are sensitive to both corpus and query distributions, mapped to the frequency domain. Our experiments show that the proposed asymmetric dominance similarity is critical to the targeted applications, and that our LSH, which we call FOURIERHASHNET, provides a better query time vs. retrieval quality trade-off, compared to several baselines. Both the Fourier transform and the trainable hash codes contribute to performance gains. Asymmetric LSH (ALSH) In many applications, like the current setup (1), we have asymmetric similarity where sim(q, x) ̸ = sim(x, q). In such cases, we employ two different hash families G and H to determine the bucket of query and corpus respectively. Formally, we define ALSH as follows: Definition 2.2 (Asymmetric Locality Sensitive Hashing (ALSH) [33] ). An asymmetric LSH is (S 0 , cS 0 , p 1 , p 2 )-ALSH for a similarity function sim(•, •) over Q, X if we have two different distributions over mappings G and H such that, with p 1 > p 2 and c < 1, • if sim(q, x) ≥ S 0 then Pr g∼G,h∼H [g(q) = h(x)] ≥ p 1 • if sim(q, x) ≤ cS 0 then Pr g∼G,h∼H [g(q) = h(x)] ≤ p 2 . As an example, given ∥x∥ ≤ 1, consider sim(q, x) = q ⊤ x/||q|| 2 , which can be re-written as cos(α(q), β(x)), where α(q) = [0; q/∥q∥ 2 ], β(x) = [ 1 -∥x∥ 2 2 ; x]. Thus, we can apply random hyperplane hash on both α(x) and β(x) to construct g(q) = sign(w • α(q)) and h(x) = sign(w • β(x)) with w ∼ N (0, I). If ∥x∥ is unbounded, no ALSH exists for sim(q, x) = q ⊤ x/||q|| 2 [33] . In (S 0 , cS 0 , p 1 , p 2 )-ALSH, retrieval of items with similarity score more than S 0 out of a database of items having a similarity score less than cS 0 will admit time-complexity O(n ρ log n) and space complexity O(n 1+ρ ) where ρ = log p 1 / log p 2 [33] .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers4
- One-Pass Distribution Sketch for Measuring Data Heterogeneity in Federated LearningZichang Liu, Zhaozhuo Xu, Benjamin Coleman, Anshumali ShrivastavaNeurIPS 2023 · 19 citations
- Monotone and Separable Set Functions: Characterizations and Neural ModelsSoutrik Sarangi, Yonatan Sverdlov, Nadav Dym, Abir DeNeurIPS 2025 · 2 citations
- Contextual Tokenization for Graph Inverted IndicesPritish Chakraborty, Indradyumna Roy, Soumen Chakrabarti, Abir DeNeurIPS 2025
- Exchangeability of GNN Representations with Applications to Graph RetrievalKartik Nair, Indradyumna Roy, Soumen Chakrabarti, Anirban Dasgupta et al.ICLR 2026
Builds on7
- Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional DomainsMatthew Tancik, Pratul P. Srinivasan, Ben Mildenhall, Sara Fridovich-Keil et al.NeurIPS 2020 · 4,036 citations
- Random Feature AttentionHao Peng, Nikolaos Pappas, Dani Yogatama, Roy Schwartz et al.ICLR 2021 · 425 citations
- Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box EmbeddingsHongyu Ren, Weihua Hu, Jure LeskovecICLR 2020 · 355 citations
- Dense Passage Retrieval for Open-Domain Question AnsweringVladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis et al.EMNLP 2020 · 142 citations
- Fast Sketching of Polynomial Kernels of Polynomial DegreeZhao Song, David P. Woodruff, Zheng Yu, Lichen ZhangICML 2021 · 48 citations
Related papers
- Asymmetric Hashing for Fast Ranking via Neural Network MeasuresKhoa D. Doan, Shulong Tan, Weijie Zhao, Ping LiSIGIR 2023 · 3 citations
- SignRFF: Sign Random Fourier FeaturesXiaoyun Li, Ping LiNeurIPS 2022 · 6 citations
- Unsupervised Multi-Index Semantic HashingChristian Hansen, Casper Hansen, Jakob Grue Simonsen, Stephen Alstrup et al.WWW 2021 · 11 citations
- Point-to-Hyperplane Nearest Neighbor Search Beyond the Unit HypersphereQiang Huang, Yifan Lei, Anthony K. H. TungSIGMOD 2021 · 17 citations
- FLASH: Fast Generative Retrieval via Autoregressive Semantic Hashing with Provably Distance BoundsYifei Zhang, Hao Zhu, Haoran Shi, Yanyu Chen et al.KDD 2026
