arXiv · 2005.00062
Attribution Analysis of Grammatical Dependencies in LSTMs
Abstract
LSTM language models have been shown to capture syntax-sensitive grammatical dependencies such as subject-verb agreement with a high degree of accuracy (Linzen et al., 2016, inter alia). However, questions remain regarding whether they do so using spurious correlations, or whether they are truly able to match verbs with their subjects. This paper argues for the latter hypothesis. Using layer-wise relevance propagation (Bach et al., 2015), a technique that quantifies the contributions of input features to model behavior, we show that LSTM performance on number agreement is directly correlated with the model's ability to distinguish subjects from other nouns. Our results suggest that LSTM language models are able to infer robust representations of syntactic dependencies.
Explore related subjects
Keep this discovery
Yiding Hao. 2020-04-30. Attribution Analysis of Grammatical Dependencies in LSTMs. https://arxiv.org/abs/2005.00062
Cite the original work for its findings. Save a collection to share your selection of sources.