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

The Finetuner's Fallacy: When to Pretrain with Your Finetuning Data

Christina Baek, Ricardo Pio Monti, David Schwab, Amro Abbas, Rishabh Adiga, Cody Blakeney, Maximilian Böther, Paul Burstein, Aldo Gael Carranza, Alvin Deng, Parth Doshi, Vineeth Dorna, Alex Fang, Tony Jiang, Siddharth Joshi, Brett W. Larsen, Jason Chan Lee, Katherine L. Mentzer, Luke Merrick, Haakon Mongstad, Fan Pan, Anshuman Suri, Darren Teh, Jason Telanoff, Jack Urbanek, Zhengping Wang, Josh Wills, Haoli Yin, Aditi Raghunathan, J. Zico Kolter, Bogdan Gaza, Ari Morcos, Matthew Leavitt, Pratyush Maini

TL;DR

The common practice of reserving domain-specific data solely for a final finetuning stage is a compute-heavy mistake termed "the finetuner's fallacy." By instead interleaving small fractions (1–5%) of specialized data early during pretraining—a strategy called Specialized Pretraining (SPT)—practitioners can achieve superior domain performance, drastically reduce overfitting, and mitigate the catastrophic forgetting of general knowledge. Amortized over inference, SPT allows smaller models to match or outperform models three times their size.

What Problem Does This Paper Address?

When deploying language models in specialized industries (e.g., medicine, law, or music), practitioners typically take a massive, off-the-shelf model pretrained on general web text and finetune it on their proprietary data. This approach assumes that finetuning is the cheapest and most natural path to domain adaptation.

However, this paper exposes two major flaws in this conventional recipe:

  1. Overfitting: Specialized datasets are often small, causing models to overfit rapidly after just a few epochs of finetuning.
  2. Catastrophic Forgetting: Forcing a model to adapt to a completely new distribution late in its training lifecycle requires aggressive weight updates, which wipe out its general capabilities.

The authors challenge this disjointed pipeline, asking whether introducing specialized data as early as the pretraining phase yields more robust, efficient models.

Methods

The authors introduce Specialized Pretraining (SPT). Instead of keeping general pretraining and domain-specific finetuning completely separate, SPT mixes a small fraction ($\delta \in [0.1\%, 5\%]$) of the target domain data directly into the general pretraining corpus. Because the domain datasets are small, the tokens are repeated between 10$\times$ and 50$\times$ across the pretraining run, interleaved alongside general web text. Following this pretraining phase, the model is finetuned exclusively on the domain dataset as usual.

Figure 1: Specialized pretraining (SPT) mixes the finetuning dataset into pretraining as a small fraction of tokens, repeating it 10–50× over the course of training. Compared to general pretraining (dashed), SPT (solid) achieves lower domain test loss (blue) and less forgetting of general knowledge (gold) throughout finetuning. For narrow domains, these gains can overcome differences in model scale.

To make this strategy predictable, the authors also derive Overfitting Scaling Laws. Traditional scaling laws fail to capture what happens when data is heavily repeated. The authors resolve this by decomposing the test loss into two separate power laws: one for training loss (with a negative exponent) and one for the train-test gap (with a positive exponent). This allows developers to forecast exactly when aggressive data mixing will trigger overfitting, without running expensive full-scale training sweeps.

Datasets

The experiments were conducted using the OLMo-1B architecture (with variants from 300M to 3B parameters) pretrained on the Dolma web corpus. The specialized domains included three distinct datasets of roughly 300M tokens each:

  • MusicPile: Symbolic music notation (ABC format), representing a severe distribution shift from standard web text.
  • ChemPile: Chemistry literature, reasoning, and instruction data.
  • ProofPile: Formal mathematical proofs.

For a controlled study on distributional overlap, they also utilized FineWeb2 (English/Japanese monolingual data) and JParaCrawl v3.0 (parallel translation text). Downstream evaluation relied on MusicTheoryBench, ChemBench, and MATH.

Key Insights and Ideas

  • The Finetuner's Tax: While finetuning an off-the-shelf model avoids upfront pretraining costs, it forces you to serve a larger model to achieve your target performance. A smaller model trained via SPT requires more upfront compute but is significantly cheaper to serve. When amortized over extended inference deployments, SPT saves both compute and money.
Figure 3: The finetuner’s tax. Training a 1B model with specialized pretraining (SPT) costs more upfront than finetuning a 3B model on domain data alone, but the 3× smaller model is cheaper to serve. The break-even point arrives after approximately 1 trillion inference tokens, after which SPT saves both compute and money while often delivering comparable or better performance.
  • Diffuse Exposure as a Regularizer: Why does SPT outperform finetuning on the exact same data? During pretraining, domain tokens make up only a tiny fraction of each batch. The surrounding general data acts as a natural regularizer, preventing the model from memorizing the domain data even after dozens of repetitions.
  • The Misalignment Advantage: SPT provides the most dramatic benefits when the target domain is highly underrepresented in standard web text (like symbolic music or formal proofs). If a domain already has high overlap with general web text (like chemistry), the relative gains are more modest.

Key Results

  • Compute Reductions: SPT reduces the number of pretraining tokens required to hit a specific post-finetuning domain loss by up to 1.75$\times$ on MusicPile, 1.56$\times$ on ProofPile, and 1.40$\times$ on ChemPile.
Compute and Parameter Efficiency gains from SPT across different domains
  • Compensating for Model Scale: On domains far from web text, a smaller model with SPT can beat a larger standard model. Specifically, a 1B SPT model closed 133% of the performance gap on ProofPile, completely outperforming a 3B standard pretrained model.
  • Less Forgetting, Better Accuracy: Because SPT models enter the finetuning phase already familiar with the domain, they require less aggressive optimization. This directly translates to better preservation of general knowledge and a 4 to 6 percentage point boost on downstream tasks like MATH and MusicTheoryBench.

Limitations and Future Work

While SPT proves highly effective, the authors note a few boundaries:

  • Extreme Data Scarcity: If a domain dataset is exceptionally small (under tens of millions of tokens), even the diffuse exposure of SPT can cause overfitting during long pretraining runs. In these hyper-constrained regimes, introducing domain data later in pretraining (Specialized Continued Pretraining) is more effective.
  • Mechanistic Open Questions: The precise reason why diffuse pretraining exposure acts as a superior regularizer compared to standard data replay during finetuning remains an open theoretical question.
  • Scale Limits: The empirical evaluations in this paper top out at 3B parameters; validating these overfitting scaling laws on frontier-scale models (70B+) remains an area for future exploration.

Summary updated

BibTeX
@inproceedings{baek2026finetuner,
  author = {Christina Baek and Ricardo Pio Monti and David Schwab and Amro Abbas and Rishabh Adiga and Cody Blakeney and Maximilian Böther and Paul Burstein and Aldo Gael Carranza and Alvin Deng and Parth Doshi and Vineeth Dorna and Alex Fang and Tony Jiang and Siddharth Joshi and Brett W. Larsen and Jason Chan Lee and Katherine L. Mentzer and Luke Merrick and Haakon Mongstad and Fan Pan and Anshuman Suri and Darren Teh and Jason Telanoff and Jack Urbanek and Zhengping Wang and Josh Wills and Haoli Yin and Aditi Raghunathan and J. Zico Kolter and Bogdan Gaza and Ari Morcos and Matthew Leavitt and Pratyush Maini},
  title = {{The Finetuner's Fallacy: When to Pretrain with Your Finetuning Data}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=HgDsWB3KFB},
}
Figure