Phrase-aware Unsupervised Constituency Parsing

Xiaotao Gu, Yikang Shen, Jiaming Shen, Jingbo Shang, Jiawei Han

Introduction

Constituency parsing is a fundamental task in natural language processing that involves decomposing a sentence into its nested hierarchical components, such as noun phrases (NP), verb phrases (VP), and clauses. Traditionally, this requires large amounts of human-annotated data. However, researchers are increasingly looking toward unsupervised methods that can learn these structures from raw text alone.

One common approach is using Masked Language Modeling (MLM), where a model learns syntax by predicting missing words. While effective for local structures, standard MLM often fails to capture the broader, high-level organization of language. This paper introduces a "phrase-aware" framework designed to overcome these limitations by mimicking the human cognitive process of identifying obvious "chunks" before determining their global connections.

Step-by-step induction of a constituency parse tree

The Challenges of Unsupervised Parsing

Unsupervised MLM-based parsers typically face two significant hurdles:

  1. The Cold Start Problem: At the beginning of training, a randomly initialized parser provides noisy structural constraints. This lack of a stable starting point can lead the model into poor local optima from which it cannot recover.
  2. The Local Context Trap: MLM is highly effective at predicting a word based on its immediate neighbors (e.g., predicting "river" given "the longest ____"). Because the model can achieve low loss by focusing only on local context, it often fails to learn the long-distance dependencies required to identify complex structures like subordinate clauses (SBAR) or prepositional phrases (PP).

The Phrase-Aware Framework

To address these issues, the authors propose a three-stage learning pipeline that transitions from simple local patterns to complex global structures. This framework is "plug-and-play," compatible with various backbone architectures such as TreeTransformer and StructFormer.

The three-stage phrase-aware learning framework

Stage 1: Phrase-regularized Warm-up

The process begins by using an unsupervised phrase miner (UCPhrase) to identify common multigram phrases (e.g., "the biggest city"). These phrases serve as a stable structural bootstrap. A margin loss is applied to encourage the parser to assign smaller distances between words within these mined phrases, effectively "nudging" the model toward a sensible initial state.

Stage 2: Standard Masked LM Training

Following the warm-up, the model undergoes standard MLM training. This stage allows the model to refine its understanding of basic syntax and local word relationships using the full sentence context.

Stage 3: Phrase-guided Masked Language Modeling (PMLM)

The final stage introduces a novel masking strategy to break the "local context trap." The model identifies local constituents it has already mastered and excludes them from being masked. By primarily masking the "connector" words between these established phrases, the model is forced to look beyond local neighbors and utilize high-level grammatical structures to solve the prediction task.

Key Results and Insights

The phrase-aware approach demonstrated consistent performance gains across multiple benchmarks. When applied to the StructFormer architecture, the method achieved a state-of-the-art Unlabeled F1 score of 55.7% on the Wall Street Journal (WSJ) test set.

Notably, the framework excelled at capturing "hard" high-level structures. For instance, using the StructFormer base, the method improved the recall of Prepositional Phrases (PP) by 5.6% and Subordinate Clauses (SBAR) by 2.1%. These results support the "Comfort Zone" hypothesis: by intentionally making local predictions harder (through PMLM), the model is forced to learn the broader logic of the sentence.

Conclusion and Future Work

By integrating unsupervised phrase mining with a staged training curriculum, this framework significantly advances the state of unsupervised constituency parsing. While the model still faces challenges with deep semantic and common-sense ambiguities—such as resolving the correct attachment in sentences like "I saw the man with the telescope"—it provides a robust foundation for learning hierarchical language structures without human labels. Future research may explore integrating weakly-supervised signals or knowledge-enhanced learning to further resolve these complex semantic ambiguities.

Summary updated

BibTeX
@inproceedings{gu2022phrase,
  author = {Xiaotao Gu and Yikang Shen and Jiaming Shen and Jingbo Shang and Jiawei Han},
  title = {{Phrase-aware Unsupervised Constituency Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.444},
}
Figure