TL;DR
Standard supervised fine-tuning (SFT) relies on Negative Log Likelihood (NLL), but this paper reveals that NLL is often suboptimal for post-training LLMs. By introducing the model-capability continuum, the authors show that "prior-leaning" objectives (which ignore low-probability tokens) significantly outperform NLL on tasks the model already understands, while NLL remains essential for teaching models entirely new domains.
What Problem Does This Paper Address?
Supervised fine-tuning (SFT) is the bread and butter of LLM post-training, yet it often suffers from limited generalization. The authors argue the culprit is the default training objective: Negative Log Likelihood (NLL), or $-\log p$.
NLL is mathematically "optimal" when training a model from scratch. However, LLM post-training is a different beast. Pretrained models already possess massive "priors" (internal knowledge). Furthermore, SFT data—like long Chain-of-Thought reasoning—can be noisy. NLL forces the model to replicate every single token of the training data with high confidence. If the training data contains a slightly suboptimal reasoning step or a noisy token, NLL's steep gradient at low probabilities over-penalizes the model for not matching it, potentially "breaking" the useful knowledge the model already had.
Methods
The authors propose a unified framework to study probability-based objectives. They generalize NLL into a parametrized family: $$f^\alpha(p) = \frac{1 - p^\alpha}{\alpha}$$ * As $\alpha \to 0$, this recovers NLL ($-\log p$). * When $\alpha = 1$, it becomes the "plain-p" objective ($1 - p$).
They categorize these objectives based on their "logit-gradient weights" ($W_f$):
- Prior-leaning (Concave): Objectives like $-p$ or $-p^{10}$ that downweight low-probability tokens. They effectively say: "If you're really confused by this token, it might be noise; don't try too hard to learn it."
- Prior-averse (Convex): Objectives like NLL that provide massive gradients for low-probability tokens. They say: "You missed this token completely; change your weights drastically to fix it!"
The core of the paper is the model-capability continuum, which maps tasks based on how much the base model already knows about them (measured by the mean predicted probability on the training set).
Datasets
The study spans 8 model backbones (LLaMA 3.1, Qwen 2.5, DeepSeekMath) and 27 benchmarks across three anchor regions:
- Model-Strong (MS): Domains like Mathematics (NuminaMath) and Coding (Magicoder), where models have seen similar data during pretraining.
- Model-Intermediate (MI): Medical reasoning (m23k), where models have partial knowledge but require refinement.
- Model-Weak (MW): Figfont puzzles and low-resource languages (muri-it), where the model has zero or very little prior exposure.
Key Insights and Ideas
- The Reversal: There is no "one-size-fits-all" loss. On the Model-Strong end, prior-leaning objectives ($-p$) crush NLL. On the Model-Weak end, the situation reverses, and NLL is the clear winner.
- NLL as Noise Amplifier: In strong models, low-probability tokens in SFT data are often "noise" (irrelevant stylistic choices or minor errors). Because NLL has an infinite gradient as $p \to 0$, it forces the model to overfit to this noise, harming generalization.
- The Power of Thresholding: You don't necessarily need complex new math. Simply thresholding NLL—ignoring tokens where the model's predicted probability is below 0.2—yields massive gains in math and coding tasks.
- Convexity is the Dial: The "shape" of the loss function (convex vs. concave) acts as a proxy for how much we trust the model's existing knowledge versus the new supervision data.
Key Results
- Math Reasoning: On the Qwen2.5-Math-1.5B model, switching from NLL to a prior-leaning objective ($-p$) boosted average accuracy from 17.00% to 32.75%—a near doubling of performance.
- General Instruction Tuning: In a scaling sweep on AlpacaEval2, the authors found that as the Qwen model size increased (from 3B to 14B), the preference shifted from NLL to $-p$, confirming that stronger models benefit more from prior-leaning losses.
- Model-Weak Failure: Conversely, on Figfont puzzles (where the model knows nothing), $-p$ failed to learn anything (0% accuracy), while NLL achieved measurable progress.
Limitations and Future Work
- Adaptive Objectives: The authors suggest that instead of a fixed loss, we might need adaptive objectives that transition from prior-averse to prior-leaning as the model grows more capable during the training process.
- Miscalibration: Prior-leaning objectives rely on the model being "well-calibrated." If a model is confidently wrong (a hallucination), a prior-leaning loss might reinforce that error rather than correcting it.
- Better Capability Metrics: While mean probability is a good proxy, more refined diagnostics for "model capability" could help practitioners choose the optimal loss function for specific datasets automatically.
Summary updated