Stanford CS25: Transformers United V6 I Distinct Modes of Generalization from Parameters and Context

| Podcasts | May 20, 2026 | 3.29 Thousand views | 1:12:30

TL;DR

Language models exhibit a fundamental 'reversal curse' where they fail to generalize relational knowledge (like reversing 'A is B's parent') when learned through parameter updates, yet perform perfectly when the same information is provided in-context, revealing distinct computational modes for parametric versus contextual learning.

🔄 The Reversal Curse Phenomenon 3 insights

Fine-tuned models fail basic relational reversals

When trained on facts like 'X is Y's parent,' models cannot answer 'Who is X's child?' despite high accuracy on the forward relation.

In-context learning solves reversal instantly

Placing the same dataset in the model's context window yields 99% accuracy on reversal questions without any parameter updates.

Syllogistic reasoning shows similar gaps

Models trained on logical premises fail to deduce conclusions parametrically, yet succeed when the premises are provided in-context.

🧠 Fundamental vs. Surface Learning 3 insights

Pre-training from scratch doesn't fix the gap

Even when trained from scratch on datasets containing explicit reversals, models memorize forward relations perfectly but show zero generalization to held-out reversals in parameters.

Parametric learning binds to explicit form

Knowledge stored in weights consolidates across documents but remains tied to how information was explicitly stated during training.

Context preserves latent structural flexibility

Information in context maintains richer detail and relationships, allowing flexible manipulation and generalization at test time.

⚙️ Implications for AI Architecture 2 insights

Statistical vs. symbolic generalization trade-off

Parametric learning extracts broad statistical patterns across documents, while in-context learning enables specific flexible reasoning on provided data.

Architecture dependence of the curse

The reversal curse is systematic in causal next-token prediction models but can be mitigated through bidirectional architectures or modified learning objectives.

Bottom Line

To achieve robust generalization in language models, developers should leverage in-context learning for flexible relational reasoning while using parametric learning for statistical pattern extraction, rather than relying solely on fine-tuning for knowledge injection.

More from Stanford Online

View all
Stanford MS&E435 Economics of the AI Supercycle | Spring 2026 | Building AI Factories
49:48
Stanford Online Stanford Online

Stanford MS&E435 Economics of the AI Supercycle | Spring 2026 | Building AI Factories

Crusoe Energy CEO Chase Lockmiller explains how AI data centers represent history's second-largest infrastructure investment, driven by the economic potential of scalable 'digital labor.' He reveals Crusoe's strategy of building massive AI factories in stranded-power locations like Abilene, Texas, to overcome the industry's critical bottleneck: energized data center capacity.

17 days ago · 9 points
Stanford CS153 Frontier Systems | Scale, AGI, and the Future of Everything
41:10
Stanford Online Stanford Online

Stanford CS153 Frontier Systems | Scale, AGI, and the Future of Everything

Sam Altman explains how AI has fundamentally altered startup economics, enabling small teams to achieve unprecedented scale, while sharing OpenAI's journey from research lab to product company and arguing that pushing systems beyond conventional scaling limits often reveals emergent properties that consensus thinking misses.

20 days ago · 10 points