InstructIE: A Bilingual Instruction-based Information Extraction Dataset

Honghao Gui, Shuofei Qiao, Jintian Zhang, Hongbin Ye, Mengshu Sun, Lei Liang, Jeff Z. Pan, Huajun Chen, Ningyu ZhangISWC 2023 · DOI

Abstract Large language models can perform well on general natural language tasks, but their effectiveness is still suboptimal for information extraction (IE). Recent works indicate that the main reason lies in the lack of extensive data on IE instructions. Note that the existing datasets on IE instructions not only have limited coverage but also involve high construction costs. To address this issue, we introduce InstructIE, a bilingual instruction-based IE dataset, which covers 12 diverse domains. We propose KG2Instruction, a framework specifically for the automatic generation of such datasets. Additionally, we manually annotate the test set. Experimental results demonstrate that large language models trained with InstructIE can not only obtain better IE capabilities but also enhance zero-shot performance compared with baselines.

Introduction: The Shift to Instruction-based IE

Traditional Information Extraction (IE) systems are often "brittle," designed to operate on a fixed set of labels. Adding a new category usually requires architectural changes or retraining. Instruction-based IE addresses this by allowing users to define extraction goals in natural language. However, the lack of high-quality, diverse training data for these instructions remains a significant bottleneck.

Comparison of traditional IE approaches versus instruction-based IE, highlighting the flexibility of instructions for new schemas.

The KG2Instruction Framework

To overcome the high cost of manual annotation, the researchers developed KG2Instruction, an automated three-step pipeline designed to generate high-quality training data at scale:

  1. KG Alignment: Aligning Wikidata with Wikipedia text to identify known entities and relations.
  2. LLM Supplementation: Using a fine-tuned LLM to discover additional relationships missed by the knowledge graph, filling gaps in existing data.
  3. NLI Filtering: Applying Natural Language Inference (NLI) to verify that extracted triples are actually supported by the source text, effectively reducing model hallucinations.

The InstructIE Dataset

The resulting InstructIE dataset is a massive bilingual resource (Chinese and English) containing over 360,000 instances across 12 domains, such as Medicine, Artworks, and Astronomy. It includes 123 relationship types and a manually annotated "gold standard" test set of 2,000 instances to ensure rigorous evaluation.

An example of the instruction-based IE task, showing the schema repository, instruction, input text, and the resulting structured JSON output.

Key Results and Insights

Experimental evaluations using models like ChatGPT, LLaMA2, and Baichuan2 revealed several critical findings:

  • Enhanced Generalization: Models trained on InstructIE improved their ability to extract entirely new relations they had never seen before, suggesting they learned the underlying logic of extraction rather than just memorizing labels.
  • Fine-tuning Performance: Fine-tuning open-source models led to significant gains. Baichuan2-13B achieved a Micro F1 of 72.18 on Chinese data, while LLaMA2-13B reached 64.97 on English data.
  • Zero-Shot Superiority: InstructIE-trained models outperformed those trained on traditional "distant supervision" datasets when tested on unseen data, proving the dataset's superior diversity and quality.
  • Instruction Sensitivity: LLMs remain highly sensitive to instruction phrasing, emphasizing the importance of diverse instruction templates during training to ensure robust performance.

Conclusion and Future Directions

While InstructIE marks a significant step toward "Universal IE," challenges remain in expanding to more languages and highly specialized domains like Law or Finance. Future work will focus on refining automated cleaning techniques and broadening the dataset's scope to further bridge the gap between unstructured text and structured knowledge.

Summary updated

BibTeX
@inproceedings{gui2023instructie,
  author = {Honghao Gui and Shuofei Qiao and Jintian Zhang and Hongbin Ye and Mengshu Sun and Lei Liang and Jeff Z. Pan and Huajun Chen and Ningyu Zhang},
  title = {{InstructIE: A Bilingual Instruction-based Information Extraction Dataset}},
  booktitle = {ISWC},
  year = {2023},
  doi = {10.1007/978-3-031-77847-6\_4},
}
Figure