Massive Supervised Fine-tuning Experiments Reveal How Data, Layer, and Training Factors Shape LLM Alignment Quality

Yuto Harada, Yusuke Yamauchi, Yusuke Oda, Yohei Oseki, Yusuke Miyao, Yu Takagi · OpenReview

Abstract

Supervised fine-tuning (SFT) is a critical step in aligning large language models (LLMs) with human instructions and values, yet many aspects of SFT remain poorly understood. We trained a wide range of base models on a variety of datasets including code generation, mathematical reasoning, and general-domain tasks, resulting in 1,000+ SFT models under controlled conditions. We then identified the dataset properties that matter most and examined the layer-wise modifications introduced by SFT. Our findings reveal that some training-task synergies persist across all models while others vary substantially, emphasizing the importance of model-specific strategies. Moreover, we demonstrate that perplexity consistently predicts SFT effectiveness—often surpassing superficial similarity between trained data and benchmark—and that mid-layer weight changes correlate most strongly with performance gains. We will release these 1,000+ SFT models and benchmark results to accelerate further research.

Introduction

Supervised Fine-tuning (SFT) is the standard "Phase 2" of training an LLM, taking a raw base model and teaching it to follow instructions. Despite its ubiquity, SFT remains something of a black box. We know it works, but we don't fully understand the "synergies" between specific datasets and base models, which layers are doing the heavy lifting, or how much data is actually necessary. Previous studies often compared disparate models under uncontrolled conditions. This paper provides a rigorous, large-scale quantitative analysis to answer: What makes a dataset "good" for SFT? Which parts of the model change the most? And how do factors like LoRA vs. full-parameter tuning really compare in the model's internal "landscape"?

Methods

The researchers employed a "brute force" but highly controlled approach to demystify the SFT process. They trained 1,070 SFT models using 12 different base models (7B–9B parameters) across English, Chinese, and Japanese families. The study varied training datasets, sample sizes (1k vs. 20k), and tuning methods (Full-parameter vs. LoRA).

Overview of the experimental pipeline involving base models, diverse datasets, and benchmark analysis.

The study utilized 10 distinct training datasets categorized into four groups: General (Alpaca, LIMA, UltraChat), Coding (CodeAlpaca, Magicoder), Math (OpenMathInstruct, MathInstruct), and Classic NLP (FLAN subsets). Evaluation was conducted across 12 benchmarks, including MMLU, GSM8K, and MT-Bench. To analyze the models, the authors used log-likelihood projection to visualize the "SFT Landscape" and layer-wise analysis to examine weight changes and Intrinsic Dimensionality (ID).

Key Insights and Results

The massive scale of the experiments yielded several critical findings regarding LLM alignment:

The "Perplexity is Key" Law

The best predictor of a dataset's effectiveness is its perplexity relative to the base model. If the base model already "understands" the distribution of the training data (low perplexity), SFT is significantly more effective. This suggests that alignment is more about refining existing knowledge than learning entirely new domains.

Architecture Over Data

Latent space visualizations show that models cluster almost perfectly by base model family (e.g., Llama vs. Mistral) rather than by the training data used. This indicates that the "inductive bias" of the pre-trained model is the dominant factor in its final aligned state.

Comprehensive analysis of performance gains, model correlations, and cumulative explained variance.

The Mid-Layer Sweet Spot

Weight changes in the middle layers (around 60% depth) correlate most strongly with performance gains. These layers appear to actively expand the model's representational space. Intrinsic Dimensionality (ID) analysis confirmed that SFT expands the dimensionality of the embedding space starting at these mid-layers.

Training Efficiency and Transfer

For many tasks, a high-quality set of just 1,000 samples provides enough signal for effective alignment. Furthermore, SFT on English data showed robust cross-lingual transfer to Japanese and Chinese benchmarks, suggesting that SFT aligns underlying concepts rather than surface-level language patterns.

Conclusion and Limitations

This study provides a comprehensive map of the SFT landscape, highlighting the importance of base model architecture and mid-layer transformations. While the findings are robust for the 7B–9B parameter class, future work is needed to determine if these "laws" hold for larger models (e.g., 400B+) or Mixture-of-Experts architectures. Additionally, while English-only SFT data showed cross-lingual transfer, investigating multi-lingual SFT data interactions remains a key area for future research.

Summary updated

BibTeX
@inproceedings{harada2025massive,
  author = {Yuto Harada and Yusuke Yamauchi and Yusuke Oda and Yohei Oseki and Yusuke Miyao and Yu Takagi},
  title = {{Massive Supervised Fine-tuning Experiments Reveal How Data, Layer, and Training Factors Shape LLM Alignment Quality}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=s1y6nC7T1h},
}
Figure