Label Verbalization and Entailment for Effective Zero- and Few-Shot Relation Extraction

Oscar Sainz, Oier Lopez de Lacalle, Gorka Labaka, Ander Barrena, Eneko Agirre
9/8/2021
cs.CL

Official code: osainz59/Ask2Transformers (152 stars, Python, Apache-2.0, PyTorch, last commit 2024-03-18).

Abstract

Relation extraction systems require large amounts of labeled examples which are costly to annotate. In this work we reformulate relation extraction as an entailment task, with simple, hand-made, verbalizations of relations produced in less than 15 min per relation.

Show full abstract

The system relies on a pretrained textual entailment engine which is run as-is (no training examples, zero-shot) or further fine-tuned on labeled examples (few-shot or fully trained). In our experiments on TACRED we attain 63% F1 zero-shot, 69% with 16 examples per relation (17% points better than the best supervised system on the same conditions), and only 4 points short to the state-of-the-art (which uses 20 times more training data). We also show that the performance can be improved significantly with larger entailment models, up to 12 points in zero-shot, allowing to report the best results to date on TACRED when fully trained. The analysis shows that our few-shot systems are specially effective when discriminating between relations, and that the performance difference in low data regimes comes mainly from identifying no-relation cases.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

A Framework for Textual Entailment based Zero Shot text classification

15213PythonJun 10, 20202 years agoApache-2.0
deep-learningmnlinatural-language-processingnlpnlp-tool+8 more

Similar Papers

Cite this paper

@article{sainz2021label,
  title  = {Label Verbalization and Entailment for Effective Zero- and Few-Shot Relation Extraction},
  author = {Oscar Sainz and Oier Lopez de Lacalle and Gorka Labaka and Ander Barrena and Eneko Agirre},
  year   = {2021},
  eprint = {2109.03659},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.03659}
}

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

Discussion