Abstract
Deep NLP models are often viewed as "black boxes" where information is stored in dense, monolithic vectors. This research challenges that view by analyzing individual neurons. Using novel supervised and unsupervised ranking methods, the authors identify "expert" neurons responsible for specific linguistic properties. They demonstrate that model performance is highly sensitive to a small subset of salient neurons, while a large portion of the network remains redundant for specific tasks.
Introduction
Deep learning models for Natural Language Processing (NLP), such as Neural Machine Translation (NMT), have achieved remarkable success but remain notoriously difficult to interpret. While previous research has shown that internal representations capture linguistic information, most studies treat the hidden state vector as a single unit. This paper investigates whether linguistic information is localized in specific neurons or spread across the entire network—the "grain of sand" versus the "desert" dynamic. Understanding this is crucial for model transparency, distillation, and debugging.
Methodology
The authors propose two frameworks to identify and rank "salient" neurons:
- Linguistic Correlation Analysis (Supervised): Neuron activations are extracted from a trained model, and a linear classifier with Elastic Net regularization is trained to predict linguistic properties (e.g., Part-of-Speech tags). This identifies both individual "expert" neurons and correlated groups.
- Cross-model Correlation Analysis (Unsupervised): This method ranks neurons based on their correlation across different model instances trained on the same task, hypothesizing that essential neurons will emerge consistently regardless of initialization.
To validate these rankings, the authors employ Neuron Ablation, zeroing out top-ranked neurons and measuring the resulting drop in performance metrics like BLEU scores for translation.
Key Insights
The analysis reveals that information storage is non-uniform. "Closed-class" categories (like determiners) are highly localized in specific neurons, whereas "open-class" categories (like nouns) are more distributed. The researchers identified specific "expert" neurons, such as those dedicated to months of the year or cardinal numbers. Furthermore, NMT models exhibit more distributed information than Neural Language Models (NLM), likely due to the increased complexity of the translation task.
Key Results
The experimental results highlight the disproportionate importance of a few neurons. In NMT, ablating just the top 50 neurons (approximately 2.5% of the total) led to a massive drop of 15-20 BLEU points. In contrast, removing the bottom 50 neurons resulted in a negligible performance decrease.
Additionally, supervised classifiers achieved nearly full accuracy using only the top 10% of neurons, suggesting significant redundancy. The unsupervised cross-model correlation method proved surprisingly effective at identifying neurons critical for translation without prior linguistic labels.
Conclusion and Future Work
This work provides a granular look at the internal workings of deep NLP models. While focused on RNN/LSTM architectures, the methodology offers a path toward more interpretable models. Future research directions include applying these techniques to Transformer architectures, exploring the causal mechanisms of neuron activation, and leveraging neuron saliency for model distillation and bias mitigation.
Summary updated