atlas

Research map / Large language models / Language, safety and interpretability

D-CPT Law: Domain-specific Continual Pre-Training Scaling Law for Large Language Models

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks · 3 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.

Proposes D-CPT Law, a Chinchilla-style scaling law that includes the domain/general mixture ratio to predict validation loss and pick the optimal mixture for domain continual pre-training, plus a Cross-Domain variant using a Domain-specific Learnable Coefficient.

Problem

Choosing the optimal mixture ratio between general-corpus and domain-corpus during domain-specific continual pre-training of LLMs is costly via grid search and not guaranteed optimal.

Approach

Extends the Chinchilla scaling law with a mixture-ratio term (B·r^η/D^β + C/(r+ε)^γ) so loss can be predicted for arbitrary model size, data size and mixture ratio from small-scale runs; a Cross-Domain variant adds a domain-specific learnable coefficient K derived from early validation-loss dynamics so new domains need only ~1% of training cost.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use L3's mixture-ratio term r^η/D^β instead of L2's combined power term (ablation)D-CPT Law · Six-domain mean, downstream corpusHuber loss: 0.0166 -> 0.0157Helped
Use L3 parameterization instead of L1 (ablation)D-CPT Law · Six-domain mean, downstream corpusHuber loss: 0.0169 -> 0.0157Helped
Use L3 parameterization instead of L4 (ablation)D-CPT Law · Six-domain mean, downstream corpusHuber loss: 0.0160 -> 0.0157Helped
Use L3 parameterization instead of L5 (ablation)D-CPT Law · Six-domain mean, downstream corpusHuber loss: 0.0438 -> 0.0157Helped
Use L3 instead of L1 (ablation)D-CPT Law · Unseen model sizes, general corpusR^2: 0.9521 -> 0.9711Helped
Use L3 instead of L2 (ablation)D-CPT Law · Unseen model sizes, downstream corpusR^2: 0.9420 -> 0.9516Helped
Use L3 instead of L2 (ablation)D-CPT Law · Unseen dataset sizes, general corpusHuber loss: 0.0054 -> 0.0038Helped
Use L3 instead of L1 (ablation)D-CPT Law · Unseen mixture ratios, downstream corpusR^2: 0.9673 -> 0.9717Helped
Use K3 representation instead of K1 (ablation)Cross-Domain D-CPT Law · Unseen downstream domains, downstream corpusHuber loss: 0.7712 -> 0.5335Helped
Use K3 representation instead of K2 (ablation)Cross-Domain D-CPT Law · Unseen downstream domains, downstream corpusHuber loss: 2.5792 -> 0.5335Helped
Use K3 representation instead of K4 (ablation)Cross-Domain D-CPT Law · Unseen downstream domains, downstream corpusHuber loss: 1.1634 -> 0.5335Helped
Use K3 representation instead of K4 (ablation)Cross-Domain D-CPT Law · All six domains, downstream corpusHuber loss: 0.3396 -> 0.3682Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Dolma SlimPajama Code corpus Math corpus Law corpus Chemistry corpus Music corpus Medical corpus

Metrics: validation loss Huber loss R^2

Baselines: OpenAI Scaling Law Chinchilla Scaling Law L1 L2 L4 L5

Builds on: Chinchilla Scaling Law Kaplan OpenAI Scaling Law L-BFGS

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