TL;DR
Task Vector Descent (TVD) is a simple yet powerful update rule for continual learning that addresses the "stability-plasticity" tradeoff by partially integrating parameter updates. By scaling the total displacement (the "task vector") and the optimizer state by a coefficient $\lambda < 1$, models can adapt to new, temporally clustered data distributions without catastrophically forgetting previously learned knowledge.
What Problem Does This Paper Address?
In the real world, data doesn't arrive in a perfectly shuffled, independent and identically distributed (i.i.d.) stream. Instead, language models often encounter "temporally clustered" data—for example, a long sequence of legal documents, followed by a batch of medical texts, or a series of interactions with a specific user.
Standard gradient-based training on these clusters causes the model to overadapt to the current task, leading to catastrophic forgetting of earlier capabilities. This creates a tension between plasticity (the ability to learn new things) and stability (the ability to retain old things). The authors observe that this tradeoff intensifies as the sequences of same-distribution data get longer.
Methods
The authors propose Task Vector Descent (TVD). Instead of using the model parameters obtained at the end of a training sequence as the starting point for the next (which is "full integration," or $\lambda = 1$), they treat the total parameter change over that sequence as a task vector $\Delta_t$.
The core update rule is: $$\theta_{t+1} = \theta_t + \lambda \Delta_t, \quad \lambda \in [0, 1]$$
Key technical details include:
- Partial Integration: Using an intermediate $\lambda$ (e.g., 0.4 or 0.6) to move the model only partway toward the locally adapted endpoint.
- Optimizer-State Integration: Crucially, TVD also scales the AdamW optimizer state (first and second moments) by the same $\lambda$. This ensures the "momentum" of the training process is consistent with the parameter updates.
- Comparison to Learning Rate (LR) Scaling: The authors provide a second-order analysis showing that TVD is not equivalent to simply reducing the learning rate. TVD retains a larger contribution from second-order interactions within a task sequence, preserving more "optimization structure" than simple LR scaling.
Datasets
The study evaluates TVD across a wide range of settings:
- Continual Pretraining: GPT-2 (124M) trained on ten domains from the Pile Uncopyrighted dataset.
- Book-level Pretraining: SmolLM-360M trained on 200 books from PG-19, using natural book boundaries as task sequences.
- Persona Adaptation: Qwen3-4B adapted to style preferences using the HelpSteer dataset.
- Reasoning Post-training: Qwen2.5-3B-Instruct trained on tasks from Reasoning Gym (Countdown, Sudoku, etc.) using both Supervised Fine-Tuning (SFT) and Group Relative Policy Optimization (GRPO).
- Evaluation Benchmarks: Standard LLM benchmarks including GSM8K, MBPP, MMLU, ARC-Challenge, HellaSwag, and WinoGrande.
Key Insights and Ideas
- The "Longer is Harder" Rule: The benefits of partial integration ($\lambda < 1$) become significantly more pronounced as the length of the same-distribution sequence ($L$) increases. For very short sequences, full integration is often fine; for long ones, it's destructive.
- Stability-Plasticity Frontier: TVD consistently achieves a better balance than full integration or matched learning-rate scaling. It allows the model to gain more "average" performance across all tasks by sacrificing a small amount of immediate task-specific gain to prevent massive forgetting elsewhere.
- Linear Mode Connectivity Limits: The method relies on the idea that the "path" between the old model and the new adapted model is relatively flat in terms of loss. The authors found this holds true for SFT trajectories, but breaks down for massive shifts, like the gap between a base Qwen model and its Coder-specialized descendant.
- No Pretrained Representation Required: The benefits of TVD persist even when training from random initialization, suggesting it's a fundamental property of optimization on non-i.i.d. data, not just a trick for fine-tuning.
Key Results
- Continual Pretraining: For long sequences ($L=512$), using $\lambda=0.6$ increased the BPT (bits per token) gain to 0.463, compared to just 0.386 for full integration. It also beat the best learning-rate-matched baseline (0.412).
- Reasoning SFT: At a sequence length of $L=32$, setting $\lambda=0.4$ boosted the Best@4 accuracy gain from 30.43 to 41.53 percentage points.
- Stability-Plasticity Tradeoff: As shown in Figure 5, TVD (solid lines) consistently pushes the frontier further than learning rate scaling (dashed lines), providing better stability for any given level of plasticity.
Limitations and Future Work
- Fixed Hyperparameters: The study uses a fixed $\lambda$ throughout a training run. In practice, the optimal $\lambda$ might change over time or vary between different tasks.
- Model Scale: While the authors tested models up to 7B parameters, the most extensive continual learning experiments were on smaller models (124M to 3B).
- Intra-batch i.i.d.: The experiments assume minibatches are i.i.d. within a single distribution. Real-world streams might be even noisier.
- Future Direction: Developing methods to automatically select the optimal $\lambda$ online based on the model's current state and the incoming data distribution is a promising next step.
Summary updated