Injecting External Knowledge into the Reasoning Process Enhances Retrieval-Augmented Generation

Minghao Tang, Shiyu Ni, Jiafeng Guo, Keping Bi · DOI

Abstract

Retrieval-Augmented Generation (RAG) is a cornerstone of modern AI applications, yet it remains vulnerable to "garbage in, garbage out" scenarios where retrieved documents contain irrelevant or counterfactual information. This paper proposes Passage Injection, a novel method that integrates retrieved passages directly into the internal reasoning block (the <think> tags) of reasoning-enhanced Large Language Models (LLMs). Unlike standard RAG, which treats passages as static prompt context, Passage Injection encourages the model to critically evaluate and synthesize external data during its chain-of-thought process. Our results demonstrate that this approach significantly improves factual accuracy and robustness against misinformation while simultaneously reducing output verbosity by nearly 50%.

Introduction: The RAG Reliability Gap

While RAG provides LLMs with access to external knowledge, its reliability is tethered to the quality of the retrieved content. If a retriever returns noisy or intentionally misleading documents, models often struggle to distinguish truth from fiction, leading to hallucinations. This is particularly problematic in "Counterfactual Noise" scenarios, where passages are subtly altered to contain plausible but incorrect facts.

Standard RAG systems typically place retrieved documents in the system prompt. However, reasoning-enhanced models often treat these as "ground truth" instructions, blindly following them even when they contradict the model's internal knowledge.

Methodology: From Prompting to Injection

The core innovation presented in this research is the shift from prompt-level context to reasoning-level integration. The authors compare three distinct configurations:

  1. Vanilla RAG: Passages are placed in the system prompt. The model reads them and then generates a reasoning chain followed by an answer.
  2. Instruction Injection (Ablation): The model is instructed on how to use passages within its reasoning block, but the data itself remains in the prompt.
  3. Passage Injection: The raw retrieved passages are moved inside the model's <think> tags.

By placing data within the reasoning trajectory, the model is forced to "chew on" the information. This allows the internal chain-of-thought to act as a filter, identifying contradictions between the model's parametric knowledge and the external evidence before a final answer is formulated.

Experimental Evaluation

The study utilized four diverse datasets to test the limits of the proposed method:

  • Multi-hop Reasoning: 2WikiMultiHopQA and HotpotQA were used to evaluate complex, multi-step synthesis.
  • Factual Queries: ComplexWebQuestions (CWQ) provided high-difficulty queries.
  • General Knowledge: PopQA tested single-hop retrieval performance.
  • Robustness Testing: The ConFiQA dataset was specifically employed to measure performance against counterfactual noise—situations where gold passages are edited to contain incorrect facts.

Key Findings and Results

The implementation of Passage Injection yielded significant improvements across several dimensions:

1. Enhanced Accuracy and Robustness

On the Qwen3-32B model, Passage Injection improved the Micro-Average F1 score from 40.56% to 43.41%. More importantly, the method showed dramatic improvements in the ConFiQA tests, successfully ignoring "lies" that tripped up standard RAG models.

2. Efficiency and Curing "Overthinking"

Surprisingly, Passage Injection significantly reduced output verbosity. On the CWQ dataset, the average output length for Qwen3-32B dropped from 2,267 characters to 1,199 characters—a nearly 50% reduction. By integrating knowledge early in the reasoning process, the model reaches a conclusion more efficiently and avoids the repetitive "looping" often seen in reasoning-heavy models.

3. The Role of Native Reasoning

The benefits were most pronounced in models trained via Reinforcement Learning (RL), such as the Qwen3 series, compared to distilled models like DeepSeek-R1-Distill. This suggests that the technique leverages the "critical thinking" capabilities developed during RL, whereas distilled models, which merely imitate reasoning patterns, are less effective at critiquing external noise.

Conclusion and Future Work

Passage Injection represents a simple yet powerful shift in how RAG systems interact with external data. By moving retrieved content into the reasoning phase, developers can create more robust, efficient, and honest AI systems. Future research will explore automating the placement of these injections and optimizing the process for extremely long contexts where token limits may become a constraint.

Summary updated

BibTeX
@inproceedings{tang2025injecting,
  author = {Minghao Tang and Shiyu Ni and Jiafeng Guo and Keping Bi},
  title = {{Injecting External Knowledge into the Reasoning Process Enhances Retrieval-Augmented Generation}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2025},
  url = {https://openreview.net/forum?id=vT1mIQENTg},
}
Figure