atlas

Research map / Continual learning / Domain and prompt-based

Scaling Laws for Forgetting during Finetuning with Pretraining Data Injection

ICML 2025 · Continual learning › Domain and prompt-based · approach: Domain-incremental learning with memory · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Derives and validates scaling laws predicting pretraining-loss forgetting and finetuning loss as a function of model size, unique finetuning tokens, and the fraction of pretraining data injected into the finetuning mix.

Problem

Finetuning a pretrained LM on limited target-domain data causes overfitting and forgetting of pretraining knowledge, and it is unclear how much pretraining data to mix in to mitigate these effects.

Approach

A multiplicative scaling law for post-finetuning pretraining loss that treats a fraction p of injected pretraining data as allocating (1+Bp)N effective parameters, combined with a finetuning-loss law that is approximately independent of p; finds that as little as 1% pretraining injection prevents forgetting.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Inject 1% pretraining data during finetuning rather than injecting noneFull-parameter finetuning · Pretraining set and target domainspretraining loss after finetuningHelped
Injecting pretraining data has little effect on target-domain lossFull-parameter finetuning · Pile domainsfinetuning validation lossNo clear effect
Use a multiplicative rather than additive finetuning scaling law (ablation)Finetuning scaling-law prediction · 12 Pile domainsfinetuning MRE: 1.36% -> 0.89%Helped
Include the base pretraining loss in the forgetting scaling law (ablation)Proposed forgetting scaling law · 12 Pile domainsforgetting MRE: 1.05% -> 0.40%Helped
Account for the rewarmed pretraining loss when estimating the base loss (ablation)Proposed forgetting scaling law · 12 Pile domainsforgetting MRE: 0.49% -> 0.40%Helped
Replace the proposed forgetting law with A D^β(1-p)^κ/N^α + E (ablation)Forgetting scaling-law prediction · 12 Pile domainsforgetting MRE: 0.40% -> 0.67%Hurt
Use pretraining-data mixing instead of Anchored AdamW parameter regularization (ablation)Finetuning on Github · Github and RedPajamalossMixed

Surprising findings

Limitations

Experimental setup

Datasets: RedPajama-V2 The Pile (12 domains, e.g., ArXiv, DM Mathematics, Enron emails, GitHub, FreeLaw, Wikipedia en, OpenWebText2, PubMed) OpenHermes

Benchmarks: ARC-easy MMLU

Metrics: validation loss training loss mean relative error (bootstrapped) accuracy

Baselines: Additive scaling law Purely additive forgetting law Anchored AdamW AdamW weight decay finetuning

Builds on: Chinchilla scaling laws Scaling data-constrained language models continual pretraining with replay

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy