RelationPrompt: Leveraging Prompts to Generate Synthetic Data for Zero-Shot Relation Triplet Extraction

Yew Ken Chia, Lidong Bing, Soujanya Poria, Luo Si
3/17/2022
161 citations
cs.CL

Official code: declare-lab/RelationPrompt (134 stars, Python, MIT, last commit 2023-06-22).

Abstract

Despite the importance of relation extraction in building and representing knowledge, less research is focused on generalizing to unseen relations types. We introduce the task setting of Zero-Shot Relation Triplet Extraction (ZeroRTE) to encourage further research in low-resource relation extraction methods.

Show full abstract

Given an input sentence, each extracted triplet consists of the head entity, relation label, and tail entity where the relation label is not seen at the training stage. To solve ZeroRTE, we propose to synthesize relation examples by prompting language models to generate structured texts. Concretely, we unify language model prompts and structured text approaches to design a structured prompt template for generating synthetic relation samples when conditioning on relation label prompts (RelationPrompt). To overcome the limitation for extracting multiple relation triplets in a sentence, we design a novel Triplet Search Decoding method. Experiments on FewRel and Wiki-ZSL datasets show the efficacy of RelationPrompt for the ZeroRTE task and zero-shot relation classification. Our code and data are available at github.com/declare-lab/RelationPrompt.

View on arXivView PDF

Code Implementations(1)

MIT

This repository implements our ACL Findings 2022 research paper RelationPrompt: Leveraging Prompts to Generate Synthetic Data for Zero-Shot Relation Triplet Extraction. The goal of Zero-Shot Relation Triplet Extraction (ZeroRTE) is to extract relation triplets of the format (head entity, tail entity, relation), despite not having annotated data for the test relation labels.

13414Python, Jupyter NotebookDec 1, 20213 years agoMIT
data-augumentationgenerative-modelsrelation-extraction

Similar Papers

Cite this paper

@article{chia2022relationprompt,
  title  = {RelationPrompt: Leveraging Prompts to Generate Synthetic Data for Zero-Shot Relation Triplet Extraction},
  author = {Yew Ken Chia and Lidong Bing and Soujanya Poria and Luo Si},
  year   = {2022},
  eprint = {2203.09101},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.09101}
}

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/2203.09101.svg)](https://codeofpaper.com/paper/2203.09101)

Discussion