What Do Recurrent Neural Network Grammars Learn About Syntax?

Adhiguna Kuncoro, Miguel Ballesteros, Lingpeng Kong, Chris Dyer, Graham Neubig +1 more
11/17/2016
153 citations
cs.CL
transformer-attention

Official code: clab/rnng (188 stars, C++, last commit 2018-05-17).

Abstract

Recurrent neural network grammars (RNNG) are a recently proposed probabilistic generative modeling family for natural language. They show state-of-the-art language modeling and parsing performance.

Show full abstract

We investigate what information they learn, from a linguistic perspective, through various ablations to the model and the data, and by augmenting the model with an attention mechanism (GA-RNNG) to enable closer inspection. We find that explicit modeling of composition is crucial for achieving the best performance. Through the attention mechanism, we find that headedness plays a central role in phrasal representation (with the model's latent attention largely agreeing with predictions made by hand-crafted head rules, albeit with some important differences). By training grammars without nonterminal labels, we find that phrasal representations depend minimally on nonterminals, providing support for the endocentricity hypothesis.

View on arXivView PDF

Code Implementations(1)

clab/rnngOfficial100%

Recurrent neural network grammars

18846C++, PythonApr 6, 20168 years ago

Similar Papers

Cite this paper

@article{kuncoro2016what,
  title  = {What Do Recurrent Neural Network Grammars Learn About Syntax?},
  author = {Adhiguna Kuncoro and Miguel Ballesteros and Lingpeng Kong and Chris Dyer and Graham Neubig and Noah A. Smith},
  year   = {2016},
  eprint = {1611.05774},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1611.05774}
}

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

Discussion