Anchored Supervised Fine-Tuning

He Zhu, Junyou Su, Peng Lai, Ren Ma, Wenjia Zhang, Linyi Yang, Guanhua Chen

The Post-Training Dilemma

Post-training Large Language Models (LLMs) typically forces a choice between two distinct paths. Supervised Fine-Tuning (SFT) is computationally efficient and stable but often results in "behavioral cloning"—the model memorizes surface-level patterns in the training data rather than learning the underlying logic. Conversely, Reinforcement Learning (RL) optimizes for actual outcomes (such as correctly solving a math problem), leading to superior generalization. However, RL is notoriously expensive, slow, and difficult to tune.

A recent middle-ground approach, Dynamic Fine-Tuning (DFT), attempted to improve SFT by reweighting training samples based on the model's own token probabilities. While DFT demonstrated success in specific domains like mathematical reasoning, it proved highly unstable in others. This paper identifies the root cause of this instability: DFT lacks distributional anchoring. Without an anchor, the model enters a feedback loop, over-optimizing on a narrow subset of data until its performance drifts and ultimately collapses.

Introducing Anchored Supervised Fine-Tuning (ASFT)

The authors analyze these post-training methods through the lens of Reward-Weighted Regression (RWR). Their theoretical analysis proves that DFT essentially creates a "tighter" lower bound on the RL objective than standard SFT. However, this tightness comes at the cost of stability.

To resolve DFT's instability, the researchers introduce Anchored Supervised Fine-Tuning (ASFT). The core innovation is the addition of a lightweight KL-divergence regularization term to the DFT objective. This term acts as a "trust region," ensuring the model does not stray too far from its starting point (the base model) while it explores more optimal behaviors.

Technically, ASFT operates by:

  1. Reweighting tokens based on their current probability (retaining the benefits of DFT).
  2. Adding a KL penalty against the base model to prevent distributional drift.
  3. Utilizing a "Forward KL" approach, which encourages the model to maintain a broad distribution (mode-covering) rather than collapsing onto a few high-probability answers (mode-seeking).

Key Insights: Stability, Drift, and Direction

  • The Tightness-Stability Trade-off: The paper proves that while DFT provides a mathematically tighter bound for optimization than SFT, that very tightness makes it fragile. ASFT finds the optimal balance where the bound is tight enough to facilitate learning but anchored enough to maintain stability.
  • Drift is the Enemy: The authors demonstrate that DFT's KL divergence from the base model spikes rapidly during training, signaling a catastrophic loss of the model's original knowledge. ASFT keeps this KL divergence flat and controlled, preserving out-of-domain capabilities while improving in-domain accuracy.
Training dynamics showing ASFT maintaining high accuracy and low KL divergence compared to DFT's instability.
  • Forward KL is Essential: The direction of the KL penalty is critical. Forward KL (from the base model to the current model) prevents the model from "forgetting" the breadth of its original knowledge, which is crucial for maintaining performance across diverse tasks.
  • Efficiency via LoRA: To mitigate the memory overhead of keeping the base model in VRAM for the KL penalty, the authors developed ASFT-LoRA. This variant allows the anchor to be computed using a single model instance, making it nearly as memory-efficient as standard SFT (requiring ~40GB of VRAM compared to ~88GB for full-parameter anchoring).

Empirical Results

The researchers evaluated ASFT across three demanding domains: Mathematical Reasoning, Medical Knowledge, and Code Generation. ASFT consistently outperformed both SFT and DFT across the board.

ASFT consistently outperforms Base, SFT, and DFT models across various architectures on the MedMCQA benchmark.
  • Medical Knowledge: In knowledge-intensive tasks, ASFT delivered an +8.28 point improvement over SFT. In contrast, DFT caused performance to drop significantly due to training instability.
  • Mathematical Reasoning: On a 100k sample dataset, ASFT improved performance by +17.89 points (142%) over the base model and +4.85 points over DFT.
  • RL-Level Performance at a Fraction of the Cost: ASFT achieved results comparable to advanced RL methods like DAPO but required only 3% of the training computational cost.

Limitations and Future Directions

Despite its strong empirical success, ASFT has a few limitations. Its effectiveness is inherently tied to the quality of the base model; if the base model has poor "priors" for a specific domain, anchoring to it might constrain growth. Additionally, while much more stable than DFT, ASFT still requires tuning the anchoring coefficient hyperparameter ($\lambda$).

Looking forward, the authors suggest extending ASFT to continual learning, where the anchoring mechanism could naturally prevent "catastrophic forgetting" as a model learns new tasks sequentially. They also highlight the potential for "domain-adaptive anchoring," where the strength of the anchor dynamically adjusts based on the specific task at hand.

Summary updated

BibTeX
@inproceedings{zhu2026anchored,
  author = {He Zhu and Junyou Su and Peng Lai and Ren Ma and Wenjia Zhang and Linyi Yang and Guanhua Chen},
  title = {{Anchored Supervised Fine-Tuning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=PORko7QT64},
}
Figure