Compositional Explanations of Neurons

Jesse Mu, Jacob Andreas
6/24/2020
234 citations
cs.LGcs.AIcs.CL

Official code: jayelm/compexp (27 stars, HTML, last commit 2021-04-09).

Abstract

We describe a procedure for explaining neurons in deep representations by identifying compositional logical concepts that closely approximate neuron behavior. Compared to prior work that uses atomic labels as explanations, analyzing neurons compositionally allows us to more precisely and expressively characterize their behavior.

Show full abstract

We use this procedure to answer several questions on interpretability in models for vision and natural language processing. First, we examine the kinds of abstractions learned by neurons. In image classification, we find that many neurons learn highly abstract but semantically coherent visual concepts, while other polysemantic neurons detect multiple unrelated features; in natural language inference (NLI), neurons learn shallow lexical heuristics from dataset biases. Second, we see whether compositional explanations give us insight into model performance: vision neurons that detect human-interpretable concepts are positively correlated with task performance, while NLI neurons that fire for shallow heuristics are negatively correlated with task performance. Finally, we show how compositional explanations provide an accessible way for end users to produce simple "copy-paste" adversarial examples that change model behavior in predictable ways.

View on arXivView PDF

Code Implementations(1)

jayelm/compexpOfficial100%

Compositional Explanations of Neurons, NeurIPS 2020 https://arxiv.org/abs/2006.14032

2718HTML, PythonAug 3, 20205 years ago

Similar Papers

Cite this paper

@article{mu2020compositional,
  title  = {Compositional Explanations of Neurons},
  author = {Jesse Mu and Jacob Andreas},
  year   = {2020},
  eprint = {2006.14032},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.14032}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.14032.svg)](https://codeofpaper.com/paper/2006.14032)

Discussion