All Glossary Terms

Pretraining

Pretraining is the initial phase of training a neural network on massive, unlabeled datasets to develop foundational patterns and general knowledge before task-specific optimization.

What it is

During pretraining, a model processes trillions of tokens to statistically map the relationships between sequences of data, such as predicting the next word in a sentence or completing a masked image. This stage consumes the vast majority of a model's total compute budget, often requiring thousands of GPUs running for months. The resulting output is a base model containing billions of parameters that represent an encoded understanding of language or visual structures. You are essentially creating the heavy foundation that serves as the starting point for every downstream capability.

Why it matters

Knowing about pretraining prevents you from wasting engineering cycles on efforts that the base model cannot fundamentally achieve. If the base model lacks knowledge in a specific domain, no amount of prompt engineering or tuning will reliably fix it because the underlying representation is missing. Understanding this helps you evaluate when to choose a larger base model versus when to optimize your own data pipeline. Ignoring this leads to brittle systems that fail unpredictably when encountering edge cases outside the model's original training distribution.

In practice

In your workflow, you do not run pretraining yourself due to the astronomical cost and infrastructure requirements. Instead, you select a base model from a provider, which is essentially choosing which pretraining dataset best aligns with your target domain. You observe the effects of pretraining through the model's base accuracy on your specific task before you apply any local optimizations.

The tradeoff

The tradeoff is between general-purpose capability and specialized efficiency: a highly pretrained model is powerful but large and slow, whereas smaller models may be faster but lack the necessary world knowledge to perform complex reasoning.

Where it appears

Research summaries that use Pretraining, each linked to its source paper.

  • How Vision Models Learn Camera Metadata
    Invisible Shortcuts: Why Vision Encoders Know Your Camera

    Researchers discovered that deep vision models unintentionally learn invisible camera metadata as shortcuts, which degrades their performance when image distribution shifts.

  • Universal Fine-Tuning for Text Classification
    Universal Language Model Fine-tuning for Text Classification

    The researchers developed ULMFiT to bring the efficiency of transfer learning to text classification tasks.