Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Triple Extraction with Generative Transformer

Hongbin Ye, Ningyu Zhang|arXiv (Cornell University)|Sep 14, 2020
Topic ModelingComputer Science25 citations
TL;DR

This paper proposes Contrastive Triple Extraction with a Generative Transformer (CGT), a novel end-to-end sequence-to-sequence model that improves faithfulness and long-sequence performance in open information extraction. By integrating triplet contrastive learning, batch-wise dynamic attention masking, and triple-wise calibration, CGT outperforms strong baselines on NYT, WebNLG, and MIE datasets, especially on long sentences where RNN-based models fail.

ABSTRACT

Triple extraction is an essential task in information extraction for natural language processing and knowledge graph construction. In this paper, we revisit the end-to-end triple extraction task for sequence generation. Since generative triple extraction may struggle to capture long-term dependencies and generate unfaithful triples, we introduce a novel model, contrastive triple extraction with a generative transformer. Specifically, we introduce a single shared transformer module for encoder-decoder-based generation. To generate faithful results, we propose a novel triplet contrastive training object. Moreover, we introduce two mechanisms to further improve model performance (i.e., batch-wise dynamic attention-masking and triple-wise calibration). Experimental results on three datasets (i.e., NYT, WebNLG, and MIE) show that our approach achieves better performance than that of baselines.

Motivation & Objective

  • To address the limitations of existing end-to-end triple extraction models, particularly poor long-term dependency capture and unfaithful triple generation.
  • To improve faithfulness in generated triples by introducing a novel contrastive learning objective using positive (gold) and negative (corrupted) triple instances.
  • To enhance model performance through joint optimization of generation and contrastive objectives using dynamic attention masking.
  • To reduce hallucinated or incorrect triples during inference via a triple-wise calibration mechanism.
  • To demonstrate the effectiveness of the proposed framework on benchmark datasets with varying sentence lengths.

Proposed method

  • A single shared transformer encoder-decoder architecture is used, with input and target sequences concatenated and separated by a special token.
  • Partial causal masking is applied to distinguish encoder and decoder representations without additional parameters.
  • A triplet contrastive learning objective is introduced, treating gold triples as positive and randomly corrupted triples as negative instances.
  • Batch-wise dynamic attention-masking enables joint optimization of generation and contrastive objectives by dynamically selecting training targets.
  • A triple-wise calibration algorithm filters out low-confidence or inconsistent triples during inference to improve faithfulness.
  • The model is fine-tuned end-to-end on pre-trained T5-style models, requiring no additional parameters beyond the base model.

Experimental results

Research questions

  • RQ1Can contrastive learning improve the faithfulness of generated triples in sequence-to-sequence triple extraction?
  • RQ2Does the proposed CGT model better capture long-term dependencies than RNN-based models in long input sequences?
  • RQ3Can joint optimization via dynamic attention-masking improve performance on both generation and contrastive objectives?
  • RQ4How effective is triple-wise calibration in reducing hallucinated or incorrect triples during inference?
  • RQ5Does the proposed architecture outperform strong baselines on diverse benchmark datasets, including long and complex sentences?

Key findings

  • CGT achieves state-of-the-art performance on three benchmark datasets: NYT, WebNLG, and MIE, outperforming strong baselines including CopyRE and CopyMTL.
  • On long sentences (length > 60), CGT maintains superior performance, while CopyRE shows significant performance decay, demonstrating better long-context modeling.
  • The ablation study confirms that both triplet contrastive learning and dynamic attention-masking contribute significantly to performance gains.
  • Even with random initialization, CGT(Random) outperforms generative baselines, indicating that the improvements stem from the architecture and training objective, not just pre-training.
  • Error analysis reveals that the main failure modes are ambiguous contexts, incorrect entity boundaries, and noisy datasets—especially in WebNLG—highlighting areas for future work.
  • The model shows strong robustness in generating correct relations even when entities are complex or overlapping, thanks to the contrastive objective and calibration step.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.