Skip to main content
QUICK REVIEW

[Paper Review] Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependencies

Tal Linzen, Emmanuel Dupoux|arXiv (Cornell University)|Nov 4, 2016
Topic ModelingComputer Science46 references27 citations
TL;DR

This paper investigates whether Long Short-Term Memory (LSTM) networks can learn syntax-sensitive dependencies—specifically English subject-verb number agreement—without explicit syntactic supervision. Using explicit supervision (number prediction and grammaticality judgment), LSTMs achieve high accuracy on easy cases but struggle with structurally complex sentences, especially when function words are absent. In contrast, language modeling alone fails to capture these dependencies, indicating that direct supervision is essential for learning syntactic structure in LSTMs.

ABSTRACT

The success of long short-term memory (LSTM) neural networks in language processing is typically attributed to their ability to capture long-distance statistical regularities. Linguistic regularities are often sensitive to syntactic structure; can such dependencies be captured by LSTMs, which do not have explicit structural representations? We begin addressing this question using number agreement in English subject-verb dependencies. We probe the architecture's grammatical competence both using training objectives with an explicit grammatical target (number prediction, grammaticality judgments) and using language models. In the strongly supervised settings, the LSTM achieved very high overall accuracy (less than 1% errors), but errors increased when sequential and structural information conflicted. The frequency of such errors rose sharply in the language-modeling setting. We conclude that LSTMs can capture a non-trivial amount of grammatical structure given targeted supervision, but stronger architectures may be required to further reduce errors; furthermore, the language modeling signal is insufficient for capturing syntax-sensitive dependencies, and should be supplemented with more direct supervision if such dependencies need to be captured.

Motivation & Objective

  • To evaluate whether LSTMs can learn syntax-sensitive dependencies like subject-verb agreement without explicit syntactic annotations.
  • To assess the effectiveness of different training objectives—explicit number prediction, grammaticality judgment, and language modeling—on syntactic generalization.
  • To identify failure cases where LSTMs rely on surface cues rather than structural representations.
  • To investigate whether language modeling alone is sufficient for learning hierarchical syntactic dependencies.

Proposed method

  • Training LSTMs on a large-scale Wikipedia corpus to predict verb number based on preceding nouns.
  • Using a supervised number prediction task with explicit target labels for subject-verb agreement.
  • Evaluating performance on a held-out test set with varying degrees of syntactic complexity, including cases with intervening nouns of opposite number.
  • Comparing results across three training regimes: number prediction, grammaticality judgment, and next-word language modeling.
  • Analyzing error patterns to determine reliance on function words and structural cues.
  • Conducting qualitative analysis on activation patterns to assess syntactic representation learning.

Experimental results

Research questions

  • RQ1Can LSTMs learn subject-verb number agreement without explicit syntactic supervision?
  • RQ2How does performance vary between strongly supervised tasks (e.g., number prediction) and weaker supervision (e.g., grammaticality judgment)?
  • RQ3Does language modeling alone suffice to learn syntax-sensitive dependencies in LSTMs?
  • RQ4What types of syntactic structures lead to higher error rates in LSTM models?
  • RQ5To what extent do LSTMs rely on surface-level cues like function words rather than syntactic structure?

Key findings

  • In the number prediction task, the LSTM achieved less than 1% error rate on easy cases but made 17% errors on hard cases with four intervening nouns of the opposite number.
  • Error rates increased significantly in the absence of function words, such as in noun-noun compounds and reduced relative clauses, indicating overreliance on surface cues.
  • The grammaticality judgment task, which provided only sentence-level labels without identifying the violating verb, led to only a mild increase in error rates compared to the number prediction task.
  • Language modeling without explicit grammatical supervision performed worse than chance on hard agreement cases, with error rates more than five times higher than in the number prediction setup.
  • Even a state-of-the-art large-scale language model showed high sensitivity to structurally irrelevant recent nouns, confirming that the language modeling objective alone is insufficient for capturing syntax-sensitive dependencies.
  • The results suggest that stronger architectural inductive biases or joint training with explicit supervision are necessary for reliable syntactic generalization in sequence models.

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.