Training with Exploration Improves a Greedy Stack-LSTM Parser

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

TL;DR

This paper improves a state-of-the-art dependency parser by introducing a "training with exploration" technique. Instead of assuming perfect past predictions during training, the model learns to handle its own potential errors, leading to more robust parsing and improved accuracy.

What Problem Does This Paper Address?

Dependency parsing aims to uncover the grammatical structure of sentences by identifying relationships between words. Transition-based parsers, a popular approach, make a sequence of decisions (actions) to build this structure. A common training method, "static oracle training," assumes that the parser always makes correct decisions during training. However, this creates a mismatch with how the parser operates at test time, where it must rely on its own (potentially incorrect) predictions. This can lead to performance degradation when the parser encounters states it hasn't seen during training due to its own errors. This paper addresses this discrepancy by proposing a training method that accounts for the parser's own predictions, making it more resilient to errors.

Methods

The core contribution is adapting the "training with exploration" paradigm, specifically using "dynamic oracles," to the greedy stack LSTM dependency parser developed by Dyer et al. (2015).

  • Greedy Stack LSTM Parser: This parser uses a recurrent neural network (specifically, a stack LSTM) to represent the parser's state (which includes previous decisions and remaining words) in a fixed-dimensional continuous space. This allows it to capture long-range dependencies. At test time, it makes greedy decisions based on the learned model.
  • Static Oracle Training (Baseline): The original parser was trained to maximize the likelihood of a "gold-standard" sequence of actions, assuming all previous actions were correct.
  • Dynamic Oracles: This paper introduces dynamic oracles, which provide the optimal action for a given parser state, even if that state was reached through a parsing mistake. This is a more realistic training scenario.
  • Training with Exploration: Instead of always picking the "gold" action (as in static oracles), the parser is trained to sample actions from its own predicted distribution. This exposes the model to states that might arise from its own errors during training.
  • Flattening the Sampling Distribution: To further encourage exploration of less likely states, the authors propose raising probabilities to a power less than 1 (controlled by parameter $\alpha$) before re-normalizing. This shifts probability mass towards less frequent events, making the model more robust, especially when using pre-trained word embeddings.
  • Arc-Hybrid Transition System: The authors switch from the arc-standard to the arc-hybrid transition system because the latter is "arc-decomposable," allowing for an efficient O(1) dynamic oracle, which keeps training time manageable.

Datasets

The paper evaluates its approach on:

  • English PTB (Penn Treebank): A standard benchmark for English dependency parsing.
  • Chinese CTB-5 (Chinese Treebank 5): A standard benchmark for Chinese dependency parsing.
  • Multilingual Treebanks (CONLL 2009 shared task): Used for comparison with similar greedy parsers on various languages (Catalan, Chinese, Czech, English, German, Japanese, Spanish).

Key Insights and Ideas

  • The Training-Testing Mismatch is Real and Harmful: The core insight is that training a parser assuming perfect past actions (static oracle) leads to a significant gap between training and testing conditions, hindering performance.
  • Learning from Mistakes is Crucial: By exposing the parser to its own potential errors during training (via dynamic oracles and sampling), the model becomes more robust and achieves better accuracy.
  • Dynamic Oracles are Key to Realistic Training: Dynamic oracles provide a more principled way to define "correct" actions in states that might arise from parsing errors, enabling more effective exploration.
  • Flattening the Distribution Boosts Performance: The simple trick of raising probabilities to a power $\alpha < 1$ significantly improves performance, especially for models leveraging pre-trained embeddings, by encouraging exploration of less common but potentially important states.
  • Arc-Hybrid System Enables Efficient Dynamic Oracles: The choice of the arc-hybrid system was driven by its decomposability, which allows for an efficient dynamic oracle, making the proposed training method computationally feasible.

Key Results

  • The proposed "training with exploration" method using dynamic oracles improves parsing accuracies for both English and Chinese.
  • For English, the parser achieves 93.56 UAS (Unlabeled Attachment Score), which is remarkable for a greedy search procedure.
  • For Chinese, the parser achieves 86.13 UAS and 84.53 LAS (Labeled Attachment Score), establishing a new state-of-the-art at the time of publication.
  • The use of the arc-hybrid system with dynamic oracles slightly underperforms the arc-standard system when trained with a static oracle, but the dynamic training strategy compensates for this.
  • The flattening of the sampling distribution (with $\alpha = 0.75$) was particularly beneficial, especially when using pre-trained word embeddings.

Limitations and Future Work

  • Arc-Standard vs. Arc-Hybrid: While the arc-hybrid system enables efficient dynamic oracles, it slightly underperforms the arc-standard system when trained with static oracles. The authors suggest that further research might explore efficient dynamic oracles for the arc-standard system.
  • Computational Cost: While the arc-hybrid system makes dynamic oracles feasible, the paper notes that dynamic oracles for the arc-standard system can be computationally expensive (polynomial in stack length).
  • Future Directions: The authors believe that further formal analysis of their "training with exploration" method could reveal connections to reinforcement learning and other complex policy learning methods. They also suggest that exploring different sampling distributions or more sophisticated exploration strategies could yield further improvements.

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