Skip to main content
QUICK REVIEW

[Paper Review] What Do Recurrent Neural Network Grammars Learn About Syntax?

Adhiguna Kuncoro, Miguel Ballesteros|arXiv (Cornell University)|Nov 17, 2016
Natural Language Processing TechniquesComputer Science33 references11 citations
TL;DR

This paper investigates what syntactic knowledge recurrent neural network grammars (RNNGs) learn by ablating model components and introducing a gated attention mechanism (GA-RNNG) for interpretability. It finds that composition functions are crucial for performance, heads play a central role in phrasal representations, and nonterminal labels contribute minimally—supporting endocentricity and showing RNNGs can achieve state-of-the-art parsing (93.6 F1) without ensembling.

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. 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.

Motivation & Objective

  • To investigate what syntactic knowledge recurrent neural network grammars (RNNGs) learn from data, particularly regarding phrase structure and composition.
  • To test linguistic hypotheses about syntactic representation, such as endocentricity and headedness, using model ablations and interpretability tools.
  • To improve interpretability of RNNGs by introducing a gated attention mechanism (GA-RNNG) to visualize how constituents contribute to phrasal representations.
  • To evaluate the role of nonterminal category labels in phrasal representation and assess whether they add meaningful syntactic information.
  • To achieve state-of-the-art performance in supervised phrase-structure parsing and dependency parsing through model analysis and refinement.

Proposed method

  • Ablate the RNNG composition function to assess its necessity for parsing and language modeling performance.
  • Introduce a gated attention mechanism (GA-RNNG) to the RNNG composition function, allowing attention weights to be distributed across multiple constituents.
  • Use attention vectors from GA-RNNG to compare learned headedness with hand-crafted head rules and analyze multi-headed representations.
  • Train RNNG variants without nonterminal labels to evaluate whether phrasal representations depend on category labels.
  • Visualize learned phrase representations using t-SNE to examine clustering patterns of syntactic categories like PPs and SBARs.
  • Train and evaluate models on the Penn Treebank (PTB) for supervised parsing and dependency parsing, reporting F1, UAS, and LAS scores.

Experimental results

Research questions

  • RQ1How important is the composition function in RNNGs for achieving high parsing and language modeling performance?
  • RQ2To what extent do RNNGs learn headedness, and how does their attention mechanism align with linguistic head rules?
  • RQ3Do nonterminal category labels provide meaningful syntactic information in phrasal representations, or are they redundant?
  • RQ4Can RNNGs discover syntactic categories like NP, VP, and PP from bracketing alone, without explicit label supervision?
  • RQ5How do representations of syntactic constituents cluster, and what semantic distinctions do they capture?

Key findings

  • The composition function is essential for RNNG performance; removing it drastically degrades parsing accuracy, confirming its role in modeling syntactic structure.
  • GA-RNNG attention mechanisms largely align with linguistic head rules, identifying the head of a phrase with high accuracy, though attention is often distributed across multiple constituents.
  • Phrasal representations depend minimally on nonterminal labels, supporting the endocentricity hypothesis that syntactic structure is primarily determined by heads.
  • The model without nonterminal labels still achieves strong performance, indicating that bracketing and composition are sufficient for effective syntactic representation.
  • The GA-RNNG learns meaningful semantic distinctions, such as clustering PPs and SBARs based on words like 'because' and 'of', reflecting semantic roles like causation and possession.
  • A single RNNG variant without ensembling achieves state-of-the-art supervised parsing (93.6 F1 on PTB) and high dependency parsing scores (95.8 UAS, 94.6 LAS), demonstrating strong performance with minimal architectural complexity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.