Abstract
Knowledge-Augmented Generation (KAG) has shown great promise in updating the internal memory of Large Language Models (LLMs) by integrating external knowledge. However, KAG inevitably faces knowledge conflicts when the internal memory contradicts external information. Current approaches to mitigating these conflicts mainly focus on improving external knowledge utilization. However, these methods have shown only limited effectiveness in mitigating the knowledge conflict problem, as internal knowledge continues to influence the generation process of LLMs. In this paper, we propose a ParametrIc Pruning-based Knowledge-Augmented Generation (PIP-KAG) approach, which prunes internal knowledge of LLMs and incorporates a plug-and-play adaptation module to help LLMs better leverage external sources. Additionally, we construct the CoConflictQA benchmark based on the hallucination of LLMs to better evaluate contextual faithfulness during answering questions. Experimental results on CoConflictQA demonstrate that PIP-KAG significantly reduces knowledge conflicts and improves context fidelity. Notably, PIP-KAG reduces LLM's parameters by 13%, enhancing parameter efficiency in LLMs within the KAG framework.
Introduction: The "Know-it-All" Problem
Retrieval-Augmented Generation (RAG) was designed to solve the hallucination problem by providing Large Language Models (LLMs) with an open-book exam. However, LLMs can be stubborn. Even when provided with correct external context, they often ignore it in favor of their internal "parametric" knowledge—the facts they memorized during training. This contextual unfaithfulness occurs when the model's internal weights dominate the provided evidence.
The PIP-KAG framework (also referred to as ParamMute) investigates the internal mechanics of this stubbornness and proposes a surgical way to fix it: by identifying and suppressing the specific neural layers responsible for unfaithful generation.
Identifying the Culprits: Unfaithfulness-Associated FFNs
The researchers took an interpretability-first approach, focusing on Feed-Forward Networks (FFNs), which act as the "key-value" memory stores of the Transformer architecture. Through a pilot study on LLaMA3-8B, they found that unfaithful responses were strongly correlated with disproportionately high activation in a specific subset of mid-to-deep FFN layers (specifically layers 20–29). They termed these Unfaithfulness-Associated FFNs (UA-FFNs).
Methodology: Pruning and Preference Optimization
PIP-KAG employs a two-stage approach to mitigate the influence of these internal memories:
- Activation Suppression: The framework introduces a suppression coefficient ($\lambda < 1$) to the FFN computation. By "muting" the output of these UA-FFN layers, the framework reduces the "volume" of the internal knowledge being injected into the model's residual stream. This effectively prunes the unfaithful internal knowledge.
- Knowledge Preference Optimization (KPO): After suppression, the model undergoes a "plug-and-play" adaptation. Using a max-margin loss, the model is fine-tuned to prefer answers derived from external context over those derived from its internal memory, calibrating it to treat retrieved evidence as the primary source of truth.
Experimental Results
The authors introduced the CoConflictQA benchmark (also referred to as CoFaithfulQA) to target knowledge conflict scenarios. They also utilized ConFiQA for counterfactual evaluation.
Faithfulness and Knowledge Utilization
PIP-KAG demonstrated superior performance across multiple LLM families (LLaMA and Qwen). On the CoConflictQA benchmark, it improved Context Recall (ConR) by an average of 6.17%. On the more difficult ConFiQA benchmark, it achieved a massive 54.63% improvement in faithfulness over baseline RAG.
Evaluation of knowledge utilization shows that PIP-KAG successfully shifts the model's semantic similarity away from its "parametric" answer and toward the "contextual" answer.
Efficiency and Limitations
Notably, PIP-KAG reduces the model's active parameters by 13%, enhancing parameter efficiency. However, there is a limit to suppression; muting too many layers or doing so too aggressively can interfere with general reasoning abilities. Future work may explore neuron-level suppression for even finer control.
Conclusion
PIP-KAG offers a surgical solution to knowledge conflicts in KAG. By pruning unfaithful internal knowledge and calibrating preferences, it makes LLMs more reliable and faithful to external evidence, effectively "shushing" the stubborn internal voice of the model.
Summary updated