Aligning Instruction Tasks Unlocks Large Language Models as Zero-Shot Relation Extractors

Kai Zhang, Bernal Jiménez Gutiérrez, Yu Su
5/18/2023
cs.CL

No official code found. Best implementation: OSU-NLP-Group/QA4RE (39 stars, last commit 2023-12-22).

Abstract

Recent work has shown that fine-tuning large language models (LLMs) on large-scale instruction-following datasets substantially improves their performance on a wide range of NLP tasks, especially in the zero-shot setting. However, even advanced instruction-tuned LLMs still fail to outperform small LMs on relation extraction (RE), a fundamental information extraction task. We hypothesize that instruction-tuning has been unable to elicit strong RE capabilities in LLMs due to RE's low incidence in instruction-tuning datasets, making up less than 1% of all tasks (Wang et al., 2022). To address this limitation, we propose QA4RE, a framework that aligns RE with question answering (QA), a predominant task in instruction-tuning datasets. Comprehensive zero-shot RE experiments over four datasets with two series of instruction-tuned LLMs (six LLMs in total) demonstrate that our QA4RE framework consistently improves LLM performance, strongly verifying our hypothesis and enabling LLMs to outperform strong zero-shot baselines by a large margin. Additionally, we provide thorough experiments and discussions to show the robustness, few-shot effectiveness, and strong transferability of our QA4RE framework. This work illustrates a promising way of adapting LLMs to challenging and underrepresented tasks by aligning these tasks with more common instruction-tuning tasks like QA.

View on arXivView PDF

Code Implementations(1)

OSU-NLP-Group/QA4RECommunity100%

[ACL'23 Findings] "Aligning Instruction Tasks Unlocks Large Language Models as Zero-Shot Relation Extractors"

396PythonMay 11, 20232 years ago
instruction-tuninglarge-language-modelsrelation-extractionzero-shot-learning

Similar Papers

Cite this paper

@article{zhang2023aligning,
  title  = {Aligning Instruction Tasks Unlocks Large Language Models as Zero-Shot Relation Extractors},
  author = {Kai Zhang and Bernal Jiménez Gutiérrez and Yu Su},
  year   = {2023},
  eprint = {2305.11159},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.11159v1}
}

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

Discussion