Related Experiment Video
Updated: Feb 6, 2026

Fabrication and Design of Wood-Based High-Performance Composites
Published on: November 9, 2019
Circuit explained: How does a transformer perform compositional generalization
Cheng Tang1, Brenden Lake2, Mehrdad Jazayeri1,3
1Department of Brain and Cognitive Sciences, Massachusetts Institute of Technology, Cambridge, Massachusetts, United States of America.
Researchers identified and interpreted the neural network circuit enabling compositional generalization in transformers. This circuit uses position and identity representations for function composition, offering insights into symbolic reasoning in AI.
Area of Science:
- Artificial Intelligence
- Cognitive Science
- Machine Learning
Background:
- Compositional generalization is key to human cognition but poorly understood in neural networks.
- Prior work demonstrated transformers can achieve simple compositional generalization on sequence tasks.
Purpose of the Study:
- To mechanistically interpret the circuit responsible for compositional generalization in transformer models.
- To understand how neural networks achieve symbolic compositionality.
Main Methods:
- Utilized causal ablations to isolate the specific neural circuit.
- Performed precise activation edits to analyze circuit behavior.
- Investigated disentangled representations of token position and identity.
Main Results:
- Identified a circuit that performs function composition.
- The circuit uses a general token remapping rule based on position and identity, not specific function semantics.
- Activation edits predictably steered model outputs.
Conclusions:
- The identified circuit provides a mechanistic explanation for compositional generalization in transformers.
- This finding offers testable hypotheses for similar mechanisms in large-scale AI models.
- Understanding these circuits can advance both AI and cognitive science research.
More Related Videos
10:30A Generalized Method for Determining Free Soluble Phenolic Acid Composition and Antioxidant Capacity of Cereals and Legumes
Published on: June 10, 2022
04:09Author Spotlight: Streamlining Composite Plant Production via Agrobacterium rhizogenes-Mediated Hairy Root Transformation
Published on: June 30, 2023
Related Concept Videos
Equivalent Circuits for Practical Transformers
In a practical transformer, each winding exhibits resistance and leakage reactance. The...
Source Transformation for AC Circuits
Generalized Hooke's Law
Generalized Anxiety Disorder
Social Foundations of Self II: The Generalized Other
Generalization, Discrimination, and Extinction
Generalization occurs when a behavior reinforced in one context is performed in similar situations. For instance, a student who studies diligently for calculus and receives excellent grades might apply the same study habits to psychology and history, expecting similar results. Generalization shows how learning in one setting can influence behavior in...