TL;DR
Grounded Decoding is a training-free, decoding-time framework that significantly reduces hallucinations in Retrieval-Augmented Generation (RAG) systems. By geometrically fusing a standard RAG probability distribution with a retrieval-only distribution via a KL-barycenter objective, it dynamically forces the large language model (LLM) to adhere to external evidence when factual conflicts arise.
What Problem Does This Paper Address?
While Retrieval-Augmented Generation (RAG) helps LLMs access external knowledge, it doesn't guarantee they will actually use it. When internal parametric memory conflicts with retrieved documents, LLMs frequently default to their own pre-trained biases, resulting in subtle or blatant hallucinations.
Prior attempts to fix this at decoding time—such as Context-Aware Decoding (CAD)—typically rely on logit-level manipulation, subtracting a "context-free" distribution from a "context-conditioned" one. However, manipulating raw logits makes the final probability distribution difficult to mathematically interpret, risks double-counting the context, and can cause unstable boundary behaviors. Furthermore, these methods focus on suppressing generic text rather than explicitly promoting tokens directly supported by the retrieved evidence.
Methods
The authors introduce Grounded Decoding, a framework that shifts the intervention from logit subtraction to probability fusion on the probability simplex.
At each decoding step, the system maintains two synchronized, token-by-token autoregressive streams using the exact same base LLM:
- Full RAG Stream: Computes the probability of the next token conditioned on the query, the retrieved documents, and the generated prefix.
- Retrieval-Only Stream: Computes the probability conditioned only on the retrieved documents and the generated prefix, completely omitting the user's query.
Instead of heuristically combining these distributions, the authors formulate the next-token selection as a Kullback-Leibler (KL) barycenter problem. This optimization problem yields a clean, closed-form solution: a normalized geometric mixture (effectively a logarithmic opinion pool).
To prevent over-correcting on non-factual words or noisy retrieval results, they implement an Adaptive Grounding weight ($\rho_t$) composed of two dynamically calculated signals:
- Token-Level Conflict ($c_t$): Measures the Jensen-Shannon divergence between the two streams. If they disagree strongly on a token, the grounding weight spikes.
- Instance-Level Retrieval Trust ($r(x, \mathcal{D})$): A static, per-query gating factor based on the retriever's confidence scores. If the retrieved documents are low-quality, grounding strength is dialed down to preserve natural fluency.
Datasets
The framework was rigorously evaluated against competitive baselines using three standard knowledge-intensive benchmarks:
- ALCE (comprising ASQA, QAMPARI, and ELI5): Used to evaluate long-form generation, question answering, and citation quality.
- Natural Questions (NQ): Used to measure short-answer exact match accuracy and evidence support rates.
- FActScore: Used to evaluate fine-grained atomic factual precision in biography generation.
Key Insights and Ideas
- The Power of Geometric Fusions: Unlike arithmetic mixtures (which can keep a token alive if just one stream gives it a high probability), a geometric mixture heavily penalizes tokens that either stream deems highly improbable. This acts as a strict probabilistic filter against unsupported assertions.
- Surgical Precision on Factual Spans: Token-level analysis reveals that the adaptive grounding mechanism naturally remains near zero for function words ("the", "was", "in") but aggressively activates on content-heavy factual entities like years, occupations, and geographic names.
- Retrieval-Only vs. Context-Free: A core insight of the paper is that anchoring decoding to what the documents explicitly support (retrieval-only) yields much better factual consistency than simply trying to subtract what the model already knows (context-free).
Key Results
Grounded Decoding achieved state-of-the-art performance among decoding-time interventions across all evaluated tasks:
- Factuality Boost: On the FActScore benchmark, adaptive Grounded Decoding achieved a factual precision score of 84.5, outperforming standard RAG (71.2) and strong adaptive logit baselines like CoCoA (79.5).
- Superior Citations: On the ALCE benchmark, it demonstrated the highest citation F1 scores, showing that the model doesn't just generate facts, but accurately attributes them to the source text.
- Fluency Preservation: The method maintained high MAUVE scores (0.89), proving that the factual constraints do not degrade linguistic richness or text quality.
- Efficiency Trade-off: Because it requires running two parallel streams, it roughly doubles the per-token decoding latency compared to standard RAG. However, its computational overhead remains entirely competitive with existing dual-stream logit-contrastive methods like CAD and AdaCAD.
Limitations and Future Work
- Inference Latency: The requirement for a synchronized dual-stream decoding process introduces a non-trivial computational overhead that could impact real-time production scaling.
- Garbage In, Garbage Out: Grounded Decoding faithfully anchors generation to the retrieved text. If the retriever fetches incorrect, biased, or poisoned documents, the decoder will faithfully reproduce those errors.
- Local Horizon: The framework operates on a next-token basis. It does not guarantee global factual consistency across an entire multi-sentence paragraph, leaving a promising avenue open for future work combining probability fusion with global consistency-checking wrappers.
Summary updated