Home/Foundation Models

Introduction to Foundation Models

One model, trained on everything, adapted to anything. Understand what foundation models are, how scale unlocks emergence, and why they reshape every field of AI.

Scale Explorer

1B

Pre-train → Adapt Pipeline

Key Models

Language
GPT-4, Claude, Gemini
Vision-Language
CLIP, LLaVA, Flamingo
Code
Codex, StarCoder, DeepSeek
Generative
DALL-E, Stable Diffusion, Sora

Introduction to Foundation Models

The shift from task-specific models to general-purpose systems trained on everything.

What is a foundation model

A foundation model is a large AI model trained on broad data at scale, designed to be adapted (fine-tuned, prompted, or distilled) to a wide range of downstream tasks. The term was coined by the Stanford HAI group in 2021 to name a new paradigm: instead of training a separate model for every task, train one enormous model on diverse data and adapt it.

GPT-3, BERT, CLIP, and DALL-E were early examples. GPT-4, Claude, Gemini, Llama, Mistral, Stable Diffusion, and Codex are the generation that followed. What they share is scale: billions to hundreds of billions of parameters, trained on trillions of tokens of text, image-text pairs, code, audio, and video.

The pre-train → fine-tune paradigm

Training a large model from scratch costs millions of dollars and weeks of compute. The economic argument for foundation models is that this cost is paid once, then the resulting representations are reused across hundreds or thousands of tasks.

The workflow has two stages:

  1. Pre-training — train on massive unlabeled data with a self-supervised objective (next-token prediction, masked token prediction, contrastive image-text matching). The model learns general representations of language, vision, or both.
  2. Adaptation — take the pre-trained model and adapt it to a specific task. This may be full fine-tuning (update all weights on labeled task data), parameter-efficient fine-tuning (update only a small adapter such as LoRA), or prompting (provide task instructions as input with no weight updates at all).

The second stage is orders of magnitude cheaper than the first, which is what makes the paradigm economically viable.

Emergence: capabilities that appear with scale

The most surprising property of foundation models is emergence: qualitatively new capabilities that appear when model size crosses a threshold, without being explicitly trained for.

Examples include:

  • Few-shot learning — given two or three examples in the prompt, the model solves new instances without any gradient updates.
  • Chain-of-thought reasoning — larger models spontaneously break problems into intermediate steps, dramatically improving arithmetic and logical reasoning accuracy.
  • Code generation — GPT-3 (175B) could write passable code; GPT-2 (1.5B) could not. The threshold was not continuous.
  • Instruction following — with sufficient scale and RLHF, models learn to follow natural language instructions for tasks never seen in training.

Emergence is controversial: some researchers argue it is a measurement artifact (the capability was always there but the metric only detects it at high accuracy). Whether genuinely discontinuous or not, the practical implication is that scale changes what models can do in ways that are hard to predict in advance.

Self-supervised learning: how they are trained

Foundation models are trained with self-supervised objectives that require no human-labeled data:

  • Causal language modeling (CLM) — predict the next token given the previous ones. Used by GPT family models. The training signal is everywhere: every position in every document is both context and label.
  • Masked language modeling (MLM) — randomly mask 15% of tokens, predict the masked tokens. Used by BERT family. Provides bidirectional context but cannot generate text autoregressively.
  • Contrastive learning — match images to their captions and push mismatched pairs apart in embedding space. Used by CLIP. Encodes alignment between modalities without explicit object labels.

The key insight is that natural data contains its own supervisory signal. A trillion-token corpus of text, code, and web pages contains more implicit information about language, reasoning, and the world than any hand-labeled dataset ever assembled.

Scaling laws and the Chinchilla findings

Kaplan et al. (2020) discovered that transformer loss follows smooth power laws in model size N and training tokens D: loss ∼ N−0.076 + D−0.095. This implied that larger models were always better, which led to a race to maximize parameter counts.

Hoffmann et al. (2022) corrected this with the Chinchilla result: compute-optimal training requires roughly equal scaling of model size and data. A 70B model trained on 1.4T tokens (the Chinchilla-optimal allocation) consistently outperformed a 280B model trained on 300B tokens with the same compute budget.

The practical lesson: earlier large models (GPT-3, Gopher) were undertrained. The Chinchilla result triggered a shift toward “smaller but well-trained” models — Mistral 7B, Phi-3, and the Llama 3 family all demonstrate that a well-trained smaller model beats a larger undertrained one.

Large vision models

