Learning to Prune Dependency Trees with Rethinking for Neural Relation Extraction

Bowen Yu, Mengge Xue, Zhenyu Zhang, Tingwen Liu, Yubin Wang, Bin Wang

Introduction

Relation Extraction (RE) is a fundamental task in Natural Language Processing (NLP) that involves identifying the semantic relationship between two entities within a sentence. For instance, given the sentence "Eugene founded New Fabris," an RE system should identify "Eugene" as the founder. To capture the complex, long-range dependencies often present in natural language, researchers frequently utilize dependency trees—graphical representations of grammatical relationships between words.

However, full dependency trees often introduce significant noise. Many words in a sentence are irrelevant to the specific relationship being extracted, and including them can confuse the classifier. Traditional approaches have relied on rigid, hand-crafted pruning rules, such as keeping only the Shortest Dependency Path (SDP) between entities. While effective in some cases, these heuristics are brittle; they may inadvertently discard crucial relational indicators that fall outside the predefined path.

The DP-GCN Framework

To address these limitations, this paper introduces the Dynamically Pruned Graph Convolutional Network (DP-GCN). Unlike previous models that rely on static rules, DP-GCN learns to prune dependency trees end-to-end, adapting its strategy to the specific context of each sentence.

The architecture of DP-GCN, featuring the dynamic selection module and the rethinking feedback loop.

The architecture consists of three core innovations:

  1. Dynamic Selection Module: This module generates binary gates for every node in the GCN layers. These gates determine whether a word's information should be retained or pruned. To make this discrete decision process differentiable, the authors employ the Gumbel-Softmax trick, allowing the pruning behavior to be optimized via standard gradient descent.
  2. Graph Augmentation: Pruning nodes from a sparse tree can lead to disconnected components, hindering message passing. DP-GCN mitigates this by augmenting the pruned tree with a "semantic graph" generated through self-attention, ensuring that important words remain connected.
  3. Rethinking Mechanism: This iterative feedback loop takes high-level relational features from the final layers and feeds them back into the selection modules of earlier layers. This allows the model to refine its pruning decisions based on a global understanding of the sentence's meaning.

Experimental Evaluation

The DP-GCN model was evaluated on two major benchmarks: TACRED, a large-scale dataset with over 106,000 samples, and SemEval 2010 Task 8, a classic dataset for testing generalization.

Performance comparison on the TACRED dataset showing DP-GCN achieving state-of-the-art results.

As shown in the results, DP-GCN achieved a state-of-the-art F1 score of 69.2 on TACRED, outperforming previous models like AGGCN. Ablation studies further highlighted the importance of the model's components: removing the dynamic selection module led to a 1.8% drop in F1, while removing the rethinking mechanism resulted in a 0.8% decrease. Qualitative analysis showed that DP-GCN successfully retained key relational phrases that rule-based pruning completely discarded.

Conclusion

The DP-GCN demonstrates that learning to prune is significantly more effective than relying on structural heuristics. By combining differentiable gating with a top-down rethinking mechanism, the model successfully filters noise while preserving vital relational context. While the iterative rethinking process adds some computational overhead, the gains in accuracy and robustness represent a significant advancement for neural relation extraction.

Summary updated

BibTeX
@inproceedings{yu2020learning,
  author = {Bowen Yu and Mengge Xue and Zhenyu Zhang and Tingwen Liu and Yubin Wang and Bin Wang},
  title = {{Learning to Prune Dependency Trees with Rethinking for Neural Relation Extraction}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.coling-main.341},
}
Figure