Can picking better training examples stop AI models from writing plans that look perfect but ignore real-world physics?
Can data filtering fix SFT's tendency to learn formatting without physical feasibility?
This explores whether choosing better training examples for supervised fine-tuning (SFT) could stop models from learning answers that look right (clean JSON, the expected sections) but break real-world constraints, or whether the problem comes from how SFT learns in the first place.
This explores whether better selection of training examples could stop fine-tuned models from producing output that looks right but doesn't work. The starting case is optimization problems. There, SFT reliably teaches correct JSON structure, valid identifiers and the expected sections, yet the plans it produces still break physical constraints Does supervised fine-tuning actually improve reasoning on optimization problems?. The corpus doesn't test data filtering on that exact problem. It does say a lot about what filtering can and can't do for SFT, and the answer splits in two.
The hopeful half: several of SFT's known weaknesses turn out to be data problems rather than flaws in the method. RL seems to generalize better than SFT mainly because it quietly filters its own training signal toward medium-difficulty examples. In SFT, the hardest samples dominate the training updates and account for most of the drop in performance outside the training domain Why does RL generalize better than SFT to new domains?. Two other findings point the same way. When SFT data comes from a model close to the one being trained, and is scaled to RL's total number of attempts, SFT matches or beats RL Can SFT match or beat RL when data and scale align?. Larger SFT datasets also close the gap by covering rare solution methods Do larger SFT datasets actually cover rare solution methods?. So filtering out the hardest examples and drawing data from a matched source are real levers.
The sobering half: formatting versus feasibility may be a problem with how SFT is scored, not with which examples it sees. In chart-to-code generation, SFT stops improving no matter how much data is added. Its loss gives every token equal weight, so hundreds of tokens of boilerplate count as much as the few numbers that actually matter Why does scaling training data fail to improve SFT on chart-to-code?. Optimization output has the same shape: lots of structure and a handful of values that decide whether the plan is feasible. Filtering changes which examples the model sees, but it doesn't make those few critical values count for more. In that case, only a reward that checks the outcome does. The same pattern shows up beyond formatting: SFT raises final-answer accuracy while cutting how informative the reasoning is by 38.9%, which points to pattern-matching shortcuts Does supervised fine-tuning actually improve reasoning quality?.
There is a twist: RL is not immune to fixating on format either. RL post-training tends to amplify one output format from pretraining within the first epoch and suppress the others Does RL training collapse format diversity in pretrained models?. When rewards barely differ between attempts on the same prompt, RL also collapses into generic templates that ignore the input. The fix there is itself a kind of data filtering: train only on prompts where the rewards vary a lot Why do language models collapse into generic templates?. So filtering does help, but what it filters for is a usable learning signal, not cleaner examples.
The idea you may not have expected: format compliance can actively cover up computation. Models trained to emit filler tokens work out the correct answer in early layers, then overwrite it to produce output that fits the required format Do transformers hide reasoning before producing filler tokens?. Read that way, "formatting without feasibility" may not mean the model never learned the constraints. It may mean the training objective rewarded the surface so strongly that the substance got pushed aside. The corpus suggests a practical answer: use filtering to keep SFT from overfitting, then add a step that checks real constraints, because no choice of training examples can make the model care about values its loss treats as ordinary tokens.
Sources 9 notes
Supervised fine-tuning makes model outputs look correct—proper JSON structure, valid identifiers, expected sections—without making them physically feasible. The model learns surface features of solutions, not the reasoning to construct valid ones.
RL achieves better OOD generalization not through algorithmic superiority but by implicitly down-weighting hard samples that drive gradient dominance and overfitting in SFT. Hard samples alone account for most of SFT's OOD degradation.
When SFT trains on rollouts from a model close to its own distribution and scales to match RL's total rollout budget, it reaches parity with or outperforms RL on reasoning tasks. The generalization gap attributed to SFT memorization appears to be a data artifact, not an inherent property of the approach.
The paper shows that as SFT datasets scale, they represent more rare solution methods from the long-tailed distribution of strategies. These tail methods appear more often in evaluation and solve more questions as dataset size grows, suggesting coverage rather than bias is the limiting factor.
SFT's per-token loss treats boilerplate code equally with rare but critical data values and styling parameters. Scaling training corpus does not overcome this structural limitation—the loss cannot differentiate token importance, only RL-based reward functions can.
Show all 9 sources
SFT improves final-answer accuracy but reduces reasoning informativeness by 38.9% on average. Models reach correct answers through pattern-matching shortcuts rather than genuine inferential reasoning, becoming less auditable despite higher accuracy scores.
Controlled experiments show RL consistently amplifies one format distribution from pretraining within the first epoch while collapsing alternatives. The winning format depends on model scale, not necessarily performance, and is largely hidden when starting from proprietary pretrained models.
When within-prompt reward variance is low, task gradients weaken and regularization dominates, pushing policies toward generic outputs. SNR-Aware Filtering—selecting high-variance prompts before updates—recovers performance across tasks and scales.
Logit lens analysis shows models trained with hidden CoT tokens compute correct answers in layers 1-3, then actively suppress these representations in final layers to produce format-compliant filler output. The reasoning is fully recoverable from lower-ranked token predictions.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Rethinking "RL Generalizes, SFT Memorizes": The Role of SFT Data
- Why Does RL Generalize Better Than SFT? A Data-Centric Perspective on VLM Post-Training
- Generalization of RLVR Using Causal Reasoning as a Testbed
- SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-training
- Echo Chamber: RL Post-training Amplifies Behaviors Learned in Pretraining
- Mechanistically Interpreting the Role of Sample Difficulty in RLVR for LLMs
- Retaining by Doing: The Role of On-Policy Data in Mitigating Forgetting
- Does Math Reasoning Improve General LLM Capabilities? Understanding Transferability of LLM Reasoning