Abstract
Traditional transition-based dependency parsers rely on hand-engineered features and local state views, often sacrificing accuracy for speed. This paper introduces Stack LSTMs, a neural architecture that maintains a continuous, global representation of the parser's state. By integrating stack-based memory with character-level embeddings and dynamic oracle training, the authors develop a linear-time parser that achieves state-of-the-art performance across multiple languages, bridging the gap between fast transition-based methods and accurate graph-based systems.
Introduction
Dependency parsing is fundamental to understanding sentence structure. Historically, researchers have chosen between slow but accurate graph-based parsers and fast but less accurate transition-based parsers. Transition-based models operate as state machines, using a buffer for incoming words and a stack for partially built trees. However, their reliance on a "narrow view" of the state—typically just the top few elements of the stack—limits their ability to capture long-range dependencies and the full context of previous actions. This work addresses these limitations by replacing discrete features with a holistic neural representation of the parser's entire state.
Methodology: The Stack LSTM
The core innovation is the Stack LSTM, an extension of the standard Long Short-Term Memory (LSTM) network designed to handle stack-structured memory.
Stack Operations
Unlike a standard LSTM that processes a fixed sequence, a Stack LSTM maintains a "stack pointer" that tracks the current top of the stack.
- Push: A new element is added, and the LSTM hidden state is updated based on the previous top state and the new input.
- Pop: The stack pointer moves back to the previous hidden state. This operation effectively "forgets" the popped element in constant time while preserving the historical context of the remaining stack.
Parser Architecture
The parser utilizes three distinct Stack LSTMs to represent the facets of the transition state:
- The Buffer: Contains words yet to be processed.
- The Stack: Stores partially constructed tree fragments.
- The Action History: Records the sequence of transitions (e.g., Shift, Reduce-Left, Reduce-Right).
When a dependency is formed, a recursive neural network "composes" the head and dependent into a single vector representation, which is then pushed back onto the stack.
Character-Level Representations and Dynamic Oracles
To handle morphologically rich languages and out-of-vocabulary (OOV) words, the model uses a bidirectional LSTM to generate word embeddings from characters. Furthermore, the authors employ dynamic oracles during training. This technique allows the model to explore sub-optimal states and learn how to recover from errors, rather than only training on "gold-standard" paths.
Experimental Results
The model was evaluated on diverse benchmarks, including English (Stanford Dependency), Chinese (Penn Treebank), and the SPMRL shared task for morphologically rich languages.
- Accuracy: The parser achieved a 93.56 Unlabeled Attachment Score (UAS) on English, a top-tier result for a greedy, linear-time system at the time of publication.
- Morphological Robustness: For Korean, the character-based model improved the Labeled Attachment Score (LAS) for OOV words by 15.5 points over standard word-lookup models.
- Efficiency: The system maintains linear time complexity relative to sentence length, making it suitable for large-scale linguistic processing.
Conclusion
Stack LSTMs provide a powerful mechanism for representing dynamic, structured memory in neural networks. By enabling a greedy parser to maintain a global view of its state, this architecture achieves high accuracy without sacrificing the efficiency of transition-based methods. The success of character-level modeling and dynamic oracles further highlights the importance of sub-word information and robust training strategies in modern NLP.
Summary updated