paper

A Note on k-NN Gating in RAG

arXiv:2601.13744

Abstract

We propose a statistical proxy framework for retrieval-augmented generation (RAG) that formalizes how language models balance internal predictions with retrieved evidence. We derive an optimal query-level gate, analyze hallucination via retrieval discordance, model query-memory mismatch, and validate the framework numerically on synthetic and real data.

A Note on k-NN Gating in RAG · wovepaper