Mechanistic Interpretability of Animacy Effects on Structure Choice in GPT-2
Summary
A study probed GPT-2 Small's internal circuitry to investigate the mechanistic basis of animacy effects on syntactic structure choice. While language models exhibit behavioral sensitivity to animacy—whether an entity is alive and sentient—the underlying mechanisms were previously unexplored. Using activation patching, researchers confirmed that swapping animacy representations within the model causally shifts its downstream output. Bidirectional patching further revealed that animacy conditions vary in their commitment to a specific structure; some configurations strongly resist perturbation, while others remain flexible. The research identified 22 attention heads mediating these effects, categorized into passive-promoting and passive-suppressing populations. This suggests GPT-2 Small's structure choice likely results from internal competition among these opposing heads, offering mechanistic grounding for psycholinguistic findings and showcasing interpretability methods for theoretical testing.
Key takeaway
For AI Scientists and Research Scientists debugging linguistic biases in large language models, this research highlights that mechanistic interpretability can reveal how semantic features like animacy causally drive syntactic structure choices. You should consider employing activation patching and bidirectional patching to pinpoint specific internal components, such as the identified 22 attention heads in GPT-2 Small, that mediate these effects. This approach offers a path to understanding and potentially mitigating unwanted linguistic behaviors by identifying the internal competition between opposing model components.
Key insights
Animacy representations in GPT-2 Small causally drive syntactic structure choice via competing attention heads.
Principles
- Behavioral similarity in LMs does not imply mechanistic correspondence.
- Animacy conditions vary in their causal influence on structure choice.
- Internal competition between opposing attention heads can determine linguistic output.
Method
Activation patching and bidirectional patching were used to swap animacy representations and test causal influence on syntactic structure choice in GPT-2 Small.
In practice
- Apply activation patching to test causal links in LM behavior.
- Identify competing attention head populations for specific linguistic phenomena.
Topics
- Mechanistic Interpretability
- GPT-2 Small
- Animacy
- Syntactic Structure
- Attention Heads
- Psycholinguistics
Best for: AI Scientist, Research Scientist
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Paper Index on ACL Anthology.