Training with Exploration Improves a Greedy Stack LSTM Parser

Miguel Ballesteros, Yoav Goldberg, Chris Dyer, Noah A. Smith

TL;DR

This research enhances greedy dependency parsers by training them to recover from errors. By substituting traditional "static" training with "dynamic oracles" and exploration strategies, the authors achieved state-of-the-art results for greedy transition-based parsing, notably reaching a 93.56 UAS on the English Penn Treebank.

Introduction: The Challenge of Exposure Bias

Transition-based natural language parsing typically relies on a sequence of greedy decisions to construct syntactic trees. Traditionally, these models are trained using a static oracle, which provides the "gold standard" path. However, this approach suffers from exposure bias: at test time, a single mistake leads the parser into a state it never encountered during training. Lacking experience with "imperfect" states, the parser cannot recover, resulting in a cascade of errors. This paper addresses the gap between the perfect conditions of training and the error-prone reality of inference.

Methodology

The authors extend the Stack LSTM parser (Dyer et al., 2015) with two fundamental innovations:

  1. Dynamic Oracles: Unlike static oracles, dynamic oracles can identify the optimal action from any state, including those resulting from previous errors. This allows the model to learn the best possible completion of a tree even after a mistake.
  2. Training with Exploration: To leverage dynamic oracles, the model must actually encounter errors during training. The authors introduce an exploration strategy where the model occasionally samples actions from its own predicted distribution rather than always following the gold standard.
  3. Arc-Hybrid Transition System: To ensure computational efficiency, the authors transitioned from the "arc-standard" system to an arc-hybrid system. This change enables a constant-time ($O(1)$) calculation for the dynamic oracle, making training feasible.

Key Insights: The Role of Exploration

A critical finding was that simply selecting the highest-probability predicted action during training was insufficient; the model became accurate too quickly to encounter enough diverse error states. To solve this, the authors introduced a parameter $\alpha$ to "flatten" the probability distribution during sampling. By raising probabilities to the power of $\alpha$ (where $\alpha < 1$), the model is encouraged to explore lower-probability states, which significantly improved performance when using pre-trained word embeddings.

Experimental Results

The model was evaluated on the English Penn Treebank (PTB), Chinese Treebank (CTB-5), and the CoNLL 2009 Multilingual Treebanks.

Performance on English and Chinese

The combination of dynamic oracles and exploration yielded substantial gains. On the English PTB, the model reached 93.56 UAS, setting a new state-of-the-art for greedy parsers. Similar improvements were observed on the Chinese CTB-5, achieving 87.65 UAS.

Comparison of parsing performance (UAS/LAS) on English and Chinese benchmarks with and without pre-training.

Multilingual Consistency

The benefits of exploration-based training were not limited to English and Chinese. Evaluation across Catalan, Czech, German, Japanese, and Spanish demonstrated consistent improvements, confirming that learning to recover from errors is a universal advantage for transition-based systems.

Multilingual evaluation results across CoNLL 2009 datasets, showing consistent gains from the proposed method.

Conclusion and Future Directions

This work demonstrates that robustness—learning to make the best of a "bad" state—is more valuable for greedy parsers than aiming for unattainable perfection during training. While the arc-hybrid system currently focuses on projective trees, future work could explore native non-projective dynamic oracles or formalize the sampling method within a Reinforcement Learning framework. Despite the constraints of greedy parsing, these improvements allow one-pass models to compete with more complex global search algorithms.

Summary updated

BibTeX
@inproceedings{ballesteros2016training,
  author = {Miguel Ballesteros and Yoav Goldberg and Chris Dyer and Noah A. Smith},
  title = {{Training with Exploration Improves a Greedy Stack LSTM Parser}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2016},
  doi = {10.18653/v1/d16-1211},
}
Figure