Introduction: The Token Inequality Problem
Standard Supervised Fine-Tuning (SFT) typically treats every token in a training sequence with equal priority. Whether a model is predicting a critical, semantically dense technical term or a common functional word like "the," the cross-entropy loss function weights them identically. This leads to a phenomenon known as "token-level inequality": functional words are easily mastered, causing their loss to drop rapidly, while semantically rich, task-specific tokens remain under-optimized. Consequently, models can become "lazy," achieving low average loss by mastering easy linguistic patterns while struggling with the core information necessary for complex reasoning.
SFT-GO: A Group Optimization Framework
To address this, we introduce SFT-GO (Supervised Fine-Tuning with Group Optimization). This framework applies principles from Group Distributionally Robust Optimization (Group DRO) to the token level, forcing the model to prioritize the most challenging and semantically significant parts of a sentence.
The SFT-GO process involves three primary stages:
- Token Grouping: Tokens are categorized into groups (e.g., Important vs. Unimportant). The paper evaluates three strategies: TF-IDF (rarity-based), LLMLingua-2 (semantics-based prompt compression), and Rho-1 (task-specific excess loss).
- Worst-Group Optimization: The training objective incorporates a "Worst-Group Loss" ($\mathcal{L}_{worst}$), compelling the model to focus on the group where performance is currently lagging.
- Adaptive Weighting: An annealing schedule for the parameter $\lambda$ allows the model to focus heavily on difficult groups early in training before shifting back toward standard loss to maintain overall coherence.
As shown in the figure above, standard training results in a significant loss gap between important and unimportant tokens. SFT-GO narrows this gap by redistributing optimization focus.
Experimental Results
We evaluated SFT-GO using the LIMA (1,030 high-quality examples) and Alpaca (51,760 synthetic examples) datasets across seven benchmarks, including MMLU, HellaSwag, and TruthfulQA.
SFT-GO consistently outperformed standard SFT baselines across different model scales (Llama-3.2-3B and Llama-3.1-8B). Notably, the semantics-based grouping (LLMLingua-2) provided the strongest gains in general reasoning tasks. On the LIMA dataset, the Llama-3.1-8B model using SFT-GO achieved an average score of 47.33, a significant improvement over the 45.12 baseline.
Discussion and Key Insights
Our findings highlight several critical aspects of token-level optimization:
- The Divergence Phenomenon: Standard SFT allows the model to "ignore" difficult tokens once the average loss is sufficiently low. SFT-GO effectively counters this by forcing the model to "work harder" on the semantic core.
- Contextual Importance: While statistical methods like TF-IDF are effective, semantic grouping via LLMLingua-2 yields superior results for reasoning, suggesting that contextual role is more important than simple frequency.
- Robustness: The method is resilient to variations in the "compression rate" (the ratio of important to unimportant tokens), showing consistent gains as long as 55% to 90% of tokens are categorized as unimportant.
Limitations
While empirically successful, the theoretical convergence proofs for SFT-GO rely on convexity assumptions that do not strictly apply to non-convex LLMs. Additionally, semantic grouping requires pre-trained models, which may limit applicability in low-resource languages or highly specialized domains. Future work will explore integrating fairness constraints to ensure that group optimization does not inadvertently amplify data biases.
Summary updated