Pisces: Cryptography-based Private Retrieval-Augmented Generation with Dual-Path Retrieval

Xiaojian Liang, Lushan Song, Shishuai Du, Weicheng Zhu, Tan Li Hui Faith, Jun Jie Sim, Haibing Jin, Zhenghao Wu, Yingting Liu, Xin Zhang, Jiang-Ming Yang, Pu DuanICLR 2026

TL;DR

Pisces is the first practical, cryptography-based framework for Retrieval-Augmented Generation (RAG) that protects the privacy of both user queries and knowledge base documents. By combining a "coarse-to-fine" semantic search with a highly efficient multi-instance lexical retrieval protocol, Pisces achieves retrieval accuracy within 1.87% of non-private baselines while outperforming existing private protocols by up to 496x in speed.

The Privacy Problem in RAG

Retrieval-Augmented Generation (RAG) allows Large Language Models (LLMs) to access specific, up-to-date, and domain-specific information. However, this creates a massive privacy vulnerability: during the retrieval process, both the user’s query (e.g., "How do I treat my rare heart condition?") and the server's documents (e.g., private medical records) are exposed.

Existing solutions typically rely on Differential Privacy (DP), which adds mathematical noise to data. While DP protects privacy, that noise destroys the "exact match" capability needed for keyword searches (lexical retrieval) and degrades semantic accuracy. Purely cryptographic approaches, like Secure Multi-Party Computation (MPC), offer higher accuracy but are traditionally too slow and communication-heavy for large-scale document sets.

Comparison of privacy-preserving RAG frameworks.

Pisces bridges this gap by providing a high-accuracy, "dual-path" (semantic + lexical) retrieval system that is fast enough for real-world use, relying entirely on cryptography rather than noise injection.

The Pisces Architecture

Pisces introduces a dual-path architecture that uses specialized cryptographic protocols to keep data encrypted throughout the entire pipeline, from the initial query to the final LLM inference.

The Pisces framework architecture detailing the semantic and lexical retrieval paths.

1. Semantic Path (Coarse-to-Fine Strategy)

To avoid calculating expensive cosine similarities for every document in the database, Pisces employs a novel Oblivious Filter.

  • Coarse Matching: It converts document vectors into compact bitstrings using SimHash. A private filtering protocol then operates in Hamming space to identify a small, relevant set of candidate documents.
  • Fine Matching: Once the search space is narrowed, Pisces uses standard MPC to compute exact cosine similarities only for the filtered candidates, drastically reducing computational overhead.

2. Lexical Path (Multi-Instance Labeled PSI)

Lexical retrieval (like BM25) requires knowing how often a query word appears in a document. Running standard Private Set Intersection (PSI) for every document is prohibitively slow.

  • Pisces implements a multi-instance labeled PSI protocol using Oblivious Pseudorandom Functions (OPRF) and Oblivious Key-Value Stores (OKVS).
  • This allows the system to compute term frequencies for all documents in a single, highly efficient execution, making private keyword search practical in a RAG context.

3. End-to-End Integration

The retrieved "top-K" documents remain encrypted via Secret Sharing or Homomorphic Encryption. They can then be fed directly into existing privacy-preserving LLM inference frameworks, ensuring the data is never exposed in plaintext.

Key Insights and Results

The authors evaluated Pisces using three standard RAG benchmarks (ClapNQ, SQuAD v2.0, and HotpotQA) to test accuracy across different scales and reasoning complexities.

  • Cryptography > Noise: By using cryptography instead of DP, Pisces maintains data integrity. This enables accurate lexical retrieval (BM25), which is notoriously difficult to achieve with DP.
  • High Accuracy: Pisces achieves retrieval accuracy comparable to "plaintext" (non-private) systems, staying within a narrow 1.87% margin. It significantly outperforms DP-based methods in retrieval precision.
  • Massive Speedups: The proposed multi-instance labeled PSI protocol is up to 496.03× faster than previous state-of-the-art labeled PSI methods.
  • Efficiency Gains: On large-scale datasets, the coarse-to-fine semantic strategy reduces retrieval time by 41.21% and slashes communication overhead (upload/download) by over 68% compared to a naive fine-grained-only approach.

Limitations and Future Work

While Pisces represents a major leap forward for private RAG, it does have some limitations:

  • Small-Scale Overhead: On very small datasets, the "coarse" filtering step can be slower than a direct search, as the fixed cryptographic overhead outweighs the search space reduction.
  • Approximation Trade-offs: There is a slight accuracy trade-off (under 2%) because SimHash approximates cosine similarity. Additionally, the lexical path experiences a minor accuracy drop due to converting BM25 scores to fixed-point integers for MPC.

Future work will explore more efficient filtering techniques and tighter integration with the generation phase of RAG to further reduce end-to-end latency.

Summary updated

BibTeX
@inproceedings{liang2026pisces,
  author = {Xiaojian Liang and Lushan Song and Shishuai Du and Weicheng Zhu and Tan Li Hui Faith and Jun Jie Sim and Haibing Jin and Zhenghao Wu and Yingting Liu and Xin Zhang and Jiang-Ming Yang and Pu Duan},
  title = {{Pisces: Cryptography-based Private Retrieval-Augmented Generation with Dual-Path Retrieval}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Re3A6vzCTC},
}
Figure