Sparse Interventions in Language Models with Differentiable Masking
| Authors | |
|---|---|
| Publication date | 2022 |
| Host editors |
|
| Book title | BlackboxNLP Analyzing and Interpreting Neural Networks for NLP |
| Book subtitle | BlackboxNLP 2022 : Proceedings of the Workshop : December 8, 2022 |
| ISBN (electronic) |
|
| Event | 5th Workshop on Analyzing and Interpreting Neural Networks for NLP, BlackboxNLP 2022 hosted by the 2022 Conference on Empirical Methods in Natural Language Processing, EMNLP 2022 |
| Pages (from-to) | 16-27 |
| Number of pages | 12 |
| Publisher | Stroudsburg, PA: Association for Computational Linguistics |
| Organisations |
|
| Abstract |
There has been a lot of interest in understanding what information is captured by hidden representations of language models (LMs). Typically, interpretation methods i) do not guarantee that the model actually uses the information found to be encoded, and ii) do not discover small subsets of neurons responsible for a considered phenomenon. Inspired by causal mediation analysis, we propose a method that discovers a small subset of neurons within a neural LM responsible for a particular linguistic phenomenon, i.e., subsets causing a change in the corresponding token emission probabilities. We use a differentiable relaxation to approximately search through the combinatorial space. An L0 regularization term ensures that the search converges to discrete and sparse solutions. We apply our method to analyze subject-verb number agreement and gender bias detection in LSTMs. We observe that it is fast and finds better solutions than alternatives such as REINFORCE and Integrated Gradients. Our experiments confirm that each of these phenomena is mediated through a small subset of neurons that do not play any other discernible role. |
| Document type | Conference contribution |
| Language | English |
| Published at | https://doi.org/10.18653/v1/2022.blackboxnlp-1.2 |
| Other links | https://www.scopus.com/pages/publications/85152885989 |
| Downloads |
2022.blackboxnlp-1.2
(Final published version)
|
| Permalink to this page | |