Zero-shot Triplet Extraction by Template Infilling

Bosung Kim, Hayate Iso, Nikita Bhutani, Estevam Hruschka, Ndapa Nakashole +1 more
12/21/2022
cs.CL

Official code: megagonlabs/zett (21 stars, Python, BSD-3-Clause, last commit 2024-02-17).

Abstract

The task of triplet extraction aims to extract pairs of entities and their corresponding relations from unstructured text. Most existing methods train an extraction model on training data involving specific target relations, and are incapable of extracting new relations that were not observed at training time.

Show full abstract

Generalizing the model to unseen relations typically requires fine-tuning on synthetic training data which is often noisy and unreliable. We show that by reducing triplet extraction to a template infilling task over a pre-trained language model (LM), we can equip the extraction model with zero-shot learning capabilities and eliminate the need for additional training data. We propose a novel framework, ZETT (ZEro-shot Triplet extraction by Template infilling), that aligns the task objective to the pre-training objective of generative transformers to generalize to unseen relations. Experiments on FewRel and Wiki-ZSL datasets demonstrate that ZETT shows consistent and stable performance, outperforming previous state-of-the-art methods, even when using automatically generated templates. https://github.com/megagonlabs/zett/

View on arXivView PDF

Code Implementations(1)

megagonlabs/zettOfficial100%
BSD-3-Clause

:see_no_evil: Code for Zero-shot Triplet Extraction by Template Infilling (Kim et al; IJCNLP-AACL 2023)

210PythonSep 19, 20232 years agoBSD-3-Clause
ijcnlp-aacl-2023information-extractionnlpzero-shot-learningzero-shot-triplet-extraction

Similar Papers

Cite this paper

@article{kim2022zeroshot,
  title  = {Zero-shot Triplet Extraction by Template Infilling},
  author = {Bosung Kim and Hayate Iso and Nikita Bhutani and Estevam Hruschka and Ndapa Nakashole and Tom Mitchell},
  year   = {2022},
  eprint = {2212.10708},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.10708}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.10708.svg)](https://codeofpaper.com/paper/2212.10708)

Discussion