Causal Interventions on Causal Paths: Mapping GPT-2's Reasoning From Syntax to Semantics
Isabelle Lee, Joshua Lum, Ziyi Liu, Dani Yogatama

TL;DR
This paper investigates how GPT-2 models causal reasoning by analyzing internal circuits, finding that syntax is processed early and semantic reasoning involves specific later-layer heads, advancing interpretability of language models.
Contribution
It introduces a method to analyze causal reasoning in GPT-2, revealing the localization of causal syntax and semantic inference within specific layers and heads.
Findings
Causal syntax is localized within the first 2-3 layers.
Certain heads in later layers are sensitive to nonsensical causal variations.
Models infer reasoning by detecting syntactic cues and focusing on semantic relationships.
Abstract
While interpretability research has shed light on some internal algorithms utilized by transformer-based LLMs, reasoning in natural language, with its deep contextuality and ambiguity, defies easy categorization. As a result, formulating clear and motivating questions for circuit analysis that rely on well-defined in-domain and out-of-domain examples required for causal interventions is challenging. Although significant work has investigated circuits for specific tasks, such as indirect object identification (IOI), deciphering natural language reasoning through circuits remains difficult due to its inherent complexity. In this work, we take initial steps to characterize causal reasoning in LLMs by analyzing clear-cut cause-and-effect sentences like "I opened an umbrella because it started raining," where causal interventions may be possible through carefully crafted scenarios using…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsExplainable Artificial Intelligence (XAI) · AI-based Problem Solving and Planning · Computability, Logic, AI Algorithms
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Attention Is All You Need · Linear Layer · Cosine Annealing · Weight Decay · Dense Connections · Byte Pair Encoding · Layer Normalization · Residual Connection · Focus
