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.

Plos One
|February 4, 2026
PubMed
Summary

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.

Related Concept Videos

Equivalent Circuits for Practical Transformers01:28

Equivalent Circuits for Practical Transformers

The practical equivalent circuits of single-phase two-winding transformers exhibit significant deviations from their idealized versions due to the inherent properties of winding resistance and finite core permeability. These properties result in real and reactive power losses, affecting the transformer's performance. Understanding these deviations is crucial for designing more efficient transformers.
In a practical transformer, each winding exhibits resistance and leakage reactance. The...
1.4K
Source Transformation for AC Circuits01:11

Source Transformation for AC Circuits

The process of source transformation in the frequency domain entails the conversion of a voltage source, positioned in series with an impedance, into a current source that is parallel to an impedance, or the other way around. It is essential to maintain the following relationships while transitioning from one source type to another.
1.1K
Generalized Hooke's Law01:22

Generalized Hooke's Law

The generalized Hooke's Law is a broadened version of Hooke's Law, which extends to all types of stress and in every direction. Consider an isotropic material shaped into a cube subjected to multiaxial loading. In this scenario, normal stresses are exerted along the three coordinate axes. As a result of these stresses, the cubic shape deforms into a rectangular parallelepiped. Despite this deformation, the new shape maintains equal sides, and there is a normal strain in the direction of the...
2.7K
Generalized Anxiety Disorder01:30

Generalized Anxiety Disorder

Generalized Anxiety Disorder (GAD) is a chronic condition characterized by excessive and uncontrollable worry that persists for at least six months, significantly interfering with daily functioning. Unlike situational anxiety, which arises in response to specific stressors, GAD often occurs without a clear cause. Individuals may experience disproportionate worry about work, health, or relationships. For instance, a person might continuously fear poor health despite normal medical evaluations or...
727
Social Foundations of Self II: The Generalized Other01:20

Social Foundations of Self II: The Generalized Other

According to George Herbert Mead, as children progress beyond the game stage, they develop a more comprehensive understanding of societal rules and norms. This cognitive and social development enables them to internalize the expectations of the broader community, refining their ability to regulate behavior.Consistent participation in organized activities is crucial in helping children recognize that their actions are not isolated but contribute to a more significant, interconnected group...
266
Generalization, Discrimination, and Extinction01:24

Generalization, Discrimination, and Extinction

Generalization, discrimination, and extinction are key concepts in operant conditioning that influence how behaviors are learned and maintained.
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...
1.4K