Abstract
Retrieval-Augmented Generation (RAG) enhances Large Language Models (LLMs) with external information but introduces a performance trade-off: increasing adherence to external context often compromises robustness against noise. We introduce Parenting, a novel framework that decouples LLM parameters into functional subspaces—Adherence, Robustness, and Entangled—inspired by human cognitive specialization. By identifying key parameters through activation and gradient signals and applying type-tailored tuning, Parenting effectively resolves the "tug-of-war" in knowledge selection. Our experiments demonstrate that Parenting-tuned models consistently outperform state-of-the-art baselines and even surpass closed-source models like GPT-4 on RAG benchmarks.
Introduction: The RAG Tug-of-War
Retrieval-Augmented Generation (RAG) is essential for providing LLMs with up-to-date and domain-specific information. However, models often face two conflicting challenges: Knowledge Conflict, where external evidence contradicts internal pre-trained memory (requiring high adherence), and Noisy Context, where irrelevant information can mislead the model (requiring high robustness).
Existing fine-tuning methods typically treat the model as a "black box," leading to a performance trade-off where gains in adherence often come at the cost of robustness. Parenting addresses this by mimicking the functional specialization of the human brain, localizing and independently optimizing the parameters responsible for these distinct behaviors.
The Parenting Framework
The Parenting framework follows a four-step process to decouple and optimize model behavior:
- Dataset Construction: Specialized training sets are created using SQuAD2.0. $S_a$ focuses on adherence (following context), while $S_r$ focuses on robustness (ignoring noise).
- Key Parameter Mining: A novel method identifies weight matrices contributing to specific behaviors. It calculates an importance score by combining forward activation signals (neuron firing rates) with backward gradient signals (impact on loss).
- Subspace Localization: Parameters are categorized into four subspaces based on statistical Z-scores: Adherence, Robustness, Entangled (crucial for both), and Other (general capabilities).
- Type-Tailored Tuning: Custom strategies are applied to each subspace. For example, the entangled subspace undergoes a specialized Document Extraction Task to help the model distinguish relevant documents from noise. Boundary-Controlled Fine-Tuning ensures that updates to one subspace do not interfere with the performance of others.
Key Insights: Functional Specialization in LLMs
The authors discovered that LLMs exhibit a form of functional localization similar to the human brain:
- Adherence-specific units are primarily located in the middle layers, which are associated with information copying and summarization.
- Robustness-specific units are concentrated in higher layers, where factual knowledge and internal memories are typically stored.
- The Entangled Subspace acts like the brain's prefrontal cortex, handling high-level perception and analyzing the relationship between queries and external knowledge associations.
Experimental Results
Parenting was evaluated across multiple models (LLaMA2-7B, Qwen1.5-14B) and benchmarks (SQuAD2.0, RGB, KNOT, CMB, TempReason, and MuSiQue).
Superior Balance and Performance
On the SQuAD2.0-Eval benchmark with LLaMA2-7B, Parenting achieved an adherence score ($R_{Ad}$) of 69.24% and a robustness score ($R_{Ro}$) of 44.85%. This significantly outperformed the best baseline, KAFT, which reached only 54.15% and 18.43%, respectively. Furthermore, a Qwen-14B model tuned with Parenting surpassed both Claude-3.5 Sonnet and GPT-4 on the SQuAD and KNOT benchmarks.
Efficiency and Decoupling
Behavioral analysis confirms that Parenting successfully decouples these traits. As shown in the figure above, increasing adherence-focused training data in the Parenting framework improves adherence without the sharp decline in robustness seen in standard tuning. Additionally, the framework leads to faster convergence and shorter training times by eliminating conflicting supervisory signals.
Conclusion and Future Work
Parenting provides a robust solution to the knowledge selection conflict in RAG by leveraging parameter decoupling. While it achieves state-of-the-art results, future work will focus on improving performance in complex multi-step implicit reasoning and exploring finer-grained parameter partitioning at the neuron level. Additionally, integrating a retrieval discriminator could further enhance performance by filtering low-quality documents before they reach the LLM.
Summary updated