Paper 2026/1802

VERIF: An Efficient Zero-Knowledge Proof System for Verifying IVF-Flat Retrieval in RAG Services

Zhiwen Zhang, Peking University
Yuao Zhou, Peking University
Ge Chang, Peking University
Cong Li, Peking University
Yuejian Fang, Peking University
Qingni Shen, Peking University
Abstract

Retrieval-augmented generation (RAG) services outsource vector search over proprietary corpora, yet clients cannot verify that returned context conforms to the promised index, parameters, and snapshot. We present VERIF, the first dedicated zero-knowledge polynomial interactive oracle proof (PIOP) for complete, service-consistent IVF-Flat retrieval. VERIF proves top-$m$ centroid selection, authenticated routing, exact full-vector scoring of every routed candidate, final top-$k$ selection, and context binding. Its commitment-eliding reduction keeps query-dependent scores virtual and reduces selection claims directly to inner products over authenticated data. A unified, permutation-free top-$t$ relation with limb-decomposed range arguments handles both selection stages without sorting or score commitments. Against a matched, optimized implementation of the same retrieval relation using a general-purpose circuit-based zkSNARK (Plonky2), our prototype achieves up to an $86.5\times$ prover speedup and reduces peak memory by up to 99.1%. VERIF proves retrieval over authenticated SIFT and 768-dimensional Cohere indexes containing 32 million and 8 million vectors in 5.90 and 11.57 seconds, respectively; verification takes 0.62--1.48 seconds. These results demonstrate practical verifiable IVF-Flat retrieval for RAG-as-a-Service.

Metadata
Available format(s)
PDF
Category
Applications
Publication info
Preprint.
Keywords
zero-knowledge proofsRAGverifiable vector retrievalapproximate nearest neighbors
Contact author(s)
zwzhang25 @ stu pku edu cn
gozya @ stu pku edu cn
gchang25 @ stu pku edu cn
li cong @ pku edu cn
fangyj @ ss pku edu cn
qingnishen @ pku edu cn
History
2026-08-28: approved
2026-08-26: received
See all versions
Short URL
https://ia.cr/2026/1802
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2026/1802,
      author = {Zhiwen Zhang and Yuao Zhou and Ge Chang and Cong Li and Yuejian Fang and Qingni Shen},
      title = {{VERIF}: An Efficient Zero-Knowledge Proof System for Verifying {IVF}-Flat Retrieval in {RAG} Services},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1802},
      year = {2026},
      url = {https://eprint.iacr.org/2026/1802}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.