Retrieval Augmented Instruction Tuning for Open NER with Large Language Models
Tingyu Xie, Jian Zhang, Yan Zhang, Yuanyuan Liang, Qi Li, Hongwei Wang
TL;DR
This work investigates how to best incorporate information into large language models for information extraction, focusing on open-domain NER. It introduces Retrieval Augmented Instruction Tuning (RA-IT), which augments training inputs with semantically similar retrieved examples to create context-rich instructions, and evaluates this approach in English and Chinese using a new Sky-NER dataset. Across data sizes, backbones, and benchmarks, RA-IT yields consistent improvements over vanilla instruction tuning, with analyses highlighting the benefits of semantically similar retrieval, the value of in-domain examples for inference, and the utility of BM25 filtering when using out-domain contexts. The study provides practical insights for context-enhanced fine-tuning in IE and releases code and Chinese IT data to promote further research and application.
Abstract
The strong capability of large language models (LLMs) has been applied to information extraction (IE) through either retrieval augmented prompting or instruction tuning (IT). However, the best way to incorporate information with LLMs for IE remains an open question. In this paper, we explore Retrieval Augmented Instruction Tuning (RA-IT) for IE, focusing on the task of open named entity recognition (NER). Specifically, for each training sample, we retrieve semantically similar examples from the training dataset as the context and prepend them to the input of the original instruction. To evaluate our RA-IT approach more thoroughly, we construct a Chinese IT dataset for open NER and evaluate RA-IT in both English and Chinese scenarios. Experimental results verify the effectiveness of RA-IT across various data sizes and in both English and Chinese scenarios. We also conduct thorough studies to explore the impacts of various retrieval strategies in the proposed RA-IT framework. Code and data are available at: https://github.com/Emma1066/Retrieval-Augmented-IT-OpenNER
