[Paper Review] Unsupervised Recurrent Neural Network Grammars
This paper proposes unsupervised recurrent neural network grammars (URNNGs) that jointly learn language modeling and syntactic structure induction without annotated parse trees. By using amortized variational inference with a neural CRF as an inference network, URNNGs achieve competitive language modeling performance and strong grammar induction, matching or exceeding supervised RNNGs and recent neural models in both English and Chinese benchmarks.
Recurrent neural network grammars (RNNG) are generative models of language which jointly model syntax and surface structure by incrementally generating a syntax tree and sentence in a top-down, left-to-right order. Supervised RNNGs achieve strong language modeling and parsing performance, but require an annotated corpus of parse trees. In this work, we experiment with unsupervised learning of RNNGs. Since directly marginalizing over the space of latent trees is intractable, we instead apply amortized variational inference. To maximize the evidence lower bound, we develop an inference network parameterized as a neural CRF constituency parser. On language modeling, unsupervised RNNGs perform as well their supervised counterparts on benchmarks in English and Chinese. On constituency grammar induction, they are competitive with recent neural language models that induce tree structures from words through attention mechanisms.
Motivation & Objective
- To develop a method for unsupervised learning of recurrent neural network grammars (RNNGs) that jointly model syntax and surface sentence structure without requiring annotated parse trees.
- To address the intractability of marginalizing over latent parse trees in unsupervised RNNGs by employing amortized variational inference with a structured inference network.
- To inject meaningful inductive bias into the generative model by using a neural CRF constituency parser as the inference network to guide tree structure discovery.
- To evaluate URNNGs on both language modeling and constituency grammar induction, comparing performance to supervised RNNGs and state-of-the-art neural models.
- To investigate whether explicit syntactic structure learning through latent variables improves language modeling and induces interpretable grammar structures in an unsupervised setting.
Proposed method
- The generative model defines a joint probability $ p_{\theta}(\mathbf{x}, \mathbf{z}) $ over sentences $ \mathbf{x} $ and latent parse trees $ \mathbf{z} $, using an RNN to incrementally build a syntax tree via shift and reduce actions.
- Amortized variational inference is applied to tractably optimize a lower bound on the log marginal likelihood $ \log p_{\theta}(\mathbf{x}) $, avoiding intractable marginalization over all possible parse trees.
- A structured inference network, parameterized as a neural CRF constituency parser, approximates the true posterior $ q_{\phi}(\mathbf{z} \mid \mathbf{x}) $, providing strong inductive bias for discovering non-trivial tree structures.
- The inference network uses bidirectional LSTM representations and CRF potentials to model constituent spans, with global normalization ensuring valid tree distributions.
- The model is trained end-to-end by maximizing the evidence lower bound (ELBO), with the generator and inference network jointly optimized via stochastic gradient descent.
- The approach is evaluated on language modeling (PPL) and grammar induction (F1, syntactic evaluation) using Penn Treebank and Chinese treebanks.
Experimental results
Research questions
- RQ1Can unsupervised RNNGs achieve strong language modeling performance comparable to supervised RNNGs without access to annotated parse trees?
- RQ2Does using a neural CRF as an inference network effectively guide the discovery of meaningful syntactic structures in the absence of supervision?
- RQ3How does the performance of unsupervised RNNGs compare to recent neural models that induce tree structures via attention mechanisms?
- RQ4To what extent does the joint modeling of syntax and surface form improve language modeling and grammar induction in an unsupervised setting?
- RQ5Can the interaction between a constrained parser and a general grammar learner give rise to grammatical biases similar to those observed in human language acquisition?
Key findings
- URNNGs achieve a test perplexity of 90.6 on the Penn Treebank, outperforming the supervised RNNG (88.7) and matching the performance of strong supervised models.
- On constituency grammar induction, URNNGs achieve an F1 score of 64.6% on the Penn Treebank, outperforming prior unsupervised models and rivaling recent neural models that use attention-based tree induction.
- In syntactic evaluation, URNNGs achieve 67.2% on subject-verb agreement, 65.7% on objective relative clauses, and 55.0% on negative polarity items—demonstrating strong syntactic generalization.
- The model shows robustness to punctuation: even when punctuation is removed during evaluation, URNNGs maintain strong performance, indicating effective syntactic generalization beyond surface cues.
- URNNGs demonstrate that combining variational inference with a structured inference network enables effective unsupervised learning of both linguistic structure and language modeling.
- The results suggest that explicit syntactic inductive biases from latent tree structures significantly improve language modeling and grammar induction, even without supervision.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.