atlas

Research map / Large language models / Retrieval and knowledge

A Theory for Token-Level Harmonization in Retrieval-Augmented Generation

ICLR 2025 · Large language models › Retrieval and knowledge · approach: RAG robustness and evaluation · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Models RAG next-token prediction as a fusion of LLM knowledge and retrieved-text distributions, derives a benefit-minus-detriment theory via KL divergences, and proposes Tok-RAG, a training-free token-level collaborative decoding between pure LLM and RAG.

Problem

RAG can both help (benefit) and mislead (detriment) LLMs, but the token-level trade-off between these effects is not theoretically explained or quantified, and existing fixes need training, utility evaluators, or post-hoc processing.

Approach

Treats RAG next-token prediction as latent-concept distribution fusion, decomposes it into KL-based benefit (distribution completion) and detriment (distribution contradiction), and shows the sign of their difference can be predicted by comparing representation similarities; Tok-RAG uses this to pick between RAG and pure-LLM tokens at each step without training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Tok-RAG token-level selection instead of standard RAGLLaMA-2-7B RAG · TriviaQA, 100% hard negativesaccuracy: 43.8 -> 53.5Helped
Use Tok-RAG token-level selection instead of the strongest listed baselineLLaMA-2-7B RAG · TriviaQA, 0% hard negativesaccuracy: 82.5 -> 85.7Helped
Use Tok-RAG token-level selection instead of the strongest listed baselineLLaMA-2-7B RAG · WebQ, 0% hard negativesaccuracy: 57.0 -> 57.3Helped
Use Tok-RAG token-level selection instead of the strongest listed baselineLLaMA-2-7B RAG · Squad, 0% hard negativesaccuracy: 67.5 -> 68.1Helped
Use Tok-RAG instead of INFO-RAGLLaMA-2-7B RAG · Long-form NLP tasks (WoW, Python, Java, T-REx, WikiText-103, ELI5)task metric reported per dataset: 9.09 -> 9.68; 26.75 -> 27.44; 32.06 -> 32.59; 65.91 -> 68.70; 62.91 -> 64.28; 17.18 -> 17.59Helped
Use Tok-RAG benefit-detriment comparison instead of the strongest listed baselineOPT-6.7B · Wikitext token-level benefit-detriment comparisonAUC: 65.93 -> 68.64$^{+}$Helped
Use Tok-RAG benefit-detriment comparison instead of the strongest listed baselineMistral-7B · ASQA token-level benefit-detriment comparisonAUC: 70.05 -> 71.51$^{+}$Helped
Use Tok-RAG benefit-detriment comparison instead of the strongest listed baselineOPT-6.7B · Bio token-level benefit-detriment comparisonAUC: 65.76 -> 66.27$^{+}$Helped

Surprising findings

Limitations

Experimental setup

Datasets: Natural Questions TriviaQA WebQ SQuAD Wikitext ASQA Bio Wow T-REx WikiText-103 ELI5 Python code generation

Benchmarks: TriviaQA WebQ SQuAD Wow T-REx WikiText-103 ELI5 ASQA Bio Natural Questions

Metrics: accuracy F1-score AUC CodeBLEU ROUGE GPU memory time

Baselines: Standard RAG NLI+RAG CRAG RetRobust Self-RAG INFO-RAG Logprobs Uncertainty Consistency-Lexical Consistency-Semantic

Builds on: in-context learning as latent variable inference hidden Markov model Self-RAG CRAG

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy