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

ADIS-Law: Unified Scaling Laws for Annealing-Phase Domain Injection in Large Language Models

Lyuxin Xue, Hui Cai, Xiaoyun Feng, Xuanwei Hu, Xin ZhangNeurIPS 2026

TL;DR

Want to teach an LLM specialized knowledge like finance or biomedicine without paying for a massive, separate post-training run? You can slip that domain data right into the final "cooling down" phase of initial pre-training—a neat trick that usually requires an expensive, blind guessing game of hyperparameter tuning. ADIS-LAW turns this guesswork into physics-inspired math, letting you run cheap, tiny experiments to accurately predict the exact best data-injection recipe for giant models.

What Problem Does This Paper Address?

Teaching a pre-trained Large Language Model (LLM) a new specialty—known as Continual Pre-training (CPT)—traditionally happens after the main pre-training run finishes. A much more compute-efficient shortcut is to inject specialized data earlier, specifically during the annealing phase of initial pre-training, when the learning rate is rapidly decaying toward zero.

Here is the catch: steering a model during a rapid cooldown is tricky. Practitioners have to simultaneously balance three tightly coupled knobs:

  1. Injection timing ($\lambda$): How close to the end of training do you start?
  2. Mixture ratio ($r$): What percentage of the new data is specialized vs. general?
  3. Re-warmup peak learning rate ($\eta$): How high do you briefly spike the learning rate so the cooling model actually absorbs the new material?

Classical scaling laws assume static data distributions, and existing CPT laws don't capture how all three of these knobs interact. Without a theoretical map, engineers have to run expensive grid searches on small models and cross their fingers that the winning recipe still works when scaled up.

Methods

Instead of treating domain injection as a brand-new training run, the authors borrow an intuition from physics (specifically, elasto-plasticity) and model it as a bounded perturbation applied to an unperturbed base trajectory.

Schematic of ADIS-Law schedules, elastic general forgetting, and plastic domain adaptation

They start with a standard learning-rate-aware base equation (the Momentum Law) to track normal pre-training. Then, they introduce ADIS-LAW, which adds a mathematical perturbation switched on by a smooth "saturating gate" ($\phi$) as post-injection learning momentum builds up. Crucially, they model the model's general brain and specialized brain using two opposing dynamics:

  • General Knowledge (Elastic Forgetting & Recovery): Driven by Injection Intensity ($I$, the product of mixture ratio $r$ and relative learning rate $\eta$), general loss spikes linearly upon impact ("catastrophic forgetting") and then elastically recovers over time. Because training ends before full recovery, a predictable "Convergence Gap" remains.
  • Target Domain (Plastic Adaptation): Absorbing specialized concepts exhibits diminishing marginal returns. Rather than a linear shift, domain loss drops smoothly following a saturating power law ($r^\mu \tau^\nu$, where $\tau$ is global training progress).

Datasets

No new benchmarks are introduced; instead, the authors stress-test their framework across hundreds of hyperparameter combinations using established datasets:

  • Base Pre-training: FineWeb-Edu (across budgets from 25B to 100B tokens).
  • Domain Injection: Four distinct specialized domains—Mathematics (InfiMM-WebMath-40B), Code (StackEdu), BioMedicine (Biomed-Enriched), and Finance (an internal financial corpus).

Key Insights and Ideas

  • Forgetting and learning obey asymmetric laws: General capabilities suffer an immediate shock proportional to both how much domain data you feed it and how hot the learning rate is, followed by a steady linear healing process. Domain mastery, meanwhile, behaves like "strain-hardening" in materials science—getting stiffer and yielding diminishing returns the longer you push it.
  • Perturbations are surprisingly scale-invariant: When the authors tried adding an explicit model-size dilution factor ($1/N^\gamma$) to see if larger models reacted differently to the shock, the fitted exponent $\gamma$ collapsed to $\approx 0.001$. Within the tested range, the perturbation math doesn't care directly about parameter count! Because the perturbation decouples cleanly from the base model size, strategies discovered on tiny 115M proxy models preserve their exact ranking on 1.67B models.

Key Results

Tested on SmolLM3 architectures ranging from 115M to 1.67B parameters, ADIS-LAW turns seven fitted parameters per domain into a crystal ball:

  • Crushing Baselines: In leave-one-out cross-validation, ADIS-LAW predicts target-domain trajectories with a Spearman rank correlation ($\rho$) of ~0.965 and relative errors under 2.8%—whereas previous CPT laws suffered relative errors exceeding 34%.
  • Zero-Shot Extrapolation: Fitted only on cheap runs (e.g., $\le$50B tokens or $\le$895M parameters) and extrapolated zero-shot to 100B tokens or 1.67B parameters, it forecasts target-domain curves with an average $\rho = 0.951$ and predicts final tail losses with relative errors below 5% (and below 1% for general loss).
  • Automated Strategy Selection: When tasked with picking the winner between pairs of unseen hyperparameter strategies at scale, ADIS-LAW achieves up to 95.2% pairwise accuracy and 0.991 NDCG, tracing out the true Pareto-optimal trade-off frontier with a geometric (Chamfer) distance below 0.06.

Limitations and Future Work

  • Scale Boundaries: Experiments top out at 1.67B parameters and 100B tokens. Whether these clean decoupling properties hold at frontier scales (hundreds of billions of parameters and trillions of tokens) is an open question.
  • Extreme Regimes: Because the general-domain destruction term is linear ($a \cdot I$), feeding it extreme injection intensities ($aI \gg b$) will cause the formula to predict an unrealistic, unbounded loss spike unless capped. It may also falter if data is injected too late in the decay schedule for the saturation gate to activate, or if the domain corpus is wildly out-of-distribution.
  • Transient Bumps: When extrapolating to larger models, ADIS-LAW nails the final loss at the end of training, which is what matters most for deployment, but tends to underestimate the height of the temporary general-loss "forgetting bump" right after injection. Uncovering the deeper mechanics of that transient spike is left for future work.

Summary updated

BibTeX
@inproceedings{xue2026adis,
  author = {Lyuxin Xue and Hui Cai and Xiaoyun Feng and Xuanwei Hu and Xin Zhang},
  title = {{ADIS-Law: Unified Scaling Laws for Annealing-Phase Domain Injection in Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=iEWLc5YXWC},
}
Figure