Guaranteeing Knowledge Integration with Joint Decoding for Retrieval-Augmented Generation

Zhengyi Zhao, Shubo Zhang, Zezhong Wang, Yuxi Zhang, Huimin Wang, Yutian Zhao, Yefeng Zheng, Binyang Li, Kam-Fai Wong, Xian Wu

TL;DR

GUARANTRAG addresses the "integration bottleneck" in Retrieval-Augmented Generation (RAG) systems, where Large Language Models (LLMs) often ignore retrieved facts in favor of their own internal, potentially incorrect, knowledge. By explicitly decoupling reasoning from evidence extraction and fusing them through a novel joint decoding mechanism, the framework improves accuracy by up to 12.1% and reduces hallucinations by 16.3% across major benchmarks.

What Problem Does This Paper Address?

While RAG has become the standard for grounding LLMs in external data, most research focuses on improving retrieval—finding the right documents. The authors identify a critical, often overlooked "integration bottleneck": even when the right information is retrieved, the model often fails to use it.

This failure typically manifests in two ways:

  1. Parametric Override: The model trusts its internal pre-trained knowledge (parametric memory) over the retrieved documents, especially when they conflict.
  2. Disjointed Integration: The model tries to include external facts but does so clumsily, breaking the logical flow of the answer.

Preliminary experiments by the authors showed that a staggering 67.3% of RAG responses suffer from these integration failures. They argue that asking a model to reconcile internal and external knowledge in a single generation pass is fundamentally suboptimal.

Methods

The authors introduce GUARANTRAG, a three-phase framework that transforms knowledge integration from an implicit "black box" into an explicit pipeline.

Overview of the GUARANTRAG framework
  1. Knowledge Decision: A lightweight estimator determines if retrieval is even necessary based on the query's temporal relevance and factual specificity.
  2. Dual-Path Generation: Instead of one answer, the system generates two:
  3. Inner-Answer: Generated using only internal knowledge to capture the model's natural reasoning flow and linguistic fluency.
  4. Refer-Answer: A distillation of the retrieved documents. Crucially, this is trained using Contrastive Direct Preference Optimization (DPO). The model's own hallucinated "Inner-Answer" is used as a negative sample, while the retrieved documents serve as the "chosen" ground truth. This forces the model to suppress its internal priors in favor of external evidence.
  5. Joint Decoding with Dynamic Fusion: The final answer is generated token-by-token. The system uses the "reasoning skeleton" of the Inner-Answer but dynamically injects factual tokens from the Refer-Answer. This is done at the hidden-state level, using a gating factor to "steer" the model toward factual accuracy whenever the context aligns with a retrieved segment.

Datasets

The framework was evaluated on five diverse knowledge-intensive QA benchmarks:

  • Natural Questions (NQ): Factoid queries.
  • TruthfulQA: Designed to test if models mimic human falsehoods.
  • Wizard of Wikipedia (WoW): Conversational knowledge integration.
  • HotpotQA: Multi-hop reasoning requiring synthesis across documents.
  • ELI5: Long-form, complex explanations.

Key Insights and Ideas

  • Decoupling is Key: By separating the "how to think" (reasoning) from the "what to say" (evidence), the model avoids the cognitive load of resolving knowledge conflicts mid-sentence.
  • Hallucinations as Training Data: Using the model's own internal errors as negative constraints in DPO is a powerful way to "unlearn" stubborn parametric priors that usually lead to RAG failures.
  • The "Goldilocks" Granularity: The authors found that segment-level decomposition (breaking the Refer-Answer into atomic semantic units) provides the best balance for fusion. As shown in their attention heatmaps, token-level fusion is too noisy, and sentence-level is too "blocky," while segment-level allows for precise, uniform knowledge injection.
Attention distribution heatmaps for different decomposition granularities

Key Results

  • Superior Accuracy: GUARANTRAG consistently outperformed state-of-the-art RAG baselines (like SelfRAG and SOLAR), showing the biggest gains in complex reasoning tasks like HotpotQA.
  • Hallucination Reduction: The framework achieved the lowest hallucination rates across all tested models, with a 16.3% reduction compared to standard RAG.
  • Robustness to Noise: In experiments where irrelevant "noisy" documents were added to the retrieval set, GUARANTRAG maintained 90.3% of its performance, whereas other methods saw significant degradation.
  • Efficiency: Despite the dual-path approach, it introduces only a 33% time overhead compared to standard RAG, making it significantly faster and cheaper than iterative refinement methods.
Performance analysis across query length and complexity

Limitations and Future Work

  • Inference Latency: While more efficient than iterative methods, generating two intermediate answers still increases latency compared to a single-pass RAG system.
  • Domain Specificity: The authors note that effectiveness might vary in highly specialized fields (e.g., legal or medical) with terminology not well-represented in the training data.
  • API Constraints: The full "Joint Decoding" mechanism requires access to model hidden states. For closed-source models (like GPT-4), the authors had to use a prompt-based approximation, which, while effective, doesn't reach the full performance of the hidden-state fusion. Future work could focus on making these "soft interventions" more robust for black-box APIs.

Summary updated

BibTeX
@inproceedings{zhao2026guaranteeing,
  author = {Zhengyi Zhao and Shubo Zhang and Zezhong Wang and Yuxi Zhang and Huimin Wang and Yutian Zhao and Yefeng Zheng and Binyang Li and Kam-Fai Wong and Xian Wu},
  title = {{Guaranteeing Knowledge Integration with Joint Decoding for Retrieval-Augmented Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.192},
}
Figure