Evaluating the External and Parametric Knowledge Fusion of Large Language Models

Hao Zhang, Yuyang Zhang, Xiaoguang Li, Wenxuan Shi, Haonan Xu, Huanshuo Liu, Yasheng Wang, Lifeng Shang, Qun Liu, Yong Liu, Ruiming TangarXiv 2024 · DOI

Introduction

Retrieval-Augmented Generation (RAG) has become a standard approach for grounding Large Language Models (LLMs) in factual data. However, most research evaluates RAG under idealized conditions where external knowledge is either perfectly sufficient or directly contradictory to the model's internal memory. In practice, external information is often incomplete, requiring the model to fuse its internal "parametric" knowledge ($K_p$) with retrieved "external" knowledge ($K_e$). This paper investigates this knowledge fusion process, exploring how models behave when faced with partial information or irrelevant noise.

Defining Knowledge Fusion Scenarios

To systematically evaluate how LLMs combine internal and external sources, the authors categorize the interaction into four distinct scenarios based on the sufficiency of the available information:

  1. Scenario 1 ($S_1$ - External Sufficient): The retrieved knowledge $K_e$ contains the full answer.
  2. Scenario 2 ($S_2$ - Partial Fusion): $K_e$ is only partially sufficient; the model must retrieve the missing pieces from its internal memory $K_p$.
  3. Scenario 3 ($S_3$ - Internal Only): $K_e$ is irrelevant noise, and the model must rely entirely on $K_p$.
  4. Scenario 4 ($S_4$ - Unanswerable): Neither source contains the answer, requiring the model to refuse the query.
Illustration of the four knowledge fusion scenarios using iPhone 15 product data as examples.

Experimental Framework

A significant challenge in studying knowledge fusion is ensuring the model actually possesses the necessary internal knowledge. The researchers addressed this by creating a controlled pipeline using electronic product data released after June 2023—information the base models (ChatGLM3-6B and Qwen-7B) could not have seen during pre-training.

The pipeline involves several key stages:

  • Knowledge Injection: Using Continued Training (CT) to bake specific facts into the model's weights.
  • Instruction Tuning: Applying Supervised Fine-Tuning (SFT) to teach the model how to handle fusion tasks.
  • Dataset Construction: Generating 1,230 QA pairs specifically designed to test the four scenarios across the electronic product domain.
The knowledge infusion pipeline, showing the transition from raw documents to parametric knowledge injection and scenario-based QA generation.

The "Fusion Gap" and Noise Vulnerability

The study reveals a significant "fusion gap." Models perform remarkably well when external knowledge is sufficient ($S_1$), but accuracy drops sharply in Scenario 2. Even when the model has successfully "memorized" the required internal facts through training, it often fails to retrieve and combine them effectively with the provided external context.

Furthermore, LLMs exhibit extreme vulnerability to noise. In Scenario 3, where the external context is irrelevant, models frequently ignore their own correct internal knowledge in favor of trying to extract an answer from the noise. This "over-reliance" on context suggests that current RAG systems are easily led astray by distractor text, even when they "know" the correct answer internally.

The Refusal Challenge

One of the most concerning findings involves Scenario 4. Ideally, a model should admit when it lacks information. However, even advanced models like GPT-4 struggled here, often hallucinating answers based on irrelevant external snippets rather than refusing to answer. This highlights a fundamental difficulty in teaching models to recognize the boundaries of their own knowledge and the limitations of provided evidence.

Conclusion

While continued training can expand an LLM's factual database, it does not automatically guarantee effective knowledge fusion. The "fusion gap" and susceptibility to noise remain major hurdles for reliable RAG systems. Future work must focus on improving the model's ability to prioritize internal memory when external sources are sub-optimal and enhancing the robustness of refusal mechanisms to prevent hallucinations.

Summary updated

BibTeX
@misc{zhang2024evaluating,
  author = {Hao Zhang and Yuyang Zhang and Xiaoguang Li and Wenxuan Shi and Haonan Xu and Huanshuo Liu and Yasheng Wang and Lifeng Shang and Qun Liu and Yong Liu and Ruiming Tang},
  title = {{Evaluating the External and Parametric Knowledge Fusion of Large Language Models}},
  year = {2024},
  eprint = {2405.19010},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.19010},
}
Figure