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

Bidirectional Dependency-Guided Attention for Relation Extraction

Xingchen Deng, Lei Zhang, Yixing Fan, Long Bai, Jiafeng Guo, Pengfei Wang

Introduction

Relation Extraction (RE) is a fundamental task in Natural Language Processing that involves identifying semantic relationships between entities within a sentence. For instance, given the sentence "Markus Andreas, arrested for murdering an engineer in Polish, was a former Austria lawmaker," a model should identify the "per:origin" relationship between "Markus Andreas" and "Austria." To achieve high accuracy, models must effectively capture the syntactic structure of language, typically represented through dependency trees.

Challenges in Existing Methods

Despite the utility of dependency trees, current approaches face two significant limitations:

  1. Information Loss via Pruning: Many models prune dependency trees to focus solely on the "shortest path" between entities. While this reduces noise, it often discards vital contextual modifiers or subordinate clauses necessary for distinguishing complex relations.
  2. Undirected Graph Limitations: Recent Graph Convolutional Network (GCN) approaches often treat dependency trees as undirected graphs. This ignores the inherent hierarchy of language, where heads (like verbs) govern dependents (like subjects or objects) in specific, directional ways.

The Bi-DGA Model

The authors propose the Bidirectional Dependency-Guided Attention (Bi-DGA) model to address these hurdles. The architecture leverages a pretrained ALBERT backbone and integrates three core innovations to preserve and utilize the full syntactic context.

The complete Bi-DGA architecture, illustrating the flow from ALBERT embeddings through Bi-DGA layers to label-to-context matching.

Bidirectional Tree Attention

Instead of standard self-attention, Bi-DGA employs attention masks to enforce tree-based information flow in two directions:

  • Bottom-up attention: Allows a node to attend to all its descendants, capturing the local semantics of constituents (e.g., noun phrases).
  • Top-down attention: Allows a node to attend to its ancestors, providing global context from the rest of the sentence.

By separating these flows, the model avoids "information confusion" common in undirected graph models, where a node's role as a head or dependent is blurred.

Illustration of information flow on the dependency tree and the internal structure of the Bi-DGA layer.

Hop Embeddings and Label Matching

To avoid the pitfalls of aggressive pruning, Bi-DGA retains the entire tree structure but introduces hop embeddings. These represent the distance between any word and the dependency path connecting the target entities, allowing the model to prioritize syntactically relevant words without deleting distal context.

Furthermore, the model replaces standard softmax classification with Label-to-Context Matching. By learning embeddings for the relation labels themselves and using an attention mechanism to match them against the sentence context, the model handles highly unbalanced datasets more effectively using hinge loss.

Experimental Results

The Bi-DGA model was evaluated on two major benchmarks:

  • TACRED: A large-scale, unbalanced dataset. Bi-DGA (using ALBERT-xlarge) achieved a state-of-the-art F1 score of 71.6, outperforming previous dependency-based models like C-AGGCN (69.0) and SpanBERT (70.8).
  • SemEval 2010 Task 8: A smaller dataset used to test generalization. The model achieved a Macro-F1 of 89.6, demonstrating strong performance across different scales.

Ablation studies confirmed that removing the directional component (treating the tree as undirected) led to a significant drop in F1 score, validating the importance of bidirectional, guided attention.

Conclusion

The Bi-DGA model demonstrates that preserving the full dependency tree while respecting its directional hierarchy is superior to aggressive pruning or undirected graph processing. By treating relation extraction as a matching problem between context and label embeddings, the model sets a new standard for performance on challenging datasets like TACRED. Future work may involve incorporating external conceptual knowledge into label embeddings to further refine the model's semantic understanding.

Summary updated

BibTeX
@inproceedings{deng2020bidirectional,
  author = {Xingchen Deng and Lei Zhang and Yixing Fan and Long Bai and Jiafeng Guo and Pengfei Wang},
  title = {{Bidirectional Dependency-Guided Attention for Relation Extraction}},
  booktitle = {ACML},
  year = {2020},
}
Figure