Manuscript Offprint

arXiv:2609.01244

Post-Training Science for Supervised Fine-Tuning

Charles O'Neill, Mudith Jayasekara, Harry Partridge

Charles O'Neill¹ Mudith Jayasekara¹ Harry Partridge¹

¹Baseten

Every supervised fine-tuning run forces the same chain of decisions, such as learning rate, batch size, LoRA or full fine-tuning, how many epochs, which optimiser, and what data to feed the model. Each of these is typically rediscovered from scratch for every new model and dataset. Here we measure them under one instrument: a sweep that varies one lever at a time, and spans dense and mixture-of-experts models in two families (Qwen3 and Llama), on four real-world customer SFT datasets, for both LoRA and full fine-tuning. These datasets give a controlled testbed: each task carries an evaluation built with the customer, and its training data is produced by iterative supervised fine-tuning that refines model outputs until they pass that evaluation, so the supervised target is internally consistent and the task judge we report against is the criterion the data was built to satisfy. We ask how the optimal learning rate and batch size move with model scale, family, and data, and whether one selection rule transfers across them; what LoRA trades against full fine-tuning, and how its rank and α\alpha set what the adapter can learn; whether validation loss (or other metrics, such as loss landscape flatness) faithfully ranks downstream quality; whether post-training gains scale with model size and data volume, on a model ladder extended through mixtures-of-experts to 235B parameters; how many epochs to train before general instruction-following erodes; and whether a geometry-aware optimiser improves on AdamW. Each recommendation is paired with a measure of its uncertainty.

1. Introduction

Adapting an open base model to a task is now the dominant way language models reach production, yet the decisions that govern each supervised fine-tuning run are still made heuristically, as defaults inherited from pretraining, rules tuned on someone else's model, or a fresh ad-hoc sweep per job. Here we aim to replace those ad hoc decisions with controlled measurement on real customer tasks.

We answer one question per section. We sweep dense base models across two families (Qwen3 and Llama 3.1/3.2), plus several mixture-of-experts models as an out-of-architecture test, on four anonymised customer SFT datasets, for both LoRA and full fine-tuning, holding data, splits, and seeds fixed so that only the variable under study changes. A run enters the analysis only if it beat its pretrained baseline on validation NLL under the same masking, and cross-dataset comparisons are reported as improvement over that baseline, which removes the token-load confound of absolute loss (§2.4).

The four datasets give a controlled testbed. Each comes from a production task for which we built a reliable evaluation with the customer, and its training examples are generated by iterative supervised fine-tuning (O'Neill et al., 2025): a model drafts an output, an evaluator grades it and explains the failure, and the draft is refined until it passes, so every training pair already scores well under the task's own evaluation. This gives the sweep two properties it would not have on generic data. First, the supervised target is internally consistent, free of contradictory gold answers or label noise, so a change in validation NLL reflects the lever under study and not the data. Second, the criterion the data was built to satisfy is the production judge we score against downstream ( §4§4), which the customer validated. Appendix C provides more details.

Section 2 calibrates the two levers every run must set, learning rate and batch size. Across 0.6–32B and both families the optimal LoRA learning rate is flat at 10−310^{-3}, roughly 33×33\times the full fine-tuning optimum, and global batch trades loss against cost and has no single best value. The rule transfers unchanged to a held-out 30B mixture-of-experts, which fine-tunes like a median 8.5B dense model, and holds the monotone size trend when applied to 80B and 235B. Appendix A measures the wall-clock, compute, and memory costs behind the batch frontier.

Section 3 varies the adapter the calibration held fixed. Rank adds usable capacity up to about 64 and then plateaus, and α=32\alpha = 32 is the best scale in every cell, so the r=64r = 64, α=32\alpha = 32 default holds; rank 32 is the cheaper setting, giving up at most 0.003 nats.

Section 4 asks when validation loss, the metric every selection here relies on, ranks downstream quality. Within a fixed (model, dataset, recipe) cell it does (within-dataset-standardised Spearman -0.38 to -0.88), so selection by loss is sound inside a recipe, but it does not transfer across model families, and the flatness of the converged minimum, measured by the Fisher trace, adds nothing reliable at matched loss.

Section 5 asks which post-training resources scale predictably: model size, data counted in examples or in tokens, and the adapter's trainable-parameter budget, and whether LoRA and full fine-tuning scale differently. Its model ladder extends through Qwen3 mixtures-of-experts to 235B total parameters. On the dense ladders the at-defaults loss follows a saturating power law in size, steeper for full fine-tuning than for LoRA, and all three MoEs enter the trend at roughly the geometric mean of their active and total parameters. On Qwen3-4B, 8B, and 14B, tripling fresh examples lowers one-epoch LoRA validation loss in every experiment; the return is mostly dataset-specific rather than size-specific.

The remaining sections measure other components of post-training. Muon carries a narrow version of its pretraining advantage into SFT ( §6§6): at a learning rate about 3×3\times below AdamW's it reaches a marginally lower validation NLL and a flatter minimum on all four datasets, with judged task quality even and more general instruction-following retained on the IFEval dataset. Our epoch study ( §7§7) finds validation loss overfits past about two epochs while judged quality does not improve and instruction-following erodes, and it separates repeated passes from fresh data: adding examples lowers loss but does not move the optimal epoch ceiling beyond approximately two.

We make three decisions throughout these experiments. Selections are made on validation NLL, an assumption §4 tests. Cross-dataset comparisons use improvement over the pretrained baseline rather than absolute loss. And with four datasets and at most six sizes per family, we quote magnitudes with uncertainty and treat directions as the reliable findings, with point estimates carrying explicit uncertainty.

References (41)