Reducing Discontinuous to Continuous Parsing with Pointer Network Reordering

Daniel Fernández-González, Carlos Gómez-RodríguezEMNLP 2021

Introduction

Constituent parsing is a fundamental task in natural language processing that involves identifying the hierarchical structure of sentences. While most parsers operate under the assumption of "continuous" structures—where all words in a phrase are contiguous—human language frequently exhibits discontinuous constituents. These phenomena, such as long-distance extractions or dislocations, result in crossing branches in parse trees, significantly increasing computational complexity. Traditional discontinuous parsers often face a trade-off between high accuracy and prohibitive processing times, with complexities reaching up to $O(n^6)$.

The "Reorder, then Parse" Framework

This research proposes a novel two-stage pipeline that simplifies discontinuous parsing by decoupling the structural complexity from the parsing process. The core idea is to transform a discontinuous sentence into a "continuous" sequence as a preprocessing step, allowing the use of highly efficient, off-the-shelf continuous parsers.

Continuous Canonical Arrangement (CCA)

The authors demonstrate that any discontinuous tree can be mapped to a continuous counterpart by rearranging words according to an in-order traversal of the tree. This transformation is bijective, meaning the original word order and its associated discontinuities can be perfectly recovered once the continuous parse is complete.

Transformation of a discontinuous tree (a) into a continuous canonical arrangement (b) through word reordering.

Pointer Network Reordering

To predict the optimal word order without prior knowledge of the tree, the system employs a Pointer Network. This architecture consists of:

  • Encoder: A BiLSTM-CNN that integrates character-level representations, pre-trained word embeddings, and contextualized embeddings from BERT.
  • Decoder: An LSTM that "points" to original word positions to construct the new sequence.
  • Constraints: A uniqueness constraint ensures each word is used exactly once, while a joint labeling task helps the model identify and focus on words that require relocation.

Experimental Results

The model was evaluated on three major benchmarks: the German TIGER and NEGRA treebanks, and the Discontinuous Penn Treebank (DPTB).

Accuracy and Efficiency

The "Pointer + Parser" approach achieves state-of-the-art (SOTA) accuracy while maintaining significant speed advantages. On the TIGER dataset, the model reached an F1 score of 90.5, matching the performance of much more complex specialized algorithms.

Comparison of the proposed Pointer + Parser approach against state-of-the-art discontinuous parsers in terms of F1 score and processing speed (sentences per second).

The standout achievement of this method is its efficiency. By utilizing fast continuous parsers like the Kitaev et al. chart parser, the system processes sentences considerably faster than previous SOTA models. For instance, on the TIGER dataset, the Pointer + Parser combo processed 553.7 sentences per second, significantly outperforming the accuracy of the previous "speed king" (Vilares and Gómez-Rodríguez, 2020) while remaining highly competitive in throughput.

Key Insights

  • Decoupling Complexity: Separating reordering from parsing avoids the computational overhead of specialized discontinuous algorithms.
  • Absolute Positioning: Predicting absolute word positions rather than relative moves allows for a uniqueness constraint that effectively prunes the search space during decoding.
  • The Power of Pre-processing: The neural reorderer is sufficiently accurate that downstream parsers do not require modification to handle the shuffled input.

Limitations and Future Directions

As a pipeline-based approach, the system is susceptible to error propagation; mistakes in the reordering stage cannot be corrected by the parser. Future work may explore iterative or more integrated architectures to mitigate this issue. Additionally, investigating alternative reordering strategies—such as language-specific rules or pre-order traversals—could further optimize the input for specific parsing models. The generalizability of this approach across diverse language morphologies also remains a key area for exploration.

Summary updated

BibTeX
@inproceedings{fernandezgonzalez2021reducing,
  author = {Daniel Fernández-González and Carlos Gómez-Rodríguez},
  title = {{Reducing Discontinuous to Continuous Parsing with Pointer Network Reordering}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.825},
}
Figure