NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Biaffine Attention for Neural Dependency Parsing

Timothy Dozat, Christopher D. Manning

Introduction

This paper revitalizes graph-based dependency parsing by introducing a "deep biaffine" attention mechanism. By combining high-capacity Bidirectional LSTMs (BiLSTMs) with dimensionality-reducing Multi-Layer Perceptrons (MLPs) and a novel biaffine scoring function, the authors achieve state-of-the-art results. This approach successfully closes the historical performance gap between conceptually simple graph-based models and more complex transition-based parsers.

What Problem Does This Paper Address?

Dependency parsing is the task of mapping out the grammatical structure of a sentence by identifying "head-dependent" relationships (e.g., identifying that "hugged" is the head of the dependent "Kim" in "Casey hugged Kim").

Example of a dependency parse tree

Historically, neural parsers fell into two primary camps:

  • Transition-based: Build the tree step-by-step using a stack and buffer.
  • Graph-based: Score every possible edge between words and find the highest-scoring tree globally.

While graph-based parsers are conceptually simpler and easier to parallelize, they historically lagged behind the accuracy of transition-based models. The authors sought to prove that with the right architecture and regularization, a simple graph-based approach could reclaim the top spot.

The Deep Biaffine Architecture

The authors propose a model with three main architectural "upgrades":

The Deep Biaffine neural architecture
  1. The Encoder: A large, multi-layer BiLSTM creates rich vector representations for each word in a sentence, capturing its context.
  2. The "Deep" Bottleneck: Instead of sending the raw BiLSTM states directly to the attention mechanism, the model first passes them through smaller Multi-Layer Perceptrons (MLPs). This "deep" approach strips away information irrelevant to the specific task of arc or label prediction, reducing the risk of overfitting and speeding up the model.
  3. Biaffine Attention: This is the core innovation. Traditional attention often uses a simple bilinear transformation to score the relationship between two words. A biaffine transformation adds extra terms that allow the model to learn not just how two words interact, but also the "prior" probability of a word being a head or a dependent, regardless of its counterpart.

The model also employs heavy regularization, including a specific form of "Bayesian" dropout that applies the same dropout mask across all time steps in the LSTM.

Key Insights

  • Modeling "Head-ness": The biaffine mechanism is powerful because it explicitly models the likelihood of a word being a head (e.g., verbs) or a dependent (e.g., determiners). Standard bilinear models struggle to capture this "unary" prior information as effectively.
  • Less is More (Information-wise): The BiLSTM state for a word has to represent everything about that word's context. By using MLPs to "squeeze" this into a smaller dimension before scoring arcs, the model is forced to focus only on the syntactic features necessary for parsing.
  • Optimizer Sensitivity: The authors found that the $\beta_2$ hyperparameter in the Adam optimizer—which controls the decay rate of the moving average of squared gradients—had a massive impact. Setting it to 0.9 (instead of the default 0.999) allowed the model to adapt much faster to recent changes during training, significantly boosting final accuracy.

Key Results

The model was evaluated on several standard benchmarks, including the English Penn Treebank (PTB), Chinese Penn Treebank (CTB), and the CoNLL ’09 Shared Task.

  • State-of-the-Art Accuracy: The parser achieved 95.7% UAS (Unlabeled Attachment Score) and 94.1% LAS (Labeled Attachment Score) on the English PTB.
  • Closing the Gap: This outperformed the previous best graph-based parser (Kiperwasser & Goldberg, 2016) by a significant margin (+1.8% UAS) and proved comparable to the state-of-the-art transition-based parser of the time (Kuncoro et al., 2016), which achieved 95.8% UAS.
  • Multilingual Success: The model also set new state-of-the-art records for the Chinese PTB and several CoNLL '09 languages.

Limitations and Future Work

Despite the strong performance, the authors noted a few areas for improvement. While the model matched transition-based parsers in finding the correct structure (UAS), it still lagged slightly in assigning the correct labels (LAS). Furthermore, transition-based models are often better at capturing "phrasal compositionality" (how groups of words function as a single unit), which this graph-based model doesn't explicitly handle. Future work could involve finding ways to bridge this syntactic context gap without sacrificing the simplicity and speed of the graph-based approach.

Summary updated

BibTeX
@inproceedings{dozat2017deep,
  author = {Timothy Dozat and Christopher D. Manning},
  title = {{Deep Biaffine Attention for Neural Dependency Parsing}},
  booktitle = {International Conference on Learning Representations},
  year = {2017},
  url = {https://openreview.net/forum?id=Hk95PK9le},
}
Figure