Foundation Models
Foundation Model Paradigm
Read aloud is unavailable in this browser.
A New Paradigm for AI
We have explored scale, emergence, LLMs, and multimodality as separate topics. But stepping back, these represent facets of a broader transformation—the rise of the foundation model paradigm. This is not merely a technical evolution but a fundamental shift in how we build, deploy, and reason about AI systems.
The term 'foundation model' was coined by Stanford researchers in 2021 to capture a key property: these models serve as a foundation on which countless applications are built. Train once at enormous scale, then adapt to thousands of downstream tasks through fine-tuning, prompting, or simple integration.
This final page synthesizes the themes of this module into a coherent understanding of what foundation models are, why they represent a paradigm shift, and what this means for the future of AI.
By the end of this page, you will understand: (1) the formal definition and key properties of foundation models, (2) how they differ from traditional ML pipelines, (3) the economics and incentives of foundation models, (4) their applications and deployment patterns, (5) societal implications and governance challenges, and (6) open questions about the paradigm's future.
Defining Foundation Models
The Stanford HAI Center coined the term 'foundation model' in their 2021 report to describe models with specific properties:
Definition:
A foundation model is a large model trained on broad data (generally using self-supervision at scale) that can be adapted to a wide range of downstream tasks.
Key Properties:
-
Trained at Scale: Massive compute, data, and parameters. These models represent billions of dollars of investment.
-
Broad Pre-training Data: Not trained for a specific task but on diverse data—internet text, images, code, etc.
-
Self-Supervised: Training signal comes from the data itself (predict next token, reconstruct masked content), not from human labels.
-
Adaptable: A single pre-trained model serves as the base for countless applications through fine-tuning, prompting, or other adaptation methods.
-
Emergent Capabilities: Capabilities arise that weren't explicitly trained—from scale and the richness of pre-training.
| Domain | Example Models | Pre-training Objective |
|---|---|---|
| Language | GPT-4, Claude, LLaMA | Next token prediction |
| Vision | CLIP, DINOv2, ViT-22B | Contrastive learning, masked autoencoding |
| Vision-Language | GPT-4V, Gemini, LLaVA | Mixed vision/language objectives |
| Audio | Whisper, AudioLM | Speech recognition, audio prediction |
| Code | Codex, CodeLlama, StarCoder | Next token prediction on code |
| Science | AlphaFold, ESM | Masked sequence prediction (proteins) |
| Robotics | RT-2, Gato | Action prediction from observations |
What Makes Them 'Foundational':
The architectural metaphor is apt. Just as a building's foundation supports diverse structures above it, a foundation model supports diverse applications:
- The same GPT underlies chatbots, code assistants, writing tools, and reasoning agents
- The same CLIP embeddings power image search, classification, and generation conditioning
- The same Whisper transcribes meetings, generates subtitles, and enables voice interfaces
This one-to-many relationship—one foundation, many applications—is the defining pattern. It represents an enormous concentration of capability in a small number of artifacts.
The term 'base model' often refers specifically to the pre-trained model before any fine-tuning (e.g., GPT-3 before RLHF). 'Foundation model' is broader—it refers to any model that serves as a foundation for adaptation. Context usually makes the intended meaning clear.
The Paradigm Shift: Before and After
To appreciate the foundation model paradigm, we must understand how it differs from what came before. The contrast illuminates both the benefits and the risks of the new approach.
The Traditional ML Pipeline (Pre-2017):
For a specific task (e.g., sentiment analysis), the workflow was:
- Collect labeled data for your specific task (expensive, time-consuming)
- Engineer features tailored to the domain (expertise-dependent)
- Select an algorithm appropriate to the problem
- Train a model from scratch on your data
- Deploy a specialized model for production
Each application required its own pipeline. Knowledge didn't transfer systematically. Expertise was required at every stage.
- •One model per task
- •Labeled data required
- •Feature engineering critical
- •Modest compute requirements
- •Domain expertise essential
- •Capabilities limited by training data
- •Predictable behavior
- •Many actors could participate
- •One model, many tasks
- •Self-supervised (unlabeled data)
- •Learned representations
- •Massive compute requirements
- •Adapted via prompting/fine-tuning
- •Emergent, unexpected capabilities
- •Less predictable behavior
- •Concentrated in few actors
The Foundation Model Pipeline (Post-2020):
With foundation models, the workflow transforms:
- Acquire/access a foundation model (train or use a pre-trained one)
- Adapt to your task via prompting, fine-tuning, or RAG
- Deploy with the foundation model as the core
Labeled data becomes optional. Feature engineering disappears. Algorithm selection reduces to 'which foundation model?' The barrier shifts from ML expertise to compute access.
Three Levels of the New Stack:
- Foundation Model Layer: The pre-trained model (GPT-4, Claude, LLaMA)
- Adaptation Layer: How you specialize for your use case (prompts, fine-tuning, RAG)
- Application Layer: The user-facing product (ChatGPT, Copilot, custom tools)
Most practitioners now operate at layers 2 and 3—adapting and applying foundation models rather than training from scratch.
Foundation models simultaneously democratize and concentrate AI. They democratize application building—anyone can build on GPT via API. But they concentrate foundational capability—only a few organizations can train GPT-4 class models. This creates a new division of labor and power in AI.
The Economics of Foundation Models
The foundation model paradigm has distinct economic characteristics—enormous upfront costs, near-zero marginal adaptation costs, and winner-take-most dynamics.
Training Costs: The Upfront Bet
Training a frontier foundation model requires:
- Compute: $50-150M+ in hardware/cloud costs
- Engineering: Teams of 50-200+ for months to years
- Data: Expensive curation and cleaning at scale
- Failed experiments: Multiple expensive runs that don't work
Total costs for frontier models (GPT-4, Claude 3) are estimated at $100M-1B+. This is a massive upfront bet that the model will be good enough to justify the investment.
| Layer | Cost Structure | Competition Dynamic |
|---|---|---|
| Foundation Model Training | $100M-1B+ per model, highly uncertain | Oligopoly: only few can compete |
| Model Hosting/APIs | Per-token inference costs | Commodity with differentiation on reliability/features |
| Fine-Tuning/Adaptation | $1K-100K per task | Many providers, low barriers |
| Application Development | Software development costs | Competitive, many entrants |
Inference Costs: The Recurring Revenue
Once trained, models generate value through inference:
- API providers charge per token (input/output)
- Current pricing (2024): $0.50-15 per million input tokens, $1.50-60 per million output tokens
- Enterprise contracts, volume discounts, specialized deployments
The business model resembles cloud infrastructure—high upfront investment, recurring usage revenue.
The Open-Source Disruption:
Open-weight models (LLaMA, Mistral, Qwen) disrupt the commercial model:
- Anyone can run inference without per-token fees
- Self-hosting at scale may be cheaper than API access
- Fine-tuning on proprietary data without sharing it with providers
- But: still depend on few organizations for foundation training
Winner-Take-Most Dynamics:
Several factors favor concentration:
- Scaling advantages: Better models require more resources, creating a gap
- Data moats: Training data and user interaction data are valuable and hard to replicate
- Brand and trust: Users gravitate to established, reliable providers
- Integration advantages: Models integrated into ecosystems (Office, Search) have distribution advantages
The economics of foundation models remain unproven at societal scale. Are current inference prices sustainable given compute costs? Will the model moat persist as open-source closes the gap? Can any of the current players actually profit, or is this a competition for market position that destroys value for all participants?
Deployment Patterns and Applications
Foundation models have spawned diverse deployment patterns—different ways of leveraging their capabilities in applications.
Pattern 1: Direct Prompting
The simplest pattern: send a prompt, receive a response.
- User interacts with UI → prompt sent to model → response returned
- Examples: ChatGPT, Claude chat interfaces, simple Q&A bots
- Advantages: Minimal engineering, quick to deploy
- Limitations: No access to private/current data, pure model capabilities only
Pattern 2: Retrieval-Augmented Generation (RAG)
Augment the model with external knowledge:
- User query arrives
- Retrieve relevant documents from a knowledge base
- Include retrieved content in prompt context
- Model generates response grounded in retrieved information
This pattern addresses knowledge cutoffs and private data needs.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
"""Retrieval-Augmented Generation (RAG) Pattern Core idea: Ground LLM responses in retrieved documents.This addresses knowledge currency and domain specificity.""" class RAGSystem: """ Production RAG systems involve many components: - Document chunking and preprocessing - Embedding model for semantic search - Vector database for efficient retrieval - Reranker for relevance scoring - LLM for synthesis - Citation tracking for verification """ def __init__( self, embedding_model, # e.g., text-embedding-3-small vector_db, # e.g., Pinecone, Weaviate, Qdrant llm, # e.g., GPT-4, Claude reranker=None, # Optional reranker for better relevance ): self.embedder = embedding_model self.vector_db = vector_db self.llm = llm self.reranker = reranker def index_documents(self, documents: list[str], metadata: list[dict]): """Index documents for later retrieval.""" for doc, meta in zip(documents, metadata): # Chunk document (important: chunk size affects retrieval quality) chunks = self.chunk_document(doc, chunk_size=512, overlap=50) for i, chunk in enumerate(chunks): embedding = self.embedder.embed(chunk) self.vector_db.insert( embedding=embedding, text=chunk, metadata={**meta, 'chunk_id': i} ) def query( self, user_query: str, top_k: int = 5, rerank_top_n: int = 3, ) -> str: """ RAG query pipeline: 1. Embed query 2. Retrieve candidates 3. Rerank (optional) 4. Generate response with context """ # Step 1: Embed the query query_embedding = self.embedder.embed(user_query) # Step 2: Retrieve top-k candidates candidates = self.vector_db.search(query_embedding, top_k=top_k) # Step 3: Rerank if available (improves relevance significantly) if self.reranker: candidates = self.reranker.rerank( query=user_query, documents=[c.text for c in candidates], top_n=rerank_top_n ) # Step 4: Format context for LLM context = " ".join([ f"[Source: {c.metadata['source']}]{c.text}" for c in candidates ]) # Step 5: Generate response grounded in context prompt = f"""Use the following context to answer the question.If the answer is not in the context, say so.Always cite your sources. Context:{context} Question: {user_query} Answer:""" response = self.llm.generate(prompt) return response # Pattern variations:rag_variants = { 'naive_rag': 'Simple retrieve-then-generate', 'iterative_rag': 'Multiple retrieval rounds, refining query', 'agentic_rag': 'Agent decides when/what to retrieve', 'hybrid_rag': 'Combine sparse (BM25) and dense (embedding) retrieval', 'graph_rag': 'Retrieve from knowledge graphs, not just documents',}- •Agents — LLMs that take actions (call APIs, write code, browse web) in loops until a task is complete.
- •Fine-Tuning — Adapt the model on domain-specific data for better task performance or behavior shaping.
- •Function Calling — Models output structured calls to external tools/APIs rather than free text.
- •Multi-Model Systems — Orchestrate multiple specialized models (router + specialists) for complex tasks.
- •Evaluation Pipelines — Use LLMs to evaluate other LLM outputs, enabling scalable quality assessment.
Application Categories:
Foundation models power applications across nearly every domain:
- Productivity: Writing assistance, code completion, meeting summaries
- Customer Service: Chatbots, email response, support automation
- Search & Discovery: Semantic search, recommendation, research assistance
- Creative: Image generation, music composition, design assistance
- Analysis: Document understanding, data extraction, report generation
- Education: Tutoring, content creation, assessment
- Healthcare: Clinical documentation, diagnosis support, research
- Legal: Document review, contract analysis, research
Most organizations face a key decision: use commercial APIs (GPT-4, Claude) vs. run open-weight models (LLaMA, Mistral). APIs offer simplicity and frontier capabilities; open weights offer privacy, customization, and potentially lower costs at scale. The right choice depends on privacy requirements, volume, customization needs, and engineering capacity.
Societal Implications and Governance
Foundation models are not merely technical artifacts—they are sociotechnical systems with profound implications for society. Understanding these implications is essential for responsible development and deployment.
Labor and Economic Disruption:
Foundation models automate or augment cognitive work at unprecedented scale:
- Vulnerable occupations: Content writing, customer service, basic programming, data entry, translation
- Augmented occupations: Professional services, creative work, research, complex programming
- New occupations: Prompt engineering, AI safety, model evaluation, AI-assisted roles
The speed and breadth of this transformation differs from past automation waves—it affects white-collar work that was previously considered automation-resistant.
- •Concentration of Power — A handful of organizations control the most capable models. This concentrates technical, economic, and potentially political power.
- •Misinformation at Scale — Foundation models can generate convincing false content—text, images, audio, video—enabling disinformation campaigns.
- •Dual-Use Concerns — The same models that assist programming can help create malware; the same models that answer questions can provide harmful information.
- •Liability and Accountability — When an AI system causes harm, who is responsible? The model provider, the deployer, the user?
- •Data and Copyright — Models trained on internet-scale data raise unresolved questions about copyright, consent, and compensation.
- •Bias and Discrimination — Models reflect and may amplify biases in training data, potentially affecting high-stakes decisions.
Governance Approaches:
Different actors are taking different approaches to foundation model governance:
Industry Self-Regulation:
- Responsible AI principles and policies
- Safety teams and red-teaming
- Model release strategies (staged, API-only, open weights)
Government Regulation:
- EU AI Act: Risk-based requirements, foundation model provisions
- US Executive Order: Safety evaluations, reporting requirements
- China: Algorithm registration, content moderation requirements
International Coordination:
- AI Safety Summits (Bletchley, Seoul)
- Emerging discussions on compute governance
- Efforts at international standards and norms
Technical Approaches:
- Constitutional AI and other alignment techniques
- Model evaluations and safety benchmarks
- Watermarking and provenance for generated content
Governance faces a fundamental challenge: the technology moves faster than regulatory processes. By the time regulations are drafted, debated, and implemented, capabilities may have advanced significantly. This tension between innovation velocity and governance deliberation is a defining challenge of the foundation model era.
Safety and Alignment: The Central Challenge
As foundation models become more capable and more widely deployed, ensuring they remain safe and beneficial becomes increasingly critical. This is the domain of AI safety and alignment research.
The Core Alignment Problem:
How do we ensure that increasingly capable AI systems reliably do what we want them to do—and that what we ask them to do is actually good?
This breaks down into several sub-problems:
- Specifying Objectives: How do we precisely define what we want?
- Training for Objectives: How do we train models to pursue specified objectives?
- Verifying Alignment: How do we check that models are actually aligned?
- Maintaining Alignment: How do we ensure alignment persists as capabilities grow?
| Approach | Description | Limitations |
|---|---|---|
| RLHF | Train on human preferences via reinforcement learning | Preferences may be inconsistent; vulnerable to reward hacking |
| Constitutional AI | Train model to critique and revise own outputs based on principles | Principles must be specified; self-critique has limits |
| Red-Teaming | Actively try to elicit harmful behavior to fix it | Can't cover all possible misuse; arms race dynamics |
| Interpretability | Understand model internals to verify alignment | Currently limited to simple circuits; scaling unclear |
| Scalable Oversight | Use AI to help humans evaluate AI outputs | Relies on AI being trustworthy enough to assist |
| Capability Elicitation | Systematically uncover latent capabilities before deployment | Emergent capabilities may escape testing |
Current Safety Practices:
Frontier labs have developed safety practices including:
Pre-Deployment:
- Internal red-teaming by safety teams
- External red-teaming by domain experts
- Evaluations on dangerous capability benchmarks (bio, cyber, persuasion)
- Safety fine-tuning to refuse harmful requests
Deployment:
- Content moderation and filtering
- Rate limiting and abuse detection
- User feedback mechanisms
- Incident response processes
Ongoing:
- Monitoring for emergent misuse patterns
- Model updates to address new risks
- Research into more robust safety methods
Open Challenges:
- Deceptive alignment: A model that appears aligned during training but behaves differently in deployment. This is theoretically possible and hard to detect.
- Mesa-optimization: A model that develops internal optimization processes that may not share the outer training objective.
- Capability jumps: if capabilities increase faster than safety methods, a capability leap could occur before appropriate safety measures exist.
AI safety has grown from a fringe concern to a major research field with significant funding, dedicated teams at frontier labs, and growing academic attention. However, safety research still lags behind capability research in both resources and results. Closing this gap is arguably one of the most important challenges in AI.
Future Directions: What Comes Next
The foundation model paradigm is still evolving. Several directions are likely to shape its future.
Direction 1: Continued Scaling
The most obvious extrapolation: more parameters, more data, more compute. If scaling laws continue to hold, GPT-5/6/7 generation models will be dramatically more capable than current systems. The 10^26-27 FLOP training runs (10-100× current frontier) are likely in the next 3-5 years.
Direction 2: Inference-Time Compute
Recent work (like OpenAI's o1) suggests that allocating more compute at inference time—allowing models to 'think longer' through chain-of-thought, search, or Monte Carlo Tree Search—can dramatically improve reasoning capabilities without re-training.
Direction 3: Agentic Systems
Foundation models as autonomous agents that pursue goals over extended time horizons:
- Research agents that explore topics independently
- Coding agents that architect and implement entire features
- Personal assistants that manage tasks and projects
- Scientific agents that formulate and test hypotheses
- •Reasoning and Verification — Combining neural networks with formal methods for verified reasoning, especially in math and code.
- •Memory and State — Long-term memory systems that allow models to maintain state across sessions and learn from interaction.
- •World Models — Moving from pattern matching to genuine models of how the world works—physics, causality, social dynamics.
- •Efficiency Breakthroughs — Architectural innovations that could provide 10-100× efficiency gains, democratizing frontier capabilities.
- •Neurosymbolic Integration — Combining neural networks (pattern recognition, language) with symbolic systems (logic, planning, structured knowledge).
- •AI-Assisted AI Research — Using foundation models to accelerate AI research itself—a potential path to recursive improvement.
The Long-Term Horizon:
Looking further ahead, the foundation model paradigm raises fundamental questions:
-
AGI and ASI: Do foundation models represent a path to artificial general intelligence? Could they eventually lead to superintelligent systems?
-
Human-AI Collaboration: As AI becomes more capable, how does the human role evolve? Oversight? Partnership? Delegation?
-
Societal Adaptation: How do institutions—education, labor markets, governance—adapt to increasingly capable AI?
-
Existential Risk: Could sufficiently advanced foundation models pose risks to human existence or flourishing? How do we evaluate and manage such risks?
These questions move beyond technical research into philosophy, economics, and politics. They are not solely for AI researchers to answer.
Predictions about AI's future have consistently been wrong—both overly optimistic and overly pessimistic. The honest answer to 'where is this going?' is: we don't know. What we can do is understand the current paradigm deeply, engage thoughtfully with its implications, and work to steer development in beneficial directions.
KEEP LEARNING
Keep learning for free.
Read the complete lesson, save your notes and pick up where you left off with a free account. No card needed.