Skip to main content
QUICK REVIEW

[Paper Review] Stack-Pointer Networks for Dependency Parsing

Xuezhe Ma, Zecong Hu|arXiv (Cornell University)|May 3, 2018
Natural Language Processing TechniquesComputer Science8 citations
TL;DR

This paper proposes Stack-Pointer Networks (StackPtr), a novel transition-based neural dependency parser that combines pointer networks with an internal stack to perform top-down, depth-first parsing. By leveraging global sentence context and subtree history while maintaining linear time complexity, StackPtr achieves state-of-the-art performance on 21 out of 29 treebanks across 20 languages.

ABSTRACT

We introduce a novel architecture for dependency parsing: \emph{stack-pointer networks} ( extbf{ extsc{StackPtr}}). Combining pointer networks~\citep{vinyals2015pointer} with an internal stack, the proposed model first reads and encodes the whole sentence, then builds the dependency tree top-down (from root-to-leaf) in a depth-first fashion. The stack tracks the status of the depth-first search and the pointer networks select one child for the word at the top of the stack at each step. The extsc{StackPtr} parser benefits from the information of the whole sentence and all previously derived subtree structures, and removes the left-to-right restriction in classical transition-based parsers. Yet, the number of steps for building any (including non-projective) parse tree is linear in the length of the sentence just as other transition-based parsers, yielding an efficient decoding algorithm with $O(n^2)$ time complexity. We evaluate our model on 29 treebanks spanning 20 languages and different dependency annotation schemas, and achieve state-of-the-art performance on 21 of them.

Motivation & Objective

  • Address the limitations of classical transition-based parsers, which suffer from error propagation due to left-to-right, local decision-making.
  • Overcome the inefficiency of graph-based parsers, which have high time complexity (e.g., O(n³)) despite superior accuracy.
  • Develop a transition-based parser that maintains a global view of the sentence and previously built subtrees to improve accuracy without sacrificing efficiency.
  • Enable parsing of non-projective dependency structures while preserving linear parsing steps and O(n²) time complexity.
  • Achieve competitive or state-of-the-art performance across diverse languages and dependency annotation schemas.

Proposed method

  • Use a bidirectional RNN encoder to encode the entire input sentence into contextualized word representations.
  • Maintain an internal stack to track the current state of a depth-first traversal of the dependency tree.
  • At each decoding step, apply a pointer network to select a child word for the head word at the top of the stack.
  • The pointer network attends over all words in the sentence, including siblings and grandparents, to inform the child selection decision.
  • Integrate the selected child into the tree and update the stack state, enabling top-down, incremental tree construction.
  • Use a differentiable attention mechanism to allow the model to attend to relevant context from the full sentence and prior subtree structures.

Experimental results

Research questions

  • RQ1Can a transition-based parser maintain global sentence context and subtree history to improve parsing accuracy without increasing time complexity?
  • RQ2Does combining pointer networks with an internal stack enable effective, efficient, and accurate top-down parsing of non-projective dependency trees?
  • RQ3How does the StackPtr parser compare to state-of-the-art graph-based models like biaffine attention (BiAF) in terms of accuracy and efficiency across diverse languages?
  • RQ4Can the proposed architecture generalize across languages with different syntactic structures and dependency annotation schemas?
  • RQ5What is the impact of removing the left-to-right constraint in transition-based parsing on parsing performance?

Key findings

  • StackPtr achieves state-of-the-art UAS and LAS on 21 out of 29 treebanks across 20 languages, including 9 languages where it outperforms the strong biaffine attention (BiAF) baseline.
  • On the CoNLL 2012 shared task, StackPtr achieves the highest UAS on 8 languages (Arabic, Czech, English, German, Portuguese, Slovene, Spanish, Swedish), with scores ranging from 93.46% UAS (Spanish) to 95.52% UAS (Norwegian).
  • On the UD Treebanks, StackPtr achieves UAS above 90% on all 12 languages tested, with improvements over BiAF on 9 languages (e.g., +0.25 UAS on Norwegian, +0.30 UAS on Russian).
  • For the English UD treebank, StackPtr achieves 92.51% UAS and 90.50% LAS on the test set, outperforming BiAF (91.91% UAS, 89.82% LAS).
  • On the German UD treebank, StackPtr achieves 94.89% UAS and 92.58% LAS, surpassing BiAF (94.75% UAS, 92.72% LAS).
  • The model maintains O(n²) time complexity, matching efficient transition-based parsers, while capturing global context through pointer network attention.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.