← Lab /Security & privacy

Encrypted billion-scale nearest-neighbor search achieves 0.90 recall@10 in ~6 s on GPU

The system can answer NN queries over 1 billion encrypted vectors with recall@10 of 0.90 in about 6 seconds per query on a single GPU

Security & privacy arXiv 21 Aug 2026 Method Prototype evidence

Published as “Billion-Scale Nearest-Neighbor Search under Fully Homomorphic Encryption on a Single GPU, Balancing Leakage and Cost”

Why it matters

Enables practical encrypted ANN search over a billion vectors with few-second server latency, but the remaining access-pattern leakage may limit privacy guarantees in adversarial settings.

Summary

The system achieves recall@10 of 0.90 (0.95 duplicate-tolerant) on a 1.39 B-vector dataset in about 6 s per encrypted query on a single GPU, and 0.90 recall on Deep1B in 2.3 s. Evidence comes from full-scale experiments on three corpora (DataComp-1B, Deep1B, a 222 k face set) with warm-query timings measured on an NVIDIA L40S; however, client-side decryption and network costs are excluded and the prototype’s on-the-fly encryption would triple latency.

What they found 2

  1. Access-pattern analysis shows 72% of the coarse-cell neighbor graph can be recovered.

    “an observer recovers 72% of the coarse-cell neighbor graph from access patterns alone”

  2. Seeded (fixed-group) padding reduces that leak by ~35× to ≈2%.

    “seeded (fixed-group) padding cuts this leak by ∼35× (to ≈2%)”

Caveats 6

  • Latency numbers exclude client decryption and network transfer, so end-to-end response time is higher.
  • The prototype encrypts candidate rows on-the-fly; the cold latency is roughly 3.5× larger (e.g., 13.8 s vs. 4.0 s).
  • Recall drops with lower rank reduction: rank 128 yields only 0.79/0.84 recall@10.
  • client decryption and network transfer are excluded.
  • Our measured system encrypts the touched database rows on the fly at query time... the cold number is roughly 3.5× larger (e.g. 13.8 vs. 4.0 s at R256/leaf-32).
  • Rank reduction degrades quality gracefully with rank: rank 256 keeps F1=0.974 against the full-rank 0.993, and F1 only falls off a cliff below rank 64.

What’s new here 4

  • First to combine rank-reduction and a multi-level hierarchical index under FHE on a single GPU for billion-scale ANN.
  • Provides a reproducible end-to-end CKKS-based protocol with detailed latency breakdowns for each stage.
  • Quantifies access-pattern leakage of the hierarchy and proposes fixed-group (seeded) padding as a mitigation.
  • Shows that product quantization under FHE does not improve performance, a negative result not previously reported.