Minimize Exposure Bias of Seq2Seq Models in Joint Entity and Relation Extraction

Haoran Zhang, Qianying Liu, Aysa Xuemo Fan, Heng Ji, Daojian Zeng, Fei Cheng, Daisuke Kawahara, Sadao Kurohashi

TL;DR

This paper tackles the "exposure bias" problem in sequence-to-sequence (Seq2Seq) models for joint entity and relation extraction. They propose a novel "Sequence-to-Unordered-Multi-Tree" (Seq2UMTree) model that removes the imposed order on triplets and limits decoding length, leading to significantly improved generalization, especially on datasets with less overlap between training and testing data.

What Problem Does This Paper Address?

Extracting structured information like relation triplets (e.g., "Obama" - "graduate from" - "Columbia University") from unstructured text is a crucial task in Natural Language Processing. While Seq2Seq models have shown promise by treating this as a sequence generation problem, they suffer from "exposure bias." This bias arises because during training, the model uses correct (gold-standard) previous predictions to generate the next one, but during testing, it relies on its own (potentially incorrect) predictions. This discrepancy, coupled with the Seq2Seq model's tendency to impose an arbitrary order on the inherently unordered triplets, leads to overfitting on frequent patterns and poor generalization to unseen data. The paper aims to mitigate this exposure bias and improve the robustness of joint entity and relation extraction models.

Methods

The core innovation is the Seq2UMTree model. Unlike standard Seq2Seq models that generate triplets sequentially, Seq2UMTree recasts the problem into an "Unordered-Multi-Tree" format. This means:

  • No Predefined Order: Triplets are not forced into a specific sequence (e.g., alphabetical).
  • Limited Decoding Length: Each triplet is decoded independently, with a fixed decoding length of three (relation, head entity, tail entity). This drastically reduces the potential for error accumulation compared to long sequential decoding.
  • Encoder-Decoder Framework: It uses a standard encoder to process the input sentence and a novel UMTree decoder. The decoder employs a copy mechanism and unordered multi-label classification to predict entities and relations.

The authors also systematically investigate the impact of exposure bias by analyzing model performance across different triplet frequencies and by conducting an AB test on seen vs. unseen triplets.

Datasets

The paper evaluates their model on two established datasets for joint entity and relation extraction:

  • NYT: An English news dataset generated via distant supervision.
  • DuIE: A large-scale Chinese JERE dataset.

The authors use standard data splits for these datasets and provide detailed statistics in Table 2. They do not introduce new datasets but focus on analyzing existing ones to understand the impact of data bias.

Key Insights and Ideas

  • Exposure Bias is a Major Bottleneck: The paper strongly demonstrates that exposure bias, exacerbated by arbitrary ordering in Seq2Seq models, significantly hinders generalization.
  • Data Bias Amplifies Exposure Bias: The NYT dataset, with a high overlap between training and testing triplets, shows that Seq2Seq models can achieve high scores by memorizing frequent patterns, masking the underlying generalization issue. DuIE, with lower overlap, reveals the true limitations of Seq2Seq.
  • Unordered Structure is Key: Removing the imposed order on triplets and limiting decoding length (as in Seq2UMTree) is crucial for mitigating exposure bias and improving robustness.
  • Triplet Order Matters (but not how Seq2Seq assumes): While the order of decoding within a triplet (e.g., h-r-t vs. t-h-r) does affect performance, the paper shows that the arbitrary sequential ordering of multiple triplets in Seq2Seq is the primary source of the problem.

Key Results

  • Seq2UMTree Outperforms Seq2Seq: On the DuIE dataset, Seq2UMTree achieves a 15.6% higher F1 score than the state-of-the-art Seq2Seq model (WDec).
  • Improved Generalization: In an AB test on NYT, Seq2UMTree shows a smaller performance drop from seen to unseen triplets compared to WDec, indicating greater robustness.
  • Impact of Triplet Frequency: Performance of Seq2Seq models on NYT strongly correlates with triplet reoccurrence frequency, while Seq2UMTree is less affected, highlighting its better generalization.
  • Model Complexity: Seq2UMTree has a favorable space complexity of O(2l + r), making it applicable to all sentences without significant memory constraints.

Limitations and Future Work

  • Order within Triplets: While Seq2UMTree removes the order between triplets, the order of decoding within a triplet (e.g., head-relation-tail) still has an impact, and the paper notes that certain orders lead to drastic recall drops. Further investigation into optimal within-triplet ordering is suggested.
  • Dataset Bias: The authors suggest that datasets like NYT, with high overlap between training and testing data, might not be ideal for reliably evaluating generalization due to their susceptibility to memorization.
  • Future Work: The paper implicitly suggests exploring more sophisticated ways to handle within-triplet ordering and potentially developing new benchmark datasets that are less prone to data bias.

Summary updated

BibTeX
@inproceedings{zhang2020minimize,
  author = {Haoran Zhang and Qianying Liu and Aysa Xuemo Fan and Heng Ji and Daojian Zeng and Fei Cheng and Daisuke Kawahara and Sadao Kurohashi},
  title = {{Minimize Exposure Bias of Seq2Seq Models in Joint Entity and Relation Extraction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  url = {https://openreview.net/forum?id=KKa7Ep2hakz},
}
Figure