InstructUIE: Multi-task Instruction Tuning for Unified Information Extraction

Xiao Wang, Weikang Zhou, Can Zu, Han Xia, Tianze Chen, Yuansen Zhang, Rui Zheng, Junjie Ye, Qi Zhang, Tao Gui, Jihua Kang, Jingsheng Yang, Siyuan Li, Chunsai DuarXiv 2023 · DOI

Abstract

InstructUIE is a unified framework that reformulates diverse Information Extraction (IE) tasks—including Named Entity Recognition (NER), Relation Extraction (RE), and Event Extraction (EE)—into a single text-to-text generation problem. By leveraging natural language instructions and a massive benchmark of 32 datasets, InstructUIE achieves state-of-the-art performance in zero-shot settings and matches or exceeds specialized models in supervised scenarios.

Introduction

Information Extraction (IE) is the process of transforming unstructured text into structured data, such as identifying that "Apple" is an Organization or that "Steve Jobs" founded it. Traditionally, this required specialized architectures for different sub-tasks: Named Entity Recognition (NER), Relation Extraction (RE), and Event Extraction (EE).

While Large Language Models (LLMs) excel at general conversation, they often struggle with the rigid constraints of IE. For instance, gpt-3.5-turbo scores a meager 18.22 F1 on the Ontonotes dataset—far below state-of-the-art specialized models. Previous "Unified IE" attempts either required separate fine-tuning for every new task or used complex matching mechanisms that are slow and difficult to integrate into modern generative workflows. InstructUIE addresses these gaps by treating IE as a sequence-to-sequence (seq2seq) task guided by natural language instructions.

Methods

InstructUIE treats IE as a seq2seq task using Flan-T5 (11B) as the backbone. The framework relies on several core components:

  1. Instruction Tuning: Models are provided with descriptive prompts (e.g., "Please list all entity words in the text...") to guide the extraction process.
  2. The Option Mechanism: To prevent hallucination, valid label schemas (the list of possible entity or relation types) are included directly in the prompt. This constrains the model's output space to valid categories.
  3. Auxiliary Tasks: The model is trained on "helper" tasks, such as identifying entity pairs before extracting relations, to deepen its semantic grasp of language structure.
Figure 3: Overview of the Multi-Task Instruction Tuning process and Zero-Shot Evaluation framework.

Datasets

The researchers curated IE INSTRUCTIONS, a massive benchmark consisting of 32 diverse IE datasets unified into a consistent text-to-text format. This includes 21 NER datasets (e.g., CoNLL 2003, ACE 2005), 8 RE datasets (e.g., NYT, SciERC), and 4 EE datasets (e.g., CASIE, PHEE). The benchmark spans multiple domains, including healthcare, social media, science, and news, providing a rigorous testing ground for generalization.

Key Results

InstructUIE demonstrates significant performance gains across various extraction tasks:

  • Supervised Performance: InstructUIE achieved an average F1 of 85.19% across 20 NER datasets, outperforming a standard BERT-base model (80.09%).
  • Zero-Shot Dominance: In zero-shot NER, InstructUIE outperformed previous state-of-the-art models like USM by margins exceeding 20 points on datasets like MIT Movie.
  • Outperforming GPT-3.5: In zero-shot evaluations, InstructUIE significantly outperformed both davinci and chatgpt (GPT-3.5), particularly in Relation Extraction where general LLMs often fail to produce correctly formatted outputs.
Figure 5: Performance comparison (F1 score) of InstructUIE against UIE, USM, and Bert-base across various NER datasets.

Discussion and Limitations

While InstructUIE shows remarkable generalization, it faces challenges with extremely large datasets like Ontonotes, where it performed slightly worse than BERT due to sampling strategies used to balance multi-task training. Additionally, as a generative model, it is inherently slower than "one-pass" token classification models. Future work will explore larger backbone models and refined instruction sets to handle more complex, nested information structures.

Summary updated

BibTeX
@misc{wang2023instructuie,
  author = {Xiao Wang and Weikang Zhou and Can Zu and Han Xia and Tianze Chen and Yuansen Zhang and Rui Zheng and Junjie Ye and Qi Zhang and Tao Gui and Jihua Kang and Jingsheng Yang and Siyuan Li and Chunsai Du},
  title = {{InstructUIE: Multi-task Instruction Tuning for Unified Information Extraction}},
  year = {2023},
  eprint = {2304.08085},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.08085},
}
Figure