← Lab /AI/ML

Arbitrary-k top-retrieval in privacy-preserving RAG runs 3-300× faster

p^2RAG supports any top-k retrieval and is 3-300× faster than prior PRAG systems

AI/ML arXiv 16 Mar 2026 Method Prototype evidence

Published as “$p^2$RAG: Privacy-Preserving RAG Service Supporting Arbitrary Top-$k$ Retrieval”

Why it matters

The technique makes privacy-preserving RAG services fast enough to use larger retrieval sets, which can improve accuracy for long-context language models.

Summary

The paper reports that $p^2$RAG is 3-300× faster than the PRAG for $k = 16$-$1024$. It achieves this speedup by replacing secure sorting with an interactive bisection method and protecting data via secret sharing on two semi-honest non-colluding servers. The evidence consists of experimental timing results, but the paper does not disclose the size or source of the evaluation data, so the strength of the claim is uncertain. No counter-evidence is presented.

What they found 1

  1. $p^2$RAG achieves 3-300× speedup over PRAG for k=16-1024

    “The experiments show that $p^2$RAG is 3--300$\times$ faster than the PRAG for $k = 16$--$1024$.”

What’s new here 4

  • Supports arbitrary top-k retrieval without needing to fix k in advance
  • Eliminates secure sorting by using an interactive bisection method
  • Applies secret sharing across two semi-honest non-colluding servers to protect both database and user prompt
  • Adds restrictions and verification to defend against malicious users and tightly bound information leakage