Pretraining

Pretraining learns reusable parameters or representations before adapting a model to a target task. It is the base pattern behind large language models, vision encoders, protein language models, molecular encoders, and many multimodal systems.

The generic two-stage view is:

followed by adaptation:

Common Objectives

  • Autoregressive next-token prediction.
  • Masked modeling over text, sequence, image patches, molecules, or proteins.
  • Contrastive alignment between views or modalities.
  • Denoising, reconstruction, or representation prediction.
  • Multitask supervised pretraining over a broad source dataset.

Source and Target Contract

Pretraining is incomplete without the source distribution and the downstream target distribution:

The transfer claim depends on the relationship between them.

Contract PartQuestion
source exampleswhat raw objects were used before adaptation?
source objectivewhat signal was optimized during pretraining?
source filteringwhat examples were removed, deduplicated, or upweighted?
target exampleswhat downstream task and split define success?
overlap rulehow are near-duplicates, homologs, scaffolds, templates, or documents removed?
adaptation rulefrozen probe, full fine-tune, adapter, LoRA, or retrieval use?

If source and target overlap, the claim is no longer clean transfer. It may still be useful, but the evidence should be described as system performance rather than out-of-distribution generalization.

Objective Families

FamilyTraining SignalTypical Evaluation
autoregressivepredict next token or stategeneration, perplexity, downstream adaptation
masked modelingpredict hidden token, patch, residue, atom, or regionlinear probe, fine-tune, retrieval
contrastiveidentify positive view among candidatesretrieval, neighborhood quality, transfer
joint embeddingpredict target representationrepresentation evaluation and downstream tasks
denoisingrecover clean object from corruptiongeneration, reconstruction, representation transfer
supervised multitaskmany labeled source taskstarget transfer and robustness

The objective can be useful even when it is not the final task. Record the evidence that connects pretraining loss to downstream behavior.

Pretraining Contamination

For public notes, state the contamination boundary without listing private datasets or paths:

In practice, exact set disjointness is often too weak. The relevant exclusion unit may be:

DomainExclusion Unit
text or codedocument, repository, benchmark item, paraphrase cluster
moleculestandardized molecule, scaffold, assay source
proteinsequence identity cluster, family, structure/template source
structurePDB entry, chain, complex, template neighborhood
agent tracetask instance, tool state, benchmark item

Why It Matters

  • Reduces labeled data requirements for downstream tasks.
  • Makes architecture comparisons depend heavily on source data and objective.
  • Can transfer useful structure, but can also transfer bias or shortcuts.
  • In scientific AI, pretraining data boundaries can dominate claimed generalization.

Checks

  • What source distribution was used?
  • What target signal did pretraining optimize?
  • Does the pretraining objective match downstream evaluation?
  • Could downstream test examples or close homologs/duplicates appear in pretraining?
  • Is adaptation done by probing, full fine-tuning, or parameter-efficient fine-tuning?
  • Is the comparison controlled for source data scale, training tokens/examples, architecture, and adaptation budget?
  • Is the claim representation quality, sample efficiency, robustness, or final system performance?