Skip to content
ImagineWorld

Training from Scratch in Depth

node_idnode-book_llm-systems-engineering_module-36-training-from-scratch-in-depth
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num36
chapter_titleTraining from Scratch in Depth
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Module 36 — Training from Scratch in Depth

Section titled “Module 36 — Training from Scratch in Depth”

Chapter VII — Training from Scratch

Training from scratch sits at the most demanding end of the spectrum of paths available for building a large language model. The undertaking begins from randomly initialized weights and requires the model to learn every linguistic capability from raw data. Costs and risks associated with this path have grown alongside the size of frontier systems, with compute budgets for leading models now measured in tens of millions of dollars (Cottier et al., 2024). Understanding what this path offers that adaptation cannot is essential before any organization commits to it. Equally essential is an honest accounting of the prerequisites that must be in place and the justifications that commonly fail under scrutiny. This module examines each of these dimensions in turn, providing the foundation for the infrastructure and workflow modules that follow.

Training from scratch distinguishes from continued pretraining, where an already trained model absorbs additional domain data while retaining its prior structure. In a from-scratch run, every weight begins as a sample drawn from a carefully chosen initialization distribution, and no linguistic structure yet exists within the network.

From-scratch initializationExisting checkpoint
Parameter valuesscattered at randomclustered into structure
Knowledge mapNo grammar, no factsSyntax · Semantics · World facts · Reasoning · Style · Domains · Code patterns · Multilingual links

[!visual-conversion] In print two pairs of boxes: dots scattered uniformly vs. dots gathered into small clusters, above an empty knowledge map vs. a map of eight labelled tiles.

Figure 7-1. Parameter Distribution and Encoded Knowledge at Random Initialization vs. an Existing Checkpoint

The first practical implication concerns the tokenizer. A from-scratch project typically constructs a tokenizer by training a subword algorithm on the same corpus the model itself will consume. The vocabulary that emerges reflects the statistical regularities of the target data, and this alignment has direct consequences for training efficiency. The same principle applies with greater force when the tokenizer is built during a from-scratch run, because every token the model ever sees will pass through a vocabulary designed expressly for the corpus.

The second implication follows from random initialization. A newly initialized transformer contains no knowledge of grammar or factual content. Every linguistic pattern the final model will eventually reproduce must emerge from the optimization process operating on the training data. This starting condition establishes the data requirements that dominate from-scratch economics.

The third implication is that every component of the training system must be exercised at full scale. In continued pretraining or fine-tuning, the base model absorbs much of the burden of maintaining coherent behavior, and pipeline defects can be obscured by the stability of pre-existing weights. A from-scratch run offers no such cushion. Data quality problems and training loop bugs propagate directly into the model’s developing representations and are often detectable only through careful evaluation during training. The cost of a silent defect during a multi-week run can reach into the millions of dollars of wasted compute.

The compute economics that follow from these conditions help explain why from-scratch projects remain rare outside well-resourced research groups. A run that consumes hundreds of billions of training tokens over days of multi-node compute necessarily exposes the entire pipeline to every class of distributed-systems fault. Silent numerical instabilities can cause the loss curve to diverge after weeks of apparently healthy training, and gradient accumulation errors can compound across steps before producing any observable symptom. Each of these conditions demands diagnostic tooling that must itself be validated at scale before training begins.

The unique advantages of the from-scratch path are genuine and narrow. One area of advantage concerns the model architecture itself. When a project requires an architecture that has not been publicly released, or one that departs substantially from available open weights, the from-scratch path is the only mechanism that can produce it. Fine-tuning an existing transformer cannot accommodate such departures, because the adapted weights would carry forward the inductive biases of the original design. A new architectural hypothesis can only be fully realized through a run that starts from random initialization.

A second area concerns the tokenizer vocabulary. Existing models ship with vocabularies optimized for the corpora their developers chose. Organizations working with specialized domains often find that these vocabularies tokenize their target text inefficiently, consuming more tokens to represent domain-relevant strings. A from-scratch run can build a vocabulary whose compression efficiency on the target corpus is as favorable as the tokenization algorithm allows. Research on vocabulary scaling laws has shown that larger models benefit disproportionately from larger vocabularies, indicating that vocabulary sizing is itself a design parameter worth explicit engineering attention at scale (Tao et al., 2024).

A third area concerns training data composition. Every pretrained checkpoint reflects decisions its creators made about data sources and filtering heuristics. Organizations whose requirements differ substantially from those decisions cannot reach their target behavior through adaptation alone, because the adapted model carries forward the prior distribution of its training corpus. A from-scratch run permits composition of the corpus according to the specific priorities of the project, with full visibility into the provenance of every token.

These advantages matter, and they matter only in a narrow set of circumstances. Most organizations seeking improved domain performance can achieve their goals through continued pretraining on a high-quality checkpoint, because the general capabilities of the base model transfer strongly to specialized tasks. Published reviews of biomedical model development observe that specialized pretraining remains useful in narrow scenarios, even as the majority of biomedical projects now proceed through fine-tuning of general-purpose open checkpoints (Tian et al., 2024). The circumstances where a from-scratch approach is genuinely warranted arise when existing checkpoints have structural limitations that cannot be overcome through additional training. Common examples include fundamental architectural constraints on context length alongside tokenizer inefficiencies severe enough to make inference uneconomic. Outside these cases, the costs of the from-scratch path typically exceed the marginal gain it offers.