The foundation model paradigm extended to vision through two complementary architectures:

  • Vision Transformers (ViT) — apply the same transformer architecture to sequences of image patches. Pre-trained on ImageNet-21k or JFT-3B, ViT models transfer to classification and segmentation tasks with fine-tuning.
  • CLIP (Contrastive Language-Image Pre-training) — train image and text encoders jointly to align paired images and captions in a shared embedding space. Zero-shot classification becomes possible: encode the query “a photo of a cat” and find the nearest image.
  • SAM (Segment Anything Model) — a foundation model for image segmentation trained on 1B masks across 11M images. Given a point, box, or text prompt, SAM segments the corresponding object with no task-specific fine-tuning.

These models are the backbone of multimodal systems: a CLIP image encoder feeds into an LLM to produce LLaVA, GPT-4V, and similar vision-language models.

Homogenization: one model to rule them all

Homogenization is the observation that increasingly diverse AI applications are built on top of a small number of foundation models. When a flaw exists in one foundation model, it propagates downstream to every product built on it.

The risks compound:

  • Monoculture failure — a security vulnerability, a bias, or a capability regression in GPT-4 affects every service built on the GPT-4 API simultaneously.
  • Concentration of power — training frontier models requires access to thousands of GPUs, hundreds of millions of dollars, and specialized expertise. This concentrates AI capability in a handful of organizations.
  • Opacity — the behavior of a 70B parameter model is not interpretable in any meaningful sense, yet it becomes the substrate for medical diagnosis, legal research, and educational tools.

These concerns motivate the open-source foundation model movement (Llama, Mistral, Falcon, Qwen) and efforts toward interpretability, alignment research, and governance frameworks.

The foundation model ecosystem

Foundation models now exist for every modality:

DomainObjectiveExamples
LanguageNext-token predictionGPT-4, Claude 3, Gemini, Llama 3
Vision-LanguageImage-text contrastiveCLIP, Flamingo, LLaVA, GPT-4V
CodeCode completionCodex, StarCoder, DeepSeek-Coder
AudioSpeech reconstructionWhisper, AudioPaLM, SeamlessM4T
BiologyProtein structure predictionAlphaFold2, ESM-2, OpenFold
Generative ImageDiffusion denoisingDALL-E 3, Stable Diffusion, Midjourney

Each row represents a paradigm shift in its domain: Whisper replaced specialized ASR pipelines, AlphaFold2 solved a 50-year protein folding problem, and GPT-4 replaced entire categories of NLP pipelines with a single API call.

Risks and societal implications

Foundation models raise policy questions that go beyond technical AI safety:

  • Bias amplification — models trained on web-scale text absorb demographic biases at scale, and when those models are used for hiring, lending, or criminal justice, the biases affect real people.
  • Dual use — the same model that writes poetry can draft phishing emails, generate disinformation, or assist in biosecurity threats.
  • Environmental cost — training GPT-3 emitted ~552 tonnes of CO⊂2;. Inference at scale adds orders of magnitude more. The industry is moving toward efficiency, but the compute cost is not zero.
  • Labor displacement — foundation models automate tasks that previously required skilled writers, translators, coders, and analysts. The pace of displacement is faster than prior automation waves.

These are not hypothetical risks. They are happening now, which is why understanding what foundation models are and how they work is essential for anyone using or building AI systems.

Recap

  • A foundation model is trained on massive diverse data with a self-supervised objective, then adapted to specific tasks — train once, deploy everywhere.
  • Emergence means capabilities appear at scale that were not present at smaller sizes and were not explicitly trained for.
  • Chinchilla showed that compute-optimal training requires balancing model size and data size equally — many early large models were undertrained.
  • Homogenization concentrates risk: flaws in a foundation model propagate to every application built on it.
  • The ecosystem now spans language, vision, code, audio, and biology — each domain has been reshaped.

Recall check

0 of …

Say the answer out loud before you reveal it — recalling it is what makes it stick, and rereading it is not.

  1. What distinguishes a foundation model from a traditional ML model?

  2. What are emergent capabilities in large language models?

  3. What are Chinchilla scaling laws and what did they reveal?

  4. What is the main societal risk of homogenization in foundation models?

Cheat sheet

Foundation Models

Train once on massive diverse data, adapt everywhere. Emergence gives scale new capabilities. Chinchilla: balance model size and data equally. Homogenization: one flaw, thousands of downstream effects.

FOUNDATION MODELS · AI.Cruz.in/foundation_models/foundation_models_intro.html

About the author

AI.Cruz builds and maintains AI.Cruz. Every module here is written and the visualisation behind it hand-built. Corrections are genuinely welcome — if a page states something wrong, get in touch.