Abstract
Parameter-efficient fine-tuning (PEFT) has become a common method for fine-tuning large language models, where a base model can serve multiple users through PEFT module switching. To enhance user experience, base models require periodic updates. However, once updated, PEFT modules fine-tuned on previous versions often suffer substantial performance degradation on newer versions. Re-tuning these numerous modules to restore performance would incur significant computational costs. Through a comprehensive analysis of the changes that occur during base model updates, we uncover an interesting phenomenon: continual training primarily affects task-specific knowledge stored in Feed-Forward Networks (FFN), while having less impact on the task-specific pattern in the Attention mechanism. Based on these findings, we introduce Trans-PEFT, a novel approach that enhances the PEFT module by focusing on the task-specific pattern while reducing its dependence on certain knowledge in the base model. Extensive experiments across 7 base models and 12 datasets demonstrate that Trans-PEFT trained modules can maintain performance on updated base models without re-tuning, significantly reducing maintenance overhead in real-world applications.
Introduction
Large Language Models (LLMs) are frequently updated via continual pre-training to enhance their capabilities and knowledge. While beneficial, these updates pose a significant challenge for Parameter-Efficient Fine-Tuning (PEFT) modules, such as LoRA. Adapters fine-tuned on a specific base model version often experience substantial performance degradation when deployed on a newer version (e.g., transitioning from Qwen2 to Qwen2.5).
Currently, the only solution to maintain performance is to re-tune every single adapter on the updated base model. This process is computationally ruinous—potentially requiring thousands of GPU hours for large deployments—and raises significant privacy concerns, as it necessitates keeping user training data indefinitely.
The Trans-PEFT Approach
To address this "hidden tax" of model updates, we introduce Trans-PEFT, a novel fine-tuning strategy that creates "future-proof" adapters. Trans-PEFT is designed to reduce an adapter's reliance on specific, volatile knowledge stored in the base model's Feed-Forward Networks (FFNs) while focusing on more stable task-specific patterns.
The method employs two primary training-time strategies:
- Intra-layer Knowledge Masking: A random binary mask is applied to the intermediate dimensions of the FFN during training. This prevents the PEFT module from over-fitting to specific "knowledge neurons" that are likely to shift during subsequent base model updates.
- Cross-layer Knowledge Dropping: Entire FFN layers are randomly dropped during the forward pass, encouraging the adapter to capture invariant task patterns within the Attention mechanism rather than relying on the specific distribution of knowledge across layers.
Crucially, these techniques are only active during training; at inference, the module operates normally with zero additional architectural overhead or latency.
Empirical Analysis of Model Updates
The development of Trans-PEFT was motivated by a key observation: while a model's internal knowledge (primarily stored in FFNs) shifts significantly during updates, its task-specific structural logic (in the Attention mechanism) remains remarkably consistent.
As shown in the heatmaps above, specific neuron activation patterns remain stable across model versions within the same family. Trans-PEFT leverages this stability by forcing the adapter to find robust, version-independent solutions during the initial fine-tuning phase.
Experimental Evaluation
We validated Trans-PEFT across 12 datasets covering commonsense reasoning (e.g., BoolQ, HellaSwag), mathematical reasoning (GSM8K, MATH), and code generation (HumanEval, MBPP). Testing involved 7 base models from the Qwen, InternLM, and DeepSeek families.
Key Results
- Superior Transferability: Trans-PEFT achieved up to 30% performance improvements over "Direct Transfer" methods (simply plugging an old adapter into a new model).
- Efficiency Gains: For a deployment of 1,000 customized modules, Trans-PEFT can save approximately 20,000 GPU hours by eliminating the need for re-tuning.
- Performance Synergy: In many instances, Trans-PEFT adapters actually performed better on the updated base model than on the original, successfully leveraging the improved underlying capabilities of the new version.
Conclusion
Trans-PEFT provides a robust solution for maintaining PEFT modules across model updates. By intentionally reducing sensitivity to FFN perturbations, the method ensures that adapters remain effective as their base models evolve. While currently optimized for models updated via continual pre-training, it significantly reduces the maintenance overhead for large-scale LLM deployments. Future work will explore extending these strategies to models with entirely distinct parameter spaces and different architectural initializations.
Summary updated