TL;DR
This paper investigates how knowledge and confidence learned during pretraining of language models transfer to supervised fine-tuning (SFT). They discover that this transfer is highly dependent on the task category, model scale, and benchmark, revealing that what works for small models or certain tasks might not for others, especially concerning model confidence.
What Problem Does This Paper Address?
Developing large language models (LLMs) involves a two-stage process: pretraining on massive text datasets and then fine-tuning on specific instruction-following data. Decisions made during pretraining, like choosing datasets and evaluating performance on benchmarks, are crucial but often rely on the assumption that pretraining performance reliably predicts downstream performance after fine-tuning. This paper questions this assumption by systematically analyzing how accuracy and confidence metrics established during pretraining persist through SFT, and how these transfer dynamics change with model scale and task type.
Methods
The authors employ a suite of correlation protocols to quantify the transfer of accuracy and confidence. They analyze these metrics across various pretraining data mixtures and two model scales (240M and 1B parameters) on 20 benchmarks spanning four capability categories: Commonsense Reasoning, Scientific Reasoning, Natural Language Inference (NLI), and Semantic Understanding. Key protocols include:
- Cross-Stage Correlation: Measuring how pretraining accuracy/confidence correlates with SFT accuracy/confidence for a given benchmark.
- Intra-Category Correlation: Examining how benchmarks within the same category co-vary in their performance across data mixtures, both during pretraining and SFT, and how this relationship transfers.
- Performance-Confidence Alignment: Quantifying how well a model's confidence matches its accuracy, and how this alignment transfers across stages.
Datasets
The paper uses the following datasets:
- Pretraining Data Mixtures: Nine distinct mixtures are created by combining three web-crawled data sources (RefinedWeb, FineWeb-Edu, DCLM), two code data sources (StarCoder, The Stack v2), and curated knowledge sources (RedPajama-v2).
- Supervised Fine-Tuning (SFT) Dataset: Tulu-v2-mix, a curated collection of instruction-following datasets.
- Evaluation Benchmarks: 20 benchmarks across four categories: Commonsense Reasoning (e.g., HellaSwag, PIQA), Scientific Reasoning (e.g., ARC-Challenge, SciQ), Natural Language Inference (e.g., MNLI, QNLI), and Semantic Understanding (e.g., QQP, MRPC).
Key Insights and Ideas
- Category Matters: Transferability isn't uniform. Scientific and Commonsense tasks show strong, predictable transfer, while NLI and Semantic tasks are more volatile, suggesting SFT significantly reshapes how models handle them.
- Confidence is Tricky: Confidence transfer behaves differently from accuracy. Smaller models (240M) show more stable confidence transfer, suggesting a global calibration "fingerprint." Larger models (1B) exhibit more task-specific calibration, meaning pretraining confidence is less predictive of SFT confidence.
- Scale Reverses Dynamics: For accuracy, larger models (1B) generally show better transfer. However, for confidence, smaller models (240M) maintain stronger transfer. This implies larger models undergo more significant confidence reorganization during SFT.
- Intra-Category Synergy vs. Competition: At smaller scales, improving one benchmark in a category might hurt others (competition). At larger scales, this shifts towards synergy, where improvements are more generalized within a category.
- Educational Filtering is Scale-Dependent: Aggressive filtering for educational content (FineWeb-Edu) can boost NLI accuracy at smaller scales but severely degrade its calibration. At larger scales, this effect reverses, highlighting the danger of extrapolating data curation decisions from small models.
Key Results
- Accuracy Transfer: Science and Commonsense benchmarks show consistently high cross-stage accuracy correlation (r > 0.5) across scales. Semantic tasks show weaker transfer.
- Confidence Transfer: At 240M scale, confidence transfer is strong (mean r = 0.68), with Commonsense and Science showing particularly high persistence (r = 0.87, 0.82). At 1B scale, confidence transfer is weaker and more heterogeneous.
- Benchmark Reliability: HellaSwag is a robust predictor of SFT performance across scales. WiC, WSC, MultiRC, WinoGrande (at 240M), and MNLI (at 240M) are identified as unreliable predictors.
- Scale Dynamics: The 1B model shows stronger accuracy transfer (r=0.60 vs 0.51 for 240M), but the 240M model shows stronger confidence transfer (r=0.68 vs 0.39 for 1B).
- Performance-Confidence Alignment: Science tasks consistently show high alignment (r ≈ 0.8), indicating good calibration. Commonsense and Semantic tasks show weak or negative alignment (r ≈ -0.1 to -0.2), suggesting systematic overconfidence on incorrect predictions. This alignment largely persists through SFT.
- Educational Filtering: FineWeb-Edu improves NLI accuracy by +5.0pp at 240M but degrades alignment by -0.80. At 1B, this reverses: -4.4pp accuracy degradation and slight alignment improvement.
Limitations and Future Work
- Model Scale: Experiments were limited to 240M and 1B parameter scales. Phenomena emerging at larger scales (7B+) are not captured and warrant further investigation.
- SFT Data and Protocol: A single SFT dataset (Tulu-v2-mix) and protocol were used. Different SFT datasets or multi-stage fine-tuning (e.g., with RLHF) might yield different transfer dynamics.
- Benchmark Coverage: Important capabilities like long-context reasoning, code generation, and safety were not evaluated, meaning findings might not generalize to these domains.
- Data Mixture Granularity: The 9 data mixtures represent a sparse sampling. Finer-grained variations in data composition could reveal more nuanced patterns.
- Future Work: The authors suggest exploring larger scales, different SFT regimes, broader benchmark coverage, and investigating the impact of knowledge-enriched content (like textbooks) and synthetic data on transfer.
Summary updated