Abstract
In this paper we demonstrate that context free grammar (CFG) based methods for grammar induction benefit from modeling lexical dependencies. This contrasts to the most popular current methods for grammar induction, which focus on discovering either constituents or dependencies. Previous approaches to marry these two disparate syntactic formalisms (e.g. lexicalized PCFGs) have been plagued by sparsity, making them unsuitable for unsupervised grammar induction. However, in this work, we present novel neural models of lexicalized PCFGs which allow us to overcome sparsity problems and effectively induce both constituents and dependencies within a single model. Experiments demonstrate that this unified framework results in stronger results on both representations than achieved when modeling either formalism alone.
Introduction
This research introduces Neural Lexicalized PCFGs (L-PCFGs), a novel framework that simultaneously induces phrase structures (constituency) and word-to-word relations (dependencies) from raw text without any labeled data. By using neural networks to share parameters across complex grammar rules, the authors overcome the "sparsity" problem that historically made these models impractical for unsupervised learning, achieving state-of-the-art results in both parsing tasks.
The Challenge of Lexicalization
In the world of unsupervised grammar induction—learning the "rules" of a language just by looking at raw text—researchers usually fall into two camps: constituency parsing (grouping words into nested phrases) and dependency parsing (identifying how individual words relate to one another).
While these two views are complementary, most models pick one and ignore the other. Lexicalized Probabilistic Context-Free Grammars (L-PCFGs) were designed to bridge this gap by tagging every phrase with a "head word" (the most important word in that phrase). However, traditional L-PCFGs suffer from a massive "sparsity" problem: because every combination of phrase type and head word requires its own probability parameter, the model becomes too large to train effectively without a massive labeled dataset.
Methods: Neural Parameterization and Factorization
The authors propose a Neural L-PCFG that leverages deep learning to make these complex grammars trainable through several key innovations:
- Neural Parameterization: Instead of storing a giant table of probabilities for every possible rule, the model uses Multi-Layer Perceptrons (MLPs) to calculate rule scores on the fly. This allows the model to share knowledge across similar words and phrases via embeddings.
- Compound Latent Variables: Building on the "Compound PCFG" (Kim et al., 2019), the model samples a latent variable $z$ for every sentence. This allows the grammar to be flexible, adapting its rules slightly to fit the specific context of the sentence it is currently processing.
- Smart Factorization: The authors break down the complex L-PCFG rules into smaller, modular components (e.g., the probability of a head word, the probability of a child phrase, and the direction of the dependency). This factorization is key to keeping the model's complexity manageable.
- Initialization with K-Means: To give the model a "head start," they cluster word embeddings (GloVe) using K-Means to initialize the categories of words (preterminals), providing a rough initial guess at syntactic roles.
Key Results and Insights
The model was evaluated on the Penn Treebank (PTB), the gold standard for English syntax. The Neural L-PCFG outperformed specialized baselines that were designed for only one of the two tasks:
- Dependency Parsing: It achieved a Directed Attachment Score (DAS) of 40.5, significantly beating the classic DMV model (27.2) and heuristic heads from standard PCFGs (18.6).
- Constituency Parsing: It achieved an F1 score of 55.3, matching or slightly exceeding the previous state-of-the-art for unsupervised constituency parsing.
The biggest takeaway is the Synergy Effect: modeling both structures together helps both tasks. The constituency structure provides a "scaffolding" that constrains where dependencies can form, while lexical dependencies provide a "semantic guide" that helps the model decide how to group phrases. Furthermore, the authors found that using pre-trained GloVe embeddings significantly boosts dependency accuracy, suggesting that distributional semantics contain strong latent signals for syntax.
Limitations and Future Work
While successful, the model currently uses "unilexical" dependencies (head word to child category). Moving to "bilexical" dependencies (head word to child word) would increase computational complexity from $O(L^4)$ to $O(L^5)$, making it too slow for long sentences on current hardware. Future work may explore testing on "free word order" languages (like Turkish or Czech) and integrating even more powerful distributed representations like large-scale Transformers to provide even stronger signals for grammar induction.
Summary updated