AI
Foundation Model: What It Is and How It Differs From an LLM
What is a foundation model? How it's trained and adapted, foundation model vs LLM and frontier model, examples in text, images and science, and risks.
A foundation model is a large AI model trained on huge amounts of broad, mostly unlabeled data that can then be adapted to many different tasks. Instead of building a separate model for translation, summarization, image captioning or code, you start from one general model and steer it with prompts, fine-tuning or extra tools. Large language models like GPT, Claude, Gemini and Llama are foundation models, but the category is wider: it also includes image, audio, video, robotics and scientific models. The term was coined by Stanford researchers in 2021 to describe this shift toward a few general models underpinning thousands of applications.
This guide answers what is a foundation model in detail, how foundation models are trained and adapted, foundation model vs LLM, foundation model vs frontier model, foundation models examples across fields, a worked example of adapting one, and their costs and risks.
What Is a Foundation Model?
Stanford's Center for Research on Foundation Models introduced the term in its 2021 report "On the Opportunities and Risks of Foundation Models," written by more than 100 researchers. It defines a foundation model as "any model that is trained on broad data (generally using self-supervision at scale) that can be adapted (e.g., fine-tuned) to a wide range of downstream tasks." Early examples it named included BERT, GPT-3 and CLIP.
Three features define a foundation model:
- Broad training data. Text from the web and books, images with captions, code, audio, video or scientific data, often trillions of tokens.
- Self-supervised learning at scale. The model learns from the data itself, such as by predicting the next word or a hidden image patch, without humans labeling each example.
- Adaptability. The same trained model can be prompted, fine-tuned or connected to tools for many tasks it wasn't specifically trained for.
The name is deliberate. The report's authors called these models "foundations" because many applications are built on top of them, and they stressed that a foundation is "unfinished": it only becomes useful, and its risks only become concrete, once it's adapted to a specific use.
How Foundation Models Work
Building and using a foundation model happens in stages.
1. Pretraining. The model, usually a transformer neural network, is trained on a massive dataset with a simple self-supervised objective. A language model learns to predict the next token; an image model might learn to match pictures with captions or to rebuild masked parts of images. Pretraining takes thousands of GPUs or TPUs running for weeks or months, and it's where the model picks up general knowledge, grammar, reasoning patterns and visual concepts.
2. Post-training. The raw pretrained model, often called a base model, predicts text well but doesn't follow instructions reliably. Developers then fine-tune it on examples of good responses and use techniques such as reinforcement learning from human feedback to make it helpful and safer. This produces the chat and instruction-following versions people use.
3. Adaptation. Businesses and developers then customize it for their task:
| Adaptation method | What it does | Cost and effort |
|---|---|---|
| Prompting | Instructions and examples in the input | Lowest; no training |
| Retrieval-augmented generation (RAG) | Feeds relevant documents into the prompt at query time | Low to medium; needs a search index |
| Fine-tuning | Further trains the model on task-specific examples | Medium; needs data and GPUs |
| Parameter-efficient fine-tuning (LoRA) | Trains small add-on weights instead of the whole model | Lower than full fine-tuning |
| Tool use and agents | Lets the model call APIs, search or run code | Medium; needs engineering |
| Distillation | Trains a smaller model to imitate the large one | Medium to high, cheaper to run afterwards |
Our guide to fine-tuning vs RAG explains when each of the two most common methods fits.
Emergence and Homogenization
The Stanford report highlighted two effects that make foundation models different from earlier AI.
Emergence. Abilities appear that nobody explicitly trained for. GPT-3 was trained only to predict the next word, yet it could translate, answer questions and learn new tasks from a few examples in the prompt, an ability called in-context learning. Behavior emerges from scale and data rather than being designed.
Homogenization. Many applications now rely on the same few models. That's efficient, since improvements to one model improve everything built on it, but it also means a flaw or bias in one model spreads to thousands of products at once.
Foundation Model vs LLM
Every large language model is a foundation model, but not every foundation model is an LLM.
| Foundation model | Large language model (LLM) | |
|---|---|---|
| Scope | Any large model trained on broad data and adaptable to many tasks | A foundation model trained mainly on text |
| Data | Text, images, audio, video, code, sensor or scientific data | Mostly text and code |
| Output | Text, images, audio, embeddings, actions, predictions | Text (and code) |
| Examples | GPT, Claude, Gemini, CLIP, Stable Diffusion, Whisper, Segment Anything | GPT, Claude, Llama, Mistral, Qwen |
| Relationship | The broad category | One type within it |
The line is blurring because leading LLMs are now multimodal: they take images, audio and documents as input, and some produce images or speech. They're often called multimodal foundation models. Our explainers on what an LLM is and multimodal AI cover each side in more detail.
Foundation Model vs Frontier Model
A frontier model is a foundation model at the cutting edge: the most capable general-purpose models available at a given time, trained with the most compute. The term is used heavily in AI policy and safety discussions, for example by the Frontier Model Forum that Anthropic, Google, Microsoft and OpenAI set up in 2023.
| Foundation model | Frontier model | |
|---|---|---|
| Meaning | Any broadly trained, adaptable model | The most capable foundation models at the moment |
| Size | From a few hundred million to trillions of parameters | The largest, most compute-intensive models |
| Examples | BERT, Llama, small open models, CLIP | The newest flagship models from leading labs |
| Changes over time | A model stays a foundation model | Today's frontier model becomes ordinary within a few years |
| Policy attention | General | Most scrutiny for safety and misuse risks |
Regulators use their own terms. The EU AI Act calls these "general-purpose AI models" and sets obligations that took effect in August 2025, with extra duties for models with "systemic risk." A model is presumed to have systemic risk when its training used more than 10^25 floating-point operations of compute, a threshold aimed at frontier-scale models.
Foundation Models Examples
| Field | Examples | What they do |
|---|---|---|
| Language and chat | GPT, Claude, Gemini, Llama, Mistral, Qwen, DeepSeek | Text generation, reasoning, coding, assistants |
| Early language models | BERT, GPT-3, T5 | Search, classification, the first wave of adaptable models |
| Vision and language | CLIP, vision language models | Matching images with text, image understanding |
| Image generation | Stable Diffusion, DALL-E, Imagen | Text-to-image generation |
| Speech | Whisper | Speech recognition and translation |
| Image segmentation | Segment Anything (SAM) | Cutting out any object in an image |
| Video | Sora, Veo | Text-to-video generation |
| Science and weather | Weather models like Microsoft's Aurora, protein language models | Forecasting, biology, materials |
| On-device | Apple Foundation Models framework | Gives app developers access to Apple's on-device model of about 3 billion parameters |
Apple's use of the name is a good example of how common it has become: its Foundation Models framework, announced in 2025, lets developers call the on-device language model behind Apple Intelligence from their own apps.
Worked Example: Adapting a Foundation Model for Support Tickets
A software company wants to sort incoming support tickets into five categories and draft replies. Here's how the adaptation choice plays out.
| Approach | Setup | Quality | Monthly running cost (example) |
|---|---|---|---|
| Train a custom classifier from scratch | Label 20,000 tickets, train and maintain a model | Good at sorting, can't draft replies | Low to run, high upfront labeling cost |
| Prompt a foundation model | Write category descriptions and 10 examples in the prompt | Good at sorting and drafting immediately | 30,000 tickets × 1,500 tokens = 45 million tokens a month |
| Prompting plus RAG over help docs | Add the most relevant help articles to each prompt | Better, more accurate replies | More tokens per ticket, plus a search index |
| Fine-tune a smaller open model | 2,000 labeled examples, LoRA fine-tuning | Strong on this task, cheaper per ticket | GPU or hosting cost, plus maintenance |
At an example price of $1 per million input tokens, the prompted version costs about $45 a month for 45 million tokens, before output tokens. The team can launch in days, then fine-tune a smaller model later if volume grows. That shift, from training one model per task to adapting a general one, is the whole point of foundation models.
How Much Does It Cost to Build a Foundation Model?
Training a frontier foundation model is among the most expensive things in computing. Stanford's 2024 AI Index, working with Epoch AI, estimated the compute cost to train OpenAI's GPT-4 at about $78 million and Google's Gemini Ultra at about $191 million. Those are compute estimates only; staff, research, failed runs and data add more. Epoch AI's research found that the cost of training the largest models has been growing roughly 2.4 times per year.
Smaller foundation models are far cheaper, and most organizations never pretrain one. They use models through APIs, or download open-weight models such as Llama, Qwen or DeepSeek and adapt them. The economics favor a few organizations building foundations and everyone else building on top.
Benefits and Risks of Foundation Models
Benefits:
- One model, many tasks. Fewer specialized models to build and maintain.
- Less labeled data needed. Adaptation often needs a few examples, or none, instead of thousands.
- Faster products. Teams can prototype AI features in days.
- Steady improvement. Upgrading the base model can improve every application built on it.
Risks and limitations:
- Hallucinations. Models can produce confident but false answers.
- Bias and harmful content learned from training data, which homogenization spreads widely.
- Opacity. It's hard to know exactly what data a model was trained on or why it gives an answer.
- Concentration of power. Few organizations can afford to build frontier models.
- Copyright and privacy questions about training data, now the subject of lawsuits and regulation.
- Energy and water use in training and serving at scale.
- Misuse, from disinformation to cyberattacks, which is why frontier models face the most policy attention.
FAQ
What is a foundation model in simple terms?
It's a large, general AI model trained on huge amounts of data that can be adapted to many different jobs, such as writing, answering questions, analyzing images or coding, instead of being built for just one task.
Is ChatGPT a foundation model?
ChatGPT is an application built on OpenAI's GPT models, which are foundation models. The chat product adds instruction tuning, safety systems, tools and an interface on top.
What is the difference between a foundation model and generative AI?
Generative AI describes what a system does: create text, images, audio or video. A foundation model describes how it's built: trained broadly and adapted to many tasks. Most generative AI tools today run on foundation models, but some foundation models, like embedding models, don't generate content.
Are all foundation models large language models?
No. LLMs are the best-known type, but foundation models also include image, speech, video, robotics, weather and biology models.
Who coined the term foundation model?
Researchers at Stanford's Center for Research on Foundation Models and Institute for Human-Centered AI introduced it in an August 2021 report.