Improving Unsupervised Constituency Parsing via Maximizing Semantic Information

Junjie Chen, Xiangheng He, Yusuke Miyao, Danushka Bollegala

TL;DR

Traditional unsupervised constituency parsers are trained to maximize sentence log-likelihood, an objective that correlates poorly with actual parsing accuracy. This paper introduces SemInfo, a novel training objective that maximizes the semantic information encoded within a sentence's constituent structure. By leveraging a Tree Conditional Random Field (TreeCRF) framework and LLM-guided paraphrasing, the authors achieve state-of-the-art unsupervised parsing performance across multiple languages.

What Problem Does This Paper Address?

Unsupervised constituency parsing aims to discover the hierarchical, tree-like structure of phrases in a sentence without using human-annotated syntactic trees. Historically, these parsers have been trained using a generative objective: maximizing sentence log-likelihood (LL).

However, the authors point out a fundamental flaw: a sentence's grammar is deeply intertwined with its meaning, yet the LL objective does not explicitly account for this syntax-semantics alignment. As a result, a high log-likelihood score doesn't necessarily mean the parser has found a syntactically accurate tree. In fact, training standard Probabilistic Context-Free Grammar (PCFG) parsers using pure LL often yields trees that perform no better than trivial baselines (like purely right-branching trees).

Methods

To bridge the gap between syntax and semantics, the authors propose a new metric called SemInfo (Semantic Information) and a framework to optimize it:

  1. Bag-of-Substrings Model: Inspired by the classic "bag-of-words" model used in document topic modeling, the authors introduce a "bag-of-substrings" approach to represent sentence semantics. They use an instruction-following large language model (gpt-4o-mini) to generate a set of diverse paraphrases for a target sentence. If a specific substring consistently reappears across these paraphrases, it strongly implies that the substring carries self-contained semantic meaning—a hallmark of a true syntactic constituent.
Parallel structure between bag-of-words and bag-of-substrings models
  1. Maximal Substrings & PWI: To prevent smaller nested substrings from stealing credit from larger phrases (e.g., counting "on a" independently when the true semantic unit generated was "working on a theory"), the authors introduce the concept of maximal substrings. They then apply the Probability-Weighted Information (PWI) metric—an information-theoretic cousin of tf-idf—to calculate the exact semantic information value of each valid substring.
Example of how naive substring frequency fails compared to maximal substring frequency
  1. TreeCRF Optimization: Directly optimizing a PCFG parser using reinforcement learning on SemInfo is computationally expensive. To make training viable, the authors parameterize a Tree Conditional Random Field (TreeCRF) model using the span-posterior probabilities from the PCFG. This acts as a highly efficient one-step RL agent, speeding up training by 5x and slashing memory usage to a fraction of direct optimization.
Pipeline of the SemInfo maximization training framework

Datasets

The authors evaluated their approach across four languages using three widely recognized benchmarks:

  • Penn TreeBank (PTB): For English evaluation.
  • Chinese Treebank 5.1 (CTB): For Chinese evaluation.
  • SPMRL: For German and French evaluation.

Key Insights and Ideas

  • SemInfo is a Superior Objective: The most critical finding is that SemInfo correlates strongly with parsing accuracy (Spearman’s $\rho$ between 0.6 and 0.9) throughout the entire training process. In contrast, the correlation between LL and parsing accuracy quickly plummets toward zero as training progresses.
  • LL is Still Useful for Warmup: While LL is a poor objective for fine-grained parsing, it exhibits a strong correlation with accuracy at the very beginning of training. The authors exploit this by retaining an LL term in their objective function, which significantly stabilizes early-stage training.
  • Grammars as De-noisers: The constituent information derived from LLM paraphrases can be noisy. However, the experiment showed that the PCFG grammar structure effectively acts as a filter, smoothing out the noise from the paraphraser to yield robust, accurate trees.

Key Results

  • Significant Accuracy Boosts: Across five different PCFG variants and four languages, switching to the SemInfo objective improved parsing accuracy by an average of 7.85 sentence-F1 scores.
  • State-of-the-Art Performance: SemInfo-trained PCFGs achieved state-of-the-art results for non-ensemble unsupervised parsers in English, Chinese, and French, outperforming the previous best algorithms by 1.82, 11.02, and 4.47 F1 points, respectively.
  • Computational Efficiency: Thanks to the TreeCRF formulation, the model trained Neural-PCFGs (NPCFG) 4x faster using $\frac{1}{6}$ the memory, and Simple-PCFGs (SNPCFG) 8x faster using $\frac{1}{8}$ the memory compared to direct optimization methods.

Limitations and Future Work

  • The German Exception: The approach underperformed in German compared to a baseline that directly decoded the maximum semantic tree. The authors attribute this to a high out-of-vocabulary (OOV) rate (14%) between the German training and validation/test sets, which disrupted the parser's vocabulary alignment.
  • Unlexicalized Restriction: The current implementation is limited to unlexicalized PCFGs. The authors note that extending SemInfo maximization to lexicalized PCFGs remains an open direction for future work.
  • Parser Capacity Limits: The small performance gap remaining between SemInfo-trained models and fully supervised baselines suggests that the simple PCFG architecture itself might be the bottleneck, hinting that more expressive parsing models (like Recurrent Neural Network Grammars) should be explored next.

Summary updated

BibTeX
@inproceedings{chen2025improving,
  author = {Junjie Chen and Xiangheng He and Yusuke Miyao and Danushka Bollegala},
  title = {{Improving Unsupervised Constituency Parsing via Maximizing Semantic Information}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=qyU5s4fzLg},
}
Figure