Updating Model Knowledge Without Starting Over
local graph
Module 33 — Updating Model Knowledge Without Starting Over
Section titled “Module 33 — Updating Model Knowledge Without Starting Over”The value of continued pretraining depends on how well you can introduce new knowledge while preserving the broad capabilities acquired during the original pretraining run. Weight updates that carry new facts into the model operate through the same gradient mechanism that shaped its initial representations, which means the process is inherently delicate. Learning rate design and data sequencing together determine whether continued pretraining delivers genuine capability gains or only superficial adjustments. Getting these pieces right allows you to refresh factual content at a fraction of the cost of training from scratch. This module examines how new knowledge enters the model under continued pretraining, beginning with the mechanism of weight updates and proceeding through the practical considerations that govern effective knowledge installation.
How New Knowledge Enters a Model Through Continued Pretraining
Section titled “How New Knowledge Enters a Model Through Continued Pretraining”When a pretrained model is exposed to additional domain data under the language modeling objective, gradient updates modify the parameter values that encode representations of words and concepts. The process is distributed across many layers and attention heads, so no single location in the network can be pointed to as the site of a newly acquired fact. Each exposure to a piece of domain content produces a small, incremental change that increases the model’s assigned probability for the factual content present in that sample. Chang et al. (2024) studied this dynamic directly by injecting controlled factual probes into pretraining batches and measuring the log probabilities the model assigned at each step. Their results suggest that factual knowledge acquisition proceeds through progressive micro-acquisitions that accumulate with repeated exposure and are partially eroded by subsequent batches that do not reinforce the same content (Chang et al., 2024).
This distributed and incremental character has several practical consequences. A single pass over a domain corpus seldom produces durable memory of any specific fact, because the model’s exposure to competing content continually pushes its representations in other directions. Chang et al. (2024) also observed that duplicated training examples accelerate catastrophic forgetting, which implies that simply packing the corpus with repeated occurrences of a target fact may actually work against retention. A practitioner hoping to install new domain knowledge must therefore think in terms of cumulative exposure across many batches, spaced across the training run, with enough variety in context to help the model form stable internal associations. This view of knowledge acquisition also helps explain why continued pretraining is effective at broad-spectrum domain enrichment while remaining comparatively weak at injecting isolated facts that appear only a handful of times in the corpus.
Learning Rate Strategy for Knowledge Updates
Section titled “Learning Rate Strategy for Knowledge Updates”Learning rate policy is the most consequential knob in continued pretraining, and its configuration differs in important ways from initial pretraining and from fine-tuning. During an initial pretraining run, the optimizer typically follows a long warmup followed by cosine decay to a small terminal value, reflecting the assumption that the model starts from random initialization and requires large early updates that gradually settle. In continued pretraining the model starts from a well-trained point, and reintroducing large updates without care can overwrite representations that encode existing capability.
Ibrahim et al. (2024) investigated this question at scale and proposed a workable approach built on learning rate re-warming and re-decaying. Their experiments use a 10 billion parameter model with 300 billion prior tokens and examine how to continue training on a distribution change without losing performance on the original distribution. They find that raising the learning rate from a small value back up toward the peak value used during initial pretraining, followed by decay into the new phase, allows the model to adapt to the new data while limiting degradation on the prior distribution. Adding a modest percentage of replay data from the original pretraining corpus further suppresses forgetting, and in combination these techniques approach the performance of a full retraining run on the union of both datasets.
A separate line of work suggests that the exact shape of the decay schedule carries more weight than is commonly assumed. Research on curriculum-based pretraining has shown that aggressive decay toward near-zero learning rates near the end of training can underweight high-quality data introduced late in the schedule, producing poor absorption of the most informative content (Chen et al., 2025b). For continued pretraining runs that introduce domain content in graded stages, a moderate terminal learning rate preserves the model’s capacity to absorb information presented near the end of training, where the most specialized content has often been placed. Practitioners typically select a peak learning rate that is a fraction of the original pretraining peak, often in the range of 10 to 30 percent, and tune this based on initial validation runs that measure both domain perplexity and performance on held-out general evaluations.
Curriculum and Data Ordering Effects on Knowledge Integration
Section titled “Curriculum and Data Ordering Effects on Knowledge Integration”The order in which examples reach the model during continued pretraining influences how well new knowledge integrates with existing representations. Abrupt transitions between general and specialized data can produce instability, while graded introduction of domain content allows the model to adjust its internal distributions more smoothly. Beginning with simpler or more general material and progressing toward more specialized content yields modest but consistent improvements in both final evaluation performance and training stability. The underlying logic is that the model first tunes its representations to the broader linguistic character of the new corpus before being asked to absorb its most technical content.
Ibrahim et al. (2024) complement this finding with their replay strategy (Module 32). In practice, replay rates in the single-digit percent range are common for domain runs of moderate intensity, and higher replay rates are used when the domain data is very different from the original pretraining mix.
Batch size also influences knowledge integration, though through a different mechanism. Chang et al. (2024) reported that larger batch sizes produce slower but more stable acquisition of factual knowledge and reduce the severity of the forgetting that follows each exposure. This effect is thought to arise from the averaging that a larger batch performs over gradient noise, which yields parameter updates that carry less incidental overwriting of unrelated representations. Teams running continued pretraining often increase effective batch size via gradient accumulation to obtain this stabilizing effect without needing to expand hardware.
A related consideration is the handling of domain subtopics within the corpus. Grouping all content about a given subtopic into contiguous training blocks can cause the model to drift toward that subtopic’s style and vocabulary, producing local overfitting that shows up as narrow competence alongside degraded general behavior. Interleaving subtopics at the batch level generally produces more even absorption and limits the risk of within-domain over-specialization. For corpora that combine multiple domain sources, careful mixing across source and subtopic typically outperforms a run that processes each source sequentially. Yıldız et al. (2024) further note that training on domains with semantic similarity enhances specialization, while domain randomization can produce better cross-domain transfer when the goal is broad coverage.
Sequential subtopic ordering┌───┐ ┌───┐ ┌──────┐ ┌───┐ ┌───┐ ┌──────┐ ┌───┐ ┌───┐│ A │ │ A │ │Replay│ │ B │ │ B │ │Replay│ │ C │ │ C │└───┘ └───┘ └──────┘ └───┘ └───┘ └──────┘ └───┘ └───┘
Randomized interleaved ordering┌───┐ ┌───┐ ┌──────┐ ┌───┐ ┌───┐ ┌──────┐ ┌───┐ ┌───┐│ A │ │ C │ │Replay│ │ B │ │ A │ │Replay│ │ C │ │ B │└───┘ └───┘ └──────┘ └───┘ └───┘ └──────┘ └───┘ └───┘Figure 6-3. Sequential vs. Randomized Subtopic Ordering in a Continued Pretraining Batch
Measuring Whether Knowledge Has Been Updated
Section titled “Measuring Whether Knowledge Has Been Updated”Verifying that continued pretraining has produced genuine knowledge integration requires evaluation methods beyond a drop in perplexity on the domain corpus. Perplexity improvements indicate that the model has become fluent in the surface patterns of the new data, which is a prerequisite for knowledge acquisition yet falls short of proving that the model has internalized the facts and relationships the corpus contains. Practitioners therefore construct domain-specific evaluation suites that test the capabilities the continued pretraining run was intended to install.
Knowledge probing is the core diagnostic. Probes are typically cloze-style or question-based prompts that elicit factual triplets the model is expected to know after training. Zhao et al. (2024) introduced the BELIEF benchmark specifically to measure the factual recall capability of pretrained models across many prompt formulations, showing that reliance on a single prompt format can overstate a model’s knowledge substantially. By evaluating the same underlying fact through several phrasings, BELIEF distinguishes between models that have absorbed the fact as a semantic unit and models that have memorized a specific surface pattern.
Calibration analyses provide a complementary view. When a model has genuinely integrated a piece of knowledge, its confidence tends to align with accuracy across a family of related probes, while shallow memorization often produces high confidence on in-pattern prompts and low confidence on paraphrases (Zhao et al., 2024). Probing panels that span easy and hard paraphrases together with implicational queries are therefore more informative than simple accuracy numbers on a fixed format.