CRAFT: Forgetting-Aware Intervention-Based Adaptation for Continual Learning

Md Anwar Hossen, Fatema Siddika, Juan Pablo Munoz, Tanya Roosta, Ali JannesariarXiv 2026

TL;DR

CRAFT is a novel continual learning framework for LLMs that completely avoids modifying base model weights, eliminating weight-level catastrophic forgetting. By learning low-rank interventions on hidden representations and using a single Kullback-Leibler (KL) divergence objective, it dynamically routes, regularizes, and merges tasks into shared clusters, outperforming strong LoRA-based baselines with significantly fewer parameters.

What Problem Does This Paper Address?

When Large Language Models (LLMs) are sequentially fine-tuned on new tasks, they suffer from catastrophic forgetting—the tendency to overwrite previously learned knowledge. Traditional continual learning methods try to mitigate this in "parameter space" by penalizing weight changes (regularization), replaying old data (rehearsal), or isolating parameters (like LoRA adapters).

However, parameter-space methods introduce an intrinsic tug-of-war: every gradient step competes for the same underlying weights. Architecture-based alternatives like Mixture-of-LoRA rely on complex gating networks that are themselves prone to forgetting. CRAFT shifts the entire problem from parameter competition to organizing and controlling representation-level interventions, keeping the backbone LLM entirely frozen.

Methods

CRAFT builds upon Low-rank Linear Subspace Representation Fine-Tuning (LoReFT). Instead of changing weights, it edits hidden states ($h$) flowing through the Transformer layers using a low-rank projection matrix.

Interventions are split across two prompt streams:

  • f-stream: Applied to the first $t_{pos}$ tokens (prefix stream) where instructions are encoded.
  • l-stream: Applied to the last $t_{pos}$ tokens (suffix stream) where the output is generated.
Figure 2: Layer and stream organization in CRAFT. (a) ReFT applies a learnable intervention Φ to hidden representations at selected token positions in every transformer layer. CRAFT places two such streams: f-stream on the first tpos prompt tokens (blue) and l-stream on the last tpos (orange). Sharing of Φ across tasks is determined by the routing scheme. (b) On TRACE-8, KL routing organizes the eight tasks into four groups S1–S4 purely from each task’s warm-up snapshot, with no task-type supervision.

The framework operates in a three-stage pipeline driven entirely by a single KL-divergence objective:

  1. Warm-up & Route: When a new task arrives, it undergoes a brief warm-up training phase to produce a provisional intervention. CRAFT measures the symmetric KL distance between this new task's output distribution and the stored distributions of existing task groups. If the distance is below a threshold $\delta$, it joins the closest group; otherwise, a new group is spawned.
  2. Anchoring Fine-Tuning: The chosen group’s current state is snapshotted as a frozen anchor. The live intervention is then trained on the new task under a forward-KL penalty against this anchor, ensuring the model learns the new task without drifting away from what the group already knows.
  3. Governed Merging: Once training completes, the updated parameters overwrite the shared group representation, completing the cycle.
CRAFT Three-Stage Pipeline

Datasets

The authors evaluated CRAFT across multiple model scales (Llama-3.2-1B-Instruct, Gemma-2B-it, and Llama-2-7B-Chat) using the following benchmarks:

  • TRACE Benchmark: An 8-task sequential benchmark spanning classification (C-STANCE, FOMC), multiple-choice QA (ScienceQA), long-form summarization (MeetingBank), news simplification (20Minuten), code completion (Py150), and math reasoning (NumGLUE-cm, NumGLUE-ds).
  • Extended 15-Task Stream: TRACE-8 augmented with 7 additional classification and sentiment datasets (DBpedia, Amazon, Yahoo, AG News, Yelp, BoolQ, QQP) to test long-sequence robustness.
  • Math-LLM Benchmark: A curated subset focusing strictly on reasoning tasks (ScienceQA, NumGLUE-cm, NumGLUE-ds).

Key Insights and Ideas

  • Output Geometry Over Semantic Labels: CRAFT routes tasks based on the geometry of their output distributions, not human-assigned labels. For example, the router groups financial sentiment (FOMC) with math reasoning (NumGLUE) because they share short-token, high-entropy answer distributions.
  • Structural Invariance: Because the backbone is frozen and tasks are clustered into isolated intervention groups, training a task in Cluster A mathematically cannot alter the inference output of tasks in Cluster B. This provides a hard boundary against cross-cluster interference.
  • Unified Objective: Rather than using separate heuristics for routing, regularizing, and early-stopping, CRAFT elegantly unifies all three phases under a single, task-calibrated KL-divergence signal.

Key Results

CRAFT consistently outperformed state-of-the-art parameter-space methods in both Overall Performance (OP) and Backward Transfer (BWT, a measure of forgetting):

  • Performance Boost: On the Llama-3.2-1B-Instruct model, CRAFT achieved up to an 8.03% absolute accuracy improvement over the strongest baseline (TreeLoRA).
  • Drastically Reduced Forgetting: CRAFT cut the forgetting rate (BWT) down significantly—achieving a mere 0.87% forgetting rate on Llama-3.2-1B compared to TreeLoRA's 7.36% and SeqLoRA's 17.03%.
  • Parameter Efficiency: CRAFT achieved these results while using 3.75 times fewer trainable parameters than standard LoRA-based approaches, scaling with the number of discovered clusters ($K$) rather than the total number of tasks ($T$).
  • Sequence Robustness: The framework proved highly robust to task ordering, maintaining stable performance across six different random task permutations.

Limitations and Future Work

The authors noted a specific edge-case limitation: if two identical datasets are presented sequentially as separate tasks, the symmetric-KL router fails to merge them. Because each task's warm-up is initialized from a fresh random seed, their independent excursions from the baseline produce near-orthogonal top-k distributions, causing the router to mistakenly create a new cluster.

Future work will explore seeding each new task's warm-up phase directly from the closest existing cluster's intervention state rather than a random initialization, allowing near-duplicate tasks to be recognized as minor drift rather than entirely new behaviors.

Summary updated

BibTeX
@misc{hossen2026craft,
  author = {Md Anwar Hossen and Fatema Siddika and Juan Pablo Munoz and Tanya Roosta and Ali Jannesari},
  title = {{CRAFT: Forgetting-Aware Intervention-Based Adaptation for Continual Learning}},
  year = {2026},
  eprint = {2605.05732},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.05732},
}
Figure