[Paper Review] Compound Probabilistic Context-Free Grammars for Grammar Induction
This paper proposes a compound probabilistic context-free grammar (PCFG) that uses neural networks to parameterize rule probabilities and a sentence-level continuous latent variable to model long-range dependencies beyond standard PCFG assumptions. By combining amortized variational inference with dynamic programming to marginalize latent trees, the method achieves state-of-the-art unsupervised parsing performance on English and Chinese benchmarks.
We study a formalization of the grammar induction problem that models sentences as being generated by a compound probabilistic context-free grammar. In contrast to traditional formulations which learn a single stochastic grammar, our grammar's rule probabilities are modulated by a per-sentence continuous latent variable, which induces marginal dependencies beyond the traditional context-free assumptions. Inference in this grammar is performed by collapsed variational inference, in which an amortized variational posterior is placed on the continuous variable, and the latent trees are marginalized out with dynamic programming. Experiments on English and Chinese show the effectiveness of our approach compared to recent state-of-the-art methods when evaluated on unsupervised parsing.
Motivation & Objective
- Address the limitations of traditional PCFGs in grammar induction, particularly their rigid independence assumptions and poor optimization landscapes.
- Overcome the difficulty of inducing linguistically meaningful grammars from raw text using standard PCFGs with maximum likelihood estimation.
- Introduce a continuous latent variable per sentence to model context-dependent rule probabilities, enabling long-range dependencies in the generative process.
- Develop an efficient inference method that combines collapsed variational inference with dynamic programming to marginalize latent parse trees.
- Demonstrate improved unsupervised parsing performance over recent neural and probabilistic approaches on English and Chinese datasets.
Proposed method
- Parameterize PCFG rule probabilities using neural networks that map distributed representations of nonterminals and preterminals to rule probabilities.
- Introduce a sentence-level continuous latent vector that modulates rule probabilities, creating a compound PCFG that relaxes strict context-free independence.
- Use amortized variational inference with a recognition network to approximate the posterior over the latent vector, enabling end-to-end training.
- Apply collapsed variational inference: for a fixed latent vector, marginalize over all possible parse trees using dynamic programming (e.g., CKY-style algorithm).
- Optimize the log marginal likelihood of observed sentences via reparameterized stochastic gradient descent, leveraging differentiable inference.
- Train the model using backpropagation through the dynamic programming computation, enabling joint optimization of grammar parameters and latent representations.
Experimental results
Research questions
- RQ1Can neural network parameterization of PCFG rule probabilities make maximum likelihood learning of PCFGs more effective and stable?
- RQ2Can a continuous sentence-level latent variable improve the modeling of long-range dependencies in unsupervised grammar induction beyond standard PCFG assumptions?
- RQ3Does the compound PCFG framework with collapsed variational inference outperform recent state-of-the-art methods in unsupervised parsing?
- RQ4How sensitive is the model’s performance to architectural choices such as residual connections, normalization, and inference network design?
- RQ5Can the proposed method generalize across languages, as demonstrated on both English and Chinese datasets?
Key findings
- Neural parameterization of PCFG rule probabilities enables effective grammar induction via simple maximum likelihood optimization, overcoming previous optimization difficulties.
- The compound PCFG with a sentence-level latent vector captures marginal dependencies beyond first-order context-free assumptions, leading to richer syntactic generalization.
- The model achieves state-of-the-art performance on unsupervised parsing benchmarks for both English and Chinese, outperforming recent neural and probabilistic approaches.
- The method is sensitive to model architecture—residual connections in the neural networks were crucial for performance—though results showed some variance across random seeds.
- Despite higher computational cost due to the $O(|\mathcal{R}||\boldsymbol{x}|^3)$ dynamic programming step, the approach remains feasible and effective on standard datasets.
- The framework is general and applicable to other generative models with conditional tractable inference, suggesting broader applicability beyond grammar induction.
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.