From Weeks to Hours: Fast and Principled SFT Data Generation for Reasoning LLMs

Hongyi Henry Jin, Wenhan Yang, Meysam Ghaffari, Carlos Morato, Baharan Mirzasoleiman

TL;DR

SFTPROBE is a novel framework that slashes the time required to curate high-quality reasoning data for LLMs from weeks to just a few hours. By probing the geometric "loss basin" of a model using brief LoRA adaptation and evaluating only the first 5% of reasoning tokens, it identifies the most difficult and diverse examples with 50x less compute than traditional LLM-based filtering.

What Problem Does This Paper Address?

Training "System 2" reasoning models (like OpenAI’s o1) requires Supervised Fine-Tuning (SFT) on long, multi-step reasoning traces. However, SFT is incredibly sensitive to data quality.

Current state-of-the-art pipelines use a "generate-then-filter" approach: they generate millions of long reasoning traces using strong teacher models and then use other expensive LLMs to score them for difficulty and diversity. This process is a massive computational bottleneck, often requiring weeks of H100 GPU time. The core challenge is that the "utility" of a reasoning trace is usually only visible after you've spent the tokens to generate it and the compute to train on it.

Methods

The authors introduce SFTPROBE, which treats data curation as a geometric problem rather than a search problem.

  1. Low-Rank Probing: Instead of full training, they perform a very brief LoRA (Low-Rank Adaptation) phase (only 100–400 iterations) on a tiny subset of data. This identifies the "dominant directions" in the model's loss landscape.
  2. Inflection Point Search: They observe that pretrained LLMs sit in a "loss basin." By perturbing the model's weights along the LoRA directions until they hit an "inflection point" (where the curvature of the loss changes), they find the optimal boundary to measure data quality.
  3. Loss Signatures: They generate only the first ~100–1000 tokens (roughly 5%) of a reasoning trace. They evaluate the loss of these early tokens at the perturbed checkpoints to create a "loss signature."
  4. Principled Selection:
    • Difficulty: Examples with higher loss at the inflection point are reliably more difficult.
  5. Diversity: Clustering these loss signatures ensures the final dataset provides diverse gradient signals.
  6. Teacher Selection: They propose a "rephrasing loss" metric: the best teacher is the one whose language the student model already "understands" best at the start of training.
Figure 2: (a) Loss landscape of Qwen2.5-3B-Instruct along two random directions. (b) LoRA directions have different curvatures. (c) Directions with lower curvature should be perturbed more to reach the inflection point.

Datasets

The study validates SFTPROBE across three distinct domains:

  • Mathematical Reasoning: Used a 192k subset of NuminaMath. They compared their results against the OpenThoughts-Math dataset (89k highly filtered examples).
  • Medical Reasoning: Used the M23k dataset for selection experiments and curated a new 1k dataset from 37k unfiltered medical questions.
  • Physics Reasoning: The authors introduced a new high-quality dataset combining 17k textbook questions with 3,084 sanitized Olympiad problems (1967–2018).

Key Insights and Ideas

  • Curvature equals Difficulty: One of the most striking "aha" moments is that a problem's difficulty is encoded in the curvature of the loss landscape. While loss at the starting point is a noisy signal, loss measured at the inflection boundary of the basin is a highly reliable proxy for difficulty.
  • The 5% Rule: You don't need the whole chain-of-thought to know if it's good. The first 5% of tokens (where the model rephrases the problem and sets a strategy) contains enough geometric information to predict the utility of the entire multi-thousand-token trace.
  • Anisotropy is Key: The loss basin isn't a uniform bowl; it's stretched (anisotropic). To get a good signal, you must perturb the model by different amounts in different parameter directions.
Figure 3: (left) correlation between the initial 100 token and the problem difficulty in the 2D contour plot of the loss. While the loss evaluated at the pretrained model does not have a good correlation with difficulty (blue region near the origin); the loss of perturbed parameters correlates well with difficulty (red region outside the blue circle). Crucially, the best separation of difficulty levels occurs at the inflection point (yellow band). (right) examples that are labeled more difficult by LLM have a higher curvature for their initial 100 token loss around the pretrained model parameters.

Key Results

  • Massive Efficiency: On math tasks, SFTPROBE achieved a 53x speedup in curation time compared to the OpenThoughts pipeline.
  • Less is More: Just 5k examples curated by SFTPROBE matched the performance of the 89k examples in OpenThoughts-Math. Increasing the budget to 7.5k examples outperformed the 89k baseline by 2.5% accuracy.
  • Physics Excellence: Using their curated physics dataset, they trained a 7B model that outperformed a model capable of winning a silver medal at the International Physics Olympiad (IPhO) 2025.
  • Teacher Alignment: They demonstrated that a "smarter" teacher isn't always better; selecting a teacher with lower rephrasing loss leads to significantly better student performance.
Figure 1: Comparison of the curated math reasoning dataset in OpenThoughts [6] and SFTPROBE. Training on 5k curated data matches the performance with 53x speedup, and on 7.5k improves the perfor- mance by 2.5% with 41x speedup.

Limitations and Future Work

  • Initial Generation: While it avoids full generation for the entire pool, SFTPROBE still requires a small initial set of fully generated traces to perform the brief LoRA adaptation.
  • Text-Only: The current work focuses on text-based reasoning. Extending this geometric probing to multi-modal reasoning (e.g., vision-language models) remains an open area.
  • Generalization: While tested on Qwen and Llama architectures, the authors acknowledge the need to verify if these "low-rank loss basin" assumptions hold for even more diverse or exotic model architectures.

Summary updated

Abstract

Reasoning-oriented post-training enables large language models (LLMs) to solve complex tasks via multi-step inference. Supervised fine-tuning (SFT) on high-quality reasoning traces is a particularly efficient approach, but its effectiveness depends critically on careful data curation. Existing pipelines rely on a costly generate-then-filter paradigm: large pools of long reasoning traces are produced by multiple teacher models and subsequently filtered for difficulty and diversity using additional LLMs, often requiring weeks of computation. In this work, we propose SFTProbe, a fundamentally different approach that bypasses this pipeline by directly predicting the quality of reasoning data. We show that a brief LoRA-based adaptation, combined with evaluating loss on only 5% of each reasoning trace, suffices to estimate both difficulty and diversity. SFTProbe is grounded in a geometric view of post-training, where pretrained LLMs lie in a low-rank, anisotropic loss basin. By probing this basin via low-rank perturbations, we construct compact loss signatures whose clustering captures diversity, while loss at curvature inflection points provides a robust proxy for difficulty. We also provide a simple criterion for teacher selection. Empirically, our approach reduces data curation time from weeks to hours while maintaining or improving performance. Remarkably, on mathematical reasoning, 5k generated examples match the highly filtered 89k-example in OpenThoughts-Math dataset, and 7.5k generated examples outperforms it by 2.5% in accuracy. We further introduce a high-quality physics reasoning dataset, and use it to train a model that outperforms an IPhO 2025 silver-medal-winning model. The code and the dataset are released at https://bigml-cs-ucla.github.io/SFTProbe-page/.
BibTeX
@inproceedings{jin2026from,
  author = {Hongyi Henry Jin and Wenhan Yang and Meysam Ghaffari and Carlos Morato and Baharan Mirzasoleiman},
  title = {{From Weeks to Hours: Fast and Principled SFT Data Generation for Reasoning LLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=4jOHUJJVCg},
}
Figure