Paper 2026/1802 Original: eprint.iacr.org/2026/1802 ↗

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

Zhiwen Zhang
Yuao Zhou
Ge Chang
Cong Li
Yuejian Fang
Qingni Shen
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.
History
2026-08-26: last updated
2026-08-26: published
Short URL
https://ia.cr/2026/1802
License
https://creativecommons.org/licenses/by/4.0/

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, this archive does not use cookies or embedded third party content.