ADELIE: Aligning Large Language Models on Information Extraction

Yunjia Qi, Hao Peng, Xiaozhi Wang, Bin Xu, Lei Hou, Juanzi Li

Introduction

Information Extraction (IE) is the critical task of transforming unstructured text into structured formats like knowledge graphs or tables. While Large Language Models (LLMs) have demonstrated remarkable general-purpose capabilities, they often struggle with the rigid schemas and complex constraints inherent in IE. This performance gap stems from two primary issues: an alignment gap, where general instruction-tuning lacks IE-specific rigor, and instruction complexity, where models fail to adhere to predefined categories or specific output formats like JSON.

To address these challenges, we introduce ADELIE, a framework designed to align LLMs specifically for IE tasks through specialized data construction and optimization techniques.

Methods

The ADELIE framework employs a multi-stage alignment process:

  1. IEInstruct Corpus: A high-quality dataset of approximately 83,000 instances was constructed. This corpus includes diverse task descriptions, schema definitions, and multiple output formats (JSON, triplets, natural language). A subset of the data incorporates Chain-of-Thought (CoT) explanations to encourage the model to reason through extraction steps.
  2. Supervised Fine-Tuning (SFT): A Llama-2-7B base model was fine-tuned using a mixture of IEInstruct and general alignment data. This mixture strategy is essential for maintaining general reasoning capabilities while enhancing IE performance.
  3. Direct Preference Optimization (DPO): To further refine the model, we developed IEFeedback, a preference dataset. Using a self-improvement approach, the model generated multiple outputs which were automatically ranked against ground-truth data using BLEU scores. This automated preference learning allows the model to learn from its own formatting and extraction errors without manual annotation.

Datasets

The training and evaluation utilized a broad spectrum of IE benchmarks, including Closed IE (NER, Relation Extraction, Event Extraction), Open IE (CaRB, ROBUST), and On-demand IE (InstructIE). General capabilities were monitored via MMLU and BBH to evaluate the potential "Alignment Tax."

Key Insights

A critical finding of this work is the "20% Rule": a training mixture consisting of approximately 20% IE data and 80% general data represents the optimal balance. This ratio significantly boosts IE performance while minimizing the impact on general reasoning skills.

The 20% Rule: Optimal performance is achieved by mixing IE data with general alignment data.

Furthermore, the researchers found that In-Context Learning (ICL) is a trainable skill. Unlike previous models that often degrade with more prompt examples, ADELIE's performance scales positively with the number of demonstrations because few-shot examples were explicitly included in the training phase. Finally, the success of automated DPO demonstrates that ground-truth data can effectively drive preference learning for structured tasks.

Results

ADELIE, particularly the DPO-tuned variant, establishes a new state-of-the-art among open-source models across multiple IE settings.

Performance comparison of ADELIE against GPT-3.5 and other baselines across IE tasks.

In Closed IE, ADELIE outperformed GPT-3.5 and specialized models like GoLLIE. In Open IE, it showed significant improvements, especially on the ROBUST benchmark, which requires handling complex syntactic structures. Remarkably, ADELIE maintained strong general capabilities, scoring 53.8% on general benchmarks compared to 54.3% for a purely general-purpose model, proving that IE alignment does not necessitate a heavy "Alignment Tax."

Limitations and Future Work

Future research will focus on scaling ADELIE to larger parameter models (70B+) and expanding its capabilities beyond English. Additionally, while automated DPO is highly efficient, incorporating human-annotated preference pairs may further improve the model's handling of subtle extraction nuances.

Summary updated

BibTeX
@inproceedings{qi2024adelie,
  author = {Yunjia Qi and Hao Peng and Xiaozhi Wang and Bin Xu and Lei Hou and Juanzi Li},
  title = {{ADELIE: Aligning Large Language Models on Information Extraction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.419},
}
Figure