Quick Take
| Language Model (LM) | Large Language Model (LLM) | Foundation Model (FM) |
|---|
| What is it? | Any model that learns the statistical structure of language and predicts the next token/word. | An LM that is very large (⇢ usually 1 B+ parameters) and uses modern neural-network techniques (Transformers) trained on web-scale corpora. | A model trained on broad, heterogeneous data at scale so that it can be adapted (via fine-tuning, prompting, adapters, etc.) to many downstream tasks—language-only or multimodal. |
| Scope | Text only. | Text only (sometimes code). | Can be text, code, images, audio, video, multimodal. |
| Scale | Any size—from a simple 5-gram to a 125 M-parameter GPT-2. | “Large” by today’s standards—billions to trillions of parameters + big training corpora. | Size varies, but typically large; “foundation” refers more to generality than raw parameter count. |
| Core Goal | Predict next token (probability distribution). | Same as LM but with emergent capabilities due to scale. | Provide a foundation for many tasks; next-token prediction is just the pre-training objective. |
| Key Examples | KenLM 5-gram, Char-RNN, GPT-2 small (124 M). | GPT-3, LLaMA-2, PaLM 2, Claude, Gemini Pro. | GPT-4, Flamingo (vision-language), CLIP, SAM (image segmentation), Whisper (ASR). |
| Relationship | — | Subclass of LM. | Superset: includes LLMs but also vision/audio-only or multimodal foundations. |
1. Language Model (LM)
-
Definition
A probabilistic model P(w₁…wₙ) that captures the distribution of sequences in natural language.
-
Historical forms
• N-gram counts with back-off
• Recurrent Neural Networks (RNNs, LSTMs, GRUs)
• Transformer-based models (attention)
-
Key traits
• May be tiny or large.
• Usually trained on domain-specific data (e.g., speech transcripts for ASR).
-
Uses
• Auto-complete, speech recognition rescoring, machine translation decoding, spelling correction.
2. Large Language Model (LLM)
-
Definition
A neural LM whose scale (parameters + data) is big enough that new, “emergent” abilities appear—few-shot reasoning, chain-of-thought, tool use, etc.
-
Typical features
• Transformer architecture.
• Billions–trillions of parameters.
• Pre-trained on web crawl, books, code, forums.
• Fine-tuned with RLHF / supervised instruction to align with human intents.
-
Why “large” matters
• Larger context windows.
• Better generalization across domains.
• Enables in-context learning (no gradient updates needed for many tasks).
-
Limitations
• Still text-only (unless specially extended).
• High compute and memory cost.
• Hallucinations, sensitivity to prompts.
3. Foundation Model (FM)
-
Definition (Stanford HAI, 2021)
“Models trained on broad data at scale that can be adapted to a wide range of downstream tasks.”
-
Generalization across modalities
• Language-only → GPT-4, PaLM 2.
• Vision-language → Flamingo, BLIP-2.
• Vision-only → SAM (Segment Anything Model).
• Audio → Whisper.
-
Characteristics
• Pre-training objective is often self-supervised (masked, contrastive, next-token).
• A platform—you adapt it rather than train a task-specific model from scratch.
• Often released with APIs or checkpoints plus instruction-tuning recipes.
-
Adaptation methods
• Prompt engineering (zero-/few-shot).
• Fine-tuning (full, LoRA, adapters).
• Retrieval-augmented generation (RAG) and tool chaining.
-
Relationship to LLMs
• Every LLM that can be adapted to multiple language tasks is a foundation model.
• Not every foundation model is an LLM (e.g., CLIP, SAM).
Visual Hierarchy
All language models
├── Small / medium LMs (n-gram, LSTM, GPT-2 small)
└── Large Language Models (GPT-3, LLaMA-2, PaLM 2)
└── (subset of) Foundation Models
├── Text-only FMs (GPT-4, Claude)
├── Multimodal FMs (Gemini, Flamingo)
└── Vision-only / Audio-only FMs (SAM, Whisper)
When to use which term?
• “Language model” – discussing basic next-token prediction or any size/classic method.
• “Large language model” – when scale, emergent abilities, or modern transformer-based chatbots are relevant.
• “Foundation model” – when focusing on adaptability across many tasks or modalities (not necessarily text only).
TL;DR
Language models are the broad category of models that predict words; when those models become very big and powerful, we call them large language models; and when such (big or small) models serve as a reusable backbone for many downstream applications—across text, images, or other data—we call them foundation models.