Mechanistic Interpretability of Animacy Effects on Structure Choice in GPT-2

· Source: Paper Index on ACL Anthology · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, quick

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

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

Topics

Best for: AI Scientist, Research Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Paper Index on ACL Anthology.