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.

Listen to this definition

Uses a voice available on your device

Audio options
On this page 5 sections
Related concepts 5 concepts

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.

  • Optimizing Data Repetition in LLM Pretraining
    Scaling Domain Data Repetition in LLM Pretraining

    The paper examines how to effectively repeat high-quality domain data during the pretraining phase as model sizes and training token budgets scale.

  • Foundation Model for Infrared Chemical Sensing
    Simulation-to-real transfer learning for infrared spectroscopic chemical sensing and analysis from molecules to complex samples

    UltraIR is a foundation model that uses simulation-to-real transfer learning to improve the accuracy and scalability of infrared spectroscopy analysis.

  • Measuring Data Influence in LLM Training
    Measuring Task-Agnostic Training Data Influence Across Language Model Pretraining

    The researchers developed a task-agnostic method to quantify how individual training examples affect a language model's final parameters without needing to retrain the model.

  • Embedding Assistant Personas During Model Training
    Synthetic Persona Pretraining: Alignment from Token Zero

    Researchers developed Synthetic Persona Pretraining to embed desired assistant behaviors into language models starting from the very first token of training.

  • Improving Surgical Robot Learning with Video
    Surgical WAM: A World-Action Model for Data-Efficient Surgical Robot Learning

    The researchers developed a World-Action Model that leverages action-free video pretraining to significantly boost the performance of surgical robots when labeled demonstration data is limited.

  • Interleaving Visual Objects for Better Alignment
    MultiModal Code-Switching: Interleaving Visual Objects into Language for Explicit Object-Level Alignment

    MultiModal Code-Switching improves multimodal model alignment by replacing text tokens with visual object embeddings during pretraining.

  • 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.

  • Flamingo Visual Language Model
    Flamingo: a Visual Language Model for Few-Shot Learning

    Flamingo is a visual language model that adapts to novel multimodal tasks using only a handful of annotated examples.

  • Real Time Object Detection With A Single Network
    You Only Look Once: Unified, Real-Time Object Detection

    This paper reframes object detection as a single regression problem, allowing a single neural network to predict bounding boxes and classes directly from full images in one evaluation.

  • Measuring Multitask Language Understanding Across Subjects
    Measuring Massive Multitask Language Understanding

    The authors designed the Massive Multitask Language Understanding benchmark covering 57 subjects to evaluate how well language models learn and apply knowledge across multiple domains.

  • Improving Medical Time Series Classification
    Is Self-Pretraining really useful to improve diagnosis in medical Time Series?

    The researchers applied self-pretraining to transformer models to boost accuracy in medical time series classification without requiring external data.

  • Improving Robot Action Models Using Semantic Foresight
    Robust-WAM: Bridging Generative Pretraining and Semantic Foresight in World-Action Models

    Robust-WAM introduces a method to align video-generation model latent spaces with semantic features, enabling robots to handle visual changes more reliably.

  • Teaching Logic Before Language to LLMs
    Logic Before Language: Pre-pretraining on Formal Derivations Fosters Skill Acquisition and Compressibility

    Researchers improved language model learning efficiency by pre-pretraining a Transformer backbone on formal logic derivation sequences before standard language training.

  • Understanding Reinforcement Learning Post-Training
    Understanding Reasoning from Pretraining to Post-Training

    This paper investigates how pretraining choices shape reinforcement learning returns and what reinforcement learning actually does to a model policy using chess games and puzzles.