Skip to main content
QUICK REVIEW

[Paper Review] Neural Language Modeling by Jointly Learning Syntax and Lexicon

Yikang Shen, Zhouhan Lin|arXiv (Cornell University)|Nov 2, 2017
Topic ModelingComputer Science50 references22 citations
TL;DR

This paper proposes Parsing-Reading-Predict Networks (PRPN), a differentiable neural language model that jointly learns syntactic structure and lexical representations from unannotated text. By enabling end-to-end backpropagation from language modeling loss into a neural parsing network, PRPN achieves state-of-the-art performance on word- and character-level language modeling and demonstrates strong unsupervised constituency parsing performance, indicating that the induced syntactic structure aligns closely with human-annotated trees.

ABSTRACT

We propose a neural language model capable of unsupervised syntactic structure induction. The model leverages the structure information to form better semantic representations and better language modeling. Standard recurrent neural networks are limited by their structure and fail to efficiently use syntactic information. On the other hand, tree-structured recursive networks usually require additional structural supervision at the cost of human expert annotation. In this paper, We propose a novel neural language model, called the Parsing-Reading-Predict Networks (PRPN), that can simultaneously induce the syntactic structure from unannotated sentences and leverage the inferred structure to learn a better language model. In our model, the gradient can be directly back-propagated from the language model loss into the neural parsing network. Experiments show that the proposed model can discover the underlying syntactic structure and achieve state-of-the-art performance on word/character-level language model tasks.

Motivation & Objective

  • To develop a neural language model that can induce syntactic structure from unannotated text without requiring human-annotated treebanks.
  • To improve language modeling performance by integrating unsupervised syntactic structure into the representation learning process.
  • To enable gradient backpropagation from the language modeling objective into the neural parsing component, allowing joint optimization of structure induction and language modeling.
  • To evaluate whether the induced syntactic structures are semantically meaningful and comparable to human-annotated parses.

Proposed method

  • The model uses a differentiable neural parsing network based on a convolutional network to compute syntactic distances between successive word pairs, enabling soft constituent decisions.
  • A reading network computes adaptive memory representations by attending to syntactically related prior tokens, using structure-aware attention to control skip connections.
  • A prediction network generates the next token based on all syntactically related prior representations, using the same structure-aware attention mechanism.
  • The entire architecture is trained end-to-end via backpropagation, with gradients flowing from the language modeling loss into the parsing network, enabling joint optimization.
  • The parsing network generates binary trees by recursively combining tokens based on learned syntactic distances, with attention gates controlling the composition of representations.
  • The model is evaluated on word-level and character-level language modeling, as well as unsupervised constituency parsing, using standard benchmarks like PTB and WSJ10.

Experimental results

Research questions

  • RQ1Can a neural language model jointly induce syntactic structure and improve language modeling performance without requiring human-annotated treebanks?
  • RQ2To what extent does incorporating differentiable, unsupervised syntactic structure improve representation learning in recurrent networks?
  • RQ3How well does the induced syntactic structure from PRPN align with human-annotated constituency parses?
  • RQ4Can end-to-end backpropagation through a neural parsing module lead to better language modeling performance than standard RNNs or supervised parsing approaches?

Key findings

  • PRPN achieves state-of-the-art or near-state-of-the-art performance on word-level language modeling, with a test perplexity of 81.64 on the Text8 dataset.
  • On character-level language modeling, PRPN achieves a test perplexity of 109.7, outperforming previous unsupervised models and approaching the performance of supervised models.
  • In unsupervised constituency parsing on the WSJ10 dataset, PRPN achieves an unlabeled F1 score of 70.02, significantly outperforming random baselines and competitive with strong unsupervised models like CCM.
  • Ablation studies show that removing the parsing network leads to a significant performance drop, providing empirical evidence that syntactic structure improves language modeling.
  • Visualizations of the induced parse trees show that the model learns coherent, human-like syntactic structures, suggesting that the internal representations are semantically meaningful.
  • The model’s performance is further enhanced by applying a continuous cache pointer to the prediction head, indicating that the architecture is compatible with advanced optimization techniques.

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.