arXiv:2609.00734cs.LGSep 2026

Manuscript Offprint

arXiv:2609.00734

Online Self-Weighted Fine-Tuning

Haiquan Wen, Yiwei He, Bei Peng, Guangliang Cheng

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

Abstract

Standard supervised fine-tuning (SFT) assigns the same explicit loss weight to every expert demonstration, regardless of the model's changing competence over training queries. Reinforcement learning (RL) based methods adapt update strength using model-generated rollouts, but often require substantially more sampling and can be unstable on hard tasks. We propose Online Self-Weighted Fine-Tuning (OSW-FT), a simple method that augments SFT with online, trajectory-level weighting. For each query, OSW-FT estimates the model's current success rate using a small number of inference-only rollouts and rescales the standard SFT loss accordingly. The optimization direction remains anchored to the expert trajectory, while the update magnitude adapts online. For binary-verifiable reasoning, we connect this weighting to SFT and RL at the gradient level, inspired by variance-reduction principles. The resulting estimator is unbiased for the exact OSW-FT surrogate update for any finite rollout count, and we analyze convergence with respect to the corresponding surrogate objective. Evaluated across Qwen3 series ranging from 0.6B to 4B on multiple challenging benchmarks (e.g., AIME), OSW-FT consistently improves over SFT on small-to-medium scale models. OSW-FT offers a favorable compute-performance trade-off as a practical approach for fine-tuning small-to-medium LLMs on binary-verifiable reasoning tasks with only 2 online rollouts.

1 Introduction

Post-training a LLM raises a deceptively simple question: how much should each training sample update the model at its current stage of training? This question is especially consequential for verifiable reasoning tasks, where the model's competence on individual training queries can vary substantially and evolves throughout training. Some queries may already be reliably solved by the

model and provide limited additional learning signal, while others remain near its capability frontier and warrant concentrated optimization effort. Standard Supervised Fine-Tuning (SFT) (Ouyang et al., 2022), however, assigns a uniform sample weight to every expert demonstration throughout training, treating already-mastered and unresolved queries identically. While this design is simple and stable, it allocates optimization effort coarsely across examples with very different learning value.

Reinforcement learning (RL) based post-training methods (Guo et al., 2025; Schulman et al., 2017) address this issue from a different direction. By computing advantages from model-generated rollouts, they adapt update strength to the model's current behavior and can focus learning on more informative examples. This adaptivity is appealing, but it comes with substantial online sampling cost and optimization instability, especially on hard reasoning tasks where failing to discover any correct trajectories entirely deprives the model of a viable learning direction. SFT avoids this failure mode by always providing a high-quality expert trajectory as the supervision target, but lacks a mechanism to modulate how strongly that trajectory should be learned from. This suggests a natural middle ground: preserve the stable, expert-anchored optimization direction of SFT, while introducing a lightweight online signal that adjusts update magnitude according to the model's current competence.

We propose Online Self-Weighted Fine-Tuning (OSW-FT), a simple post-training method for verifiable reasoning that changes how much to learn from each expert trajectory without changing what to learn from. For each training query, OSW-FT performs a small number of inference-only rollouts to estimate the model's current pass rate p^(q)\hat{p}(q), and reweights the standard SFT loss by a factor of (1−p^(q))(1 - \hat{p}(q)). This weight is largest for queries the model consistently fails on, thereby concentrating optimization effort near the capability frontier, and naturally decreases toward zero as the model masters a query. Crucially, OSW-FT uses online rollouts only to estimate this scalar weight; it does not optimize on model-generated trajectories, does not perform token-level reward shaping, and does not modify the training distribution. This design targets settings with a limited online rollout budget while retaining expert-trajectory supervision.

For binary-verifiable reasoning, we construct an explanatory framework connecting this weighting to RL control variates at the gradient level. OSW-FT restores this quantity online through a Monte Carlo estimate from a small number of rollouts. Under our analysis, the resulting estimator is unbiased for the exact OSW-FT surrogate update for any finite rollout count KK, and the convergence analysis applies to the corresponding surrogate objective under the stated assumptions. The method is naturally most useful when the training distribution remains challenging for the current model; when most training queries are already solved, the online weight correspondingly diminishes.

We evaluate OSW-FT on Qwen3 series (Yang et al., 2025) models ranging from 0.6B to 4B parameters across AIME (AIME, 2025), AMC (AMC, 2023), MATH-500 (Lightman et al., 2023), and GPQA-Diamond (Rein et al., 2024). Empirically, OSW-FT consistently improves over standard SFT on small-to-medium model scales. Compared with GRPO (Shao et al., 2024), the results vary across models and metrics: OSW-FT performs favorably in several limited-rollout settings, whereas GRPO remains stronger in some configurations. OSW-FT is therefore not intended as a general replacement for RL; it targets binary-verifiable reasoning when the available online rollout budget is limited. Ablation studies further validate the benefit of continuous online success-rate weighting over alternative hard-thresholding or random heuristics.

In summary, this work makes the following core contributions: First, we introduce OSW-FT, an expert-trajectory-anchored method that modulates SFT updates using an online success-rate weight for verifiable reasoning. Second, we analyze finite-rollout unbiasedness and convergence with respect to the proposed surrogate update. Third, evaluations show that OSW-FT consistently improves over standard SFT on small-to-medium scales and provides a favorable compute-performance trade-off under a limited online rollout budget.