[Paper Review] An Interpretability Illusion for BERT
This paper identifies an 'interpretability illusion' in BERT, where neurons appear to encode simple, interpretable concepts (e.g., song titles) based on top-activating sentences from one dataset, but these interpretations collapse when tested on other datasets—revealing that apparent patterns are artifacts of dataset-specific distributional biases rather than true semantic representations. The key contribution is a methodological warning: interpretability claims must be validated across multiple datasets to avoid misleading conclusions.
We describe an "interpretability illusion" that arises when analyzing the BERT model. Activations of individual neurons in the network may spuriously appear to encode a single, simple concept, when in fact they are encoding something far more complex. The same effect holds for linear combinations of activations. We trace the source of this illusion to geometric properties of BERT's embedding space as well as the fact that common text corpora represent only narrow slices of possible English sentences. We provide a taxonomy of model-learned concepts and discuss methodological implications for interpretability research, especially the importance of testing hypotheses on multiple data sets.
Motivation & Objective
- To investigate whether individual neurons in BERT's final layer encode interpretable, human-understandable concepts.
- To examine why certain neurons appear to detect specific linguistic patterns (e.g., song titles) in one dataset but not others.
- To identify the root causes of this inconsistency, particularly dataset distributional bias and geometric properties of the embedding space.
- To challenge the validity of relying on top-activating sentences from a single dataset for interpretability claims.
- To advocate for multi-dataset validation as a necessary standard in interpretability research.
Proposed method
- Probed individual neurons in BERT's final layer by identifying the top-activating sentences across three distinct datasets: Quora Question Pairs (QQP), Wikipedia-based question answering, and Toronto BookCorpus.
- Used cosine similarity and Euclidean distance to measure semantic coherence between top-activating sentences and random sentences, assessing whether patterns were local or global.
- Conducted human annotation of top-activating sentences to evaluate whether perceived patterns were consistent across annotators.
- Tracked which neurons were most frequently activated by outlier sentences (top 1% and 10% in distance from centroid) to assess if extreme activations were responsible for the illusion.
- Classified concept directions into three categories: local (nearby sentences), global (consistent across data), and dataset-level (specific to one data distribution).
- Analyzed annotator disagreement and bias to assess whether perceived patterns were subjective rather than objective.
Experimental results
Research questions
- RQ1Do neurons in BERT's final layer encode interpretable, consistent semantic concepts when analyzed via top-activating sentences?
- RQ2Why do seemingly coherent patterns in top-activating sentences disappear when tested on different datasets?
- RQ3To what extent is the perceived interpretability of neurons an artifact of dataset-specific distributional biases in natural language corpora?
- RQ4How do geometric properties of BERT’s activation space contribute to the interpretability illusion?
- RQ5Can human annotators reliably identify meaningful patterns in top-activating sentences, or is interpretation prone to subjective bias?
Key findings
- Neurons that appear to encode concepts like 'song titles' in the Quora Question Pairs dataset instead encode 'historical events' or 'date-starting sentences' when tested on Wikipedia-based QA data.
- The same neuron (e.g., neuron 221) activates on entirely different semantic patterns across datasets—e.g., song titles (QQP), historical events (Wikipedia), and narrative actions (BookCorpus)—demonstrating that interpretations are dataset-dependent.
- Top-activating sentences are not semantically coherent across datasets: the 1% most distant sentences account for 48% of all top activations, indicating that extreme outliers drive apparent patterns.
- Annotators disagreed significantly on whether patterns existed, with one annotator finding 1.6 patterns per annotation, suggesting high subjectivity in pattern detection.
- The illusion persists even when excluding the most distant 1% or 10% of sentences, indicating it is not caused by outliers but by underlying dataset bias.
- Despite the illusion, meaningful global concept directions do exist in BERT’s activation space, but they are masked by dataset-specific, local patterns.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.