TL;DR
Retrieval-Augmented Generation (RAG) often fails when a Large Language Model's (LLM) internal memory overrides accurate external context. This paper introduces ParamMute, a framework that identifies and suppresses specific mid-to-deep feed-forward network (FFN) layers responsible for this internal knowledge dominance. By muting these "unfaithfulness-associated" layers and calibrating the model's preferences, ParamMute significantly boosts contextual faithfulness without sacrificing general capabilities.
What Problem Does This Paper Address?
While RAG is designed to ground LLMs in real-world facts by providing external documents, models still suffer from "unfaithful generation"—stubbornly ignoring valid retrieved context in favor of their own internal, potentially incorrect, parametric knowledge.
Most existing solutions try to fix this from the outside by optimizing prompts or tweaking decoding algorithms to pay more attention to the context. However, these methods ignore the root cause: the internal tug-of-war between the model's memory and the external text. This paper investigates why internal knowledge dominates mechanically and proposes a way to selectively mute it during generation.
Methods
The authors focus on Feed-Forward Networks (FFNs), which act as the primary key-value memory repositories in Transformer-based LLMs. They introduce ParamMute (Parametric Knowledge Muting through FFN Suppression), a two-stage framework:
- Activation Suppression: The framework calculates an "activation gap" between faithful and unfaithful model outputs to identify Unfaithfulness-Associated FFNs (UA-FFNs). It then applies a suppression coefficient ($\lambda \in [0, 1]$) to scale down the hidden activations of these specific mid-to-deep layers. Setting $\lambda = 0$ completely deactivates their influence.
- Knowledge Preference Calibration: To ensure the model smoothly transitions to trusting external evidence, a plug-and-play adaptation module fine-tunes the model using a joint loss function. This combines standard Knowledge-Augmented Training ($L_{KAT}$) with a max-margin Knowledge Preference Optimization ($L_{KPO}$) loss that explicitly penalizes reliance on internal memory when context is available.
Datasets
To rigorously evaluate knowledge conflicts, the authors introduce CoFaithfulQA, a new benchmark curated from six open-domain QA datasets:
- Natural Questions (NQ)
- SQuAD
- NewsQA
- TriviaQA
- SearchQA
- HotpotQA
Unlike synthetic benchmarks that use artificial counterfactuals, CoFaithfulQA isolates real-world conflicts. It uses self-consistency filtering to capture what the model genuinely "believes" in a closed-book setting, and multi-model verification (via GPT-4o and GLM-4-plus) to identify where those internal beliefs directly contradict accurate retrieved evidence. The authors also evaluate their method on the established ConFiQA and FaithEval benchmarks.
Key Insights and Ideas
- The FFN Smoking Gun: Unfaithful generation is highly correlated with hyper-activation in specific mid-to-deep FFN layers (typically spanning layers 15–30 in an 8B parameter model). When these layers fire excessively, the model ignores external context.
- Causal Proof of Hallucination: By conducting causal interventions—manually forcing suppression ($\lambda \to 0$) on UA-FFNs—the negative log-likelihood (NLL) loss on unfaithful data spikes significantly. This proves that these layers actively drive unfaithful generation rather than just being passive bystanders.
- Larger Models are More Stubborn: As model size scales up within the LLaMA and Qwen families, Memory Recall (MemR) increases, meaning larger models are intrinsically more prone to overriding context with internal parameters. ParamMute successfully counteracts this scaling side-effect.
Key Results
- Superior Faithfulness: ParamMute consistently outperforms competitive prompt-based, decoding-based, and fine-tuning baselines (such as KAFT and Context-DPO).
- Benchmark Performance: On CoFaithfulQA, ParamMute achieves an average improvement of over 6% in context alignment. On the out-of-domain ConFiQA benchmark, it achieves a staggering 54.63% average improvement, drastically dropping the model's reliance on parametric memory. For instance, on ConFiQA's QA subset, LLaMA3-8B's memory recall dropped from 38.51% to just 3.69%.
- Flexibility at Inference: Because the suppression mechanism is controlled by a continuous coefficient ($\lambda$), users can dynamically adjust the model's reliance on internal vs. external knowledge at inference time depending on the task requirements.
Limitations and Future Work
- Controlled Setting Bias: CoFaithfulQA's primary evaluation assumes a controlled setting where the retrieved context is guaranteed to contain the answer. Real-world RAG systems often deal with noisy or completely irrelevant retrieval, which requires further exploration.
- Coarse Granularity: ParamMute operates at the layer level, suppressing entire FFN sublayers. The authors note that moving toward a finer-grained intervention—such as targeting individual "knowledge neurons"—could yield even cleaner results without affecting adjacent capabilities.
Summary updated