arXiv:2611.00554cs.LGOct 2026

Manuscript Offprint

arXiv:2611.00554

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

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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/.

1 Introduction

Large language models (LLMs) have recently demonstrated an emerging ability to solve complex tasks by allocating substantial computation to reasoning at inference time [25, 7, 23, 8]. Unlike instruction tuning—where models learn to produce answers in a single pass, akin to fast “System 1” thinking—reasoning fine-tuning encourages slower, deliberative “System 2” behavior, where models generate intermediate steps and refine them iteratively. Enabling such capabilities relies on post-training, either through large-scale reinforcement learning (RL) [7, 25] or supervised fine-tuning (SFT) on high-quality reasoning traces [23, 8, 6]. While RL is effective but costly, SFT is far more efficient, yet highly sensitive to data quality—particularly the diversity and difficulty of reasoning trajectories [9, 10]—making data curation a key bottleneck.

Reasoning data differs fundamentally from standard instruction-tuning corpora. Instead of short question-answer pairs, reasoning traces can span thousands—or even hundreds of thousands—of tokens [23, 6]. Current pipelines therefore rely on a costly generate-then-filter paradigm: multiple strong

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

teacher models are used to produce large pools of candidate traces, which are subsequently filtered using LLM-based heuristics for difficulty and diversity, followed by downstream training to evaluate their utility [8, 6]. This process is not only computationally expensive but also slow, often requiring weeks of iterative generation, filtering, and evaluation. These limitations raise a fundamental question:

can we directly generate high-quality reasoning data without resorting to large-scale sampling and filtering? This is very challenging because the quality of a reasoning trace—particularly its difficulty and diversity—is typically only observable after full generation and training.

In this work, we introduce a principled and efficient alternative that bypasses this pipeline entirely. SFTPROBE builds on a recent observation that the loss over the initial portion of reasoning traces, evaluated along the training trajectory, provides useful signals about the quality of full reasoning [12]. However, prior methods require training on a large corpus of full reasoning traces to obtain such trajectories. We relax this requirement and show that a brief LoRA-based adaptation on a small set of fully generated examples, is sufficient to reliably estimate both difficulty and diversity. This enables the direct construction of high-quality SFT datasets without exhaustive generation or filtering, reducing data curation time from weeks to minutes.

SFTPROBE is grounded in a geometric perspective of post-training, in which pretrained LLMs are understood

to operate within a low-rank loss basin characterized by relatively flat curvature [5]. From a theoretical standpoint, we show that examples with similar loss values at the endpoints of this basin—corresponding to inflection points where curvature changes—exhibit tightly bounded differences in their gradients during SFT, and therefore behave similarly under training. However, the loss landscape is inherently anisotropic: curvature varies significantly across directions, implying that reaching the basin boundary requires direction-dependent perturbation magnitudes.

To account for this heterogeneity, we perturb the model along the LoRA directions to reach the boundary of the basin, and thereby obtain a set of representative checkpoints. We then evaluate the loss on only the initial portion of each reasoning trace (as little as 5% of tokens) across these checkpoints, producing a compact loss signature for every example. Clustering these signatures provably groups examples with bounded gradient variation during SFT, providing a principled notion of diversity without requiring full training. In addition, we identify a highly reliable proxy for difficulty based on the loss at the inflection boundary of the basin, again computable from only a tiny prefix of the reasoning trajectory. Finally, this geometric framework yields a simple and efficient criterion for teacher selection: the best teacher is the one that minimizes early-token loss under the pretrained model, aligning data quality with the intrinsic structure of the loss landscape.

We validate SFTPROBE on medical, mathematical, and physical reasoning tasks. Remarkably, with only 5K directly generated examples, SFTPROBE matches the performance of large-scale datasets such as OpenThoughts, which contains 89K carefully filtered examples constructed through expensive pipelines; and with 7.5k generated examples, our approach outperforms it by 2.5% in accuracy. In the domain of physics, we further present, to our knowledge, the first high-quality SFT dataset for reasoning. For medical reasoning, SFTPROBE outperforms data selection baselines, with substantially lower costs. Together, these results demonstrate that high-quality reasoning data can be predicted rather than exhaustively searched, offering a new direction for scalable and principled post-training of LLMs.

Figure

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 performance by 2.5% with 41x speedup.

References (32)