NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TRACE: Discovering Task-Specific Parameter via Adaptation-Aware Probing for Continual Fine-Tuning

Xiaosong Han, Ke Chen, Xindi Dai, Di Liang, Minlong Peng, Wei Pang, Fausto Giunchiglia, Xiaoyue Feng, Yonghao Liu, Renchu GuanarXiv 2026 · DOI

TL;DR

TRACE addresses catastrophic forgetting in continual LLM fine-tuning by identifying a tiny subset (~5%) of "core parameters" essential for each task via a brief, single-epoch warm-start probe. By selectively activating only these task-specific parameters during sequential training and freezing the rest, TRACE successfully protects prior knowledge. Remarkably, these discovered parameter blueprints can even be transferred from smaller models to guide the fine-tuning of larger architectures.

What Problem Does This Paper Address?

When Large Language Models (LLMs) are deployed in production, they must continually adapt to new tasks over time (e.g., moving from coding to medical QA, then to mathematical reasoning). However, standard Supervised Fine-Tuning (SFT) suffers from a fundamental flaw: it indiscriminately overwrites shared parameters. This leads to catastrophic forgetting, where learning a new skill dilutes or completely destroys previously acquired knowledge.

Existing solutions come with heavy trade-offs. Experience replay requires storing and re-processing historical data, incurring high computational overhead. Maintaining separate parameter-efficient adapters (like LoRA) for every single task creates storage and management bloat. TRACE tackles the root cause of this issue by exploiting parameter redundancy, finding a way to isolate and protect task-specific knowledge without massive overhead.

Figure 1: A parameter-space view of continual fine-tuning. Traditional SFT dilutes task knowledge over time, while TRACE discovers task-specific core parameters and selec- tively activates them to preserve prior skills.

Methods

The authors introduce TRACE (Task-specific paRameters via Adaptation-aware probing for Continual finE-tuning), a two-step framework:

  1. Adaptation-Aware Probing (Offline): Instead of training a model to convergence, TRACE runs a short, single-epoch "warm-start" fine-tune on a task. By comparing this warm-started model to the pre-trained base, it exposes the task's unique "adaptation trace."
  2. Core Parameter Discovery: To find which parameters are vital, the paper proposes two alternative strategies:
  3. TRACE-LF (Local Importance): A task-local approach that ranks parameters by combining their magnitude of change ($L_2$ norm) and the sensitivity of the loss function (Fisher Information).
  4. TRACE-CS (Contrastive Specificity): A task-contrastive approach that calculates the cosine similarity of parameter updates across different tasks, explicitly selecting parameters that change in a unique direction for the target task.
  5. Selective Parameter Activation: During actual continual fine-tuning, only the top $r\%$ (defaulting to 5%) of core parameters for the active task are updated. The remaining 95% are frozen, preventing destructive overwriting.

Additionally, the authors introduce a "small-to-large" transfer paradigm. Using Centered Kernel Alignment (CKA) to map functionally equivalent layers, they show that core parameters identified on a computationally cheap 8B model can successfully guide the selective fine-tuning of a larger 14B or 32B model.

Figure 2: The framework of TRACE. The top part illustrates the core intuition behind TRACE: we conceptualize the LLM as a brain, where different regions are activated by different task-specific tasks. The bottom left visualizes how this brain- like activation mechanism maps to the LLM’s Transformer architecture. The bottom right illustrates the TRACE pipeline: a pre-trained LLM is first fine-tuned on task-specific data. Core parameters are then identified by comparing the original and fine-tuned models using L2 distance, Fisher information, and cosine similarity. These parameters are selectively activated for continual fine-tuning, while others are frozen to retain prior knowledge.

Datasets

The framework was evaluated on three distinct domains using standard SFT datasets:

  • Code Generation: Code Alpaca (20K instances)
  • Mathematical Reasoning: GSM8K-RFT (7.5K questions with 110K augmented responses)
  • Medical Question Answering: MedQA (multiple-choice questions from medical board exams)

For longer task sequences, the authors extended the stream with the MATH dataset and a legal domain dataset, Lawyer-Instruct (evaluated on LegalBench).

Key Insights and Ideas

  • The "Functional Blueprint" of Tasks: Task specialization in LLMs is highly localized. Much like the human brain has specialized regions for vision or audio, different layers and modules in an LLM contribute unequally to different tasks.
  • Short Probes Provide Cleaner Signals: Surprisingly, longer warm-start probing (2-3 epochs) actually hurts core parameter discovery. In early training (1 epoch), parameter updates are sparse and highly task-specific. As training continues, updates diffuse globally across the network, diluting the unique task signature.
  • Task-Centric, Not Model-Centric: The ability to transfer core parameter masks from LLaMA3-8B to Qwen architectures proves that TRACE uncovers an intrinsic, model-agnostic blueprint of the task itself.

Key Results

  • Superior Performance: Across multiple model backbones (DeepSeek-R1-1.5B, LLaMA2-7B, LLaMA3-8B, Qwen2.5-14B, Qwen3-32B), TRACE consistently outperformed sequential full fine-tuning and sequential LoRA. For example, on LLaMA3-8B, TRACE-CS achieved an average score of 63.28% across tasks, compared to just 27.47% for sequential fine-tuning and 46.33% for sequential LoRA.
  • Mitigating Forgetting: TRACE showed massive improvements on early-stage tasks (like GSM8K), which are typically completely forgotten by baseline methods by the end of the training sequence.
  • Order and Length Robustness: TRACE proved highly insensitive to the order in which tasks arrived and scaled robustly to longer task sequences by allowing parameter reuse across related domains.

Limitations and Future Work

While highly effective, TRACE still requires an offline probing phase (the 1-epoch warm start) for each new task. Furthermore, the contrastive specificity strategy (TRACE-CS) requires cross-task comparisons, meaning it needs prior knowledge of the other tasks in the stream. The authors note that developing a fully online, dynamic parameter discovery mechanism that requires zero lookahead or offline probing remains an exciting direction for future research.

Summary updated

BibTeX
@misc{han2026trace,
  author = {Xiaosong Han and Ke Chen and Xindi Dai and Di Liang and Minlong Peng and Wei Pang and Fausto Giunchiglia and Xiaoyue Feng and Yonghao Liu and Renchu Guan},
  title = {{TRACE: Discovering Task-Specific Parameter via Adaptation-Aware Probing for Continual Fine-Tuning}},
  year = {2026},
  eprint = {2605.31025},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.31025},
}
Figure