On the Pitfalls of Analyzing Individual Neurons in Language Models

Omer Antverg, Yonatan Belinkov
10/14/2021
76 citations
cs.CL

Official code: technion-cs-nlp/Individual-Neurons-Pitfalls (11 stars, Python, MIT, last commit 2022-07-21).

Abstract

While many studies have shown that linguistic information is encoded in hidden word representations, few have studied individual neurons, to show how and in which neurons it is encoded. Among these, the common approach is to use an external probe to rank neurons according to their relevance to some linguistic attribute, and to evaluate the obtained ranking using the same probe that produced it.

Show full abstract

We show two pitfalls in this methodology: 1. It confounds distinct factors: probe quality and ranking quality. We separate them and draw conclusions on each. 2. It focuses on encoded information, rather than information that is used by the model. We show that these are not the same. We compare two recent ranking methods and a simple one we introduce, and evaluate them with regard to both of these aspects.

View on arXivView PDF

Code Implementations(1)

MIT
111Python, ShellApr 4, 20214 years agoMIT

Similar Papers

Cite this paper

@article{antverg2021pitfalls,
  title  = {On the Pitfalls of Analyzing Individual Neurons in Language Models},
  author = {Omer Antverg and Yonatan Belinkov},
  year   = {2021},
  eprint = {2110.07483},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.07483}
}

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/2110.07483.svg)](https://codeofpaper.com/paper/2110.07483)

Discussion