Manuscript Offprint

arXiv:2609.09707

Which Tokens Should SFT Actually Learn? A Token-Trimming Perspective on Mathematical Reasoning

Yaning Jia, Chunhui Zhang, Wenxuan Xu, Xingjian Diao, Xiaoyuan Wang, Soroush Vosoughi

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

Abstract

Supervised fine-tuning (SFT) applies a uniform cross-entropy loss to all target tokens, even though different tokens provide unequal learning signals for mathematical reasoning. This uniform treatment can over-sharpen already mastered tokens while amplifying learning pressure on uncertain, low-confidence tokens, leading to suboptimal training dynamics. We propose Trimmed Logit-Gap SFT (TrimSFT), a simple token-level reweighting method that scales the SFT loss according to the logit gap between the gold token and its strongest competitor. TrimSFT trims supervision away from both extremes: tokens already mastered (large logit gap) and tokens weakly supported by the current model (small or negative logit gap), concentrating learning within an intermediate logit-gap region between them. We instantiate this principle with a Gaussian weight centered at margin mm with bandwidth τ\tau, requiring no reference model or additional forward pass. We evaluate TrimSFT on six base models from the Llama, Qwen, and DeepMath families across five mathematical reasoning benchmarks. TrimSFT consistently improves over standard SFT, achieving the best average performance on five out of six models, with gains of up to +26.9 points over SFT on MATH500. Further analyses show that the bandwidth τ\tau matters more than the exact margin location, and that half-trim variants that remove supervision pressure from only one side yield inferior trade-offs. A token-level logit-gap distribution analysis suggests that TrimSFT reshapes model confidence in a more balanced way than uniform SFT or monotonic reweighting methods. These results suggest that reasoning SFT can benefit from trimming both extremes rather than treating all tokens uniformly.

1 Introduction

Large language models (LLMs) have demonstrated strong capabilities on complex reasoning

tasks (Wei et al., 2022b; Wang et al., 2024; Fan et al., 2024), with mathematical reasoning serving as a key testbed for studying multi-step inference (Jia et al., 2025; Liu et al., 2025). Supervised fine-tuning (SFT) is widely used to adapt pretrained models to mathematical reasoning data (Yu et al., 2024; Yue et al., 2024), and often serves as an initialization stage for downstream reinforcement learning or preference optimization (Ouyang et al., 2022; Bai et al., 2022).

Despite its effectiveness, standard SFT applies token-level cross-entropy with uniform weighting across all target tokens (Lin et al., 2026), ignoring that different tokens can provide very different learning signals (Wu et al., 2026; Gong et al., 2026). In reasoning trajectories, some tokens may already be well mastered and continue to receive unnecessary sharpening pressure, which can contribute to over-confidence (Pereyra et al., 2017; Chen et al., 2025; Wei et al., 2022a). Other tokens may be highly uncertain, noisy, or beyond the model's current capability, yet still induce large losses and dominate the optimization signal. These two extremes suggest that treating all tokens uniformly can pull learning away from a potentially useful intermediate region (Wu et al., 2026; Lin et al., 2017; Han et al., 2018). This motivates a selective training objective that reduces supervision at both ends of the logit-gap spectrum while concentrating learning on an intermediate region.

We therefore propose Trimmed Logit-Gap SFT (TrimSFT), a token-level reweighting method that trims supervision away from both extremes: tokens already mastered (large logit gap) and tokens weakly supported by the current model (small or negative logit gap). For each target token, we compute its logit gap, defined as the margin between the gold token's logit and that of its strongest competitor, and use a Gaussian weight centered at margin mm with bandwidth τ\tau to scale the cross-entropy loss (Figure 1, left). Tokens whose logit gaps lie

*Correspondence to soroush.vosoughi@dartmouth.edu near mm receive stronger supervision, while tokens with much smaller or larger gaps are softly down-weighted, concentrating learning within a bounded intermediate region of the logit-gap spectrum. The weight is computed from the model's own logits in the same forward pass, requiring no reference model or additional forward pass. To examine the contribution of each side of this two-sided trimming profile, we further introduce two half-trim variants (Figure 1, right): Trim-Easy SFT (TrimSFT-E), which trims the hard side only and preserves full weight on high-gap (easy) tokens, and Trim-Hard SFT (TrimSFT-H), which trims the easy side only and preserves full weight on low-gap (hard) tokens.

Figure

Figure 1: Token weighting functions for SFT, TrimSFT, and its half-trim variants TrimSFT-E and TrimSFT-H. The margin mm determines the center of the weighting function, and τ\tau controls the width of the weighted region.

We evaluate TrimSFT on six base models from the Llama, Qwen, and DeepSeekMath families across five mathematical reasoning benchmarks. Our results show that TrimSFT consistently improves over standard SFT, and we further analyze the mechanism behind these gains. Our contributions are summarized as follows:

  • We introduce TrimSFT, a token-level reweighting method that scales the SFT loss by the logit gap between the gold token and its strongest competitor. It requires no reference model or additional forward pass.

  • TrimSFT achieves the best average performance on five out of six models, with gains of up to +26.9 points over SFT on MATH500. It also improves capability coverage and self-consistency under repeated sampling, as measured by pass@8 and best-of-8, respectively.

  • Ablations show that performance is more sensitive to the bandwidth τ\tau than to the margin mm, suggesting that the width of the selected logit-gap region is more important than its center.

  • Half-trim variants show that trimming only one side yields inferior trade-offs: TrimSFT-H col-

lapses below SFT, and TrimSFT-E degrades on the hardest problems. Token-level logit-gap distribution analysis further shows that TrimSFT reshapes model confidence in a more balanced way than uniform SFT or monotonic reweighting methods.

References (42)