NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SFTMix: Elevating Language Model Instruction Tuning with Mixup Recipe

Yuxin Xiao, Shujian Zhang, Wenxuan Zhou, Marzyeh Ghassemi, Sanqiang Zhao · OpenReview

Abstract

To acquire instruction-following capabilities, large language models (LLMs) undergo instruction tuning, where they are trained on instruction-response pairs using next-token prediction (NTP). Efforts to improve instruction tuning often focus on higher-quality supervised fine-tuning (SFT) datasets, typically requiring data filtering with proprietary LLMs or human annotation. In this paper, we take a different approach by proposing SFTMix, a novel Mixup-based recipe that elevates LLM instruction tuning beyond the conventional NTP paradigm, without relying on well-curated datasets. Observing that LLMs exhibit uneven confidence across the semantic representation space, we argue that examples with different confidence levels should play distinct roles in instruction tuning—confident data is prone to overfitting, while unconfident data is harder to generalize. Based on this insight, SFTMix leverages training dynamics to identify examples with varying confidence levels, interpolates them to bridge the confidence gap, and applies a Mixup-based regularization to support learning on these additional, interpolated examples. By propagating supervision signals across confidence regions and encouraging linear behavior between them, SFTMix mitigates overfitting in confident examples while enhancing generalization in unconfident ones. We demonstrate the effectiveness of SFTMix in both instruction-following and healthcare-specific SFT tasks, with consistent improvements across LLM families and SFT datasets of varying sizes and qualities.

Introduction

Supervised Fine-Tuning (SFT) is the critical stage where a base LLM learns to follow instructions. Currently, the dominant strategy for improving SFT is data curation: using humans or expensive proprietary models (like GPT-4) to filter for "high-quality" instruction-response pairs. However, this approach faces significant challenges, including high costs and the fact that models do not learn uniformly across the semantic space. Some regions are "easy" for the model, leading to potential overfitting, while others are "difficult," leading to poor generalization.

Researchers from MIT and Zoom propose that "quality" is relative to a model's current state. Instead of focusing solely on what data is used, SFTMix changes how the model is trained by leveraging its own internal confidence to "mix" examples, thereby bridging the gap between easy and hard regions of knowledge.

The SFTMix Methodology

SFTMix introduces a three-step "Mixup" recipe for the Next-Token Prediction (NTP) task, moving beyond the standard training paradigm:

  1. Confidence Mapping: A "reference" training run is performed to observe training dynamics. A confidence score is calculated for every example based on the model's average perplexity across several checkpoints.
  2. Data Splitting: The dataset is divided into two halves: a Confident subset (data the model finds easy) and an Unconfident subset (data the model struggles with).
  3. Linear Interpolation (The Mixup): During training, the model sees "mixed" examples created by linearly interpolating the hidden representations ($Z$) and target labels ($Y$) of a confident and an unconfident pair.
  4. Regularization: This mixed example serves as a regularization term ($\ell_{Mixup}$) added to the standard training loss ($\ell_{NTP}$), forcing the model to maintain linear behavior across different confidence regions.
Overview of the SFTMix training pipeline, illustrating data splitting, interpolation, and the final regularization loss.

Experimental Results

SFTMix was evaluated across a wide range of scenarios, including general instruction tuning (Alpaca-52K, UltraChat-200K, Tulu3-939K) and domain-specific healthcare tasks (MedAlpaca-263K). The researchers tested the recipe on several model families, including Llama-3.1-8B, Mistral-7B-v0.1, and Qwen-2.5-14B.

General Instruction Following

SFTMix consistently outperformed standard NTP across every dataset and model family. For instance, on the Alpaca-52K dataset with Llama-3.1-8B, SFTMix improved the MT-Bench score from 4.36 to 4.58 and the AlpacaEval-2 Length-Controlled Win Rate from 8.65% to 10.32%.

Performance comparison showing SFTMix's consistent gains over standard NTP across multiple datasets and model architectures.

Specialized Domains and Human Preference

In the medical domain, SFTMix increased average accuracy by approximately 1.5% absolute across four benchmarks, outperforming existing specialized models like Meditron and BioMistral. Furthermore, in blinded head-to-head human evaluations, SFTMix-tuned models achieved a 42.5% win rate, significantly higher than the 26.5% achieved by standard NTP models.

Key Insights and Discussion

  • The Confidence Gap: Visualization via t-SNE reveals that confident and unconfident examples occupy distinct regions in the model's semantic space. SFTMix acts as a bridge, propagating supervision signals from easy regions to hard ones.
  • Mixup as a Smoother: By training on interpolations, SFTMix encourages a smoother, more continuous decision boundary, mitigating the "jagged" boundaries often caused by overfitting to specific phrasing.
  • Quality vs. Confidence: Interestingly, "high-quality" data (as judged by GPT-4) does not always align with "high-confidence" data. This suggests that model-specific training dynamics provide a signal that generic quality filters miss.
  • Weak-to-Strong Transfer: The computational overhead of the reference run can be mitigated by using a smaller model (e.g., Gemma-2B) to generate confidence scores for a larger model (e.g., Llama-8B).

Conclusion

SFTMix represents a robust and scalable alternative to expensive data filtering. By utilizing internal training dynamics and Mixup-based regularization, it enhances generalization and reduces overfitting across diverse tasks and model families. While future work is needed to test the recipe on 70B+ parameter models and during the pre-training phase, SFTMix currently offers a highly effective method for improving instruction tuning in both general and specialized domains.

Summary updated

BibTeX
@misc{xiao2024sftmix,
  author = {Yuxin Xiao and Shujian Zhang and Wenxuan Zhou and Marzyeh Ghassemi and Sanqiang Zhao},
  title = {{SFTMix: Elevating Language Model Instruction Tuning with Mixup Recipe}},
  year = {2024},
  eprint = {2410.05248},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.05248},
}
Figure