TL;DR
Anchored Learning is a simple yet powerful offline fine-tuning framework designed to stop large language models (LLMs) from forgetting their general capabilities when adapting to new tasks. By replacing static regularization with a dynamically evolving "moving anchor" that interpolates between the current model and a reference model, it explicitly constrains distributional drift to a sequence of safe, local trust-region updates. The result is a method that achieves near-optimal target task performance while slashing catastrophic forgetting from over 53% down to under 5%.
What Problem Does This Paper Address?
Supervised Fine-Tuning (SFT) is the standard recipe for adapting an LLM to a specific domain or task. However, it suffers from a notorious flaw: catapulting the model into catastrophic forgetting. As the model learns the new task, its performance on previously acquired capabilities (like general reasoning, coding, or science) often plummets.
Recent research reveals that this forgetting is primarily driven by excessive distributional drift—the model's behavior shifts too far and too fast from its original state. While online Reinforcement Learning (RL) implicitly mitigates this by staying close to the base policy, it requires expensive data collection and complex pipelines. Standard offline SFT lacks any explicit mechanism to regulate this drift. Traditional fixes, like adding a static KL-divergence penalty back to the base model, often fail because the gradients of the new task and the penalty conflict, leading to poor convergence and suboptimal performance.
Methods
The authors introduce Anchored Learning, a two-level optimization framework that decouples where the model should go from how it fits the data, transforming global fine-tuning into a sequence of conservative local steps.
The framework operates in two loops:
- Outer Loop (Anchor Selection): At each iteration $t$, the framework constructs a temporary target distribution—the anchor ($q^{(t)}$)—by interpolating between the current trainable model ($p_{\theta^{(t)}}$) and a fixed, fully fine-tuned SFT reference model ($p_{sft}$).
- Inner Loop (Anchor Fitting): The anchor is detached from the computation graph, and the model parameters are updated over a few epochs via standard knowledge distillation, minimizing the KL-divergence between the model and the anchor ($KL(q^{(t)} \parallel p_\theta)$).
The authors explore two ways to interpolate:
- Probability-space interpolation: A linear combination of the predictive distributions (an arithmetic mean), which acts as a mode-covering constraint favoring task adaptation (plasticity).
- Logit-space interpolation: A linear combination of pre-softmax logits (a geometric mean), which acts as a mode-seeking constraint favoring stability.
Theoretically, the authors prove that this moving anchor guarantees a linear KL-divergence upper bound per iteration, ensuring smooth, stable transitions in the model's distribution space.
Datasets
The framework was evaluated across diverse target domains and general capability benchmarks:
- Target Tasks: iGSM (a synthetic grade-school math benchmark), MedCalc (medical calculation and reasoning), and IFEval (verifiable instruction-following).
- General Capabilities (Forgetting Evaluation): MMLU-Pro (knowledge/reasoning), Countdown (math), and a suite of coding benchmarks (MBPP, MBPP+, HumanEval, HumanEval+).
Key Insights and Ideas
- Dynamic vs. Static Targets: Static KL regularization forces the model to target a fixed compromise between the base and task models, which quickly becomes misaligned as training progresses. Anchored Learning’s moving anchor co-evolves with the optimization trajectory, drastically reducing gradient conflict.
- The Geometry of Logits: Logit-space interpolation mathematically behaves like a renormalized geometric mean. This induces a "mode-seeking" behavior that suppresses low-probability tails, making it exceptionally good at preserving general capabilities compared to probability-space interpolation.
- Path-Dependency Matters: The authors show that optimizing solely for target task accuracy can be deceptive. Stability is highly sensitive to the exact update schedule (the balance of inner vs. outer loop iterations). A poorly balanced schedule can cause the model to fall into "degradation basins" where general capabilities collapse even if target accuracy looks perfect.
Key Results
Anchored Learning consistently hit the Pareto frontier of the gain-stability trade-off across multiple model families (Qwen2.5 and Llama-3.2) and sizes (up to 7B parameters).
- Drastic Reduction in Forgetting: On iGSM and MedCalc, standard SFT caused general capability performance to drop by over 53%. Anchored Learning suppressed this degradation to under 5%.
- Maintained High Gains: On iGSM, Anchored Learning achieved a near-optimal target task accuracy of 75.2%, closely matching aggressive SFT while keeping general capabilities intact.
- Robust Scaling: The benefits held firm as models scaled from 1.5B to 7B parameters, demonstrating that explicit distributional control is a scalable alternative to expensive on-policy RL alignment.
Limitations and Future Work
The primary drawback of Anchored Learning is its computational overhead. Because it requires constructing an anchored target via interpolation and running an extra forward pass for knowledge distillation at each iteration, it increases training latency and memory usage by roughly 1.5× to 2× compared to standard SFT.
While this is still significantly cheaper than online reinforcement learning pipelines, it could pose a bottleneck in highly resource-constrained environments. Future work could explore extending this framework to multi-reference interpolation or developing hybrid on/off-policy distillation variants.
Summary updated