Learning to Extract Structured Entities Using Language Models

Haolun Wu, Ye Yuan, Liana Mikaelyan, Alexander Meulemans, Xue Liu, James Hensman, Bhaskar Mitra

Abstract

Traditional information extraction (IE) focuses on isolated triplets, often failing to capture entities as holistic units. We present MuSEE (Multistage Structured Entity Extraction), a model that shifts the paradigm toward entity-centric extraction. By decomposing the task into three parallelizable stages—entity identification, type/property key prediction, and property value prediction—MuSEE achieves state-of-the-art accuracy while delivering up to 10x speed improvements over existing baselines.

Introduction

Information Extraction has long been dominated by the extraction of ⟨subject, relation, object⟩ triplets. However, this approach suffers from a "recall trap": models may over-extract relations for a single prominent entity while ignoring others, yet still achieve high recall scores. Furthermore, triplet-based methods struggle with coreference resolution and entity normalization.

Structured Entity Extraction overview: converting unstructured text into a predefined schema of entities and properties.

To address these issues, we propose a shift to Structured Entity Extraction (SEE), where the goal is to extract a set of entities, each with a type and a collection of property-value pairs.

The MuSEE Framework

MuSEE is built on a T5 encoder-decoder architecture and utilizes a multistage approach to manage complexity and improve efficiency.

Multistage Decomposition

The extraction process is broken down into three distinct stages:

  1. Stage 1: Entity Identification: The model identifies all unique entities mentioned in the text.
  2. Stage 2: Type and Property Key Prediction: For each identified entity, the model predicts its category (e.g., human) and relevant attribute keys (e.g., occupation).
  3. Stage 3: Property Value Prediction: The model fills in the specific values for the predicted keys.
The MuSEE model architecture, illustrating the three stages of prediction and the use of prompt tokens.

Efficiency via Specialized Tokens

To minimize the "generation tax" associated with long text sequences, MuSEE represents complex entity types and property keys as single specialized tokens (e.g., ent_type_human). This significantly shortens the output sequence, leading to faster inference and fewer errors.

Evaluation and the AESOP Metric

Standard F1 metrics are ill-suited for entity-centric tasks. We introduce AESOP (Approximate Entity Set OverlaP), a metric that first matches predicted entities to ground truth using an optimal assignment algorithm and then calculates property similarity using Jaccard indices. Human evaluations confirm that AESOP correlates more closely with human judgment than traditional triplet-based scores.

Results

MuSEE was evaluated on standard datasets (NYT, CoNLL04, REBEL) and a new large-scale Wikidata-based benchmark.

  • Accuracy: MuSEE consistently outperformed baselines. On the Wikidata dataset, MuSEE (T5-Large) achieved an AESOP score of 50.94, significantly higher than GenIE's 43.50.
  • Speed: By parallelizing stages and using specialized tokens, MuSEE (T5-Base) processed 52.93 samples per second—a 5x to 10x speedup over models like GenIE and IMoJIE.
  • Robustness: MuSEE demonstrated superior "grounding," showing minimal performance loss when text was perturbed with counterfactual information, indicating a strong reliance on the provided context rather than pre-trained memorization.

Conclusion

MuSEE demonstrates that an entity-centric, multistage approach to information extraction is both more accurate and significantly more efficient than triplet-based methods. While currently limited by a single-value assumption for properties, future work will extend the architecture to handle multi-valued attributes and complex coreference scenarios in long-form documents.

Summary updated

BibTeX
@inproceedings{wu2024learning,
  author = {Haolun Wu and Ye Yuan and Liana Mikaelyan and Alexander Meulemans and Xue Liu and James Hensman and Bhaskar Mitra},
  title = {{Learning to Extract Structured Entities Using Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.388},
}
Figure