Not All Parameters Are Created Equal: Smart Isolation Boosts Fine-Tuning Performance

Yao Wang, Di Liang, Minlong Peng

TL;DR

Large language models (LLMs) struggle with multi-task fine-tuning due to "seesaw effect" and catastrophic forgetting. This paper introduces Core Parameter Isolation Fine-Tuning (CPI-FT), a novel framework that identifies and isolates task-specific "core" parameters, preventing interference and improving performance across diverse tasks and models.

What Problem Does This Paper Address?

Adapting powerful pre-trained Large Language Models (LLMs) to specific downstream tasks is crucial. Supervised Fine-Tuning (SFT) is the go-to method, but it faces significant challenges when dealing with multiple tasks simultaneously. The core problem is the "seesaw effect," where improving performance on one task inadvertently degrades performance on others. This happens because standard SFT updates all model parameters uniformly, leading to conflicting optimization objectives. Furthermore, sequential fine-tuning (multi-stage SFT) can lead to "catastrophic forgetting," where the model loses knowledge from previously learned tasks. Existing approaches often treat all parameters as equally important, failing to account for the fact that different tasks might rely on distinct subsets of parameters. This paper aims to address this parameter heterogeneity by proposing a principled method for isolating and preserving task-specific parameters.

Methods

The proposed Core Parameter Isolation Fine-Tuning (CPI-FT) framework tackles the problem in four stages:

  1. Identifying Task-Specific Core Parameter Regions: For each task, the LLM is "probed" with a limited fine-tuning run. The magnitude of parameter updates during this probing phase is used to identify "core" parameters – those most crucial for that specific task. This is done by calculating the absolute difference between the probed parameters and the original pre-trained parameters. A percentile threshold (p) is used to define these core regions.
  2. Task Grouping and Staging: Tasks are then grouped based on the similarity of their identified core parameter regions, measured using the Jaccard Index. Tasks with overlapping core regions are more likely to interfere, so they are grouped together for joint processing. This creates a multi-stage training structure.
  3. Parameter Fusion Across Tasks: A unified model is constructed by first selecting a base model (typically from the last fine-tuning group). For each task group, the core parameter regions are directly overwritten with the values from their individually fine-tuned models. For parameters outside these core regions (non-core parameters), a Spherical Linear Interpolation (SLERP) technique is used to smoothly blend parameters from different tasks, preventing abrupt interference.
  4. Consolidated Fine-Tuning via Multi-Stage Training: The final stage involves a streamlined fine-tuning process on a mixed-task dataset. Crucially, the core parameter regions identified in earlier stages are frozen to preserve task-specific knowledge and prevent catastrophic forgetting. This dynamic freezing mechanism ensures that new learning doesn't overwrite critical learned capabilities.

Datasets

The paper evaluates CPI-FT on a diverse suite of publicly available datasets representing various NLP tasks:

  • GSM8K: Mathematical reasoning (accuracy).
  • CodeAlpaca: Code generation (CodeBLEU).
  • LogiQA: Logical reasoning (accuracy).
  • Alpaca: Open-ended instruction following (GPT-4 based scoring).
  • UltraChat: Interactive dialogue (GPT-4 based scoring).

These datasets were chosen to introduce potential conflicts in parameter specialization. For comparison, they also report a macro-average score by normalizing individual task scores to a 0-10 scale.

Key Insights and Ideas

  • Parameter Heterogeneity is Key: The core insight is that not all parameters in an LLM are equally important for every task. Identifying and isolating these "core" parameters is crucial for effective multi-task learning.
  • Update Magnitude as a Proxy for Importance: The paper proposes using the magnitude of parameter updates during a short "probe" fine-tuning phase as a reliable and computationally efficient indicator of a parameter's importance for a specific task.
  • Group Similar Tasks: Grouping tasks based on the overlap of their core parameter regions allows for more principled and effective multi-stage training, minimizing interference within groups.
  • Smooth Fusion for Non-Core Parameters: Simply overwriting parameters can be destructive. CPI-FT's use of SLERP for non-core parameters ensures a smooth, geometry-aware blending of knowledge, maintaining model coherence.
  • Dynamic Freezing Prevents Forgetting: Freezing the identified core parameter regions during later stages of fine-tuning is essential for preserving knowledge from earlier tasks and preventing catastrophic forgetting.

Key Results

  • Consistent Outperformance: CPI-FT consistently outperforms standard Full SFT and heuristic Multi-Stage SFT baselines across four different LLM architectures (LLaMA-2-7B, Mistral-8B, Qwen1.5-7B, Gemma-9B) and five diverse tasks.
  • Significant Gains: The average normalized score for CPI-FT is notably higher than baselines, with improvements ranging from 6.96 to 7.70 across models.
  • Reduced Forgetting: In a sequential fine-tuning experiment (Task A then Task B), CPI-FT reduced forgetting by over 65% compared to standard SFT, with post-fine-tuning losses consistently below 6 points.
  • Robustness to Data Imbalance: CPI-FT shows strong robustness in mixed-resource settings, maintaining performance on high-resource tasks while significantly improving scores for low-resource tasks, especially under extreme data scarcity.
  • Sensitivity to Threshold: The similarity threshold (τ) for task grouping is important, with moderate values (around 0.1) yielding optimal performance, suggesting a balance between isolation and generalization.

Limitations and Future Work

  • Computational Cost: The approach requires multiple independent task-specific fine-tuning runs for core parameter identification, which can increase compute and storage costs, especially for a large number of tasks or very large models.
  • Core Parameter Identification: Identifying core regions based solely on update magnitudes might not fully capture functional significance or interdependencies. More sophisticated attribution or interpretability methods could yield richer representations.
  • Hyperparameter Tuning: The parameter fusion stage involves hyperparameters (e.g., interpolation factors, grouping thresholds) that may require additional tuning effort.
  • Interpretability: The paper focuses on performance gains and does not deeply investigate how isolated or fused parameters contribute to model interpretability.

Future work could explore more efficient methods for core parameter identification, investigate optimal ordering strategies for task groups, and delve into the interpretability of the learned parameter regions.

Summary updated

BibTeX
@inproceedings{wang2025not,
  author = {Yao Wang and Di Liang and Minlong Peng},
  title = {{Not All Parameters Are Created Equal: Smart Isolation Boosts Fine-Tuning Performance}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure