Transition-based Dependency Parsing Using Two Heterogeneous Gated Recursive Neural Networks

Xinchi Chen, Yaqian Zhou, Chenxi Zhu, Xipeng Qiu, Xuanjing Huang

Introduction

Dependency parsing involves mapping grammatical relationships between words in a sentence. Transition-based parsers typically perform this task incrementally using a stack and a buffer. While early neural models, such as the landmark Chen and Manning (2014) parser, successfully addressed data sparsity using dense word embeddings, they often relied on a "flat" approach: concatenating features from a few top nodes into a single vector. This method struggles to capture the complex, hierarchical nature of linguistic structures and often ignores valuable information in non-peripheral branches of the partial parse tree.

Proposed Methods: Tree-GRNN and DAG-GRNN

To overcome these limitations, the authors propose replacing simple feature concatenation with two specialized Gated Recursive Neural Networks (GRNNs) that learn structured feature compositions.

Comparison of (a) Standard RNN, (b) Tree-GRNN, and (c) DAG-GRNN architectures.
  1. Tree-GRNN (Tree-structured Gated Recursive Neural Network): This network models the partial trees within the stack. Unlike standard models that might only consider immediate children, the Tree-GRNN recursively merges information from all children into the parent node. It employs a reset gate mechanism to selectively filter information, ensuring that only relevant features from the children contribute to the current parsing state.
  2. DAG-GRNN (Directed Acyclic Graph Gated Recursive Neural Network): After the Tree-GRNN refines individual node representations, the DAG-GRNN models the interactions between all selected features from both the stack and the buffer. By treating the combination process as a Directed Acyclic Graph, it uses update and reset gates (similar to GRU architectures) to mix features across different levels of granularity.
The overall architecture of the transition-based parser, illustrating the flow from stack and buffer features to action probabilities.

Key Insights

  • The Power of Gating: A critical finding is that not all branches in a dependency tree are equally relevant for the next parsing action. The gating mechanism allows the network to suppress "noise" from irrelevant branches and focus on the head words that drive the next transition.
  • Structured Composition over Flat Vectors: The DAG-GRNN approach recognizes that the relationship between the stack and buffer is a complex web of interactions rather than a simple sequence. This allows the model to discover sophisticated feature combinations that manual engineering might miss.
  • Recursive Refinement: By updating tree representations every time a new arc is added, the model maintains a dynamic, evolving representation of the sentence structure throughout the parsing process.

Experimental Results

The model was evaluated on the English Penn Treebank (PTB3) and the Chinese Penn Treebank (CTB5). It consistently outperformed baseline neural parsers and traditional feature-based models:

  • English (PTB3): Achieved an improvement of 0.6% in Unlabeled Attachment Score (UAS) and 0.9% in Labeled Attachment Score (LAS) over the baseline.
  • Chinese (CTB5): Showed even more significant gains, with a 0.8% improvement in UAS and a 1.3% improvement in LAS.
  • Convergence: The gated models (Tree-GRNN + DAG-GRNN) demonstrated faster convergence and higher peak performance compared to non-gated versions, validating the importance of the gating mechanism.

Limitations and Future Directions

While the model achieves high accuracy, it faces challenges in computational efficiency. Training on the Chinese dataset took approximately two days on a CPU, and the testing speed was relatively slow at 2.7 sentences per second. Additionally, the current implementation uses greedy decoding; the authors suggest that incorporating beam search could further enhance performance. Future work will explore applying these gated recursive structures to other NLP tasks, such as sentiment analysis and machine translation.

Summary updated

BibTeX
@inproceedings{chen2015transition,
  author = {Xinchi Chen and Yaqian Zhou and Chenxi Zhu and Xipeng Qiu and Xuanjing Huang},
  title = {{Transition-based Dependency Parsing Using Two Heterogeneous Gated Recursive Neural Networks}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1215},
}
Figure