Introduction
The transition from feature-engineered systems to end-to-end neural networks has revolutionized Natural Language Processing (NLP). However, these high-performing models are often criticized for their opacity. This survey provides a comprehensive taxonomy of the methods used to interpret and evaluate neural NLP models, moving beyond simple accuracy metrics to understand how linguistic structures—such as syntax and semantics—are captured within internal representations.
Taxonomy of Analysis Methods
Researchers employ several distinct "lenses" to peer inside neural models:
Probing (Diagnostic) Classifiers
Probing is the most prevalent method for analysis. It involves training a simple, often linear, classifier on the internal activations of a frozen, pre-trained model. If the probe can accurately predict a specific linguistic property (e.g., verb tense or dependency depth), it indicates that the model has encoded that information during its primary training phase.
Visualization and Saliency
Visualization techniques offer a direct look at model internals. Saliency maps identify which input words were most influential for a specific prediction, while attention weights can be plotted to visualize how models "align" words across different languages or contexts.
Adversarial Testing and Ablation
Adversarial examples involve perturbing input text to expose model brittleness. Conversely, ablation and erasure methods systematically remove neurons or input components to measure their impact on performance, thereby identifying critical model features.
Evaluation via Challenge Sets
To address the limitations of standard benchmarks, researchers have developed Challenge Sets (or "Test Suites"). These are curated datasets designed to target specific linguistic phenomena, such as logical inference (FraCaS), long-range dependencies (LAMBADA), or contrastive pairs that differ by only a single feature.
Key Insights and Results
The Layered Hierarchy
Evidence suggests that neural models are hierarchical: lower layers tend to capture local information (morphology), while higher layers capture more abstract, global information (syntax and semantics).
Attention Alignment
In tasks like Machine Translation, visualization of attention weights has confirmed that models naturally learn to align source and target words, effectively rediscovering traditional alignment algorithms.
Methodological Pitfalls
A major finding is the distinction between correlation and causation. The ability of a probe to extract information from a vector does not prove that the model actually uses that information to make its final prediction. Furthermore, models often discover "latent trees" that improve performance but do not align with traditional linguistic theories.
Limitations and Future Work
The survey identifies several critical gaps: the need for more causal (rather than correlational) analysis, the reduction of subjectivity in visualization, and the expansion of analysis beyond English-centric datasets and common tasks like NMT and NLI.
Summary updated