flowchart TD
    A[Choosing a path] --> B{Capability<br/>already available?}
    B -- Yes --> AD["Adaptation<br/>Continued pretraining or fine-tuning"]
    B -- No --> C{Architectural constraints<br/>rule out adaptation?}
    C -- No --> AD
    C -- Yes --> FS[From-scratch training]

Figure 7-2. Decision Path for Choosing Between Adaptation and Training from Scratch

Before any from-scratch run begins, an honest inventory of prerequisites must confirm that each is in place.

Modern frontier models consume tens of thousands of high-end accelerators operating continuously for periods measured in weeks or months, with compute costs for such runs reaching the tens of millions of dollars (Cottier et al., 2024). Even smaller from-scratch projects in the 1 to 10 billion parameter range require coordinated access to multi-node clusters for long durations. Intermittent access, or access subject to preemption, substantially increases wall-clock time and total cost, because training runs must absorb checkpoint restoration overhead after each interruption.

The corpus underlying a from-scratch run must be assembled and filtered at scale before training begins. A project whose data pipeline produces a corpus with undetected duplication or contamination from evaluation benchmarks will see those defects reflected in its model’s downstream behavior. Corrections after training has begun are expensive, and in many cases they are impossible to apply without restarting the run.

A from-scratch run is a distributed systems engineering project as much as a machine learning project, and it requires deep skills in numerical stability analysis alongside parallelism strategy selection. Teams attempting such runs without prior experience typically encounter failure modes that consume significant fractions of their compute budget before resolution. The expertise is not substitutable with engineering effort at the moment of crisis, and it must be present from the beginning of the project.

A from-scratch run cannot rely on downstream task performance alone, because the model may take significant fractions of its training budget to develop measurable task capabilities. The evaluation infrastructure must monitor training loss decomposed by data source and probe for emergent capabilities at intermediate checkpoints. Without this infrastructure, decisions about hyperparameter adjustments and corpus modifications must be made without reliable feedback, and the probability of wasted compute grows accordingly.

Beyond these core prerequisites, governance arrangements often prove equally consequential. A from-scratch run that generates a novel checkpoint typically triggers internal review under policies concerning data provenance and model release classification. The organizational capacity to document training data sources and coordinate release decisions across technical teams must be established before training begins. Projects that defer these questions until after the run completes frequently find themselves with a trained model whose distribution pathway is unresolved, which consumes additional months while the compute investment depreciates. Underestimating any of these prerequisites compounds into project failure, because compute overruns pause training long enough to erode the comparative advantage of the run, while data defects contaminate the model with patterns that must later be retrained out.

Several rationales frequently motivate from-scratch projects, and most of them dissolve under honest examination.

Organizations often express concern about dependency on external model providers and seek to reduce that dependency by training their own model. The concern is legitimate, while the remedy is often misaligned with the cost, because open-weight checkpoints with permissive licenses now provide substantial ownership without the expense of from-scratch training. An organization that uses an open-weight checkpoint as the starting point for continued pre-training retains full control over the deployed artifact while avoiding the costs associated with learning general language capabilities from random weights.

Dissatisfaction with existing models on a target task

Section titled “Dissatisfaction with existing models on a target task”

The underlying observation may be entirely accurate. The proposed remedy of training a custom model rarely follows from the observation. Benchmarking of biomedical language models has shown that fine-tuned open checkpoints routinely match the performance of models pretrained on domain corpora, because the general capabilities contributed by broad pretraining transfer strongly to specialized tasks (Chen et al., 2025c). If an existing model behaves poorly on a target task, the first response worth pursuing is careful fine-tuning supported by a rigorous evaluation, because that response reaches a verdict at a small fraction of the from-scratch cost.

Custom model outperforms existing checkpoint

Section titled “Custom model outperforms existing checkpoint”

The assumption rests on an appealing intuition that specialized data produces specialized capability. The intuition underestimates the knowledge transfer that broad pretraining provides. Continued pretraining on the same domain corpus that would have served a from-scratch run typically produces a stronger model at a fraction of the cost, because the adapted model retains the general capabilities of its base while absorbing the new distribution. A team with a compelling domain corpus almost always obtains better results by applying that corpus to an existing checkpoint than by using it as the sole training signal for a newly initialized model.

Genuine justification for the from-scratch path requires showing that the target capability cannot be reached through continued pretraining on the best available open checkpoint. This usually means identifying a structural limitation in every existing option that cannot be resolved through adaptation. Meeting this threshold is difficult, as it should be, because the costs involved are sufficient to warrant rigorous prior analysis. Projects that cannot meet this threshold are often better served by spending a fraction of the from-scratch budget on a disciplined adaptation program, with the remaining resources reserved for data curation and evaluation work whose value persists across any future path.