Reproduce “Interpreting Negation in GPT-2: Layer- and Head-Level Causal Analysis” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Abdullah Al Mofael, Lisa M. Kuhn, Ghassan Alkadi, Kuo-Pao Yang
This research causally dissects GPT-2 Small to reveal how it processes linguistic negation, identifying a dedicated subnetwork of mid-layer attention heads responsible for encoding logical polarity. The study demonstrated the necessity and sufficiency of these heads in influencing the model's negation understanding across synthetic and natural language datasets through activation patching and ablation experiments.
Key insights
- Linguistic negation processing in GPT-2 Small is localized to a compact, interpretable subnetwork primarily within the model's mid-layers (4-6).
- Specific attention heads (e.g., L5H11, L4H4) within these mid-layers were causally identified as critical carriers of logical polarity information.
- The identified negation circuit's functional relevance generalizes across various morphological forms of negation and is detectable in external, natural language datasets, though its behavioral effect directionality can vary with distributional context.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.