Paper deep dive
Pointing the Way, Hiding the Destination: Practical Private Dense Retrieval at Scale
Peichun Hua, Danyang Chen, Junan Zhang, Haifeng Sun, Jingyu Wang, Diwen Xue, Mingyu Li, Yunming Xiao
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 92%
Last extracted: 8/29/2026, 3:23:47 AM
Summary
This paper introduces a practical private dense retrieval protocol for Retrieval-Augmented Generation (RAG) systems that balances privacy and efficiency. The method uses learned deep hashing to create a short candidate list (200-500 documents) from a large corpus, protected by directional metric differential privacy (mDP). It then employs homomorphic encryption (BFV) for reranking the shortlist and oblivious transfer (OT) to securely deliver the final selected documents. This approach avoids full-corpus cryptographic processing, adding only 0.73 seconds to a RAG pipeline on a 2.68M-passage corpus while maintaining high retrieval quality and reducing privacy leakage.
Entities (10)
Relation Signals (8)
Private Dense Retrieval Protocol â providesguarantee â Directional Metric Differential Privacy
confidence 96% · The released code satisfies directional metric differential privacy (DP)
Learned Deep Hashing â usedfor â Private Dense Retrieval Protocol
confidence 95% · We repurpose learned deep hashing as a private filter: a randomized binary code points the provider to a short candidate list
Private Dense Retrieval Protocol â uses â BFV Homomorphic Encryption
confidence 94% · packed BrakerskiâFanâVercauteren (BFV) homomorphic scoring over the resulting KK candidates
Private Dense Retrieval Protocol â uses â Oblivious Transfer
confidence 94% · uses active-secure kk-out-of-KK oblivious transfer (OT) to open at most kk payloads
Private Dense Retrieval Protocol â evaluatedon â NQ Corpus
confidence 92% · On the full 2.68M-passage NQ corpus over a 10-Gbps link, our protocol only adds 0.73 seconds
Private Dense Retrieval Protocol â evaluatedon â BEIR Corpora
confidence 90% · closely matches full-corpus retrieval across five zero-shot corpora spanning 25K to 5.4M documents.
LoRA â usedfor â Learned Deep Hashing
confidence 88% · We adopt low-rank adaptation (LoRA) fine-tuning [34] of pretrained encoders to create the learned hash models efficiently.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Hosted retrieval-augmented generation (RAG) and semantic search allow users to query valuable provider-held corpora, raising two competing demands: to hide each query and chosen result, yet reveal only the documents that the user is authorized to receive. Existing cryptographic approaches either make this costly by processing the entire corpus for every query, or sacrifice quality for efficiency by scanning a few clusters. We repurpose learned deep hashing as a private filter: a randomized binary code points the provider to a short candidate list, while encrypted reranking and oblivious key transfer protect the precise query and final selection. This shortlist short-circuits full-corpus cryptographic search without sacrificing retrieval quality: with 200-500 candidates, it closely matches full-corpus retrieval across five zero-shot corpora spanning 25K to 5.4M documents. On the full 2.68M-passage NQ corpus over a 10-Gbps link, our protocol only adds 0.73 seconds, or 10 percent, to a 128-token Qwen3-32B RAG pipeline. The released code satisfies directional metric differential privacy (DP) and substantially reduces embedding-inversion and property-inference leakage, demonstrating that a carefully learned shortlist can make private dense retrieval both accurate and practical.
Tags
Links
- Source: https://arxiv.org/abs/2608.25735v1
- Canonical: https://arxiv.org/abs/2608.25735v1
Trouble viewing inline? Open PDF directly â
Full Text
145,967 characters extracted from source content.
Expand or collapse full text
Pointing the Way, Hiding the Destination: Practical Private Dense Retrieval at Scale Peichun Hua Affiliation: The Chinese University of Hong Kong, Shenzhen Affiliation: State Key Laboratory of Internet Architecture, Tsinghua University Danyang Chen Affiliation: The Chinese University of Hong Kong, Shenzhen Junan Zhang Affiliation: The Chinese University of Hong Kong, Shenzhen Haifeng Sun Affiliation: Beijing University of Posts and Telecommunications Jingyu Wang Affiliation: Beijing University of Posts and Telecommunications Diwen Xue Affiliation: The Chinese University of Hong Kong Mingyu Li Affiliation: Institute of Software, Chinese Academy of Sciences Yunming Xiao Affiliation: The Chinese University of Hong Kong, Shenzhen Affiliation: State Key Laboratory of Internet Architecture, Tsinghua University Abstract Hosted retrieval-augmented generation (RAG) and semantic search allow users to query valuable provider-held corpora, raising two competing demands: to hide each query and chosen result, yet reveal only the documents that the user is authorized to receive. Existing cryptographic approaches either make this costly by processing the entire corpus for every query, or sacrifice quality for efficiency by scanning a few clusters. We repurpose learned deep hashing as a private filter: a randomized binary code points the provider to a short candidate list, while encrypted reranking and oblivious key transfer protect the precise query and final selection. This shortlist short-circuits full-corpus cryptographic search without sacrificing retrieval quality: with 200â500 candidates, it closely matches full-corpus retrieval across five zero-shot corpora spanning 25K to 5.4M documents. On the full 2.68M-passage NQ corpus over a 10-Gbps link, our protocol only adds 0.73 seconds, or 10%, to a 128-token Qwen3-32B RAG pipeline. The released code satisfies directional metric differential privacy (DP) and substantially reduces embedding-inversion and property-inference leakage, demonstrating that a carefully learned shortlist can make private dense retrieval both accurate and practical. 1 Introduction The proliferation of Retrieval-Augmented Generation (RAG) has transformed large language models (LLMs) from static artifacts into dynamic, knowledge-grounded reasoning engines [25, 27, 67, 47]. At the core of RAG lies dense retrieval: mapping documents and queries into a high-dimensional vector space and searching via nearest neighbors. As organizations deploy RAG over sensitive corpora such as legal archives, medical records, and proprietary knowledge bases, both the document collection and user queries become sensitive assets [74, 14, 88, 62]. Recent embedding inversion attacks [73, 61, 49, 35, 12, 90] have demonstrated that continuous embeddings are not opaque fingerprints, but rich, invertible semantic representations from which an adversary can reconstruct sensitive source text and infer private attributes. Existing cryptographic approaches to private retrieval struggle to balance security with the scale and dimensionality of modern dense embeddings. Homomorphic encryption (HE) and multi-party computation (MPC) protocols [14, 48, 59] incur orders-of-magnitude of computational overhead, while ORAM-based methods [96] require multiple interactions and high user-side computation and storage [19]. Trusted execution environments (TEEs) avoid homomorphic scoring, while access-pattern [84] and microarchitectural leakage [6] remain. This work. Our central design choice is to expose a coarse candidate pattern under directional metric differential privacy (mDP) [37] and reserve cryptographic computation for the resulting shortlist. An honest-but-curious Corpus Owner keeps its proprietary corpus with full-precision embeddings while additionally maintaining a lightweight binary index; an authorized User randomizes released hash codes that satisfy stringent mDP guarantees and encrypts the clean query representation. The resulting code makes the nearby query directions induce similar candidate-pattern distributions, making them hard to distinguish from one another and thereby protecting critical detailed privacy information (§3.3). The Owner performs a Hamming search on the corpus (N) and packed BrakerskiâFanâVercauteren (BFV) homomorphic scoring over the resulting K candidates. The User decrypts the scores, selects locally, and uses active-secure k-out-of-K oblivious transfer (OT) to open at most k payloads without revealing its choices or accessing the other KâkK-k payloads. Recovering retrieval quality under DP may require scoring K=500K=500â3,0003,000 candidates, while a RAG request typically releases and bills only k=3k=3â1010 documents. The gap between K and k makes OT central to this deployment model. Returning the shortlist would disclose hundreds of times more content; requesting the final documents directly would reveal the Userâs selection. Instead, our k-out-of-K transfer binds each round to the billable result count, while authenticated accounts and cumulative quotas govern repeated extraction. In our model, we assume that the User might want to actively learn the payloads beyond its billed k per round and design our protocol to handle such threats (§6.4; Theorem 5). Three empirical insights make our design highly practical. â¶ Candidate-set redundancy persists across scales and domains. A learned binary filter (Stage 1) needs only to preserve the documents that matter for the final ranking (Stage 2), while the ranking among the top documents is not critical. At K=500K=500, the two-stage pipeline (§5) retains 98.84%â100% of full-corpus NDCG@10 (ranking quality) across five zero-shot BEIR corpora [75] on both evaluated encoders. In particular, on Climate-FEVER with 5.4M documents, the shortlist excludes noisy high-scoring documents and raises NDCG@10 by 0.0012â0.0158. Even under DP protection, expanding the candidate pool up to 3,000 achieves a good balance between efficiency and search quality (§7.2.1). These corpora span scientific search, question answering, entity retrieval, and fact verification at scales from 25K to 5.4M documents (Figure 1), demonstrating strong generalizability of our approach. â· Dense embeddings contain substantial precision redundancy. We find that scalar int8 quantization preserves the pretrained ranking closely; our symmetric zero-point-free realization converts floating-point similarity into exact, low-depth integer dot products. Without this precision reduction, private real-valued scoring relies on approximate-number HE such as CKKS [15], higher-precision fixed-point BFV [40], or interactive fixed-point MPC [60]; int8 enables exact packed BFV scoring with a small plaintext modulus while preserving high ranking quality. âž Model separation creates pipeline parallelism. We adopt low-rank adaptation (LoRA) fine-tuning [34] of pretrained encoders to create the learned hash models efficiently. This ensures that the hash codes can select a high-recall subset without incurring the storage and memory burden of an entirely new model. Our protocol implementation carefully overlaps the pretrained scoring forward and BFV query encryption with Owner-side Hamming shortlist construction, then streams the candidate ciphertexts while encrypted scoring and key transfer advance. This successfully hides the latency and makes our protocol efficient under different network bandwidths. Figure 1: Cross-dataset quality of our pipeline. Each panel reports absolute Stage 2 NDCG@10 at Kâ200,500Kâ\200,500\ alongside full-corpus pretrained retrieval. The five BEIR corpora span 25Kâ5.4M documents and four retrieval domains. We investigate randomized response, Gaussian, RĂ©nyi-DP-calibrated von MisesâFisher (RDP-vMF), and exactly calibrated pure-vMF mechanisms that achieve mDP, extensively evaluating their privacyâutility trade-offs through retrieval quality, representation attacks, protocol latency, and end-to-end RAG. In summary, we make the following contributions: 1. A leakage-aware retrieval protocol and security contract that reveals a metric-DP candidate pattern, confines encrypted exact scoring to K candidates, protects the clean query against the Owner, and uses active-secure k-out-of-K OT to hide the final selection and bound payload recovery. 2. A learned candidate-filter design and training recipe that retrofits pretrained encoders via LoRA while preserving the original model as the Stage 2 scorer. It sustains near-lossless zero-shot retrieval across domains and corpus scales and improves over direct quantization, classical hashing, and supervised binary-retrieval baselines. 3. A directional randomization mechanism and analysis that gives the released shortlist code pure metric-DP protection, carries the guarantee through candidate generation by post-processing, and establishes its retrievalâprivacy frontier against randomized response, Gaussian, and RDP-vMF mechanisms and representation attacks. 4. A practical two-forward system realization that combines int8 quantization, shallow packed BFV, key-only OT, and pipeline overlap in a networked prototype, reducing cryptographic work from N documents to a high-recall shortlist while retaining efficient million-scale retrieval and end-to-end RAG. 2 Background and Related Work 2.1 Dense Retrieval and Learned Hashing RAG grounds language-model generation in retrieved evidence [25, 27, 67]. Its scalable first stage is usually a bi-encoder such as DPR, SBERT, E5, or BGE [41, 69, 78, 11]: queries and documents are encoded independently, then compared by inner product or cosine similarity [69]. Cross-encoders, instead, score queryâdocument pairs jointly and are commonly reserved for reranking because their cost grows with the number of evaluated pairs [16, 13, 68]. Binary hashing compresses continuous representations into L-bit codes and replaces floating-point distance with XOR and popcount [56]. Classical methods include data-independent random-hyperplane, multi-probe, and cross-polytope LSH variants [7, 57, 2, 66], and data-dependent rotations such as ITQ and IsoHash [28, 43]. Deep models jointly learn the representation and code: earlier work emphasized image retrieval with pairwise or center-based objectives [51, 95, 53, 89, 79], ranking-aware hashing directly optimized tie-aware AP and NDCG in Hamming space [30], and recent objectives couple discrimination with quantization or adapt transformer encoders to text [33, 65, 31]. Instead of preserving embedding geometry and search quality, we use a learned code only as a high-recall first-stage filter and retain the continuous representation for exact candidate reranking. This division gives the Owner a lightweight coarse index while reducing private similarity evaluation from all N documents to K candidates. 2.2 Representation Privacy Dense embeddings preserve enough lexical and semantic information to support generation-based, search-based, and property-inference attacks [73, 61, 49, 35, 12, 90]. Our design randomizes the normalized pre-binarization representation under metric DP [37, 83] and then deterministically binarizes it; the released code inherits the same privacy bound by post-processing [23]. Dense retrievers normalize embeddings and rank them by cosine similarity, so their semantic neighborhoods lie naturally on the unit sphere and are measured by angle. We therefore instantiate metric DP over nearby directions of the learned coarse representation [22, 23, 8]. Definition 1 ((Δ,ÎŽ)( ,ÎŽ)-Directional Privacy). Let d be a metric on the unit sphere and let Ï>0Ï>0. A randomized mechanism âł:Lâ1âM:S^L-1 satisfies (Δ,ÎŽ)( ,ÎŽ)-directional privacy at radius Ï if, for every u,uâČâLâ1u,u ^L-1 with dâĄ(u,uâČ)â€Ïd(u,u )â€Ï and every measurable SâS , Pr[âł(u)âS]â€eΔPr[âł(uâČ)âS]+ÎŽ. [M(u)â S]†e [M(u )â S]+ÎŽ. (1) This radius-bounded definition instantiates metric privacy [8, 83] on normalized directions. We use angular distance dΞâ(u,uâČ)=arccosâĄ(uâ€âuâČ)d_Ξ(u,u )= (u u ) as the primary metric and chord distance dcâ(u,uâČ)=âuâuâČâ2=2âsinâĄ(dΞâ(u,uâČ)/2)d_c(u,u )=\|u-u \|_2=2 (d_Ξ(u,u )/2) when deriving the vMF density-ratio bound. The radius defines a neighborhood in representation space; an empirical query-pair distance study can further calibrate that neighborhood to paraphrase or intent-level relations. Prior private-hashing methods randomize discrete codes with randomized response or randomize data-independent LSH functions [81, 26, 19]. Deep hashing instead exposes the continuous pre-sign representation as a natural randomization point, preserving coordinate margins and directional geometry. Gaussian perturbation operates on bounded hâ[â1,1]Lhâ[-1,1]^L under Euclidean adjacency [4], while von MisesâFisher (vMF) perturbation operates on normalized u=h/âhâ2u=h/\|h\|_2 under angular or chordal adjacency [82]; binarization then preserves their guarantees by post-processing [23]. Randomized response treats every bit alike and must compose privacy across the complete code because nearby continuous vectors can cross many low-margin sign boundaries. At L=256L=256 and (Δ=16,ÎŽ=10â6)( =16,ÎŽ=10^-6), this calibration flips 46.1% of the bits and yields only 0.0306 mean NDCG@10 at K=3000K=3000, versus 0.5360 for Gaussian and 0.5367 for RDP-vMF (Table 5). 2.3 Private Retrieval across Deployments The ownership and trust boundary define the private-retrieval problem in different scenarios [85]. Table 1 organizes prior systems into four deployment models. In client-owned outsourcing, classical searchable encryption [20, 9, 72] and vector systems [54, 96, 19] protect a corpus owner who queries an untrusted cloud. For example, MESS [19] randomizes LSH codes, maintains 64 HNSW shards with each item routed to 16, and reranks the aggregated candidates at the client; this yields 16Ă indexed-record replication. Retrieving the original documents from the cloud additionally requires private information retrieval (PIR) [17, 77] to hide the access pattern. In the public/shared-corpus model, Tiptoe, Wally, PACMANN, and Speakeasy protect the query without a corpus-confidentiality goal [32, 3, 94, 45]. For example, Tiptoe [32] combines clustering with linearly homomorphic search across 45 servers to operate vector search on web-scale corpus, but its single-cluster pruning for efficiency significantly impacts the search quality compared to normal embedding search. PACMANN [94] improves this qualityâlatency tradeoff through graph search and client-preprocessing PIR, but with 100 million vectors, each client downloads 59.6 GB during setup, stores 2.9 GB of state, and exchanges another 399.4 MB to maintain that state after every query. In secret-shared outsourcing, PRAG and P2RAG protect distinct data owners and queriers by placing the database across MPC servers [97, 59]; PRAG assumes an honest majority, whereas P2RAG uses two semi-honest non-colluding servers and avoids secure sorting through interactive bisection, but requires full-corpus work and trusted-dealer preprocessing, the cost of which is excluded from its benchmark. Our target is the fourth model, a provider-held proprietary corpus serving an external querier [71, 10, 50, 14, 52]. Pisces [52] combines an oblivious SimHash filter with MPC scoring and PIR-to-share, and adds a cryptographic BM25 path; our learned filter releases a directionally private shortlist and concentrates cryptography on exact candidate scoring and selected payloads. PANTHER [50] co-designs PIR, secret sharing, garbled circuits, and homomorphic encryption for strong single-provider protection, but its cluster-wise PIR representation scales with both vector dimensionality and the number of probes. Its evaluation targets 96- and 128-dimensional vision embeddings, whereas modern RAG commonly uses substantially wider text embeddings and demands enough probes to preserve near-lossless retrieval quality. In our evaluation (§7.3), PANTHER exceeds the memory limit of our server in a million-scale corpus. Within this model, our protocol keeps the corpus at a single provider for the owner, provides formal DP guarantees for the search pattern, cryptographically protects unselected corpus content from the user, and confines homomorphic scoring to the filtered candidates for efficiency and near-lossless quality. Table 1: Private retrieval systems grouped by corpus ownership, querier role, and trusted infrastructure. Scheme Search Infra. Query privacy Content privacy Pattern privacy Near- lossless Fast online Index / auxiliary state Client-owned outsourcingâcorpus owner is querier; cloud is adversary CGKO06 [20] Keyword 1S â â â â â Inverted index CLRZ18 [9], SOPK21 [72] Keyword 1S â â dp â â DP index LZXL25 [54] Graph 1S âł â â âł â Graph + 2 CT Compass [96] Graph 1S â â â â âł 3.2â6.8Ă server MESS [19] Multi-graph 1S dp â dp âł âł 16Ă HNSW index Public/shared corpusâno corpus-confidentiality goal Tiptoe [32] k-means 45S â â âł â â Cluster index Wally [3] k-means Crowd dp â dp â â Cluster index PACMANN [94] Graph 1S+P â â âł âł â Graph + client hints Secret-shared outsourcingâdistinct owner and querier PRAG [97] IVF MPC â â â âł â Database shares P2RAG [59] Full scan 2NC â âł â â â Two DB shares Provider-held proprietary corpusâexternal querier Pisces [52] SimHash + BM25 1S â â âł âł â 160âN160N-CT + token OKVS SANNS [10] k-means 1S â â â âł â DORAM PANTHER [50] k-means 1S â â â âł â PIR + MPC RemoteRAG [14] ANN 1S dp âł dp â âł ANN index Ours Hash scan 1S dp â dp â â 32 B/doc filter Legend. â: cryptographic protection or full support; dp: formal differential privacy guarantee; âł : empirical or partial protection/support; â: unsupported; â: inapplicable. Query privacy protects the query text and clean embedding from the search service. Content privacy limits the querierâs plaintext payload recovery to its authorized results. Pattern privacy separately protects the service-visible retrieval trace: the search pattern reveals whether queries repeat, while the access pattern reveals which corpus items are touched or selected. Near-lossless denotes exact retrieval or at least 99% of the matched plaintext quality. Fast online denotes practical reported query-time latency at the evaluated scale; workloads and hardware differ. The final column reports each paperâs native search structure beyond the embeddings. Our 32 B/doc figure is the 256-bit coarse hash index. 1S: one server; 2NC: two non-colluding servers; CT: ciphertext representation; OKVS: oblivious keyâvalue store; P: per-client, database-dependent PIR preprocessing. 3 Deployment and Threat Model We target a proprietary corpus served directly by its Owner to an external authorized User. This section defines the two parties, states the information visible on each side, and introduces the attacks used to measure the released coarse code. 3.1 Parties and Trust Relations Corpus Owner (Server). Holds the document collection, the binary hash index, the normalized embeddings used as plaintext HE operands, per-document content keys, and document payloads protected by authenticated encryption with associated data (AEAD). The Owner is honest-but-curious: it follows the prescribed computation and message schedule while attempting to infer query content, link queries, or profile Users from its protocol view. All server-side retrieval runs on Owner-controlled infrastructure. User (Client). Holds a query, the agreed encoder and the hash model, the HE secret/public keys, and the DP parameters. The HE scoring guarantee applies to a conforming User that encrypts the prescribed bounded, canonically packed query; the active-secure OT guarantee additionally covers a malicious receiver attempting to recover more than k content keys. 3.2 Views, Leakage, and Assumptions The protocol has four security goals. Metric DP protects the coarse query code released to the Owner, BFV semantic security protects the clean query from the Owner, ciphertext-simulatable BFV restricts a conforming Userâs scoring view to the prescribed K exact scores, and active-secure OT hides the Userâs selected positions while limiting payload-key recovery to k OT choices. The Owner observes: âą Binary index ddâ[N]\b_d\_dâ[N] and the resulting candidate set CKC_K; âą Metric-DP coarse query code ~q b_q; âą The HE ciphertext âĄ(ÂŻ) Enc( q); âą The HE and sender-side OT transcripts; âą Authenticated identity, session and round identifiers, message lengths and timing, K, and the public result count k. The Owner does not observe the Userâs plaintext query, the decrypted similarity scores, or which specific k indices the User selected via OT. The User observes: âą The K scalar similarity scores; âą The K AEAD payload ciphertexts and the kĂKkĂ K masked content-key table for the candidate set; âą At most k content keys and the corresponding plaintext document payloads. Under conforming execution, the application gives the User candidate-local scores and selected payloads while keeping the binary index, explicit corpus embeddings, Owner document identifiers, and unselected content keys within the Owner process. The compact randomized-evaluation path makes the evaluated ciphertext simulatable from the query ciphertext, the K scores, and public metadata, so its other slots and coefficients add no corpus-embedding information beyond this explicit score oracle (§6.3). The security model assumes an authenticated confidential transport, under which a network observer learns message lengths and timing. Our measurement harness uses versioned framed TCP to expose and measure these metadata costs; a deployment places the same frames and the OT connection inside authenticated encrypted channels. Assumptions and scope. A trusted model-distribution step fixes the encoder, hash head, quantization parameters, and HE parameters shared by both parties. The HE scoring theorems apply to fresh symmetric BFV encryptions of bounded, canonically packed queries; the score quota governs cumulative exposure but does not establish consistency between the encrypted query and the coarse code. The guarantees assume uncompromised endpoints, authenticated identities, and authenticated confidential transport, with message lengths and timing treated as explicit leakage. They cover query privacy, exact and ciphertext-simulatable scoring for conforming inputs, and per-round payload access; Sybil resistance, availability, inference from the released exact scores, and malformed-ciphertext server privacy remain outside the model. 3.3 Empirical Privacy Attacks We evaluate three attacks that recover text or sensitive attributes from an exposed representation. DP mechanism experiments target the released Stage 1 code, while the no-DP learned code and float embedding provide reference points. Search-based inversion. ZSInvert [90] treats reconstruction as black-box optimization. Given a target representation r, an LLM proposes a beam of candidate texts, the target encoder maps each candidate to the same representation space, and similarity to r selects the next beam. The best candidate then seeds another refinement round. Float targets use cosine similarity, whereas binary targets use normalized hash similarity; the latter supplies only L+1L+1 distinct Hamming-similarity values. The output is the highest-scoring reconstructed text. Generation-based inversion. GEIA [49] learns an embedding-conditioned autoregressive decoder from auxiliary textârepresentation pairs. A learned projection maps the target representation into the decoder input space, and teacher-forced language-model training maximizes âtpÏâ(xtâŁx<t,r) _tp_Ï(x_t x_<t,r). At inference time, the trained decoder reconstructs each held-out target in one generation pass. Property inference. The attacker obtains an auxiliary set of representationâattribute pairs [73], trains a classifier to predict the attribute from the exposed representation, and applies the selected classifier to held-out victim representations. We evaluate topic, sentiment, and authorship because they span coarse semantic content, affect, and fine-grained source identity. This attack can succeed without reconstructing the original text. Section 7.4 reports attack outcomes, and the experimental setup specifies the models, datasets, splits, search budgets, and metrics. Appendix B.3 records the remaining optimization details. These experiments isolate representation leakage; §3.2 separately accounts for candidate identities and cross-round linkage in the Ownerâs protocol view. 4 Deep Hash Learning The learned hash encoder turns a pretrained dense retriever into a high-recall candidate filter, while the original pretrained encoder remains the Stage 2 scorer. We focus here on the model architecture and the training signals that make this separation effective; Appendix B.1 gives the exact losses, discretization schedule, and optimization parameters. 4.1 Motivation and Architecture A key challenge in deep hashing is preserving zero-shot candidate recall after adapting a pretrained encoder to a discrete space [31]. For text x, our hash model applies a linear head to a LoRA-adapted encoder [34] and emits âĄ(x)=signâĄ(Wâpoolâ(ELoRAâ(x)))ââ1,1L.b(x)= \! (W\,pool(E_LoRA(x)) )â\-1,1\^L. (2) Here WââLĂdW ^LĂ d, where d is the encoder hidden dimension and L is the code length. We use mean pooling and L=256L=256 for E5-base-v2 [78], and [CLS]-token pooling and L=512L=512 for BGE-base-en-v1.5 [11]. The linear head and compact LoRA update specialize the pretrained representation for Hamming candidate recall without training another backbone from scratch. Candidate generation and scoring use separate model states. The adapted encoder and hash head produce only the coarse code, while the unchanged pretrained encoder supplies the continuous query and document embeddings used by Stage 2. This separation lets Stage 1 reshape its geometry for Hamming search without shifting the final dense ranking. Online, both forwards reuse tokenization and input transfer, and the pretrained scoring forward overlaps Owner-side Hamming search as described in §5.2. 4.2 Encoder Tuning We train the hash model on MS MARCO queryâpassage supervision using three functional groups: â=âretrieval+âtransfer+âregularization.L=L_retrieval+L_transfer+L_regularization. (3) Direct retrieval supervision brings relevant queryâpassage pairs together and pushes mined negatives away in the adapted continuous space; E5 additionally applies this supervision directly in Hamming space. Ranking transfer carries the adapted encoderâs ordering into the deployed Hamming space. The remaining regularizers anchor the adapted representation to the frozen pretrained geometry and keep examples well spread before binarization. Appendix B.1 defines every component of Equation 3 and reports its model-specific weight. 4.3 Hard-Negative Training A hard negative is a non-relevant passage that remains deceptively close to the query, making it more informative than a random passage for learning the candidate boundary. We mine these examples only from the MS MARCO training corpus: a broad lexical retrieval stage finds plausible candidates, a stronger reranker orders them, and training samples from the highest-ranked non-relevant passages. The reranker also suppresses likely unlabeled positives so that ambiguous passages do not become contradictory supervision. This source-only procedure teaches the hash model to preserve fine distinctions without adapting to any evaluation corpus. E5 and BGE each train for 16 epochs. Training moves progressively from a smooth representation to the binary codes used at deployment; Appendix B.1 specifies this schedule together with the mining models, sample counts, learning rates, and remaining hyperparameters. 5 DP-Filtered Private Dense Retrieval We now describe the complete two-party protocol. Throughout, K denotes the candidate budget (the number of documents that receive HE scoring) and k denotes the final result count returned to the User. 5.1 Offline Setup Owner setup. The Owner runs two document encoders offline. The LoRA-adapted hash encoder and linear hash head produce iââ1,1Lb_iâ\-1,1\^L for candidate generation, while the unchanged pretrained encoder produces the normalized scoring embedding iââdz_i ^d. A shared symmetric quantizer with zero point 0 and scale a=maxi,jâĄ|zi,j|/127a= _i,j|z_i,j|/127 maps the pretrained embeddings to â127,âŠ,127d\-127,âŠ,127\^d; the symmetric range excludes â128-128 and bounds every integer dot product by 1272âd127^2d. The Owner stores: âą A flat binary index ii=1N\b_i\_i=1^N for Hamming-distance search; âą The quantized embeddings ÂŻii=1N\ z_i\_i=1^N as Owner-local plaintext HE operands; âą A random 128-bit content key Își _i and an AEAD ciphertext PiP_i for each document. The plaintext contains its true-length field and is zero-padded to a 4096-byte boundary before one-shot ChaCha20âPoly1305 encryption under a 256-bit key derived from Își _i with HKDFâSHA-256, so ciphertext length reveals only the padded block count. User and session setup. For encrypted candidate scoring, we instantiate single-instruction multiple-data (SIMD) batched BFV for the quantized integer dot products [24, 1], packing multiple score lanes into each ciphertext. The User obtains the LoRA-merged hash encoder, hash head, original pretrained encoder, tokenizer, and quantizer. It generates the BFV secret/public keys and required Galois keys, retains the secret key, and sends only public and evaluation material to the Owner. An authenticated session binds an identity, layout, K, k, and monotone round counter. The two parties establish the base-OT correlation state once per long-lived OT connection; each query advances the extension state to derive fresh rows rather than repeating base OT. 5.2 Online Protocol Figure 2 summarizes the eight online stages described below; Appendix D.1 provides the complete message sequence. Figure 2: Online retrieval pipeline. Metric-DP Hamming shortlisting overlaps the pretrained scoring forward and query encryption. Once CKC_K is fixed, its AEAD ciphertexts stream during exact BFV scoring. For each query x, the following steps are executed: 1. Hash forward and DP release. The User tokenizes x once, transfers the retained token tensors to the GPU once, and first runs the LoRA-merged hash encoder. The hash head produces logits qââLz_q ^L; this path does not compute or return an unused continuous scoring vector. Then, using the final training scale ÎČ, the User computes the bounded pre-binarization vector qsoft=tanhâĄ(ÎČâq)h_q^soft= ( _q), normalizes it to q=qsoft/âqsoftâ2u_q=h_q^soft/\|h_q^soft\|_2, samples qâŒvMFâĄ(q,Îș)y_q (u_q,Îș) with the pure calibration in Equation 7, and sends the round-bound coarse frame containing ~q=signâĄ(q) b_q= (y_q). 2. Hamming search and payload streaming. The Owner validates the received frame ~q b_q and starts Hamming search over ii=1N\b_i\_i=1^N. Once CK=(i1,âŠ,iK)C_K=(i_1,âŠ,i_K) is fixed, it atomically reserves the query and per-document score exposure and immediately streams the round-bound AEAD ciphertexts (Pi1,âŠ,PiK)(P_i_1,âŠ,P_i_K) in candidate order. 3. Concurrent pretrained forward and BFV encryption. While the Owner computes CKC_K, the User runs the unchanged pretrained encoder on the retained token tensors, producing =â(Epreâ(x))q= Normalize(E_pre(x)). The User quantizes q with the shared scale, encrypts it as âĄ(ÂŻ) Enc( q), and sends a separate scoring-query frame bound to the same session and round. Thus the serial prefix is the hash forward followed by maxâĄTHamming,Tpre+Tenc \T_Hamming,T_pre+T_enc\, and payload transfer begins as soon as the Hamming branch produces CKC_K. 4. Packed BFV scoring. Once both CKC_K and âĄ(ÂŻ) Enc( q) are ready, the Owner gathers the pretrained quantized candidate matrix ÂŻK Z_K and computes âĄ()=ÂŻKâ(ÂŻ) Enc(s)= Z_K Enc( q) using plaintextâciphertext multiplication and rotation-based sum reduction while payload streaming continues. At polynomial degree 8192, the segmented multi layout places eight candidates in 1024-slot segments per result ciphertext at multiplicative depth 1, while the deployed compact layout collects up to 8192 scores in one ciphertext and applies PMultE/Rand randomized evaluation [36]. This path clears non-score slots and makes the evaluated ciphertext simulatable from the prescribed scores while preserving exact integer outputs (§6.3); it requires neither ciphertextâciphertext multiplication nor bootstrapping. 5. Encrypted-score return. The Owner returns the encrypted scores in the same local order as CKC_K. Candidate position jâ[K]jâ[K] is the only selection coordinate exposed to the User; Owner document identifiers are never transmitted. 6. Decrypt and select top-k. The User decrypts the exact integer score vector s and chooses local positions c1,âŠ,ckâ[K]c_1,âŠ,c_kâ[K]. 7. Active-secure k-out-of-K key retrieval. The parties execute a batch of k active-secure 1-out-of-K OrrĂčâOrsiniâScholl (OOS) OT-extension transfers [64], one for each cjc_j. The receiver obtains one 128-bit OT key per row, while the sender derives K option keys per row and masks every candidate content key in a kĂKkĂ K table. The Owner sends this masked-key table after OT; row j and column cjc_j reveal Îșicj _i_c_j to the User, which opens the corresponding buffered payload. The OT structure limits a malicious receiver to at most one content key per row and hides each cjc_j from the Owner. 8. Payload opening and round commit. After authenticating and decrypting the selected AEAD payloads, the User sends a round-bound completion frame and the Owner commits the quota reservation. Any protocol or malicious-check failure poisons the affected daemon state and releases an uncommitted reservation. 5.3 Design Rationale Metric DP. Hamming search requires the Owner to receive a coarse query code, which exposes the queryâs neighborhood and creates matching, property-inference, and linkability channels. Metric DP gives this released code a distance-calibrated indistinguishability guarantee while preserving efficient plaintext filtering. Single-release utility recovery. MESS [19] recovers recall after discrete randomized response through 64 HNSW shards with separately trained IsoHash mappings, routing each item to 16 shards and searching every shard for candidates. This raises a relevant itemâs recovery probability to 1â(1âPhit)161-(1-P_hit)^16; however, the hash codes appearing in 16 releases also compose privacy leakage across shards, leading to extremely large ϔΔ and almost null formal guarantee. Our learned filter, instead, releases one metric-DP code and recovers utility by enlarging K, leading to a good balance between privacy, efficiency, and search quality. Table 2 gives an operational view of this coarse release. The closest DP-Hamming codes match isolated cues such as London, poppies, or tower without identifying the requested fact. The answer-bearing passage appears only at Hamming rank 1,439; encrypted clean-query scoring promotes it to rank 5, inside the Userâs hidden k=10k=10 selection. The large candidate set therefore preserves the answer while separating coarse code proximity from precise semantic relevance. Appendix B.2 presents three additional queries spanning factual counts, locations, and calendar rules. Table 2: One NQ query (test1054) under the E5 pure-vMF operating point (Δ=64 =64, K=3000K=3000, k=10k=10, 256 bits). The DP-Hamming neighbors expose a broad mixture of query cues; Stage 2 recovers the answer-bearing passage. View Rank / dHd_H Text excerpt Target â Who made the poppies at Tower of London? DP-Ham. 1 / 65 10 Downing Street: âThe terrace and garden were constructed in 1736 âŠâ DP-Ham. 2 / 69 Anzac Day: âPaper poppies are widely distributed âŠâ DP-Ham. 3 / 70 Eiffel Tower: â26 December 1888: Construction of the upper stage.â Stage 2 1439â 5 / 88 Blood Swept Lands and Seas of Red: âThe artist was Paul Cummins, with setting by stage designer Tom Piper.â Shallow HE. The scoring stage is a plaintextâciphertext matrixâvector multiplication over pre-normalized vectors. Our exact-integer BFV path uses SIMD multiplication and rotation-based reduction at depth 1 in the multi layout or depth 2 in the communication-oriented compact layout. Local decryption handles top-k, eliminating encrypted comparison, ciphertextâciphertext multiplication, and bootstrapping. The deployed compact path also clears non-output slots and randomizes evaluation according to ciphertext-simulatable BFV [36]: BFV hides the query from the Owner, while the randomized output reveals no Owner operand information to a conforming secret-key User beyond the K prescribed scores. Key-only OT. Returning all K documents would disclose the full candidate payload set, whereas transferring full documents inside OT would make the active-secure OT payload proportional to document size. The protocol therefore sends fixed-size 128-bit content keys through k 1-out-of-K choices and delivers AEAD ciphertexts on the ordinary channel. This composition keeps OT small, hides the selected positions from the Owner, and caps payload decryption at k choices; authenticated quotas separately govern the deliberately released score vector. Owner-local execution. The Owner already holds the corpus and can retain the binary index on its own infrastructure. The index occupies NâL/8NL/8 bytes (e.g., 283 MB for N=8.84N=8.84M at L=256L=256), allowing the Hamming scan and HE scoring to run without a query-processing intermediary. 6 Security Contract and Protocol Guarantees This section establishes the protocolâs four guarantees. Views (§6.1) defines the information released to each party. Query privacy (§6.2) proves metric privacy of the candidate pattern and computational privacy of the Ownerâs complete view. Scoring privacy (§6.3) proves exact BFV scores and ciphertext simulatability for a conforming User. Payload access (§6.4) formalizes the score oracle and the k-payload bound. 6.1 Explicit Per-Party Views For one round, the Ownerâs explicit leakage is âO=(CLOSE _O=( ,,,K,k,,, id, session, round,K,k, layout, lengths, (4) OPEN,b~q,CK,/). timing, b_q,C_K, accept/reject). Adjacent executions fix all fields in Equation 4 except the DP output (b~q,CK,/)( b_q,C_K, accept/reject). Theorem 2 accounts computationally for the BFV and OT transcripts in the real view. The application-level disclosure to a conforming User is âUtarget=(K,,|Pi|:iâCK,Di:iâS,|S|â€k,),L^target_U=(K,s,\|P_i|:iâ C_K\,\D_i:iâ S,\ |S|†k\, linkage), (5) Here s is the candidate-local score vector, PiP_i is a padded payload ciphertext, and linkage records equality of recurring ciphertexts. Theorems 4 and 5 realize Equation 5 for HE scoring and payload recovery, respectively. 6.2 Directional Candidate Privacy and Query Privacy For query x, let hâĄ(x)=tanhâĄ(ÎČâzâ(x))â[â1,1]Lh(x)= (ÎČ z(x))â[-1,1]^L and uâĄ(x)=hâĄ(x)/âhâĄ(x)â2âLâ1u(x)=h(x)/\|h(x)\|_2 ^L-1. Given u, the mechanism samples YâŒvMFâĄ(u,Îș)Y (u,Îș), whose density is puâ(y)=CLâ(Îș)âexpâĄ(Îșâuâ€ây)p_u(y)=C_L(Îș) (Îș u y), and releases MÎșâ(u)=signâĄ(Y)M_Îș(u)= (Y). Theorem 1 (Pure directional metric privacy). For every Îșâ„0Îșâ„ 0, every u,uâČâLâ1u,u ^L-1, and every output event S, Pr[MÎș(u)âS]â€exp(Îșdc(u,uâČ))Pr[MÎș(uâČ)âS]. [M_Îș(u)â S]†\! (Îș d_c(u,u ) ) [M_Îș(u )â S]. (6) Consequently, for angular radius Ïâ(0,Ï]Ïâ(0,Ï], choosing Îș=Δ2âsinâĄ(Ï/2)Îș= 2 (Ï/2) (7) gives (Δ,0)( ,0)-directional privacy within that radius. Proof. The vMF normalizer is independent of its mean direction, so for every y, logâĄ(puâ(y)/puâČâ(y))=Îșâ(uâuâČ)â€âyâ€ÎșââuâuâČâ2 (p_u(y)/p_u (y))=Îș(u-u ) yâ€Îș\|u-u \|_2. Integration gives the bound for Y, and sign binarization preserves it by post-processing. Finally, dcâ(u,uâČ)=2âsinâĄ(dΞâ(u,uâČ)/2)â€2âsinâĄ(Ï/2)d_c(u,u )=2 (d_Ξ(u,u )/2)†2 (Ï/2) inside the angular radius. â Equation 6 is the global metric-DP guarantee under chordal distance [8]; Equation 7 is its angular-radius corollary. Theorem 2 (Computational directional privacy of the Owner view). Suppose a conforming User generates the coarse and encrypted queries, BFV is indistinguishable under chosen-plaintext attack (IND-CPA), OT is receiver-private against its sender, and adjacent executions have identical auxiliary fields in Equation 4. For every probabilistic polynomial-time (PPT) distinguisher A and η=Îșâdcâ(u,uâČ)η=Îș d_c(u,u ) such that eηe^η is polynomially bounded in the security parameter, Pr[A(O(x))=1]â€eηPr[A(O(xâČ))=1]+negl(λ). [A( View_O(x))=1]†e^η [A( View_O(x ))=1]+negl(λ). (8) Proof sketch. Receiver privacy simulates the choice-dependent OT messages, and BFV IND-CPA replaces the clean-query ciphertext by an encryption of zero. The residual view is (MÎșâ(u),CK,/)(M_Îș(u),C_K, accept/reject), where the last two components are post-processing. Theorem 1 supplies the factor eηe^η; polynomially bounded eηe^η absorbs the hybrid losses into neglâĄ(λ)negl(λ). â For T adaptive releases, sequential composition replaces η in Equation 8 by ηT=Îșâât=1Tdcâ(ut,utâČ) _T=Îș _t=1^Td_c(u_t,u _t), conditioned on the fixed auxiliary leakage. 6.3 Exact Scoring and HE Privacy Scope Let the canonically packed query ÂŻ q and every candidate ÂŻi z_i lie in [âB,B]d[-B,B]^d. Lemma 3 (Exact integer scoring). If BFV decryption succeeds for the configured circuit and t>2âdâB2,t>2dB^2, (9) every decoded anchor equals si=âj=1dzÂŻiâjâqÂŻjââ€s_i= _j=1^d z_ij q_j . Proof. Since |si|â€dâB2<t/2|s_i|†dB^2<t/2, centered reduction modulo t is injective on every possible score. Appendix A.3 proves that both layouts place this residue at each decoded anchor. â The deployed B=127B=127, d=768d=768, and t>24,774,144t>24,774,144 satisfy Equation 9; BFV noise correctness remains an independent decryption condition. BFV IND-CPA hides ÂŻ q from the Owner. To hide the Ownerâs plaintext operands from the decrypting User, the compact path instantiates ciphertext-simulatable BFV [36]. Write Rt=â€tâ[X]/(Xn+1)R_t=Z_t[X]/(X^n+1), identify ring elements with coefficient vectors, and let DÎ,ÏD_ ,Ï denote the discrete Gaussian on lattice coset Î . For ÎŒâRtÎŒâ R_t, it samples ÎŒ^âDÎŒ+tââ€n,Ï ÎŒâ D_ÎŒ+tZ^n,Ï and evaluates âĄ(cât,ÎŒ) PMultE(ct,ÎŒ) =câtâ ÎŒ^+(e,0), =ct· ÎŒ+(e,0), (10) âĄ(pâk) Rand(pk) =e2âpâk+(e0,e1), =e_2pk+(e_0,e_1), where eââDân,Ïâeâ D_R^n,Ï , e1,e2âDâ€n,Ïre_1,e_2â D_Z^n, _r, and e0ââDân,Ïrâe_0â D_R^n, _r . One âĄ(pâk) Rand(pk) precedes the public linear rotationâmaskâaddition subcircuit; the compact mask leaves s in its canonical slots and zero elsewhere. Theorem 4 (HE server-input privacy for conforming Users). Let câtqct_q be a fresh symmetric BFV encryption of a bounded, canonically packed query, and let the randomized-evaluation parameters satisfy the correctness and smoothing conditions of ciphertext-simulatable BFV [36]. Under the corresponding ring-learning-with-errors (RLWE) assumption, the compact scoring view of a conforming secret-key User is computationally simulatable as UHEâc(pk,sk,ctq,,), View^HE_U _c Sim(pk,sk,ct_q,s, metadata), (11) where s contains the prescribed K exact scores. Consequently, the evaluated ciphertext coefficients and all non-score slots reveal no information about the candidate embeddings beyond s and public metadata. Proof sketch. PMultE error simulatability and Rand masking replace each group ciphertext by one generated from câtqct_q and its group scores [36]. Applying the public linear subcircuit preserves indistinguishability, and a hybrid over groups yields Equation 11 because the final plaintext is âĄ(,0,âŠ,0) Encode(s,0,âŠ,0). â Appendix D.2 specifies the samplers and BFV parameters. The theorem assumes a fresh symmetric, canonical query ciphertext; malformed ciphertexts require a well-formedness proof. The scores s remain explicit leakage. 6.4 Exact-Score Exposure and Payload Access The score oracle and quota ledger satisfy log2âĄ|suppâĄ()| _2|supp(s)| â€Kâlog2âĄ(2âdâB2+1), †K _2(2dB^2+1), (12) riâ€R r_i†R âčrankâĄ(Qi)â€minâĄR,d, (Q_i)†\R,d\, where i=QiâÂŻis_i=Q_i z_i contains the rir_i scores released for document i. The first bound grows linearly with K; the second counts linear observations but does not bound inference from representation priors. Authentication is required because Sybil identities reset R. Theorem 5 (Per-round payload-key bound). Assume the OOS extension realizes active-secure 1-out-of-K OT for each of k rows [64], the OT-key mask is pseudorandom, content keys are independent, and the payload cipher is authenticated encryption. Except with negligible probability, a malicious receiver completing one accepted round recovers at most k distinct candidate content keys and therefore at most k distinct candidate payloads, independently of K. Proof sketch. Active receiver security reveals at most one option key per row. Pseudorandom masking hides every unchosen content key, and authenticated-encryption confidentiality hides its payload; summing over k rows proves the bound. â Across T accepted rounds, the payload bound composes to TâkTk; corpus enumeration remains possible if the accepted selections eventually cover it. Scores, padded lengths, stable-ciphertext linkage, and cross-round inference remain explicit leakage. Thus increasing K enlarges Equation 12 but not the per-round payload cap. 7 Evaluation Our evaluation asks four questions: whether the learned filter outperforms classical alternatives while preserving retrieval across models, domains, and corpus scales; whether the resulting evidence supports end-to-end RAG quality; how shortlist size and two-forward overlap determine protocol cost; and how privacy calibration and candidate budget jointly determine retrieval quality and representation exposure. Table 3: Two-forward retrieval on five BEIR corpora spanning 25Kâ5.4M documents. Stage 1 uses the learned hash model; Stage 2 reranks its candidates with the original pretrained encoder. Pretr. Fl. is matched full-corpus retrieval, and each Îâ@âK @K is Stage 2@K minus Pretr. Fl. Stage 1: Bin. Recall@K Stage 2: NDCG@10 Model Dataset Docs K=200 K=500 S2@200 S2@500 Pretr. Fl. â@â @200 â@â @500 E5-base-v2 SciDocs 25K .4331 .5469 .1875 .1874 .1870 +.0005+.0005 +.0004+.0004 (256-bit) NQ 2.7M .8884 .9271 .5723 .5787 .5854 â.0132-.0132 â.0068-.0068 DBpedia-Entity 4.6M .4549 .5474 .4144 .4224 .4271 â.0127-.0127 â.0047-.0047 Climate-FEVER 5.4M .5300 .6154 .2818 .2785 .2627 +.0192+.0192 +.0158+.0158 FEVER 5.4M .9368 .9484 .8417 .8451 .8501 â.0084-.0084 â.0050-.0050 BGE-base SciDocs 25K .5211 .6467 .2224 .2225 .2228 â.0004-.0004 â.0003-.0003 (512-bit) NQ 2.7M .8923 .9349 .5326 .5372 .5414 â.0088-.0088 â.0042-.0042 DBpedia-Entity 4.6M .4764 .5679 .4018 .4041 .4081 â.0063-.0063 â.0040-.0040 Climate-FEVER 5.4M .5935 .6774 .2874 .2848 .2836 +.0038+.0038 +.0012+.0012 FEVER 5.4M .9429 .9517 .8480 .8483 .8495 â.0015-.0015 â.0012-.0012 7.1 Experimental Setup Encoder, Datasets, and Metrics. We train E5-base-v2 [78] and BGE-base-en-v1.5 [11] hash models on MS MARCO passage ranking [63] and evaluate zero-shot transfer on five BEIR corpora [75]: SciDocs [18], Natural Questions (NQ) [44], DBpedia-Entity [29], Climate-FEVER [21], and FEVER [76], following the standard BEIR zero-shot protocol. The corpora span from 25,657 to 5.4M documents. E5-base-v2 uses 256-bit codes, and BGE-base-en-v1.5 uses 512-bit codes. Stage 1 reports Recall@K over the relevance judgments for the learned Hamming filter; Stage 2 reranks exactly those candidates with the unchanged pretrained encoder and reports NDCG@10. Full-corpus retrieval with the same pretrained encoder is presented as a reference. Appendix B.1 gives the detailed training recipe and hyperparameters. Representation Exposure. Search-based inversion evaluates the embedding-guided search stages of ZSInvert [90] on 100 randomly sampled MS MARCO documents. Llama-3.1-8B-Instruct [55] generates a width-50 beam for six search rounds, scored by float cosine or normalized hash similarity; we report mean verifier cosine and attack success at cosine 0.8. Generation-based inversion trains a GEIA [49] DialoGPT-medium [93] decoder on PersonaChat [91] for 10 epochs and reports token F1 and verifier cosine on held-out passages. Following the property-inference threat model of Song and Raghunathan [73], we evaluate AG News topic [92], IMDB sentiment [58], and 50-way 20 Newsgroups authorship [46] labels. Five stratified 60/20/20 splits separate attacker training, model selection, and victim testing; validation macro F1 selects the best model among logistic regression, a two-layer MLP, and LightGBM [42], and we report victim-test macro F1 averaged across the five splits. Appendix B.3 gives the complete attack flow, decoding limits, optimization hyperparameters, and preprocessing. Following metric- and directional-DP evaluation conventions [8, 82], we report each operating point by its protected space, radius, and (Δ,ÎŽ)( ,ÎŽ) parameters. Definition 1 defines the generic radius Ï; here, we denote Ïh _h to be the Euclidean radius on the bounded pre-sign vector, and ÏΞ _Ξ to be the angular radius on its normalized direction. The RDP-vMF comparison maps Ïh=2 _h=2 to ÏΞ=2âarcsinâĄ(1/L) _Ξ=2 (1/ L). The retrieval sweeps and property-inference table use Δâ8,16,32,64 â\8,16,32,64\ at Ïh=2 _h=2; the inversion sweeps additionally include tighter budgets and the Ïh=6.32 _h=6.32 setting. Following standard approximate-DP calibration [23], Gaussian and RDP-vMF set ÎŽ=10â6ÎŽ=10^-6, below the inverse of every evaluated query-set size, while pure-vMF provides ÎŽ=0ÎŽ=0. The randomized attack plots use the same calibrated mechanisms as the retrieval comparison, and Theorem 1 gives the angular calibration for the protocolâs pure-vMF release. 7.2 Retrieval Quality 7.2.1 Main Retrieval Results A concise shortlist preserves quality and may prune distractors. Table 3 evaluates the deployed two-forward path at Kâ200,500Kâ\200,500\. Recall@K measures how much judged-relevant material survives the learned filter; Stage 2 NDCG@10 measures the ranking obtained when the original pretrained model scores only those candidates. The full-corpus column uses the same scorer, and Îâ@â200 @200 and Îâ@â500 @500 isolate the candidate filtering capability of the hash model. At K=500K=500, both encoders retain 98.84â100.21% of full-corpus NDCG@10 on SciDocs, NQ, DBpedia-Entity, and FEVER. On Climate-FEVER, the shortlist even improves NDCG@10 by 0.0158 for E5 and 0.0012 for BGE. We hypothesize that the learned filter can act as a coarse semantic denoiser that removes spurious high-scoring distractors that Stage 2 would otherwise place ahead of relevant ones. We observe only a slight increase in NDCG@10 (0.0064 and 0.0080, respectively) as K increases from 200 to 500, while several easier pairs are already saturated at K=200K=200. We therefore report both budgets here and benchmark latency through K=3000K=3000, leaving larger candidate pools available for the differential-privacy operating points evaluated next. The learned filter outperforms classical and supervised hashing baselines. Table 4 organizes candidate filters by the information used to construct their codes. Direct sign is a parameter-free, one-bit quantization of each pretrained coordinate. Data-independent LSH comprises random-hyperplane LSH [7] and Super-Bit LSH [39], which orthogonalizes the random projections. Unsupervised data-dependent hashing includes PCA-sign and the learned rotations of ITQ [28] and IsoHash [43]; we fit each transformation on MS MARCO passage embeddings and transfer it across corpora. BPR [86] represents a recent supervised learning-to-hash method through a pairwise ranking objective, while our filter jointly adapts the encoder and hash head with retrieval and ranking supervision. Table 4: E5 candidate-filter baselines averaged over the five corpora in Table 3. Every method uses exact Hamming Stage 1 and the same pretrained E5 Stage 2 scorer. Direct sign uses 768 embedding coordinates; remaining methods use 256 bits. Recall@K NDCG@10 Method K=200K=200 K=500K=500 K=200K=200 K=500K=500 Direct sign (768b) .5046 .5669 .4183 .4338 Random-hyperplane LSH [7] .3068 .3743 .2893 .3283 Super-Bit LSH [39] .3257 .3916 .3008 .3366 PCA-sign .5802 .6398 .4469 .4534 ITQ [28] .6080 .6789 .4494 .4562 IsoHash [43] .6098 .6786 .4520 .4573 BPRâ [86] .6125 .6813 .4473 .4540 Learned filter (ours) .6486 .7170 .4595 .4624 â For a fair comparison, we manually reimplement BPR using the same E5 representation, 256-bit budget, MS MARCO training data, symmetric Hamming candidate search, and evaluation pipeline as our method. Table 4 isolates candidate-filter quality by holding exact Hamming search and the pretrained Stage 2 scorer fixed. Our filter improves mean Recall@500 by 0.0357 and mean Stage 2 NDCG@10 by 0.0084 over BPR; it also improves mean Stage 2 NDCG@10 by 0.0051 over the strongest unsupervised baseline. The full-precision scorer can repair ordering only among documents retained by Stage 1, making candidate recall the more direct measure of hash quality. 7.2.2 Retrieval under Differential Privacy Following the comparison methodology of Biswas et al. [5], we evaluate randomized response, analytic Gaussian, and RDP-vMF at common (Δ,ÎŽ=10â6)( ,ÎŽ=10^-6) targets and the protocolâs formal pure-vMF mechanism under pure metric DP. Randomized response composes privacy across the full binary code; RDP-vMF calibrates its RĂ©nyi-divergence curve at the angular boundary defined above; Gaussian calibrates its analytic profile to Euclidean radius Ïh=2 _h=2 on the bounded pre-sign representation. Pure-vMF uses the exact directional calibration in Theorem 1. Table 5: Representative two-forward DP operating points. NDCG@10 averages E5 and BGE on SciDocs, NQ, and FEVER. RAG latency uses Qwen3-32B with 128 output tokens on NQ; Î is the absolute protection cost over the plaintext two-forward pipeline. Release Guarantee (Δ,K)( ,K) NDCG@10 Ret. RAG s Î Full-corpus float Reference (â,N)(â,N) .5394 100.0% 7.302 â Plaintext filter None (â,500)(â,500) .5363 99.4% 7.305 0 Randomized response (Δ,ÎŽ)( ,ÎŽ)-DP (16,3000)(16,3000) .0306 5.7% 8.403 +1.098 Gaussian (Δ,ÎŽ)( ,ÎŽ)-DP (8,3000)(8,3000) .5084 94.3% 8.403 +1.098 Gaussian (Δ,ÎŽ)( ,ÎŽ)-DP (16,2000)(16,2000) .5350 99.2% 8.033 +0.728 RDP-vMF (Δ,ÎŽ)( ,ÎŽ)-DP (8,3000)(8,3000) .5187 96.2% 8.403 +1.098 RDP-vMF (Δ,ÎŽ)( ,ÎŽ)-DP (16,1000)(16,1000) .5350 99.2% 7.676 +0.371 Pure-vMF Pure metric DP (32,3000)(32,3000) .5229 96.9% 8.403 +1.098 Pure-vMF Pure metric DP (64,2000)(64,2000) .5359 99.4% 8.033 +0.728 Continuous randomization preserves retrieval quality. Table 5 reports randomized response at K=3000K=3000 and selects the continuous mechanismsâ smallest evaluated K that reaches approximately 99% retention at Δ=16 =16 or 64, while retaining the K=3000K=3000 endpoints at tighter budgets. RDP-vMF reaches 99.2% at K=1000K=1000, Gaussian reaches 99.2% at K=2000K=2000, and formal pure-vMF reaches 99.4% at K=2000K=2000. With 128-token Qwen3-32B generation [87], their absolute protection costs are 0.37, 0.73, and 0.73 seconds (9.97% of the plaintext pipeline); the K=3000K=3000 endpoint adds at most 1.10 seconds. The per-dataset K curves and complete E5 and BGE sweeps appear in Appendix C. 7.2.3 End-to-End RAG Quality Protected retrieval preserves end-to-end RAG quality. We evaluate 500 Natural Questions queries over the full 2.68M-passage BEIR corpus [75]. The E5 scorer supplies the top five passages to Qwen3-32B, which returns a short answer under greedy decoding; exact match and token F1 use the NQ-Open answer aliases. Table 6 shows that every two-forward operating point remains within 0.2 EM and 0.20 F1 of full-corpus float retrieval. Pure-vMF at (Δ=64,K=3000)( =64,K=3000) reaches 50.0 EM and 62.89 F1, compared with 50.0 and 63.09 for the float reference. Appendix C.1 evaluates client-side cross-encoder reranking of the authorized payloads. Table 6: End-to-end RAG quality on 500 NQ queries. Hit is answer-alias coverage in 5 passages supplied to Qwen3-32B. Retrieval (Δ,K)( ,K) Hit EM F1 Full-corpus float (â,N)(â,N) 88.4 50.0 63.09 No-DP hash (â,500)(â,500) 87.8 50.2 63.12 Gaussian (16,3000)(16,3000) 88.2 50.2 63.06 RDP-vMF (16,3000)(16,3000) 87.8 50.2 63.00 Pure-vMF (64,3000)(64,3000) 87.8 50.0 62.89 7.3 Efficiency Evaluation We evaluate four sources of systems cost: the two-forward pipeline, candidate-set scaling, complete RAG latency, and the online latency relative to prior private-retrieval systems. Appendices D.2 and D.3 give the implementation and measurement details. Pipeline overlap absorbs almost all two-forward overhead. We measure the complete online path on SciDocs (N=25,657N=25,657, d=768d=768, k=10k=10, K=500K=500) over a 10-Gbps link, spanning shared tokenization, dual BF16 encoder forward passes, randomized compact BFV scoring, active-secure OT, and final payload decryption. The two encoders reuse the same token tensors, and the first forward computes only the hash logits. Model-stage and cryptographic results are means over 50 queries. Figure 3 expands Steps 1â4 of the online protocol (§5.2). After Step 1 sends the coarse frame, Owner-side Hamming search (Step 2) and the Userâs pretrained forward plus BFV encryption (Step 3) run concurrently. For E5, Step 2 finishes at 10.89 ms and starts payload streaming before Step 3 finishes at 13.26 ms, so Step 4 waits for Step 3. For BGE, Step 3 finishes at 13.34 ms before Step 2 fixes CKC_K at 14.23 ms, so Step 4 instead waits for Step 2. The complete paths take 198.91 and 199.88 ms, respectively. Figure 3: Protected critical-path latency at K=500K=500. After Step 1, Owner-side Step 2 and User-side Step 3 overlap, hiding 5.40 of 7.77 ms for E5 and all 7.83 ms for BGE before Step 4. Times are milliseconds; §5.2 defines the steps. Candidate budget directly controls compute and communication. We sweep K from 200 to 3000 on SciDocs, measuring the complete randomized-evaluation protocol and projecting its exact serialized traffic at 100 Mbps, 1 Gbps, and 10 Gbps. As Table 7 shows, compute grows from 104.1 ms at K=200K=200 to 1096.2 ms at K=3000K=3000, while traffic grows from 1.64 to 13.64 MB. At K=500K=500, total latency is 198.9 ms at 10 Gbps and 430.9 ms at 100 Mbps; at K=3000K=3000, these values rise to 1.107 and 2.187 seconds. Compact BFV scoring returns one score ciphertext throughout this range, so the remaining growth comes from candidate scoring and the payload and masked-key traffic, which scale with K. The smallest candidate budget that meets the retrieval-quality target therefore gives the best operating point. Table 7: Protected retrieval before generation versus candidate budget on SciDocs. Compute includes query DP and the complete randomized-evaluation protocol except transfer; bandwidth columns add the exact serialized traffic. Protected latency (ms) K Compute Traffic (MB) 100 Mbps 1 Gbps 10 Gbps 200 104.1 1.64 235.6 117.3 105.4 500 196.6 2.93 430.9 220.0 198.9 1000 376.1 5.07 781.7 416.6 380.1 2000 729.8 9.35 1478.2 804.7 737.3 3000 1096.2 13.64 2187.3 1205.3 1107.1 Protection adds little latency to a full RAG pipeline. We place the full 2.68M-passage E5 index on one A100 and Qwen3-32B on a second A100, which generates 128 tokens in 7.296 seconds. The plaintext filter and full-corpus float baselines take 7.305 and 7.302 seconds end to end. Figure 4 removes this shared generation time and reports the incremental protection cost: K=500K=500 adds 0.190 seconds (2.6%), the representative K=1000K=1000 and K=2000K=2000 operating points add 0.371 (5.1%) and 0.728 seconds (10.0%), and K=3000K=3000 adds 1.098 seconds (15.0%). The compact view makes the candidate-budget scaling visible without redrawing the same generation bar for every operating point; Appendix D.3 reports the measurement scope and output-length sensitivity. Figure 4: Incremental latency over plaintext 128-token RAG. Qwen3-32B generation takes 7.296 seconds on one A100 (7.305 seconds total); labels report added latency, percentage overhead, and protected total. At matched quality, our protocol is fastest at every evaluated corpus scale. Figure 5 compares online latency against the recent P2RAG [59], RemoteRAG [14], and PANTHER [50] at 100 Mbps using the same 768-dimensional E5-base-v2 embeddings, top-10 output, and hardware setup. Our protocol uses pure-vMF at Δ=64 =64 and the smallest dataset-specific K retaining at least 99% of float NDCG@10: 292 for SciDocs, 104 for TouchĂ©, and 1956 for NQ-1M. It takes 0.298, 0.160, and 1.456 seconds on the three corpora, respectively; TouchĂ© is faster than SciDocs because it has a smaller candidate set. These latencies are 2.1Ă, 69.2Ă, and 20.1Ă faster than P2RAG and 10.2Ă, 33.1Ă, and 5.0Ă faster than RemoteRAG. PANTHER takes 19.40 and 40.41 seconds on SciDocs and TouchĂ© and exhausts 256 GB of memory during its NQ-1M PIR answer. The P2RAG implementation uses 192 hardware threads and excludes trusted-dealer preprocessing, whereas our BFV scorer uses only 16 threads. Therefore, these choices favor its reported online latency. Appendix D.4 provides the matched benchmark contract, baseline implementations, and corresponding 1-Gbps results. Figure 5: Matched online protocol latency on three corpus scales using E5-base-v2, top-10 output, and a 100-Mbps link. Our protocol uses pure-vMF at Δ=64 =64 and the smallest dataset-specific K that retains at least 99% of float NDCG@10. PANTHER exhausts 256 GB of memory in NQ-1M. 7.4 Representation Exposure Binarization and DP provide defense in depth against inversion. Table 9 separates the two layers: the learned hash creates a discrete bottleneck that reduces leakage even without DP, and metric-DP randomization adds a formally calibrated second layer. Table 9 illustrates the aggregate trend on a common target. The float reconstruction recovers the named organization, its nonprofit status, and its activity; the learned hash turns the foundation-like acronym into a banking organization; and the randomized code produces an unrelated geographic passage. Appendix B.4 reports the complete decoded strings for this target and three additional cases. Table 8: Embedding-inversion measurements for E5-base-v2; lower is better. Hash and pure-vMF releases use 256-bit codes, and pure-vMF provides metric DP. Search success uses a verifier-cosine threshold of 0.8. Metric Float No-DP hash Pure-vMF (Δ=64 =64) Search cosine .824 .638 .423 Search success .920 .590 .325 Gen. token F1 .545 .368 .205 Gen. cosine .784 .584 .328 Table 9: One search-based inversion case shared across the evaluated releases. Excerpts are shortened; Appendix B.4 gives the complete outputs and three additional cases. Verifier cosine measures semantic agreement with the target. Release Target or reconstruction excerpt Cosine Target âWelcome to the U.S. High School Bowling Foundation ⊠promotes the growth of high school bowling.â â Float âUS Bowling Foundation. The nonprofit organization ⊠501(C) âŠâ .903 Learned hash âUS Bank is affiliated by National Bank Union âŠâ .464 Gaussian, Δ=8 =8 âThe country Australia encompasses expansive territories âŠâ â.060-.060 Figure 6: Search-based embedding inversion under Gaussian and RDP-vMF randomization at Ïh=2 _h=2. The left panel reports mean verifier cosine similarity and the right panel reports attack success at a threshold of 0.8. Horizontal lines show the float and no-DP learned-code references. Figure 7: Generation-based embedding inversion under Gaussian and RDP-vMF randomization. Tighter randomization suppresses embedding inversion. Figure 6 shows that both mechanisms suppress successful search-based reconstruction at tighter privacy budgets, degrading smoothly when Δ relaxes. Generation-based inversion exhibits the same privacy-budget response (Figure 7): randomized releases reveal less lexical and semantic information than the learned code, with stronger suppression at smaller Δ . Table 10: E5 property-inference macro F1 for the validation-selected best attacker; lower is better. Entries average five stratified splits. Release Δ Topic Sentiment Authorship Mean Gaussian 8 .6001 .4763 .0862 .3875 Gaussian 16 .6303 .5402 .1002 .4235 Gaussian 32 .7024 .5849 .1303 .4725 Gaussian 64 .8221 .6575 .1875 .5557 RDP-vMF 8 .5980 .5021 .0727 .3909 RDP-vMF 16 .6251 .5528 .0924 .4234 RDP-vMF 32 .6713 .6057 .1235 .4668 RDP-vMF 64 .8325 .6515 .1550 .5463 Learned hash â .8774 .7383 .2240 .6133 Float reference â .8872 .7986 .3876 .6911 Randomization further weakens property inference. Property inference confirms the same layered effect (Table 10): learned hashing removes attribute signal relative to the float representation, and randomization further weakens topic, sentiment, and authorship inference as Δ tightens. Gaussian and RDP-vMF yield similar attack leakage and utility trade-offs. We leave mechanisms that provide better utilityâprivacy trade-offs under the same Δ guarantee to future work. 8 Concluding Remarks We presented a practical two-party private dense-retrieval design for provider-held corpora serving external users. Concentrating private computation on a high-recall shortlist preserves retrieval quality and practical latency at million-document scale, while layered protections limit query and selection leakage and enforce the per-query payload allowance. Evaluations against embedding-inversion and property-inference attacks show that the released representation reduces reconstruction fidelity and attribute leakage. The resulting deployment reconciles interests that usually conflict: legitimate users receive privacy-preserving, precise semantic search, while corpus owners retain control over valuable content and align disclosure with the serviceâs billing model. References [1] M. Albrecht, M. Chase, H. Chen, J. Ding, S. Goldwasser, S. Gorbunov, S. Halevi, J. Hoffstein, K. Laine, K. Lauter, S. Lokam, D. Micciancio, D. Moody, T. Morrison, A. Sahai, and V. Vaikuntanathan (2018) Homomorphic encryption security standard. Technical report HomomorphicEncryption.org, Toronto, Canada. External Links: Link Cited by: §D.2, §5.1. [2] A. Andoni, P. Indyk, T. Laarhoven, I. P. Razenshteyn, and L. Schmidt (2015) Practical and optimal LSH for angular distance. In Advances in Neural Information Processing Systems 28, p. 1225â1233. External Links: Link Cited by: §2.1. [3] H. Asi, F. Boemer, N. Genise, M. H. Mughees, T. Ogilvie, R. Rishi, G. N. Rothblum, K. Talwar, K. Tarbe, R. Zhu, and M. Zuliani (2024) Scalable private search with wally. CoRR abs/2406.06761. External Links: Link, Document, 2406.06761 Cited by: §2.3, Table 1. [4] B. Balle and Y. Wang (2018) Improving the Gaussian mechanism for differential privacy: analytical calibration and optimal denoising. In Proceedings of the 35th International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 80, p. 394â403. External Links: Link Cited by: §A.1, §2.2. [5] S. Biswas, M. Dras, P. Faustini, N. Fernandes, A. McIver, C. Palamidessi, and P. Sadeghi (2025) Comparing privacy notions for protection against reconstruction attacks in machine learning. ArXiv preprint abs/2502.04045. External Links: Link Cited by: §7.2.2. [6] J. V. Bulck, M. Minkin, O. Weisse, D. Genkin, B. Kasikci, F. Piessens, M. Silberstein, T. F. Wenisch, Y. Yarom, and R. Strackx (2018) Foreshadow: extracting the keys to the intel SGX kingdom with transient out-of-order execution. In 27th USENIX Security Symposium, p. 991â1008. External Links: Link Cited by: §1. [7] M. S. Charikar (2002) Similarity estimation techniques from rounding algorithms. In Proceedings of the 34th Annual ACM Symposium on Theory of Computing, p. 380â388. External Links: Document, Link Cited by: §B.1, §2.1, §7.2.1, Table 4. [8] K. Chatzikokolakis, M. E. AndrĂ©s, N. E. Bordenabe, and C. Palamidessi (2013) Broadening the scope of differential privacy using metrics. In international symposium on privacy enhancing technologies symposium, p. 82â102. Cited by: §2.2, §2.2, §6.2, §7.1. [9] G. Chen, T. Lai, M. K. Reiter, and Y. Zhang (2018) Differentially private access patterns for searchable symmetric encryption. In IEEE Conference on Computer Communications, INFOCOM 2018, p. 810â818. External Links: Link, Document Cited by: §2.3, Table 1. [10] H. Chen, I. Chillotti, Y. Dong, O. Poburinnaya, I. Razenshteyn, and M. S. Riazi (2020) SANNS: scaling up secure approximate k-nearest neighbors search. In 29th USENIX Security Symposium, p. 2111â2128. External Links: Link Cited by: §2.3, Table 1. [11] J. Chen, S. Xiao, P. Zhang, K. Luo, D. Lian, and Z. Liu (2024) M3-embedding: multi-linguality, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. In Findings of the Association for Computational Linguistics: ACL 2024, Bangkok, Thailand, p. 2318â2335. External Links: Link, Document Cited by: §2.1, §4.1, §7.1. [12] Y. Chen, H. C. Lent, and J. Bjerva (2024) Text embedding inversion security for multilingual language models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2024, Bangkok, Thailand, August 11-16, 2024, L. Ku, A. Martins, and V. Srikumar (Eds.), p. 7808â7827. External Links: Link, Document Cited by: Ethical Considerations, §1, §2.2. [13] Y. Chen, Z. Ma, Z. Zhang, Z. Qi, C. Yuan, B. Li, J. Pu, Y. Shan, X. Qi, and W. Hu (2024) How to make cross encoder a good teacher for efficient image-text retrieval?. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2024, Seattle, WA, USA, June 16-22, 2024, p. 26984â26993. External Links: Link, Document Cited by: §2.1. [14] Y. Cheng, L. Zhang, J. Wang, M. Yuan, and Y. Yao (2025) RemoteRAG: A privacy-preserving LLM cloud RAG service. In Findings of the Association for Computational Linguistics, ACL 2025, Vienna, Austria, July 27 - August 1, 2025, W. Che, J. Nabende, E. Shutova, and M. T. Pilehvar (Eds.), Findings of ACL, p. 3820â3837. External Links: Document, Link Cited by: §D.4, Appendix D, §1, §1, §2.3, Table 1, §7.3. [15] J. H. Cheon, A. Kim, M. Kim, and Y. S. Song (2017) Homomorphic encryption for arithmetic of approximate numbers. In Advances in CryptologyâASIACRYPT 2017, T. Takagi and T. Peyrin (Eds.), Lecture Notes in Computer Science, Vol. 10624, p. 409â437. External Links: Document, Link Cited by: §1. [16] J. Chiu and K. Shinzato (2022) Cross-encoder data annotation for bi-encoder based product matching. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing: EMNLP 2022 - Industry Track, Abu Dhabi, UAE, December 7 - 11, 2022, Y. Li and A. Lazaridou (Eds.), p. 161â168. External Links: Link, Document Cited by: §2.1. [17] B. Chor, E. Kushilevitz, O. Goldreich, and M. Sudan (1998) Private information retrieval. Journal of the ACM (JACM) 45 (6), p. 965â981. Cited by: §2.3. [18] A. Cohan, S. Feldman, I. Beltagy, D. Downey, and D. S. Weld (2020) SPECTER: document-level representation learning using citation-informed transformers. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, ACL 2020, Online, July 5-10, 2020, D. Jurafsky, J. Chai, N. Schluter, and J. R. Tetreault (Eds.), p. 2270â2282. External Links: Link, Document Cited by: §B.1, §7.1. [19] H. Cui, Z. Li, T. T. A. Dinh, and M. Wang (2026) MESS: fast and private semantic search on multi-graph HNSW. CoRR abs/2607.28999. External Links: Link, Document, 2607.28999 Cited by: §1, §2.2, §2.3, Table 1, §5.3. [20] R. Curtmola, J. A. Garay, S. Kamara, and R. Ostrovsky (2006) Searchable symmetric encryption: improved definitions and efficient constructions. In Proceedings of the 13th ACM Conference on Computer and Communications Security, p. 79â88. External Links: Link, Document Cited by: §2.3, Table 1. [21] T. Diggelmann, J. L. Boyd-Graber, J. Bulian, M. Ciaramita, and M. Leippold (2020) CLIMATE-FEVER: a dataset for verification of real-world climate claims. CoRR abs/2012.00614. External Links: Link Cited by: §B.1, §7.1. [22] C. Dwork, F. McSherry, K. Nissim, and A. Smith (2006) Calibrating noise to sensitivity in private data analysis. In Theory of cryptography conference, p. 265â284. Cited by: §2.2. [23] C. Dwork and A. Roth (2014) The algorithmic foundations of differential privacy. Foundations and Trends in Theoretical Computer Science 9 (3â4), p. 211â407. External Links: Document, Link Cited by: §2.2, §2.2, §2.2, §7.1. [24] J. Fan and F. Vercauteren (2012) Somewhat practical fully homomorphic encryption. IACR Cryptology ePrint Archive 2012, p. 144. External Links: Link Cited by: §5.1. [25] W. Fan, Y. Ding, L. Ning, S. Wang, H. Li, D. Yin, T. Chua, and Q. Li (2024) A survey on RAG meeting llms: towards retrieval-augmented large language models. In Proceedings of the 30th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, KDD 2024, Barcelona, Spain, August 25-29, 2024, R. Baeza-Yates and F. Bonchi (Eds.), p. 6491â6501. External Links: Document, Link Cited by: §1, §2.1. [26] N. Fernandes, Y. Kawamoto, and T. Murakami (2021) Locality sensitive hashing with extended differential privacy. In Computer Security - ESORICS 2021 - 26th European Symposium on Research in Computer Security, Darmstadt, Germany, October 4-8, 2021, Proceedings, Part I, E. Bertino, H. Schulmann, and M. Waidner (Eds.), Lecture Notes in Computer Science, p. 563â583. External Links: Link, Document Cited by: §2.2. [27] Y. Gao, Y. Xiong, X. Gao, K. Jia, J. Pan, Y. Bi, Y. Dai, J. Sun, H. Wang, and H. Wang (2023) Retrieval-augmented generation for large language models: a survey. Vol. abs/2312.10997. External Links: Link Cited by: §1, §2.1. [28] Y. Gong and S. Lazebnik (2011) Iterative quantization: a procrustean approach to learning binary codes. In 2011 IEEE Conference on Computer Vision and Pattern Recognition, p. 817â824. External Links: Document, Link Cited by: §B.1, §2.1, §7.2.1, Table 4. [29] F. Hasibi, F. Nikolaev, C. Xiong, K. Balog, S. E. Bratsberg, A. Kotov, and J. Callan (2017) DBpedia-Entity v2: a test collection for entity search. In Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval, p. 1265â1268. External Links: Document, Link Cited by: §B.1, §7.1. [30] K. He, F. Ăakir, S. A. Bargal, and S. Sclaroff (2018) Hashing as tie-aware learning to rank. In 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, p. 4023â4032. External Links: Document, Link Cited by: §2.1. [31] L. He, Z. Huang, C. Yang, R. Li, Z. Zhang, K. Zhang, Z. Li, Q. Liu, and E. Chen (2025) A survey on deep text hashing: efficient semantic text retrieval with binary representation. ArXiv preprint abs/2510.27232. External Links: Link Cited by: §2.1, §4.1. [32] A. Henzinger, E. Dauterman, H. Corrigan-Gibbs, and N. Zeldovich (2023) Private web search with tiptoe. In Proceedings of the 29th Symposium on Operating Systems Principles, SOSP 2023, p. 396â416. External Links: Link, Document Cited by: §2.3, Table 1. [33] J. T. Hoe, K. W. Ng, T. Zhang, C. S. Chan, Y. Song, and T. Xiang (2021) One loss for all: deep hashing with a single cosine similarity based learning objective. In Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, M. Ranzato, A. Beygelzimer, Y. N. Dauphin, P. Liang, and J. W. Vaughan (Eds.), p. 24286â24298. External Links: Link Cited by: §2.1. [34] E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, and W. Chen (2022) LoRA: low-rank adaptation of large language models. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022, External Links: Link Cited by: §1, §4.1. [35] Y. Huang, Y. Tsai, H. Hsiao, H. Lin, and S. Lin (2024) Transferable embedding inversion attack: uncovering privacy risks in text embeddings without model queries. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 4193â4205. Cited by: Ethical Considerations, §1, §2.2. [36] I. Hwang, S. Min, and Y. Song (2025) Ciphertext-simulatable HE from BFV with randomized evaluation. Note: Cryptology ePrint Archive, Paper 2025/203 External Links: Link Cited by: §D.2, item 4, §5.3, §6.3, §6.3, Theorem 4. [37] J. Imola, A. Roy Chowdhury, and K. Chaudhuri (2024) Metric differential privacy at the user-level via the earth-moverâs distance. In Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security, p. 348â362. Cited by: §1, §2.2. [38] Y. Ishai, J. Kilian, K. Nissim, and E. Petrank (2003) Extending oblivious transfers efficiently. In Advances in CryptologyâCRYPTO 2003, Lecture Notes in Computer Science, Vol. 2729, p. 145â161. External Links: Document, Link Cited by: §D.2. [39] J. Ji, J. Li, S. Yan, B. Zhang, and Q. Tian (2012) Super-bit locality-sensitive hashing. In Advances in Neural Information Processing Systems 25, p. 108â116. External Links: Link Cited by: §B.1, §7.2.1, Table 4. [40] C. Juvekar, V. Vaikuntanathan, and A. P. Chandrakasan (2018) GAZELLE: a low latency framework for secure neural network inference. In 27th USENIX Security Symposium, USENIX Security 2018, W. Enck and A. P. Felt (Eds.), p. 1651â1669. External Links: Link Cited by: §1. [41] V. Karpukhin, B. Oguz, S. Min, P. Lewis, L. Wu, S. Edunov, D. Chen, and W. Yih (2020) Dense passage retrieval for open-domain question answering. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), B. Webber, T. Cohn, Y. He, and Y. Liu (Eds.), Online, p. 6769â6781. External Links: Document, Link Cited by: §2.1. [42] G. Ke, Q. Meng, T. Finley, T. Wang, W. Chen, W. Ma, Q. Ye, and T. Liu (2017) LightGBM: a highly efficient gradient boosting decision tree. In Advances in Neural Information Processing Systems 30, p. 3146â3154. External Links: Link Cited by: §B.3, §7.1. [43] W. Kong and W. Li (2012) Isotropic hashing. In Advances in Neural Information Processing Systems 25, External Links: Link Cited by: §B.1, §2.1, §7.2.1, Table 4. [44] T. Kwiatkowski, J. Palomaki, O. Redfield, M. Collins, A. P. Parikh, C. Alberti, D. Epstein, I. Polosukhin, J. Devlin, K. Lee, K. Toutanova, L. Jones, M. Kelcey, M. Chang, A. M. Dai, J. Uszkoreit, Q. V. Le, and S. Petrov (2019) Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics 7, p. 452â466. External Links: Document, Link Cited by: §B.1, §7.1. [45] V. Lakshman, X. Zhu, A. Henzinger, H. Corrigan-Gibbs, and E. Dauterman (2026) Speakeasy: billion-scale two-server private semantic search. In 2nd Workshop on Vector Databases, VecDB@VLDB 2026, External Links: Link Cited by: §2.3. [46] K. Lang (1995) NewsWeeder: learning to filter netnews. In Proceedings of the Twelfth International Conference on Machine Learning, p. 331â339. External Links: Document, Link Cited by: §B.3, Use of human-generated data., §7.1. [47] P. S. H. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. KĂŒttler, M. Lewis, W. Yih, T. RocktĂ€schel, S. Riedel, and D. Kiela (2020) Retrieval-augmented generation for knowledge-intensive NLP tasks. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, and H. Lin (Eds.), External Links: Link Cited by: §1. [48] D. Li, Q. LĂŒ, X. Liao, T. Xiang, J. Wu, and J. Le (2024) AVPMIR: adaptive verifiable privacy-preserving medical image retrieval. IEEE Transactions on Dependable and Secure Computing 21 (5), p. 4637â4651. Cited by: §1. [49] H. Li, M. Xu, and Y. Song (2023) Sentence embedding leaks more information than you expect: generative embedding inversion attack to recover the whole sentence. In Findings of the Association for Computational Linguistics: ACL 2023, A. Rogers, J. Boyd-Graber, and N. Okazaki (Eds.), Toronto, Canada, p. 14022â14040. External Links: Document, Link Cited by: §B.3, Dual-use of attack reproduction., Ethical Considerations, §1, §2.2, §3.3, §7.1. [50] J. Li, Z. Huang, M. Zhang, C. Hong, J. Liu, T. Wei, and W. Chen (2025) PANTHER: private approximate nearest neighbor search in the single server setting. In Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security, p. 365â379. External Links: Link, Document Cited by: §D.3, §D.4, Appendix D, §2.3, Table 1, §7.3. [51] W. Li, S. Wang, and W. Kang (2016) Feature learning based deep supervised hashing with pairwise labels. In Proceedings of the Twenty-Fifth International Joint Conference on Artificial Intelligence, IJCAI 2016, New York, NY, USA, 9-15 July 2016, S. Kambhampati (Ed.), p. 1711â1717. External Links: Link Cited by: §2.1. [52] X. Liang, L. Song, S. Du, W. Zhu, T. L. H. Faith, J. J. Sim, H. Jin, Z. Wu, Y. Liu, X. Zhang, J. Yang, and P. Duan (2026) Pisces: cryptography-based private retrieval-augmented generation with dual-path retrieval. In International Conference on Learning Representations, Cited by: §2.3, Table 1. [53] H. Liu, R. Wang, S. Shan, and X. Chen (2019) Deep supervised hashing for fast image retrieval. Int. J. Comput. Vis. 127 (9), p. 1217â1234. External Links: Link, Document Cited by: §2.1. [54] Y. Liu, Y. Zhang, J. Xie, H. Li, J. X. Yu, and J. Cui (2025) Privacy-preserving approximate nearest neighbor search on high-dimensional data. In 41st IEEE International Conference on Data Engineering, ICDE 2025, p. 3017â3029. External Links: Link, Document Cited by: §2.3, Table 1. [55] Llama Team (2024) The llama 3 herd of models. CoRR abs/2407.21783. External Links: Document, Link Cited by: §B.3, §7.1. [56] X. Luo, H. Wang, D. Wu, C. Chen, M. Deng, J. Huang, and X. Hua (2023) A survey on deep hashing methods. ACM Transactions on Knowledge Discovery from Data 17 (1), p. 1â50. Cited by: §2.1. [57] Q. Lv, W. Josephson, Z. Wang, M. Charikar, and K. Li (2007) Multi-probe LSH: efficient indexing for high-dimensional similarity search. In Proceedings of the 33rd International Conference on Very Large Data Bases, p. 950â961. External Links: Link Cited by: §2.1. [58] A. L. Maas, R. E. Daly, P. T. Pham, D. Huang, A. Y. Ng, and C. Potts (2011) Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, p. 142â150. External Links: Link Cited by: §B.3, Use of human-generated data., §7.1. [59] Y. Ming, M. Wang, J. Yang, J. Xu, Z. Wu, C. Wang, and X. Jia (2026) P2P^2RAG: efficient privacy-preserving RAG service supporting arbitrary top-k retrieval. CoRR abs/2603.14778. External Links: Link, Document, 2603.14778 Cited by: §D.3, §D.4, Appendix D, §1, §2.3, Table 1, §7.3. [60] P. Mohassel and Y. Zhang (2017) SecureML: a system for scalable privacy-preserving machine learning. In 2017 IEEE Symposium on Security and Privacy, p. 19â38. External Links: Document, Link Cited by: §1. [61] J. Morris, V. Kuleshov, V. Shmatikov, and A. Rush (2023) Text embeddings reveal (almost) as much as text. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, H. Bouamor, J. Pino, and K. Bali (Eds.), Singapore, p. 12448â12460. External Links: Document, Link Cited by: Ethical Considerations, §1, §2.2. [62] N. L. B. Nguyen, W. Ma, V. Vo, A. Abuadbba, M. Fang, J. Zhang, and Y. Xiang (2026) Five queries are enough: query-efficient and surrogate-free membership inference attacks on RAG via entailment. In 35th USENIX Security Symposium (USENIX Security 26), External Links: Link Cited by: §1. [63] T. Nguyen, M. Rosenberg, X. Song, J. Gao, S. Tiwary, R. Majumder, and L. Deng (2016) MS MARCO: a human generated machine reading comprehension dataset. In Proceedings of the Workshop on Cognitive Computation: Integrating Neural and Symbolic Approaches at NIPS 2016, CEUR Workshop Proceedings, Vol. 1773. External Links: Link Cited by: §7.1. [64] M. OrrĂč, E. Orsini, and P. Scholl (2016) Actively secure 1-out-of-n OT extension with application to private set intersection. Note: Cryptology ePrint Archive, Paper 2016/933 External Links: Link Cited by: §D.2, item 7, Theorem 5. [65] Z. Ou, Q. Su, J. Yu, R. Zhao, Y. Zheng, and B. Liu (2021) Refining BERT embeddings for document hashing via mutual information maximization. In Findings of the Association for Computational Linguistics: EMNLP 2021, Virtual Event / Punta Cana, Dominican Republic, 16-20 November, 2021, M. Moens, X. Huang, L. Specia, and S. W. Yih (Eds.), Findings of ACL, p. 2360â2369. External Links: Link, Document Cited by: §2.1. [66] N. Pham and T. Liu (2022) Falconn++: a locality-sensitive filtering approach for approximate nearest neighbor search. In Advances in Neural Information Processing Systems 35, External Links: Document, Link Cited by: §2.1. [67] O. Ram, Y. Levine, I. Dalmedigos, D. Muhlgay, A. Shashua, K. Leyton-Brown, and Y. Shoham (2023) In-context retrieval-augmented language models. Transactions of the Association for Computational Linguistics 11, p. 1316â1331. External Links: Document, Link Cited by: §1, §2.1. [68] M. A. Rauf, M. M. Y. Khalil, W. Wang, Q. Wang, M. A. N. U. Ghani, and J. Hassan (2024) BCE4ZSR: bi-encoder empowered by teacher cross-encoder for zero-shot cold-start news recommendation. Inf. Process. Manag. 61 (2), p. 103686. External Links: Link, Document Cited by: §2.1. [69] N. Reimers and I. Gurevych (2019) Sentence-BERT: sentence embeddings using Siamese BERT-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), K. Inui, J. Jiang, V. Ng, and X. Wan (Eds.), Hong Kong, China, p. 3982â3992. External Links: Document, Link Cited by: §2.1. [70] S. E. Robertson, S. Walker, S. Jones, M. Hancock-Beaulieu, and M. Gatford (1994) Okapi at TREC-3. In Proceedings of The Third Text REtrieval Conference, TREC 1994, Gaithersburg, Maryland, USA, November 2-4, 1994, D. K. Harman (Ed.), NIST Special Publication, p. 109â126. External Links: Link Cited by: §B.1. [71] S. Servan-Schreiber, S. Langowski, and S. Devadas (2022) Private approximate nearest neighbor search with sublinear communication. In 43rd IEEE Symposium on Security and Privacy, SP 2022, p. 911â929. External Links: Link, Document Cited by: §2.3. [72] Z. Shang, S. Oya, A. Peter, and F. Kerschbaum (2021) Obfuscated access and search patterns in searchable encryption. In 28th Annual Network and Distributed System Security Symposium, NDSS 2021, External Links: Link Cited by: §2.3, Table 1. [73] C. Song and A. Raghunathan (2020) Information leakage in embedding models. In CCS â20: 2020 ACM SIGSAC Conference on Computer and Communications Security, Virtual Event, USA, November 9-13, 2020, J. Ligatti, X. Ou, J. Katz, and G. Vigna (Eds.), p. 377â390. External Links: Link, Document Cited by: §B.3, Dual-use of attack reproduction., Ethical Considerations, §1, §2.2, §3.3, §7.1. [74] T. Tang, J. Flemings, Y. Wang, and M. Annavaram (2026) Differentially private retrieval-augmented generation. CoRR abs/2602.14374. External Links: Link Cited by: §1. [75] N. Thakur, N. Reimers, A. RĂŒcklĂ©, A. Srivastava, and I. Gurevych (2021) BEIR: A heterogeneous benchmark for zero-shot evaluation of information retrieval models. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks 1, NeurIPS Datasets and Benchmarks 2021, December 2021, virtual, J. Vanschoren and S. Yeung (Eds.), External Links: Link Cited by: Use of human-generated data., §1, §7.1, §7.2.3. [76] J. Thorne, A. Vlachos, C. Christodoulopoulos, and A. Mittal (2018) FEVER: a large-scale dataset for fact extraction and VERification. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, p. 809â819. External Links: Document, Link Cited by: §B.1, §7.1. [77] S. Ulukus, S. Avestimehr, M. Gastpar, S. A. Jafar, R. Tandon, and C. Tian (2022) Private retrieval, computing, and learning: recent progress and future challenges. IEEE Journal on Selected Areas in Communications 40 (3), p. 729â748. Cited by: §2.3. [78] L. Wang, N. Yang, X. Huang, B. Jiao, L. Yang, D. Jiang, R. Majumder, and F. Wei (2022) Text embeddings by weakly-supervised contrastive pre-training. CoRR abs/2212.03533. External Links: Link, Document, 2212.03533 Cited by: §D.4, §2.1, §4.1, §7.1. [79] L. Wang, Y. Pan, C. Liu, H. Lai, J. Yin, and Y. Liu (2023) Deep hashing with minimal-distance-separated hash centers. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2023, Vancouver, BC, Canada, June 17-24, 2023, p. 23455â23464. External Links: Link, Document Cited by: §2.1. [80] W. Wang, F. Wei, L. Dong, H. Bao, N. Yang, and M. Zhou (2020) MiniLM: deep self-attention distillation for task-agnostic compression of pre-trained transformers. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, and H. Lin (Eds.), External Links: Link Cited by: §B.1, §B.3, §C.1. [81] Y. Wang, S. Lu, and L. Zhang (2020) Searching privately by imperceptible lying: A novel private hashing method with differential privacy. In M â20: The 28th ACM International Conference on Multimedia, Virtual Event / Seattle, WA, USA, October 12-16, 2020, p. 2700â2709. External Links: Document, Link Cited by: §2.2. [82] B. Weggenmann and F. Kerschbaum (2021) Differential privacy for directional data. In CCS â21: 2021 ACM SIGSAC Conference on Computer and Communications Security, Virtual Event, Republic of Korea, November 15 - 19, 2021, Y. Kim, J. Kim, G. Vigna, and E. Shi (Eds.), p. 1205â1222. External Links: Link, Document Cited by: §2.2, §7.1. [83] X. Xie, C. Yu, Y. Huang, Y. Cao, and C. Qiu (2025) A decade of metric differential privacy: advancements and applications. ArXiv preprint abs/2502.08970. External Links: Link Cited by: §2.2, §2.2. [84] Y. Xu, W. Cui, and M. Peinado (2015) Controlled-channel attacks: deterministic side channels for untrusted operating systems. In 2015 IEEE Symposium on Security and Privacy, p. 640â656. External Links: Document, Link Cited by: §1. [85] T. Yaluhin (2026) SoK: confidential transformer inference and retrieval-augmented generation. Note: Cryptology ePrint Archive, Paper 2026/1544 External Links: Link Cited by: §2.3. [86] I. Yamada, A. Asai, and H. Hajishirzi (2021) Efficient passage retrieval with hashing for open-domain question answering. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), p. 979â986. External Links: Document, Link Cited by: §7.2.1, Table 4. [87] A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, et al. (2025) Qwen3 technical report. CoRR abs/2505.09388. External Links: Link Cited by: §7.2.2. [88] M. Yao, Z. Zhang, N. Luo, S. Li, Y. Cai, X. Chen, Y. Guo, and D. Li (2026) Connect the dots: knowledge graph-guided crawler attack on retrieval-augmented generation systems. In 35th USENIX Security Symposium (USENIX Security 26), External Links: Link Cited by: §1. [89] L. Yuan, T. Wang, X. Zhang, F. E. H. Tay, Z. Jie, W. Liu, and J. Feng (2020) Central similarity quantization for efficient image and video retrieval. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2020, Seattle, WA, USA, June 13-19, 2020, p. 3080â3089. External Links: Document, Link Cited by: §2.1. [90] C. Zhang, J. X. Morris, and V. Shmatikov (2025) Universal zero-shot embedding inversion. ArXiv preprint abs/2504.00147. External Links: Link Cited by: §B.3, Dual-use of attack reproduction., Ethical Considerations, §1, §2.2, §3.3, §7.1. [91] S. Zhang, E. Dinan, J. Urbanek, A. Szlam, D. Kiela, and J. Weston (2018) Personalizing dialogue agents: I have a dog, do you have pets too?. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, ACL 2018, Melbourne, Australia, July 15-20, 2018, Volume 1: Long Papers, I. Gurevych and Y. Miyao (Eds.), p. 2204â2213. External Links: Link, Document Cited by: §B.3, Use of human-generated data., §7.1. [92] X. Zhang, J. J. Zhao, and Y. LeCun (2015) Character-level convolutional networks for text classification. In Advances in Neural Information Processing Systems 28, p. 649â657. External Links: Link Cited by: §B.3, Use of human-generated data., §7.1. [93] Y. Zhang, S. Sun, M. Galley, Y. Chen, C. Brockett, X. Gao, J. Gao, J. Liu, and B. Dolan (2020) DIALOGPT : large-scale generative pre-training for conversational response generation. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: System Demonstrations, ACL 2020, Online, July 5-10, 2020, A. Celikyilmaz and T. Wen (Eds.), p. 270â278. External Links: Link, Document Cited by: §B.3, §7.1. [94] M. Zhou, E. Shi, and G. Fanti (2025) PACMANN: efficient private approximate nearest neighbor search. In The Thirteenth International Conference on Learning Representations, ICLR 2025, External Links: Link Cited by: §2.3, Table 1. [95] H. Zhu, M. Long, J. Wang, and Y. Cao (2016) Deep hashing network for efficient similarity retrieval. In Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence, February 12-17, 2016, Phoenix, Arizona, USA, D. Schuurmans and M. P. Wellman (Eds.), p. 2415â2421. External Links: Link Cited by: §2.1. [96] J. Zhu, L. Patel, M. Zaharia, and R. A. Popa (2025) Compass: encrypted semantic search with high accuracy. In 19th USENIX Symposium on Operating Systems Design and Implementation, OSDI 2025, Boston, MA, USA, July 7-9, 2025, L. Zhou and Y. Zhou (Eds.), p. 915â938. External Links: Link Cited by: §1, §2.3, Table 1. [97] G. Zyskind, T. South, and A. Pentland (2024) Donât forget private retrieval: distributed private similarity search for large language models. In Proceedings of the Fifth Workshop on Privacy in Natural Language Processing, Bangkok, Thailand, p. 7â19. External Links: Link Cited by: §2.3, Table 1. Ethical Considerations This work proposes a defense solution in a privacy-sensitive two-party scenario, which aims to reduce privacy exposure in dense retrieval against attacks documented in the literature [73, 61, 49, 35, 12, 90]. In particular, no new attack algorithms beyond the reproduction and adaptation of existing work are presented. Dual-use of attack reproduction. We re-implement published embedding-inversion attacks [90, 73, 49] to measure the exposure of the representations without protection and confirm the concerning leakage among them. The experiments reproduce existing attack capabilities on public benchmarks and pretrained encoders; they use no proprietary corpus or production system. Use of human-generated data. All datasets are publicly available research benchmarks released for academic use [75, 91, 46, 92, 58]. The study collects no new data and involves no interaction with human subjects. Security boundary. The formal query guarantee covers an honest-but-curious Owner observing the quantized randomized code, candidate set, and protocol metadata. For a conforming secret-key User, compact ciphertext-simulatable BFV restricts the scoring ciphertext to the explicit K-score oracle, while active-secure OT limits a malicious receiverâs per-query payload-key recovery. We note that the paper source code only presents a research artifact that meets the declared security guarantees and it might miss additional consideration that must be in place for real-world deployment. For example, commercial deployment shall additionally bind identities, protect endpoint keys, authenticate and encrypt both transport channels, and address side channels beyond the measured message lengths and timing. Responsible disclosure. The evaluation reproduces public attacks and addresses the general bi-encoder retrieval pipeline rather than a product-specific vulnerability, so coordinated vendor disclosure is not applicable. Appendix A Proof Details and Auxiliary Calibration A.1 Analytic Gaussian Baseline The additive Gaussian baseline acts on the bounded, unnormalized hash-head vector hâ[â1,1]Lhâ[-1,1]^L rather than on the direction protected by Theorem 1. For GÏâ(h)=h+âĄ(0,Ï2âI)G_Ï(h)=h+N(0,Ï^2I), two inputs at Euclidean distance D>0D>0 have the exact privacy profile [4] ÎŽGâ(Δ,D,Ï)=ΊâĄ(D2âÏâΔâÏD)âeΔâΊâ(âD2âÏâΔâÏD), _G( ,D,Ï)= \! ( D2Ï- ÏD )-e \! (- D2Ï- ÏD ), (13) with ÎŽG=0 _G=0 at D=0D=0. The profile increases with D, so calibration at Euclidean radius Ïh _h solves ÎŽGâ(Δ,Ïh,Ï)â€ÎŽ0 _G( , _h,Ï)†_0 at the boundary. Table 11 gives the numerically solved scales used by our implementation for Ïh=2 _h=2 and ÎŽ0=10â6 _0=10^-6. Each regression test substitutes the result into Equation 13 and checks the target profile, and the retrieval and attack sweeps use these calibrated scales. Table 11: Analytic Gaussian scales for bounded pre-sign representations at Euclidean radius Ïh=2 _h=2 and ÎŽ0=10â6 _0=10^-6. Δ 8 16 32 64 Ï 1.3059 0.7372 0.4324 0.2638 Gaussian and vMF results protect different input spaces: GÏG_Ï uses Euclidean adjacency on h, whereas MÎșM_Îș uses angular or chord adjacency on u=h/âhâ2u=h/\|h\|_2. Their numerical privacy budgets must therefore be reported with the protected space and radius, not as a mechanism ranking under an unspecified common adjacency. A.2 Approximate-vMF Calibration For mean directions separated by angle Ξ, rotate coordinates so that u=e1u=e_1 and uâČ=cosâĄÎžâe1+sinâĄÎžâe2u = Ξ\,e_1+ Ξ\,e_2. Under YâŒvMFâĄ(u,Îș)Y (u,Îș), the privacy-loss random variable is LâĄ(Y)=ÎșâĄ((1âcosâĄÎž)âY1âsinâĄÎžâY2).L(Y)=Îș ((1- Ξ)Y_1- Ξ Y_2 ). (14) The corresponding pre-binarization hockey-stick divergence is ÎŽvMFâ(Δ,Ξ,Îș) _vMF( ,Ξ,Îș) =Pru[L(Y)>Δ] = _u [L(Y)> ] (15) âeΔPru[L(Y)<âΔ]. -e \, _u [L(Y)<- ]. A radius-Ï approximate guarantee requires the supremum of Equation 15 over every Ξâ[0,Ï]Ξâ[0,Ï]. Our quadrature evaluates the boundary, while certified approximate calibration additionally requires establishing the maximizing angle. The protocol uses the exact pure calibration of Theorem 1; the RDP-vMF sweep serves as the empirical mechanism comparison. A.3 Packed-Layout Invariants At degree 8192, BFV batching provides two rows of 4096 slots. Each row is divided into four 1024-slot segments, so a score group contains eight candidates. Query encryption repeats the d-coordinate vector in every segment and fills the remaining slots with zero; Owner encoding places one candidate in each corresponding segment. After componentwise plaintextâciphertext multiplication, rotations by 1,2,âŠ,5121,2,âŠ,512 and additions place each segmentâs dot product at its anchor. The multi layout returns that group ciphertext directly, yielding âK/8â K/8 ciphertexts; it specifies correctness only at the anchors and does not zero the remaining slots. The compact layout multiplies by a plaintext mask that retains only the eight anchors, rotates group g to residue gmod1024g 1024, and adds 1024 groups per output ciphertext. Different groups then occupy different residues at every segment anchor, yielding âK/8192â K/8192 ciphertexts. The final partial group and partial compact output contain only zero-padded dummy candidates. These layout invariants establish where each modular score is decoded; Equation 9 establishes that its centered residue is the intended signed integer. Circuit correctness additionally assumes sufficient BFV noise budget, which the implementation checks empirically through successful decryption and oracle equality over both concrete layouts. Circuit privacy and malicious-input validity are separate properties governed by the scope in §6.3. A.4 Cryptographic Hybrid Details For Theorem 2, begin with the real Owner view for a conforming User. Receiver privacy of active OOS OT replaces the receiver-choice-dependent messages with a simulated transcript for the same sender inputs. BFV IND-CPA replaces the valid encryption of the clean int8 query by an encryption of zero; applying the public scoring circuit and serializing its output cannot increase the Ownerâs distinguishing advantage. The remaining query-dependent plaintext is MÎșâ(u)M_Îș(u) and its Hamming-search and quota post-processing. Directional privacy gives Equation 8, while the auxiliary fields in Equation 4 are held fixed. Theorem 2 therefore governs the Owner view; §6.3 separately specifies the secret-key User view. For Theorem 5, active receiver security restricts each row to one OT option key. In the random-oracle hybrid, the hash of every unchosen option key is independent of the receiverâs view, making its masked content key uniform. Replacing the unselected derived payload keys by random keys then reduces disclosure of any remaining plaintext to the confidentiality of ChaCha20âPoly1305; ciphertext modification is rejected by its authentication check. Across k rows, the receiver obtains at most k content keys, with duplicate selections yielding fewer distinct payloads. Appendix B Experimental Details B.1 Experimental Setup Details We provide the training and evaluation details needed to reproduce the two-forward retrieval results in Table 3. Evaluation Corpora. The five BEIR corpora originate from SciDocs [18], Natural Questions [44], DBpedia-Entity [29], FEVER [76], and Climate-FEVER [21]. Climate-FEVER adapts FEVERâs claimâevidence methodology from artificially constructed general-domain claims to real-world climate claims and includes disputed evidence. Their dataset corpus are largely overlapping, but they have distinct query distributions. Metrics. NDCG@k is the standard normalized discounted cumulative gain at rank k, which rewards relevant documents appearing higher in the ranked list and normalizes against the ideal ordering. Recall@k is the fraction of gold-relevant documents appearing in the top-k results. In particular, the former is sensitive to ranking among the top-k, while the latter is only sensitive to whether the relevant documents appear, regardless of their specific ranking. Models and Hard Negatives. E5-base-v2 uses mean pooling and a 256-bit hash head, whereas BGE-base-en-v1.5 uses its CLS representation and a 512-bit head. We retrieve 512 BM25 [70] candidates per MS MARCO training query, rerank them with the âms-marco-MiniLM-L6-v2â11 1 https://huggingface.co/cross-encoder/ms-marco-MiniLM-L6-v2 cross-encoder [80], retain the top 32, form a pool from the five highest-ranked non-relevant passages, and sample three negatives per query. A mined negative is removed from the binary ranking loss when its cross-encoder score is within 0.5 of the labeled positive. We also tried stronger cross-encoders, larger mining pools, or more hard-negatives per query during our experiments, but none of them gives noticeably better results, while more hard-negatives even harm the evaluated quality. Training Objective. A batch contains queries qiq_i, labeled passages pip_i, and mined-negative sets iN_i for iâ1,âŠ,Biâ\1,âŠ,B\. Let xa_x and x0a_x^0 denote the normalized pooled representations of text x from the adapted and frozen encoders, respectively. The hash head produces logits x=Wâpoolâ(ELoRAâ(x))z_x=W\,pool(E_LoRA(x)) and training code x=tanhâĄ(ÎČâx)h_x= ( _x); deployment uses x=signâĄ(x)b_x= (z_x), where signâĄ(t)=+1 (t)=+1 for tâ„0tâ„ 0 and â1-1 otherwise. We write saâ(q,d) s^a(q,d) =qâ€âd, =a_q a_d, (16) s0â(q,d) s^0(q,d) =(q0)â€âd0, =(a_q^0) a_d^0, shâ(q,d) s^h(q,d) =qâ€âd/L. =h_q h_d/L. and let câĄ(q,d)c(q,d) be the cross-encoder relevance logit. For a score function s, candidate set D, and temperature Ï, define Pi,Ïs,â(d)=expâĄ(sâĄ(qi,d)/Ï)âdâČâexpâĄ(sâĄ(qi,dâČ)/Ï).P_i,Ï^s,D(d)= (s(q_i,d)/Ï) _d (s(q_i,d )/Ï). (17) Let B=pjj=1BâȘâjD_B=\p_j\_j=1^BâȘ _jN_j be all passages in the batch. The implemented groups in Equation 3 expand as âretrieval _retrieval =âInfoNCE+λbinââbin, =L_InfoNCE+ _binL_bin, (18) âtransfer _transfer =λrankKDâârankKD, = _rankKDL_rankKD, âregularization _regularization =λfloatKDââfloatKD+λGORââGOR. = _floatKDL_floatKD+ _GORL_GOR. The continuous retrieval term is âInfoNCE=â1Bâi=1BlogPi,Ïsa,B(pi).L_InfoNCE=- 1B _i=1^B P_i,Ï^s^a,D_B(p_i). (19) For false-negative margin m, we retain âłi=nâi:câĄ(qi,n)<câĄ(qi,pi)âmM_i=\n _i:c(q_i,n)<c(q_i,p_i)-m\ and define â=i:âłiâ â I=\i:M_iâ \. The ranking term applied to the deployed binary codes is âi _i =Ïbâlogâânââłie(shâ(qi,n)âshâ(qi,pi))/Ïb, = _b _n _ie^(s^h(q_i,n)-s^h(q_i,p_i))/ _b, (20) âbin _bin =1|â|ââiââsoftplusâĄ(âi/Ïb). = 1|I| _i softplus( _i/ _b). Here softplusâĄ(u)=logâĄ(1+eu)softplus(u)= (1+e^u). E5 uses this direct Hamming-space term; BGE obtains stronger candidate recall from RankKD alone and sets λbin=0 _bin=0. RankKD (ranking knowledge distillation) transfers the adapted continuous ranking over all in-batch passages: ârankKD=1Bââi=1BKLâĄ(Pi,Ïsa,Bâ„Pi,Ïsh,B).L_rankKD= 1B _i=1^BKL\! (P_i,Ï^s^a,D_B\, \|\,P_i,Ï^s^h,D_B ). (21) RankKD transfers batch-wide ordering without using labels from an evaluation corpus; the cross-encoder contributes difficult local examples through hard-negative mining. The geometry terms stabilize the representation that supplies these rankings. For the batch collections Q=qiiX_Q=\q_i\_i, P=piiX_P=\p_i\_i, and N=âšiX_N= _iN_i, FloatKD (float-embedding distillation) aligns the adapted and frozen encoders: âfloatKD=13ââGâQ,P,N1|G|ââxâG[1âcosâĄ(x,x0)].L_floatKD= 13 _Gâ\Q,P,N\ 1|X_G| _x _G [1- \! (a_x,a_x^0 ) ]. (22) For any batch collection X, GOR (global orthogonal regularization) uses the spread-out penalty RGORâ()=1||â(||â1)ââx,yâxâ ycos2âĄ(x,y),R_GOR(X)= 1|X|(|X|-1) _ subarraycx,y \\ xâ y subarray ^2(h_x,h_y), (23) We use âGOR=[RGORâ(Q)+RGORâ(P)+RGORâ(N)]/3L_GOR=[R_GOR(X_Q)+R_GOR(X_P)+R_GOR(X_N)]/3. FloatKD retains the pretrained geometry during LoRA adaptation, whereas GOR discourages different batch examples from collapsing to similar directions before binarization. Discrete Optimization and Hyperparameters. The reported models use the differentiable code =tanhâĄ(ÎČâ)h= ( ) throughout training; ÎČ rises linearly from 1 to 2.5 during the first quarter and then remains fixed, and deployment applies signâĄ() (z). We apply LoRA to every encoder linear layer with rank 16, α=16α=16, and dropout 0.05. Each epoch contains 300 steps at batch size 128, and both models train for 16 epochs. The encoder learning rate is 2Ă10â62Ă 10^-6 for E5 and 5Ă10â65Ă 10^-6 for BGE, while the hash-head rate is 2Ă10â42Ă 10^-4 for both. InfoNCE has unit weight; λbin=0.8 _bin=0.8 for E5 and 0 for BGE. We set λrankKD=λfloatKD=λGOR=1 _rankKD= _floatKD= _GOR=1, with Ï=0.05Ï=0.05, Ïb=0.1 _b=0.1, and m=0.5m=0.5. Evaluation uses an exponential moving average with decay 0.999. Two-Forward Evaluation. Stage 1 runs the trained hash encoder to retrieve exact Hamming top-K candidates. Stage 2 independently runs the original pretrained encoder and reranks only those candidates by float similarity; it never uses the hash modelâs continuous representation. Both forwards share tokenization and host-to-device transfer. E5 uses the standard âquery:â and âpassage:â prefixes, BGE uses its standard query instruction and no document prefix, and maximum query and document lengths are 48 and 512 tokens. We evaluate in BF16 with the LoRA weights merged into the Stage 1 encoder. DP Retrieval Sweeps. We evaluate E5 and BGE on SciDocs, NQ, and FEVER at Kâ200,500,1000,2000,3000Kâ\200,500,1000,2000,3000\. Gaussian, RDP-vMF, and pure-vMF use Δâ8,16,32,64 â\8,16,32,64\; Gaussian and RDP-vMF set ÎŽ=10â6ÎŽ=10^-6, while pure-vMF uses the exact calibration in Theorem 1. Each randomized query code is searched by exact Hamming distance, and the unchanged pretrained encoder reranks the resulting candidates. Hash Baselines. Table 4 uses the same cached pretrained E5 query and corpus embeddings and the same exact Hamming and Stage 2 routines as Table 3. Direct sign thresholds all 768 embedding coordinates at zero. Random-hyperplane LSH [7] uses a fixed 256-column Gaussian projection; Super-Bit LSH [39] orthogonalizes all 256 columns as one maximum-depth Super-Bit. PCA-sign, ITQ [28], and IsoHash [43] are fitted on normalized embeddings of the first 20,000 MS MARCO corpus passages, with 50 ITQ and 100 IsoHash rotation updates, then applied without target-corpus fitting. Every Stage 2 score uses the unchanged full-precision pretrained E5 embedding, so the reported differences come only from candidate membership in Stage 1. B.2 Qualitative Candidate-Set Cases Table 12 extends Table 2 with three NQ queries under the same E5 pure-vMF operating point. The nearest Hamming items preserve broad cuesâconstitutional amendments, elevation and battlefields, or quarters of a yearâbut do not supply the requested count, location, or calendar rule. The answer-bearing passages occur much deeper in the coarse ranking and move into the Userâs top ten only after clean-query Stage 2 scoring. Table 12: Three additional NQ candidate-set cases under E5 pure-vMF (Δ=64 =64, K=3000K=3000, k=10k=10, 256 bits). Stage 2 entries show coarse Hamming rank â clean-float rank. Case View Rank / dHd_H Target or passage excerpt A Target â How many amendments to the Constitution have there been? DP-Ham. 1 / 60 First Amendment to the United States Constitution: âThe civil rights of none shall be abridged âŠâ DP-Ham. 2 / 60 Limited government: âThe Ninth and Tenth Amendments âŠâ DP-Ham. 3 / 60 Article Three of the United States Constitution: âHamilton continues âŠâ Stage 2 1742â 1 / 82 List of amendments to the United States Constitution: âThirty-three amendments ⊠have been proposed ⊠Twenty-seven ⊠are part of the Constitution.â B Target â Where is the worldâs highest battlefield located? DP-Ham. 1 / 68 Operation Market Garden: âThe country was wooded and rather marshy ⊠two important hills ⊠represented some of the highest ground in the Netherlands.â DP-Ham. 2 / 70 List of elevation extremes by country: âThe Dead Sea is the lowest point on Earth.â DP-Ham. 3 / 70 Geography of China: âTallest mountain peaks.â Stage 2 2317â 2 / 87 Siachen Glacier: âThe glacierâs region is the highest battleground on Earth ⊠Pakistan and India ⊠maintain a permanent military presence.â C Target â Explain what happens to the extra quarter of a day each calendar year. DP-Ham. 1 / 67 Calendar year: âThe calendar year can be divided into four quarters âŠâ DP-Ham. 2 / 69 Fiscal year: âThe Financial year is split into the following four quarters.â DP-Ham. 3 / 71 Accounting period: âThe end of the fiscal year would move one day earlier âŠâ Stage 2 555â 8 / 88 Leap year: âAdding one extra day in the calendar every four years compensates for ⊠almost 6 hours.â Together with Table 2, these cases show the intended resolution split: coarse-code proximity can reveal a subject or isolated lexical cues, while exact answer selection depends on the clean representation evaluated inside the protected scoring stage. B.3 Attack Implementation Details We specify the attackerâs observations, optimization procedure, and output for each evaluated attack. Search-Based Inversion. We evaluate the embedding-guided adversarial-decoding and iterative-refinement stages of ZSInvert [90]. Given a released target representation, the attacker initializes Llama-3.1-8B-Instruct [55] with the prompt âWrite a factual passage.â At each decoding step, the LLM proposes its ten most likely next tokens for every active partial passage; the target encoder maps each expansion into the released representation space, similarity to the target ranks the expansions, and the best 50 remain in the beam. The highest-scoring completed passage becomes the seed for the next round, whose prompt asks for a factual passage similar to that seed. We run six search rounds with at most 80 token steps per round. Float targets use cosine similarity, while hash targets use normalized hash dot product, an affine transformation of Hamming distance. A separate MiniLM verifier [80] measures semantic similarity between the final reconstruction and the private target text; we report the mean over 100 sampled targets. Generation-Based Inversion. Following GEIA [49], the attacker collects auxiliary PersonaChat [91] textârepresentation pairs and trains an embedding-conditioned DialoGPT-medium [93] decoder. A learned linear layer maps each released representation to the decoder hidden dimension and prepends it as a pseudo-token before the ground-truth token embeddings; teacher-forced cross-entropy then trains both the projection and causal LM to predict the original passage. We train a separate decoder for each released representation for 10 epochs at a learning rate of Ă10â51\!Ă\!10^-5 and a batch size of 16. At test time, the held-out representation alone conditions width-5 beam decoding for at most 50 new tokens, producing one reconstruction per target; Table 9 reports the test-split mean. Property Inference. Following Song and Raghunathan [73], the attacker receives an auxiliary collection of Stage 1 releases with known attributes, fits supervised probes on those representationâattribute pairs, and predicts the attribute of independently held-out victim releases. We test four-way topic classification on AG News [92], binary sentiment on IMDB [58], and 50-way closed-set authorship attribution on 20 Newsgroups [46]. For authorship, the label is the email address in the From: header among the 50 most prolific authors; we remove the complete header block before encoding the message body. Every sample is encoded as the deployed Stage 1 query release using the current E5 hash checkpoint, the âquery:â prefix, a 48-token limit, and the mechanism under evaluation. Each of five seeds creates stratified 60/20/20 attacker-training, validation, and victim-test partitions. Logistic regression, a two-hidden-layer MLP, and LightGBM [42] are fitted on the attacker-training split; validation macro F1 selects the architecture, and Table 10 reports its victim-test macro F1 averaged across seeds. B.4 Qualitative Inversion Cases Table 13 reports the complete decoded strings for the case in Table 9 and three additional targets. Across the four cases, the float release supports reconstruction of specific entities, facts, and relations. The learned hash usually retains a broad topic or lexical association while dropping identifying details. Gaussian randomization removes even that stable association, producing outputs unrelated to the target. Table 13: Complete search-based inversion outputs for four MS MARCO targets. Case A is the example summarized in Table 9; Cases BâD are additional examples. Cosine is measured by the independent verifier. Case Release Complete target or reconstruction Cosine A Target Welcome to the U.S. High School Bowling Foundation. The U.S. High School Bowling Foundation (USHSBF) is an IRS 501 (c)(3) non-profit organization that actively promotes the growth of high school bowling throughout the country. â Float US Bowling Foundation. The nonprofit organization. USABF or HS, is an (non profit.)501, 501(C). US bowling ( foundation) or the bowling ( foundation) (U.s) .903 Learned hash US Bank is affiliated by National Bank Union(UFBG,NFUB or more informlly refererd UBFGU) through UBFBU-UnitedStatebannkinngunitiationthough there name oficialally stands out too - unitesstatebunkfinfinitation. However alot offpeople recognizeit with thershorthandletternamr ofunsttobbankor .464 Gaussian, Δ=8 =8 The country Australia encompasses expansive territories spanning over seven major regions with diverse geology, resulting form varied processes across historical timescale having several distinct natural environments within different territoories - Northern Territories comprising land that shares the Timoresse Sea and extends from southern coast to Indonesian borders as well northern territory known as Western Artesia, along the Great Victoria river system in addition the southeastern coastline forms extensive shoreline along â.060-.060 B Target What does FGA stand for? What does FGA mean? This page is about the various possible meanings of the acronym, abbreviation, shorthand or slang term: FGA. â Float FAA acronym definition abbreviation. What meaning? short name F.A. Association meaning? What stands: stands for. .697 Learned hash The Aviation Alphabet Standards for pilots. A commonly accepted and well-diffused standardization was put forward with these phrases - Uniform - Mike Victor Lindberqg (L), Si-gmah Si-bay, Fo-sure-Fo-sho Fos- ter (R). .204 Gaussian, Δ=8 =8 An Intergregaler Frost (also sometimes spelled Yuki-On) event periodically transpires across Arctic archipelagos located within northern Norway towards summations occurring after equinocial solar events. .031 C Target One pound of fat is 3,500 calories. If you simply eat 500 calories less per day, then in seven days that adds up to a 3,500 calorie deficit and youâd have lost one pound of fat. Fitness is science, not magic. (7 days x 500 calorie deficit = 3,500) â Float seven days calories deficit per pound fat approximately =500 calorie workouts three * day eating one-pound less * is 500 calorie one day * equals fat one day loss * ( 500* (1 pound * ( 7 days * ( .879 Learned hash The ideal calorie deficit for fat and muscular pounds weightloss is approximately three pounds or so within eight weeks at rate equivalent of nearly one-further half pound in weight each seven-days. .732 Gaussian, Δ=8 =8 Antarctica Ross Land Sea ice field exhibits groundbreaking discoveries showcasing glaucial layers with crucial data suggesting expansive glacier formations reaching up to fifty seven-and twenty-two hundred-thoussd-year intervals dating around eleven and ninety eight miiiillion-earth years into the distant prehistirical. â.004-.004 D Target Alkali metals react with nonmetals to form ionic compounds. In these types of reactions, the alkali metal gives up its outermost electron to a nonmetal that is greedy for electrons. Reactions like this that involve an element exchanging an electron with another is called an oxidation-reduction or redox reaction. â Float Reactive alkalide metals reaction nonmetal oxido make other. An Ionic forms bonds elements ox and compounds oxidic and metal nonreducible react with. Alternatively, reactive acid nonmetals make other compounds. .824 Learned hash Throughout chemistry ions form and transform, resulting in diverse mechanisms of conductivity modification as atoms exhibit changes of state along the way. .413 Gaussian, Δ=8 =8 The selenicerids (specific member from order of braniophorous gastreoids including species classified under Thylakocysticida) exhibit unique characteristics across various subtaxons found residing throughout multiple ecosystems such as cold sea floors adjacent volcanic regions and along with their habitat ranging near geothermic hot vent zones, abysses of ocean and river-mouth habitats located primarily close by island nations and .052 Cases A and B show how a low-bit release can preserve form-level cues such as an organizational acronym while losing the entity itself. Case C retains the broad calorie-deficit relation but changes the quantities and time scale, while Case D retains chemistry vocabulary but drops the defining electron-transfer and redox relation. In every case, the Gaussian reconstruction switches to a different subject, matching the near-zero verifier cosine. Appendix C Additional Retrieval Results Figure 8 shows how the candidate budget recovers ranking quality at the representative Δ=32 =32 operating point. Gaussian approaches the no-DP curve by K=1000K=1000 on all three datasets, while pure-vMF continues to benefit from larger candidate pools on NQ and FEVER. The horizontal float references expose both the remaining candidate loss and the point at which increasing K saturates. Figure 8: E5 two-forward retrieval versus candidate budget. Gaussian and formal pure-vMF use Δ=32 =32; the full-corpus float reference is independent of K. Table 14: End-to-end RAG with client-side cross-encoder reranking on 500 NQ queries. The opened top ten are reranked to the five passages supplied to Qwen. Retrieval (Δ,K)( ,K) Hit EM F1 Full-corpus float (â,N)(â,N) 89.2 53.2 65.36 No-DP hash (â,500)(â,500) 88.6 53.6 65.68 Gaussian (16,3000)(16,3000) 89.0 53.6 65.71 RDP-vMF (16,3000)(16,3000) 89.2 53.2 65.35 Pure-vMF (64,3000)(64,3000) 89.0 53.2 65.34 Table 15: Complete E5 two-forward NDCG@10 under query-side DP. Randomized response, Gaussian, and RDP-vMF use ÎŽ=10â6ÎŽ=10^-6; pure-vMF gives the formal pure metric-DP guarantee. Dataset Mechanism Δ K=200K=200 K=500K=500 K=1000K=1000 K=2000K=2000 K=3000K=3000 Float SciDocs No DP â .1884 .1881 .1877 .1872 .1870 .1870 Randomized response 8 .0102 .0203 .0308 .0474 .0596 .1870 Randomized response 16 .0111 .0235 .0380 .0536 .0700 .1870 Randomized response 32 .0250 .0458 .0632 .0870 .1057 .1870 Randomized response 64 .0566 .0766 .0992 .1262 .1407 .1870 Gaussian 8 .1558 .1685 .1784 .1829 .1844 .1870 Gaussian 16 .1857 .1868 .1873 .1880 .1876 .1870 Gaussian 32 .1853 .1883 .1875 .1874 .1872 .1870 Gaussian 64 .1885 .1871 .1875 .1872 .1873 .1870 RDP-vMF 8 .1630 .1776 .1820 .1834 .1854 .1870 RDP-vMF 16 .1833 .1850 .1872 .1869 .1866 .1870 RDP-vMF 32 .1860 .1871 .1877 .1874 .1872 .1870 RDP-vMF 64 .1874 .1877 .1880 .1874 .1870 .1870 Pure-vMF 8 .0486 .0750 .0944 .1199 .1363 .1870 Pure-vMF 16 .1210 .1447 .1599 .1732 .1804 .1870 Pure-vMF 32 .1757 .1851 .1848 .1863 .1866 .1870 Pure-vMF 64 .1846 .1854 .1857 .1869 .1868 .1870 NQ No DP â .5694 .5770 .5801 .5820 .5826 .5854 Randomized response 8 .0003 .0005 .0008 .0015 .0043 .5854 Randomized response 16 .0018 .0025 .0041 .0069 .0096 .5854 Randomized response 32 .0044 .0094 .0155 .0264 .0326 .5854 Randomized response 64 .0379 .0619 .0873 .1170 .1401 .5854 Gaussian 8 .4440 .4845 .5072 .5271 .5389 .5854 Gaussian 16 .5519 .5657 .5708 .5761 .5778 .5854 Gaussian 32 .5663 .5750 .5783 .5811 .5820 .5854 Gaussian 64 .5689 .5781 .5800 .5821 .5825 .5854 RDP-vMF 8 .4645 .5015 .5257 .5434 .5522 .5854 RDP-vMF 16 .5589 .5695 .5752 .5765 .5778 .5854 RDP-vMF 32 .5681 .5761 .5796 .5822 .5827 .5854 RDP-vMF 64 .5701 .5764 .5800 .5821 .5832 .5854 Pure-vMF 8 .0254 .0414 .0592 .0852 .1043 .5854 Pure-vMF 16 .2353 .2971 .3443 .3985 .4219 .5854 Pure-vMF 32 .5061 .5328 .5465 .5571 .5617 .5854 Pure-vMF 64 .5596 .5685 .5732 .5781 .5801 .5854 FEVER No DP â .8392 .8441 .8458 .8472 .8475 .8501 Randomized response 8 .0007 .0008 .0013 .0022 .0024 .8501 Randomized response 16 .0000 .0005 .0011 .0024 .0039 .8501 Randomized response 32 .0039 .0060 .0103 .0162 .0226 .8501 Randomized response 64 .0343 .0542 .0762 .1037 .1264 .8501 Gaussian 8 .6029 .6675 .7083 .7410 .7561 .8501 Gaussian 16 .8161 .8255 .8319 .8380 .8412 .8501 Gaussian 32 .8389 .8436 .8465 .8478 .8481 .8501 Gaussian 64 .8396 .8435 .8470 .8480 .8482 .8501 RDP-vMF 8 .6484 .7037 .7406 .7690 .7867 .8501 RDP-vMF 16 .8246 .8332 .8390 .8428 .8452 .8501 RDP-vMF 32 .8385 .8427 .8460 .8485 .8488 .8501 RDP-vMF 64 .8396 .8439 .8464 .8476 .8483 .8501 Pure-vMF 8 .0187 .0331 .0503 .0713 .0890 .8501 Pure-vMF 16 .2753 .3489 .4098 .4722 .5097 .8501 Pure-vMF 32 .7293 .7665 .7908 .8087 .8171 .8501 Pure-vMF 64 .8260 .8350 .8400 .8434 .8447 .8501 Table 16: Complete BGE two-forward NDCG@10 under query-side DP. Randomized response, Gaussian, and RDP-vMF use ÎŽ=10â6ÎŽ=10^-6; Pure-vMF gives the formal pure metric-DP guarantee. Dataset Mechanism Δ K=200K=200 K=500K=500 K=1000K=1000 K=2000K=2000 K=3000K=3000 Float SciDocs No DP â .2233 .2225 .2227 .2229 .2228 .2228 Randomized response 8 .0098 .0222 .0344 .0552 .0752 .2228 Randomized response 16 .0169 .0335 .0486 .0672 .0861 .2228 Randomized response 32 .0266 .0473 .0671 .0953 .1111 .2228 Randomized response 64 .0635 .0984 .1295 .1534 .1731 .2228 Gaussian 8 .2073 .2180 .2202 .2228 .2230 .2228 Gaussian 16 .2221 .2231 .2229 .2230 .2229 .2228 Gaussian 32 .2227 .2226 .2223 .2228 .2227 .2228 Gaussian 64 .2227 .2224 .2230 .2229 .2228 .2228 RDP-vMF 8 .2174 .2220 .2218 .2230 .2233 .2228 RDP-vMF 16 .2222 .2227 .2232 .2231 .2229 .2228 RDP-vMF 32 .2222 .2224 .2230 .2229 .2228 .2228 RDP-vMF 64 .2228 .2227 .2230 .2227 .2228 .2228 Pure-vMF 8 .0580 .0822 .1094 .1434 .1651 .2228 Pure-vMF 16 .1530 .1784 .1947 .2097 .2169 .2228 Pure-vMF 32 .2124 .2199 .2199 .2218 .2221 .2228 Pure-vMF 64 .2218 .2228 .2233 .2232 .2229 .2228 NQ No DP â .5360 .5391 .5392 .5401 .5402 .5414 Randomized response 8 .0000 .0003 .0010 .0035 .0039 .5414 Randomized response 16 .0005 .0021 .0032 .0073 .0086 .5414 Randomized response 32 .0038 .0071 .0118 .0230 .0304 .5414 Randomized response 64 .0258 .0417 .0574 .0789 .0932 .5414 Gaussian 8 .4765 .4988 .5107 .5217 .5247 .5414 Gaussian 16 .5253 .5322 .5364 .5376 .5385 .5414 Gaussian 32 .5341 .5369 .5379 .5396 .5400 .5414 Gaussian 64 .5348 .5375 .5387 .5392 .5396 .5414 RDP-vMF 8 .4911 .5093 .5174 .5251 .5278 .5414 RDP-vMF 16 .5305 .5366 .5385 .5393 .5390 .5414 RDP-vMF 32 .5342 .5380 .5387 .5398 .5400 .5414 RDP-vMF 64 .5338 .5371 .5387 .5395 .5401 .5414 Pure-vMF 8 .0238 .0345 .0503 .0690 .0837 .5414 Pure-vMF 16 .2158 .2679 .3127 .3496 .3758 .5414 Pure-vMF 32 .4746 .4969 .5088 .5206 .5252 .5414 Pure-vMF 64 .5231 .5317 .5343 .5372 .5389 .5414 FEVER No DP â .8448 .8470 .8480 .8483 .8488 .8495 Randomized response 8 .0001 .0006 .0011 .0017 .0021 .8495 Randomized response 16 .0003 .0010 .0017 .0042 .0055 .8495 Randomized response 32 .0025 .0055 .0088 .0160 .0198 .8495 Randomized response 64 .0258 .0430 .0619 .0888 .1035 .8495 Gaussian 8 .7609 .7884 .8046 .8188 .8236 .8495 Gaussian 16 .8398 .8442 .8458 .8472 .8479 .8495 Gaussian 32 .8450 .8463 .8476 .8483 .8488 .8495 Gaussian 64 .8463 .8474 .8478 .8482 .8487 .8495 RDP-vMF 8 .7942 .8129 .8237 .8336 .8370 .8495 RDP-vMF 16 .8422 .8451 .8469 .8483 .8486 .8495 RDP-vMF 32 .8453 .8473 .8479 .8483 .8485 .8495 RDP-vMF 64 .8459 .8477 .8479 .8482 .8485 .8495 Pure-vMF 8 .0184 .0307 .0437 .0647 .0806 .8495 Pure-vMF 16 .2781 .3540 .4133 .4766 .5186 .8495 Pure-vMF 32 .7579 .7875 .8027 .8177 .8248 .8495 Pure-vMF 64 .8359 .8433 .8450 .8466 .8471 .8495 Tables 15 and 16 report every mechanism, privacy budget, dataset, and candidate budget used in the retrieval evaluation. Both encoders exhibit the same operating pattern: approximate mechanisms saturate at smaller K, while formal pure-vMF requires a larger pool at tighter budgets and converges toward the float reference as Δ increases. C.1 Cross-Encoder Compatibility The pretrained E5 scorer produces the top ten Natural Questions passages, matching the protocolâs k=10k=10 payload allowance. The User opens those passages through OT, locally reranks them with the MS MARCO MiniLM-L-6-v2 cross-encoder [80], and supplies the top five to Qwen3-32B. The cross-encoder consumes the clean query and authorized plaintext payloads entirely on the User side. Table 14 shows that client-side reranking raises answer-bearing context coverage by 0.6â1.4 points and improves EM by at least 3.0 points. Every protected variant remains within 0.4 EM and 0.35 F1 of the cross-encoder float reference, so the learned filter composes with a standard retrieveârerankâgenerate stack while retaining the protocolâs payload-access bound. Appendix D Protocol Implementation and End-to-End Latency This appendix presents the complete message sequence (§D.1), protocol implementation (§D.2), latency methodology (§D.3), and matched comparison with RemoteRAG [14], PANTHER [50], and P2RAG [59] (§D.4) [14, 50, 59]. D.1 Complete Message Sequence Figure 9 expands the compact flow in Figure 2 into the complete authenticated round, including session setup, round binding, quota reservation, OT extension, payload delivery, and commit. Figure 9: Two-party message sequence for one authenticated query round. The coarse frame starts Owner-side Hamming search while the User runs the pretrained forward and BFV encryption. Payload streaming begins when CKC_K is ready, the scoring query is sent when câtqct_q is ready, and either message may arrive first; active-secure OT later hides the selected positions and releases only their content keys. D.2 Protocol Implementation BFV scoring. Following the Homomorphic Encryption Standardâs 128-bit classical-security parameters [1], the Microsoft SEAL implementation uses polynomial-modulus degree 8192, a 25-bit batching plaintext modulus, and coefficient-modulus chains totaling 109 bits for the multi layout and 180 bits for the compact layout, within the recommended 218-bit ceiling. The exact signed-int8 contract clamps both operands to [â127,127][-127,127], giving |âšÂŻ,ÂŻâ©|â€1272âd| q, z |†127^2d and exact agreement with an int32 oracle for d=768d=768. The multi layout uses coefficient-modulus bits (40,40,29)(40,40,29) and 1024-slot segments, placing eight candidates in each output ciphertext with ten rotate-and-add steps. The compact layout uses (50,40,40,50)(50,40,40,50), masks each segment anchor, and rotates anchors into dense residues, reducing score traffic at the cost of a second multiplicative level. Layout-specific Galois keys contain only the required rotation steps. The protected compact path follows Hwang et al.âs PMultE and Rand construction [36]: it samples each plaintext lift from the appropriate modulo-t discrete-Gaussian coset, adds the prescribed rounded continuous-Gaussian multiplication error, and adds one public-key randomizer before the public rotation, mask, and addition subcircuit. The discrete sampler uses a high-precision 192-bit cumulative distribution table (CDT) truncated at eight times its Gaussian parameter; tables are constructed once when the Owner daemon starts and reused across rounds. The User creates a fresh symmetric query ciphertext, while the Owner holds only public and rotation keys. Compact masking makes every non-score plaintext slot zero, and randomized evaluation makes the full ciphertext view simulatable as stated in Theorem 4. The multi and fresh-zero paths remain comparison variants. Long-lived HE roles. A User daemon retains the BFV context, public key, and secret key and handles symmetric query encryption and parallel score decryption; an Owner daemon retains the public context, public key, Galois keys, and randomized-evaluation samplers and handles candidate scoring. Both daemons load their key material once, bind each command to an exact round identifier, and terminate on malformed input or computation failure. The default harness assigns 16 OpenMP threads to Owner scoring and 8 to User decryption, with one SEAL evaluator, decryptor, or batch encoder per worker where required. Active-secure key transfer and payload protection. The OT backend uses libOTeâs OOS active-secure 1-out-of-N extension [64] with a 40-bit statistical check and a 16-bit option index, supporting project candidate budgets up to K=60000K=60000. Following the IKNP OT-extension organization [38], the parties establish a small public-key base-OT correlation once per long-lived connection and derive each queryâs k fresh extension rows with symmetric-key work. Each query advances the internal PRG state and performs a nonzero-challenge malicious check. The C++ sender derives and masks the full kĂKkĂ K option table before serialization, so raw option keys remain inside the Owner process. Each table entry XOR-masks a 128-bit content key with the first 128 bits of SHA-256 applied to a domain-separated OT key. Document plaintexts contain an encrypted true-length field, are padded in 4096-byte units, and are protected by one-shot ChaCha20âPoly1305 under an HKDFâSHA-256-derived key. Network path and state. The network design exchanges versioned frames carrying a session identifier, message type, round identifier, HE layout, K, and a length-capped payload. Session establishment binds the layout and K. A Coarse frame starts Hamming search while the User computes the pretrained representation; after CKC_K is fixed, the Owner sends Payloads on the ordinary channel while the User sends the separate Scoring-Query frame and the Owner computes Scores. The parties then execute OT, the Owner sends OT-Masked, and the User opens the selected buffered payloads before Done. TCP delayed-ACK batching is disabled for these latency-sensitive control frames. Header fields and the 64-MiB payload cap are validated before payload allocation or blocking reads, and either-side failure closes the session and poisons reusable cryptographic state. With one 4096-byte payload block per candidate, the payload frame supports Kâ€16256K†16256; this bound exceeds the candidate budgets evaluated in the paper. D.3 Latency Measurement Methodology We use two complementary measurement experiments. The corpus-level comparison runs all four protocols against the same E5-base-v2 query and document embeddings on SciDocs, Webis-TouchĂ©, and NQ-1M. A separate two-process harness exercises our complete Owner/User message path after query-embedding generation and checks every recovered payload byte-for-byte against the retrieval oracle. Following private-retrieval benchmarking practice, we separate reusable key/index preprocessing from steady-state online latency while including every per-query encryption, HE evaluation, OT extension, payload transfer, and serialized byte [50, 59]. Latency and traffic accounting. Let TpostT_post contain encrypted-score return, local decryption and selection, OT, and masked-key delivery. The pipelined critical path is Thash+TDP+maxâĄTHamming+Tpayload,maxâĄ(THamming,Tpre+Tenc)+Tscore+Tpost+TopenT_hash+T_DP+ \T_Hamming+T_payload, (T_Hamming,T_pre+T_enc)+T_score+T_post\+T_open, where transfer terms are charged at the evaluated bandwidth. Payload bytes therefore overlap scoring rather than appearing as a serial suffix. Figure 3 reports this path, while Figure 4 adds Qwen3-32B generation. Query-side Gaussian, RDP-vMF, and pure-vMF release leave the subsequent message flow unchanged; the DP rows use the largest measured release time, 0.92 ms for vMF. Measurement scope. Long-lived User and Owner BFV daemons keep secret and public evaluation material in their respective roles, while the active-secure libOTe daemons reuse base-OT state across rounds. The protocol-stage experiment uses N=25,657N=25,657 synthetic rows and checks the complete HE-score, OT-key, and AEAD-payload chain against an int32 and byte-for-byte oracle. The RAG experiment measures 20 full-corpus float queries, 30 exact Hamming queries over all 2.68M NQ codes, and five generation prompts with 559â1178 input tokens; Qwen3-32B occupies 61.5 GiB. Network latency is computed from exact serialized byte counts; Figure 3 uses 10 Gbps and Table 7 reports the 100-Mbps, 1-Gbps, and 10-Gbps projections. Hardware. Measurements were run on an AMD EPYC 9654 server with NVIDIA A100 GPUs under Linux 6.14. Encoder timing uses the default BF16, merged LoRA weights, 10 warm-up queries, and 50 measured queries. The BFV Owner uses 16 OpenMP threads, the User decryptor uses 8, and each cryptographic cell discards one full warm-up round before 50 measured rounds; the K=500K=500 breakdown uses 50 measured rounds. Table 17: Qwen3-32B generation length and the K=500K=500 protection overhead. Times are seconds per query. Tokens Generation Plaintext Protected Overhead 1 .298 .307 .497 61.9% 32 2.024 2.033 2.223 9.3% 128 7.296 7.305 7.495 2.6% 256 14.438 14.447 14.637 1.3% D.4 Matched Protocol Comparison Common benchmark contract. All corpora use the same normalized 768-dimensional E5-base-v2 [78] vectors and top-10 output: 1,000 SciDocs queries over 25,657 documents, 49 Webis-TouchĂ© queries over 382,545 documents, and all 3,452 NQ queries over NQ-1M, which retains every judged-relevant NQ document and fills the remaining positions from the corpusâs original order. Query encoding is excluded because it is identical across methods; online cryptographic setup, candidate search, secure scoring, selection, and serialized traffic are included. Long-lived keys and sessions exclude one-time setup. Figure 5 demonstrates the exact traffic at 100 Mbps, while Table 18 uses 1 Gbps; the P2RAG projection additionally charges 0.1 ms RTT for each declared online round because it requires two non-colluding servers. Table 18: Matched online latency at 1 Gbps in seconds per query. Ours uses the smallest K retaining at least 99% of float NDCG@10: 292, 104, and 1956, respectively. P2RAG includes both clientâserver and inter-server transfer. Method SciDocs TouchĂ© NQ-1M Ours .152 .071 .796 P2RAG .155 2.254 5.012 RemoteRAG 3.001 5.256 7.167 PANTHER 8.126 20.389 OOM Our protocol. We use pure-vMF at Δ=64 =64, randomized-evaluation compact BFV scoring, and active-secure 10-out-of-K key transfer. After unit-resolution refinement at each 99% boundary, the smallest evaluated budgets are K=292K=292 on SciDocs (0.18533 versus 0.18702), K=104K=104 on TouchĂ© (0.24753 versus 0.24954), and K=1956K=1956 on NQ-1M (0.62768 versus 0.63385). Each value uses the measured 32-thread full-index Hamming scan and the matched candidate-bound cryptographic path. P2RAG [59]. We use the authorsâ official implementation22 2 https://github.com/myl7/p2rag, compile the authorsâ retrieval kernel and expose only N, d, and the bisection depth as runtime parameters. We set kâČ=16k =16 so its revealed set contains the requested top-10, measure five online compute runs, and combine their median with the exact userâserver and inter-server byte formulas from the paperâs Table 2. Its kernel uses all 192 hardware threads, compared with 16 threads for our BFV scorer, and the trusted-dealer preprocessing remains offline as specified by P2RAG; these two factors favor its online result. RemoteRAG [14]. We reproduce the paperâs spherical-cap shortlist geometry and Paillier encrypted cosine with a 1024-bit modulus, gmpy2 modular exponentiation, and process-parallel query encryption and inner products. At Δ=15360 =15360 and k=10k=10, the mean shortlist sizes are 627.3 on SciDocs, 1,581.4 on TouchĂ©, and 2,178 on the five measured NQ-1M queries; the first two corpora retain 100% of the float top-10 in the shortlist. We report the median of three long-lived-key queries on SciDocs and TouchĂ© and five on NQ-1M. PANTHER [50]. We reuse the authorsâ artifact33 3 https://github.com/AntCPLab/OpenPanther. We compile the authorsâ random-client/random-server secure path, and quantize the common E5 vectors with a corpus-calibrated 9-bit affine map. SciDocs uses 8,074 bounded clusters, a 1,561-item stash, a maximum cluster size of 10, and 1,280 probes. TouchĂ© uses four bounded-cluster levels with 28,198, 10,280, 3,205, and 1,016 clusters, a 14,432-item stash, a maximum cluster size of 20, and 512/256/128/64 probes. These settings obtain 99.22% and 99.18% float top-10 agreement, respectively. NQ-1M uses 49,720 and 63,928 bounded clusters, a 37,125-item stash, a maximum cluster size of 20, and 792/396 probes, attaining 99.0% float top-10 agreement over 100 queries. The 768-dimensional, 20-point cluster layout expands its 113,648 PIR records to 15,480 32-bit elements each; the implementation maps 1,188 probes to 1,782 cuckoo bins and generates their SEAL replies in parallel while retaining the encoded database. This answer-stage memory peak exhausts the 256-GB host after database construction and the distance, argmin, and garbled-circuit stages complete, so we report OOM rather than an extrapolated latency. The completed SciDocs and TouchĂ© values are medians of three secure runs with measured traffic.