Robots Atlas>ROBOTS ATLAS
Training

CPT

2020ActivePublished: 30 November 2026Updated: 30 November 2026Published
Key innovation
Showed that instead of training from scratch, an already-pretrained model can continue its self-supervised training on new, typically domain-specific or more recent unlabeled data, adapting it at a fraction of the cost.
Category
Training
Abstraction level
Technika
Operation level
TrainingPost-training
Use cases
Domain adaptation (e.g. biomedicine, law, finance)Adaptation to a new languageKnowledge update to more recent dataSpecialization for mathematics or codeTask-adaptive pretraining on the task's unlabeled data

How it works

1) The starting point is the weights of an already-pretrained base model. 2) An additional unlabeled corpus is gathered — domain-specific (DAPT), task-specific (TAPT), newer, or in another language. 3) Training continues the same self-supervised objective as pretraining (e.g. next-token prediction). 4) The learning rate is typically re-warmed and then decayed; the choice of maximum LR and warmup length is critical (Gupta et al., 2023). 5) To limit forgetting, a fraction of the original data is replayed alongside the new data; combining LR re-warming, LR re-decaying and replay can match full from-scratch retraining at a fraction of the cost (Ibrahim et al., 2024). 6) After this phase the model is usually fine-tuned (supervised) for a specific task.

Problem solved

Training large models from scratch for every new domain or data batch is expensive, and a general base model may handle specialized vocabulary, a new language, or more recent knowledge poorly. Continued Pretraining cheaply adapts an existing model to such data using large unlabeled corpora, without needing labels.

Components

Pretrained base modelStarting-point weights

A previously pretrained model whose weights are the starting point for further training.

Additional unlabeled corpusAdaptation data

Domain, task, newer, or other-language text, without labels.

Self-supervised training objectiveLoss (e.g. next-token prediction)

The same objective as in pretraining (e.g. autoregressive next-token prediction or masked language modeling).

Learning-rate scheduleLR re-warming and decay

Re-warming and decaying the LR; affects adaptation speed and forgetting.

Replay of original dataForgetting mitigation

Mixing in a fraction of the original data to limit degradation on the old distribution.

Implementation

Implementation pitfalls
Catastrophic forgettingHigh

Distribution shift from new data degrades performance on the original distribution.

Fix:Replay a fraction of the original data and re-decay the LR (Ibrahim et al., 2024).
Poorly tuned LR re-warmingMedium

LR re-warming transiently increases loss on both upstream and downstream data before improving (Gupta et al., 2023).

Fix:Longer training or alternative LR schedules.
Not re-warming the learning rateMedium

Skipping re-warming limits adaptation and compute efficiency (Gupta et al., 2023).

Fix:Apply re-warming followed by LR decay.

Evolution

Original paper · 2020 · ACL 2020 · Suchin Gururangan
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
Suchin Gururangan, Ana Marasovic, Swabha Swayamdipta, Kyle Lo, Iz Beltagy, Doug Downey, Noah A. Smith
2020
DAPT and TAPT — 'Don't Stop Pretraining'
Inflection point

Systematic demonstration that a second phase of in-domain (DAPT) and task-data (TAPT) pretraining improves results.

2023
Llemma — continued pretraining of Code Llama on a math corpus

Example of domain adaptation of a modern LLM: Code Llama continued on Proof-Pile-2.

2023
LR re-warming for continual pretraining

Study of the role of learning-rate re-warming when switching to a new corpus.

2024
Simple and scalable strategies (re-warming + re-decay + replay)
Inflection point

Combining LR re-warming, re-decaying and replay matches full from-scratch retraining at a fraction of the cost.

Hyperparameters (configurable axes)

Max learning rate (re-warming)Critical

Peak LR after re-warming; critical for adaptation efficiency and stability.

Replay ratio of original dataHigh

What fraction of original data is mixed with the new data to limit forgetting.

LR warmup lengthMedium

Number of steps of linear LR warmup before decay.

Adaptation corpus mixtureHigh

Corpus composition and selection (domain, language, quality) determine the adaptation effect.

Training token budgetHigh

Number of continued-training tokens; affects degree of adaptation and cost.

Compute bottleneck

Training compute throughput

Cost scales with the number of processed tokens and model size; dominated by matrix operations on accelerators and memory bandwidth.

Parallelism

Parallelism level
Partially parallel

Distributed data/model-parallel training across devices; optimization steps are sequential.

Scope
TrainingAcross devices

Hardware requirements

Primary

Large self-supervised training runs on GPU clusters with tensor cores.

Good fit

Language-model training is also run on TPUs.