Analysing Neural Language Models: Contextual Decomposition Reveals Default Reasoning in Number and Gender Assignment

Jaap Jumelet, Willem Zuidema, Dieuwke Hupkes
9/19/2019
cs.CLcs.AIstat.ML

Official code: i-machine-think/diagNNose (81 stars, Python, MIT, last commit 2023-10-27).

Abstract

Extensive research has recently shown that recurrent neural language models are able to process a wide range of grammatical phenomena. How these models are able to perform these remarkable feats so well, however, is still an open question.

Show full abstract

To gain more insight into what information LSTMs base their decisions on, we propose a generalisation of Contextual Decomposition (GCD). In particular, this setup enables us to accurately distil which part of a prediction stems from semantic heuristics, which part truly emanates from syntactic cues and which part arise from the model biases themselves instead. We investigate this technique on tasks pertaining to syntactic agreement and co-reference resolution and discover that the model strongly relies on a default reasoning effect to perform these tasks.

View on arXivView PDF

Code Implementations(1)

MIT

diagNNose is a Python library that facilitates a broad set of tools for analysing hidden activations of neural models.

817Python, ShellMar 27, 20183 years agoMIT

Similar Papers

Cite this paper

@article{jumelet2019analysing,
  title  = {Analysing Neural Language Models: Contextual Decomposition Reveals Default Reasoning in Number and Gender Assignment},
  author = {Jaap Jumelet and Willem Zuidema and Dieuwke Hupkes},
  year   = {2019},
  eprint = {1909.08975},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.08975}
}

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

Discussion