Tree-Averaging Algorithms for Ensemble-Based Unsupervised Discontinuous Constituency Parsing

Behzad Shayegh, Yuqiao Wen, Lili Mou

Abstract: We address unsupervised discontinuous constituency parsing, where we observe a high variance in the performance of the only previous model in the literature. We propose to build an ensemble of different runs of the existing discontinuous parser by averaging the predicted trees, to stabilize and boost performance. To begin with, we provide comprehensive computational complexity analysis (in terms of P and NP-complete) for tree averaging under different setups of binarity and continuity. We then develop an efficient exact algorithm to tackle the task, which runs in a reasonable time for all samples in our experiments. Results on three datasets show our method outperforms all baselines in all metrics; we also provide in-depth analyses of our approach.

Introduction: The Challenge of Discontinuity

In natural language processing, constituency parsing is the task of breaking a sentence down into its constituent sub-phrases, such as Noun Phrases (NP) or Verb Phrases (VP). While most standard parsers assume these phrases are continuous—forming a single, unbroken span of words—natural language frequently defies this assumption. In many languages, such as German and Dutch, and even in English, phrases can be "discontinuous."

For example, in the English sentence "Wake your friend up," the verb phrase "wake up" is split by the object "your friend." Unsupervised parsing aims to learn these structures without human-annotated data, which is vital for low-resource languages. However, unsupervised models are notoriously unstable; different initializations or "runs" of the same model often yield wildly different results. This paper introduces a novel ensemble-based approach that stabilizes these outputs by averaging predicted trees, even when they contain complex gaps and splits.

Examples of (a) non-binary, (b) discontinuous, and (c) complex discontinuous parse trees.

Methodology: Taming NP-Completeness

The core challenge of ensembling discontinuous trees lies in the algorithmic complexity of finding an "average" tree—defined here as the tree that maximizes the average $F_1$ score against all individuals in the ensemble.

Complexity Analysis

The authors first mapped the theoretical landscape of the problem:

  • Binary trees with bounded fan-out: While solvable in polynomial time (P), the required dynamic programming (DP) approach is $O(n^9)$, making it practically unusable for standard sentence lengths.
  • General trees with unbounded fan-out: This more flexible and realistic setup is proven to be NP-complete, necessitating a more sophisticated search strategy than standard DP.

The Search Algorithm and Pruning

To solve this efficiently, the researchers developed a meet-in-the-middle search algorithm. They framed the problem as finding a "Normalized Max Weighted Clique" in a graph where vertices represent potential phrases. The key to their success is a set of theoretical pruning bounds based on "hit counts" (how frequently a phrase appears across the ensemble).

The impact of pruning theorems on reducing the number of candidate constituents as sentence length (n) and ensemble size (K) increase.

By automatically including phrases that appear in every model and discarding those that appear too rarely, they reduced the search space from exponential $O(2^n)$ to roughly linear $O(n)$ candidates. This allows the algorithm to run efficiently on standard hardware for almost all real-world sentences.

Key Results and Insights

The method was evaluated on three major treebanks: NEGRA (German), TIGER (German), and LASSY (Dutch). The ensemble approach consistently outperformed all individual models and previous baselines (such as PCFG and LCFRS models) across all metrics.

  • Stabilization and Accuracy: On the Dutch LASSY dataset, the ensemble achieved an overall $F_1$ of 51.4, a significant jump from the best individual run's 48.2.
  • Discontinuous Performance: The model showed a marked improvement in $F_1^{disco}$ (the score specifically for split phrases), nearly doubling the performance of individual runs in some cases (e.g., from 6.2% to 10.2%).
  • The Non-Binary Advantage: Interestingly, even when individual models were forced to be binary, the ensemble performed best when allowed to output non-binary trees. This flexibility reduced "false positive" phrases that often occur when a model is forced to make a split where none naturally exists.
  • Expert Negotiation: The authors observed a negative correlation between continuous and discontinuous performance in individual models. The ensemble effectively acts as a negotiator, combining the strengths of "continuous experts" and "discontinuous experts" to produce a more robust final parse.

Conclusion

This work demonstrates that tree-averaging is a powerful tool for stabilizing and improving unsupervised parsing. By providing a rigorous complexity analysis and an efficient pruning-based algorithm, the authors have made exact ensemble decoding for discontinuous structures a practical reality. Future work may extend this framework to other structured tasks, such as multilingual structure discovery or ensemble-based text generation.

Summary updated

BibTeX
@inproceedings{shayegh2024tree,
  author = {Behzad Shayegh and Yuqiao Wen and Lili Mou},
  title = {{Tree-Averaging Algorithms for Ensemble-Based Unsupervised Discontinuous Constituency Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=izcuRGnM4N},
}
Figure