Large language models for generative information extraction: a survey

Derong Xu, Wei Chen, Wenjun Peng, Chao Zhang, Tong Xu, Xiangyu Zhao, Yefeng Zheng, Yang Wang, Enhong Chen

This survey paper, published in Frontiers of Computer Science (2024), provides a comprehensive look at how Large Language Models (LLMs) are transforming Information Extraction (IE) from a fragmented landscape of specialized models into a unified, generative powerhouse.

The Shift to Generative Information Extraction

Traditionally, Information Extraction (IE)—which includes identifying entities (NER), relationships (RE), and events (EE)—required a fragmented approach. Researchers had to build, train, and maintain separate models for every subtask and every domain. This is expensive, requires massive amounts of human-annotated data, and prevents models from sharing "common sense" across tasks.

Generative IE treats extraction as a translation task. Unlike traditional "discriminative" models that classify tokens (e.g., "Is this word a person?"), the model takes plain text and a prompt, then generates a structured string representing the knowledge.

Overview of the generative IE framework, integrating tasks, techniques, and LLMs to produce structural output.

Methods and Frameworks

The survey organizes the field into two primary taxonomies: IE Subtasks and IE Techniques. Within these, the authors distinguish between two main architectural approaches:

  • NL-LLMs (Natural Language): These use natural language schemas and instructions (e.g., "Extract all people and their employers").
  • Code-LLMs (Code-based): A newer, highly effective trend where the model is prompted to output code (like Python classes or JSON). Because LLMs are pre-trained on code, they are naturally better at following the strict structural constraints required for IE.
Comparison between Natural Language prompts and Programming Language prompts (Code-LLMs) for structured extraction.

Learning strategies covered include Supervised Fine-Tuning (SFT), In-Context Learning (ICL), and Constrained Decoding, where the model's output is restricted by a grammar or rule set to ensure it follows a specific format.

Key Insights

  • Code is the Secret Sauce: One of the most interesting findings is that treating IE as a "code generation" task often yields better results than using natural language. Programming languages provide a more effective representation of complex dependencies than plain text.
  • Universal Models > Task-Specific Models: Universal IE models (which handle NER, RE, and EE simultaneously) often perform better on "Strict Relation Extraction." This suggests that learning the dependencies between different tasks helps the model understand the underlying text better.
  • The SFT Dominance: While zero-shot and few-shot capabilities are the "hype" of LLMs, the data shows that Supervised Fine-Tuning (SFT) still significantly outperforms prompting-only methods on standard benchmarks.
  • Data Augmentation via LLMs: LLMs are increasingly being used to create training data for smaller, more efficient models through "Inverse Generation" (generating text from structured data) and "Self-Improvement" (iterative self-correction).

Performance and Benchmarks

The authors evaluate these models against classic benchmarks like CoNLL03 (NER), CoNLL04 (RE), and ACE05 (EE). Models like GPT-NER and EnTDA show that LLMs can achieve F1 scores in the 90s, rivaling traditional state-of-the-art models. Generative methods significantly outperform traditional ones in Event Extraction, particularly in "Argument Classification," where understanding context is crucial. Furthermore, LLMs excel in Open Information Extraction, where the model must extract information without a predefined list of labels.

Limitations and Future Work

The authors identify several "frontiers" that still need work:

  • Long-Context IE: Most current models struggle with extracting information spread across very long documents.
  • Hallucination Control: Reducing the "creative" tendencies of LLMs remains a primary hurdle for high-stakes fields like medicine or law.
  • Efficiency: Fine-tuning and running 70B+ parameter models for simple extraction tasks is often overkill; future work is needed on distilling these capabilities into smaller models.
  • Interactive IE: Moving toward "multi-turn" extraction where a human can clarify or refine the model's output in real-time.

Summary updated

BibTeX
@article{xu2024large,
  author = {Derong Xu and Wei Chen and Wenjun Peng and Chao Zhang and Tong Xu and Xiangyu Zhao and Xian Wu and Yefeng Zheng and Yang Wang and Enhong Chen},
  title = {{Large language models for generative information extraction: a survey}},
  journal = {Frontiers of Computer Science},
  year = {2024},
  doi = {10.1007/s11704-024-40555-y},
}
Figure