PCFGs Can Do Better: Inducing Probabilistic Context-Free Grammars with Many Symbols

Songlin Yang, Yanpeng Zhao, Kewei Tu
4/28/2021
cs.CL

Official code: sustcsonglin/TN-PCFG (52 stars, Python, last commit 2025-03-28).

Abstract

Probabilistic context-free grammars (PCFGs) with neural parameterization have been shown to be effective in unsupervised phrase-structure grammar induction. However, due to the cubic computational complexity of PCFG representation and parsing, previous approaches cannot scale up to a relatively large number of (nonterminal and preterminal) symbols.

Show full abstract

In this work, we present a new parameterization form of PCFGs based on tensor decomposition, which has at most quadratic computational complexity in the symbol number and therefore allows us to use a much larger number of symbols. We further use neural parameterization for the new form to improve unsupervised parsing performance. We evaluate our model across ten languages and empirically demonstrate the effectiveness of using more symbols. Our code: https://github.com/sustcsonglin/TN-PCFG

View on arXivView PDF

Code Implementations(1)

source code of NAACL2021 "PCFGs Can Do Better: Inducing Probabilistic Context-Free Grammars with Many Symbols“ and ACL2021 main conference "Neural Bilexicalized PCFG Induction"

527PythonMar 12, 20211 years ago

Similar Papers

Cite this paper

@article{yang2021pcfgs,
  title  = {PCFGs Can Do Better: Inducing Probabilistic Context-Free Grammars with Many Symbols},
  author = {Songlin Yang and Yanpeng Zhao and Kewei Tu},
  year   = {2021},
  eprint = {2104.13727},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.13727}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.13727.svg)](https://codeofpaper.com/paper/2104.13727)

Discussion