Abstract
Updating Large Language Models (LLMs) with new information through Continuous Pre-Training (CPT) often compromises their instruction-following capabilities. This paper introduces Instruction Residuals, a novel method that preserves these capabilities by treating instruction-following as a portable weight "delta." By adding this residual to a newly updated base model, researchers can maintain state-of-the-art performance with significantly reduced computational overhead compared to traditional instruction fine-tuning.
Introduction
The lifecycle of an LLM typically involves two stages: base model pre-training on massive datasets and instruction fine-tuning (IFT) to align the model with human prompts. To keep models current, they must undergo Continuous Pre-Training (CPT) on recent data. However, CPT on an instruction-tuned model leads to "catastrophic forgetting" of its alignment, while CPT on a base model requires a subsequent, expensive round of IFT. This creates a significant bottleneck for maintaining up-to-date, functional models.
Methodology: Instruction Residuals
The authors propose the Instruction Residual approach, inspired by parameter-efficient fine-tuning and task arithmetic. The method operates on the premise that instruction-following ability is a distinct mathematical component within the model's weights.
- Extraction: An "Instruction Residual" ($\Theta_r$) is calculated by subtracting the weights of a base model from its instruction-tuned counterpart: $\Theta_r = \Theta_{instruct} - \Theta_{base}$.
- Continuous Pre-training: The base model is updated with new data (e.g., recent news) to create an updated base model ($\Theta'_{base}$).
- Porting: The previously extracted residual is added to the updated base model: $\Theta'_{final} = \Theta'_{base} + \Theta_r$.
This method is remarkably efficient, estimated to be approximately 2048 times more compute-efficient than performing a full round of IFT.
Experimental Setup
The study utilized the FUNDUS crawler to collect ~2 million news articles from late 2023 to late 2024, ensuring the data was novel to the models tested (LLaMa 3/3.1 and Qwen 2/2.5). Evaluation focused on:
- Instruction Following: Measured via IFEval (verifiable instruction adherence).
- Reasoning & Knowledge: Benchmarked using MMLU, GSM8K, and several commonsense reasoning tasks.
- Truthfulness: Evaluated through TruthfulQA (T_mc2).
Key Results
The experiments confirmed that instruction-following capabilities are highly fragile. As shown in the performance overview below, models updated via CPT without residuals suffer significant degradation.
Key findings include:
- Performance Recovery: On the LLaMa 3 8B architecture, the residual-adjusted models outperformed continuously pre-trained instruction models by 4 to 5 absolute points across all tasks.
- Cross-Version Portability: Residuals from superior models (e.g., LLaMa 3.1) can be successfully applied to older base models (LLaMa 3), often yielding performance that exceeds the original instruction-tuned version.
- Robustness of Base Models: Unlike instruction-tuned models, base models do not "forget" their fundamental capabilities during CPT, making them ideal targets for knowledge updates.
Conclusion and Future Work
Instruction Residuals provide a powerful, low-cost alternative to full instruction fine-tuning for model updates. While the method requires access to both base and instruction versions of a model, its efficiency and performance gains are substantial. Future work will investigate more complex merging strategies, such as TIES or DARE, and explore the scaling laws of weight portability in models smaller than 7B parameters.
Summary updated