Causal Mediation Analysis for Interpreting Neural NLP: The Case of Gender Bias

By Jesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian, Daniel Nevo, Yaron Singer, Stuart M. Shieber. 2020

211 citations recorded by the source corpus.

Common methods for interpreting neural models in natural language processing typically examine either their structure or their behavior, but not both. We propose a methodology grounded in the theory of causal mediation analysis for interpreting which parts of a model are causally implicated in its behavior. It enables us to analyze the mechanisms by which information flows from input to output through various model components, known as mediators. We apply this methodology to analyze gender bias in pre-trained Transformer language models. We study the role of individual neurons and attention heads in mediating gender bias across three datasets designed to gauge a model's sensitivity to gender bias. Our mediation analysis reveals that gender bias effects are (i) sparse, concentrated in a small part of the network; (ii) synergistic, amplified or repressed by different components; and (iii) decomposable into effects flowing directly from the input and indirectly through the mediators.

Subfields: Artificial Intelligence, Natural Language Processing, Causal Inference & Discovery, AI Ethics, Fairness & Society

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yonatan Belinkov
  2. Mohit Bansal
  3. Yoav Goldberg
  4. Luke S. Zettlemoyer
  5. Percy Liang
  6. Noah A. Smith
  7. Yejin Choi
  8. Caiming Xiong

In Natural Language Processing

  1. Yonatan Belinkov
  2. Mohit Bansal
  3. Yoav Goldberg
  4. Luke S. Zettlemoyer
  5. Caiming Xiong
  6. Yejin Choi
  7. Samuel R. Bowman
  8. Richard Socher

In Causal Inference & Discovery

  1. Yonatan Belinkov
  2. Amir Feder
  3. Roi Reichart
  4. Nadav Oved
  5. David Bau
  6. Eduard H. Hovy
  7. Kevin Meng
  8. Matthew Finlayson

In AI Ethics, Fairness & Society

  1. Eduard H. Hovy
  2. L. Varshney
  3. Isabelle Augenstein
  4. Tianlu Wang
  5. Vicente Ordonez
  6. Yonatan Belinkov
  7. Richard Socher
  8. Sebastian Gehrmann

Citations in the corpus