Enriched In-Order Linearization for Faster Sequence-to-Sequence Constituent Parsing

Daniel Fernández-González, Carlos Gómez-RodríguezACL 2020

Overview

This research demonstrates that sequence-to-sequence (seq2seq) constituent parsers can match the performance of specialized transition-based parsers. By implementing an enriched in-order linearization strategy and a deterministic attention mechanism, the authors achieve state-of-the-art accuracy while significantly increasing processing speed.

The Challenge of Linearization

Constituent parsing involves decomposing a sentence into its hierarchical structure (e.g., noun and verb phrases). While transition-based parsers are efficient, general-purpose seq2seq models have historically struggled with linearization—the process of representing a 2D tree as a 1D sequence. Previous top-down approaches often lacked the efficiency and accuracy of specialized systems. This work aims to bridge that gap without sacrificing the generality of the seq2seq framework.

Methodology

The authors propose three primary innovations:

  1. In-Order Linearization: Unlike standard top-down traversals, this method predicts a non-terminal node only after its first child is processed. This allows the model to utilize partial structural information before committing to a parent label.
  2. Action Vocabulary Enrichment: The action set is expanded to include specific labels (e.g., REDUCE-NP instead of a generic REDUCE) and lexicalized punctuation. This increased specificity provides clearer context, simplifying the learning task.
  3. Deterministic Attention: Standard global attention is computationally expensive ($O(n^2)$). Observing that models primarily focus on "frontier" words at the parsing boundary, the authors replaced probabilistic attention with a "hard" deterministic version.
The deterministic attention mechanism focuses on specific segments around the frontier words (p and p+1) to improve efficiency.

Experimental Setup

Models were evaluated using the English Penn Treebank (PTB), specifically the Wall Street Journal sections. Standard splits were used: Sections 2-21 for training, Section 22 for development, and Section 23 for testing.

Key Insights

  • Vocabulary and Context: Counter-intuitively, a larger, more specific action vocabulary improves performance by providing richer context at each step.
  • Attention Sparsity: Analysis revealed that successful models focus on the current and subsequent words 90% of the time. This "peaky" attention justified the shift to a pointer-based deterministic mechanism.
  • Strategic Balancing: The in-order strategy effectively balances local and global context, a benefit previously seen in transition-based parsing that translates well to the seq2seq domain.

Results and Performance

The enriched in-order model achieved an F1 score of 91.3 (greedy) and 91.6 (with beam search), setting a new benchmark for fully-supervised, single-model seq2seq parsers on the PTB.

Crucially, the deterministic attention mechanism doubled parsing speed, increasing throughput from approximately 16 sentences per second to over 35 sentences per second.

Comparison of parsing speeds (sentences per second), highlighting the efficiency gains from deterministic attention.

Conclusion and Future Directions

The proposed model matches the performance of complex transition-based systems while remaining architecture-agnostic. While it slightly trails the absolute accuracy of the most advanced chart-based parsers, its speed and simplicity make it a compelling choice for real-world applications. Future work may involve integrating these linearization techniques with large-scale pre-trained transformers to further enhance performance.

Summary updated

BibTeX
@inproceedings{fernandezgonzalez2020enriched,
  author = {Daniel Fernández-González and Carlos Gómez-Rodríguez},
  title = {{Enriched In-Order Linearization for Faster Sequence-to-Sequence Constituent Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.376},
}
Figure