SANNS: Scaling Up Secure Approximate k-Nearest Neighbors Search
Not on the map. Why?
Abstract (arXiv)
The k-Nearest Neighbor Search (k-NNS) is the backbone of several cloud-based services such as recommender systems, face recognition, and database search on text and images. In these services, the client sends the query to the cloud server and receives the response in which case the query and response are revealed to the service provider. Such data disclosures are unacceptable in several scenarios due to the sensitivity of data and/or privacy laws. In this paper, we introduce SANNS, a system for secure k-NNS that keeps client's query and the search result confidential. SANNS comprises two protocols: an optimized linear scan and a protocol based on a novel sublinear time clustering-based algorithm. We prove the security of both protocols in the standard semi-honest model. The protocols are built upon several state-of-the-art cryptographic primitives such as lattice-based additively homomorphic encryption, distributed oblivious RAM, and garbled circuits. We provide several contributions to each of these primitives which are applicable to other secure computation tasks. Both of our protocols rely on a new circuit for the approximate top-k selection from n numbers that is built from O(n + k2) comparators. We have implemented our proposed system and performed extensive experimental results on four datasets in two different computation environments, demonstrating more than 18-31× faster response time compared to optimally implemented protocols from the prior work. Moreover, SANNS is the first work that scales to the database of 10 million entries, pushing the limit by more than two orders of magnitude.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). First posted on arXiv 3 Apr 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 1; 2024: 0; 2025: 1; 2026: 7.
12 papers.
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2022Reasoning over Public and Private Data in Retrieval-Based Systemscited by 21
- 2021Breaking the Linear Iteration Cost Barrier for Some Well-known Conditional Gradient Methods Using MaxIP Data-structurescited by 19
- 2022Sublinear Time Algorithm for Online Weighted Bipartite Matchingcited by 7
- 2026Spruce: Scalable Private Outsourced Retrieval Using Compact Embeddingscited by 2
- 2026P2RAG: Efficient Privacy-Preserving RAG Service Supporting Arbitrary Top-k Retrievalcited by 1
- 2026Hybrid privacy-aware semantic search: SVD-truncated document geometry and CKKS-encrypted query reranking under a restricted threat modelcited by 1
- 2026Pointing the Way, Hiding the Destination: Practical Private Dense Retrieval at Scalecited by 1
- 2025Balancing Privacy and Efficiency: Music Information Retrieval via Additive Homomorphic Encryptioncited by 0
- 2026PRAG: End-to-End Privacy-Preserving Retrieval-Augmented Generationcited by 0
- 2026TurboVec: A Case Study in Cost-Efficient Private Retrieval for Enterprise RAG via Codebook-Oblivious Quantizationcited by 0
- 2026Quantization Enables Private Dense Retrieval against Malicious Service Providerscited by 0
- 2026Quantization Enables Private Dense Retrieval against Malicious Service Providers28 Sep 2026
- 2026Spruce: Scalable Private Outsourced Retrieval Using Compact Embeddings3 Sep 2026
- 2026Pointing the Way, Hiding the Destination: Practical Private Dense Retrieval at Scale26 Aug 2026
- 2026TurboVec: A Case Study in Cost-Efficient Private Retrieval for Enterprise RAG via Codebook-Oblivious Quantization18 Jul 2026
- 2026Hybrid privacy-aware semantic search: SVD-truncated document geometry and CKKS-encrypted query reranking under a restricted threat model24 Jun 2026
- 2026PRAG: End-to-End Privacy-Preserving Retrieval-Augmented Generation29 Apr 2026
- 2026P2RAG: Efficient Privacy-Preserving RAG Service Supporting Arbitrary Top-k Retrieval16 Mar 2026
- 2025Balancing Privacy and Efficiency: Music Information Retrieval via Additive Homomorphic Encryption9 Aug 2025
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Time26 Oct 2023
- 2022Sublinear Time Algorithm for Online Weighted Bipartite Matching5 Aug 2022
- 2022Reasoning over Public and Private Data in Retrieval-Based Systems14 Mar 2022
- 2021Breaking the Linear Iteration Cost Barrier for Some Well-known Conditional Gradient Methods Using MaxIP Data-structures30 Nov 2021