Enforcing Structural Diversity in Cube-pruned Dependency Parsing

Hao Zhang, Ryan T. McDonald

Abstract

Modern dependency parsers often struggle with a trade-off between structural and label ambiguity. While cube pruning provides an efficient approximate search, the resulting search beam is frequently dominated by minor label variations of a single tree structure, leading to a loss of structural diversity. This paper presents a simple modification to the cube pruning algorithm that enforces structural diversity by partitioning the beam. By ensuring a wider variety of syntactic shapes are explored, the proposed method achieves state-of-the-art accuracy across multiple languages and datasets with minimal computational overhead.

Introduction

Dependency parsing is a fundamental task in natural language processing that involves identifying the syntactic relationships between words in a sentence. This process involves resolving two primary types of uncertainty: structural ambiguity and label ambiguity. Structural ambiguity concerns the connectivity of the tree—for instance, determining whether a prepositional phrase attaches to a preceding verb or noun. Label ambiguity involves assigning the correct grammatical role to an established connection, such as distinguishing between a direct object and an indirect object.

A dependency tree example illustrating structural connections and their associated labels.

In state-of-the-art parsers, cube pruning is used to maintain a "beam" of the $k$-best partial parses. However, because many dependency labels are fine-grained and easily confused, the beam often fills up with multiple versions of the exact same tree structure that differ only in their labels. This lack of structural diversity is problematic; if the correct tree structure is initially ranked slightly lower, it may be pruned before higher-order features—which consider larger syntactic contexts—have the opportunity to "rescue" it.

Methodology: The Secondary Beam Approach

To address the bottleneck caused by label ambiguity, we propose a "secondary beam" approach to partition the search space during cube pruning. This method introduces a new constraint, $s_b$, alongside the standard primary beam size $b$.

  • Primary Beam ($b$): Limits the total number of partial parses stored for any given sentence segment.
  • Secondary Beam ($s_b$): Limits the number of labeled versions allowed for any unique unlabeled structure.

Instead of simply selecting the top $b$ candidates, the algorithm partitions the candidates into groups based on their unlabeled tree structure. It then retains only the top $s_b$ labeled variants for each unique structure. This forces the primary beam to contain a more diverse set of tree shapes. For example, if $b=6$ and $s_b=2$, the beam is guaranteed to contain at least three distinct unlabeled tree structures.

Illustration of beam ranking with different secondary beam constraints ($s_b$).

As shown in the figure above, when $s_b$ is set to 1, the beam is populated by the best-labeled version of four different structures ($t_1^1, t_2^1, t_3^1, t_4^1$). Without this constraint (effectively $s_b = b$), the beam can be entirely consumed by variations of the single best structure ($t_1^1, t_1^2, t_1^3, t_1^4$), potentially pruning away the correct structure if it was ranked lower initially.

Experimental Evaluation

We evaluated the diversity-enforcing parser across a wide range of benchmarks to test its robustness across different languages and annotation styles.

Datasets

  • English: Three versions of the Penn Treebank (Penn-YM, Penn-S-2.0.5, and Penn-S-3.3.0) were used to account for various dependency conversion styles.
  • Chinese: The Chinese Treebank 5 (CTB-5).
  • Multilingual: 17 languages from the CoNLL 2006/2007 shared tasks, including Arabic, Turkish, and others.

Key Results

The diverse parser consistently outperformed the baseline cube-pruned parser. On the Penn-S-2.0.5 dataset, it achieved a Labeled Attachment Score (LAS) of 91.37%, a significant improvement over the baseline's 91.17%. In the CoNLL tasks, improvements were observed in nearly every language, with the most pronounced gains occurring in languages with large, fine-grained label sets. This confirms that the method effectively combats label-induced pruning errors.

Discussion and Insights

Our analysis reveals several key insights into the behavior of dependency parsers:

  1. Label Ambiguity as a Bottleneck: Fine-grained label sets (such as the 49 labels in the Stanford set) can paradoxically hurt search efficiency by "diluting" the beam with redundant structures.
  2. Diversity over Raw Size: Simply increasing the beam size is computationally expensive and often less effective than enforcing diversity. A diverse beam of size 6 often outperforms a standard beam of size 16.
  3. The $s_b = b/2$ Heuristic: Empirical results suggest that setting the secondary beam to approximately half the size of the primary beam provides a robust balance between structural and label exploration.
  4. Targeting Hard Attachments: The method provides the most significant gains on difficult attachment decisions, such as quantity modifiers (quantmod) and participial modifiers (partmod), where structural choices are subtle and easily overshadowed by label variations.

Conclusion

Enforcing structural diversity is a simple yet powerful modification to cube-pruned dependency parsing. By preventing the search beam from being overwhelmed by label ambiguity, we allow the parser to explore a broader range of syntactic hypotheses. This leads to improved accuracy across diverse languages and annotation schemes without requiring significant additional computational resources. Future work may explore integrating this diversity constraint into other frameworks, such as transition-based parsing.

Summary updated

BibTeX
@inproceedings{zhang2014enforcing,
  author = {Hao Zhang and Ryan T. McDonald},
  title = {{Enforcing Structural Diversity in Cube-pruned Dependency Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2014},
  doi = {10.3115/v1/p14-2107},
}
Figure