Mirror: A Universal Framework for Various Information Extraction Tasks

Tong Zhu, Junfei Ren, Zijian Yu, Mengsong Wu, Guoliang Zhang, Xiaoye Qu, Wenliang Chen, Zhefeng Wang, Baoxing Huai, Min Zhang · DOI

Abstract

Information Extraction (IE) has traditionally required specialized architectures for distinct tasks such as Named Entity Recognition (NER), Relation Extraction (RE), and Event Extraction (EE). While recent generative models have attempted to unify these tasks, they often suffer from high computational latency and a lack of precise token indexing. This paper introduces Mirror, a universal, non-autoregressive (NAR) framework that reformulates IE as a multi-span cyclic graph extraction problem. By utilizing a biaffine attention mechanism over a DeBERTa-v3 backbone, Mirror achieves state-of-the-art performance across diverse benchmarks while delivering up to a 32x speedup over existing generative unified models.

1. Introduction

The field of Information Extraction has long been fragmented, with researchers developing bespoke models for specific sub-tasks. Recent shifts toward "Universal IE" have leveraged Large Language Models (LLMs) like T5 to treat extraction as a sequence-to-sequence problem. However, these autoregressive approaches face three primary challenges:

  1. Inference Latency: Token-by-token generation is inherently slow.
  2. Indexing Difficulties: Generative models often struggle to map extracted text back to exact character offsets in the source document.
  3. Structural Complexity: Handling discontinuous entities or n-ary relations (linking more than two entities) remains difficult for linear text sequences.

Mirror addresses these limitations by moving away from sequence generation in favor of a graph-based approach that is fast, provides exact indexing, and natively supports complex structures.

2. Methodology

2.1 Unified Data Interface

To enable multi-task learning, Mirror employs a unified input format: [Instruction] + [Schema Labels] + [Text]. The instruction provides task-specific context (e.g., "Extract the executive officers"), while the schema labels define the target categories (e.g., "Person", "Title"). This allows the model to process the task and the source text in a single forward pass.

2.2 Multi-Span Cyclic Graph

The core innovation of Mirror is the representation of extracted information as a cyclic graph where text spans serve as nodes. The framework utilizes three specific edge types to define these relationships:

  • Consecutive Edges: These connect tokens within a single span to maintain internal structure.
  • Jump Edges: These connect different slots within a tuple, such as linking a "Subject" span to an "Object" span.
  • Tail-to-Head Edges: These connect the final token of the last span back to the initial token of the first span. This "closes the loop," creating a cyclic structure that clearly defines the boundaries of the extracted information.

2.3 Non-Autoregressive Decoding

Unlike generative models that predict one token at a time, Mirror uses a DeBERTa-v3 backbone coupled with a biaffine attention mechanism. This architecture predicts the entire adjacency matrix of the cyclic graph simultaneously. This non-autoregressive (NAR) approach allows for the extraction of all entities and relations in a single step, drastically reducing inference time.

3. Experimental Setup

3.1 Pretraining and Data Curation

The authors curated a massive pretraining corpus comprising 57 datasets across five core tasks: NER, RE, EE, Machine Reading Comprehension (MRC), and Classification. This dataset totaled over 518,000 instances, providing the model with a broad foundation of linguistic structures and task types.

3.2 Evaluation Benchmarks

Mirror was evaluated on 30 downstream datasets covering eight different tasks. These included standard benchmarks like ACE04/05, CoNLL03, and NYT, as well as specialized datasets for complex IE, such as CADEC (discontinuous NER) and HyperRED (n-ary relations).

4. Results and Discussion

4.1 Efficiency and Speed

Mirror demonstrates a significant leap in efficiency compared to autoregressive unified models. In head-to-head comparisons with UIE (a T5-based framework), Mirror achieved an inference speedup of 27x to 32x. This makes the framework highly suitable for real-time industrial applications where low latency is critical.

4.2 Performance and Accuracy

Despite the speed gains, Mirror maintains competitive accuracy. It achieved state-of-the-art (SOTA) or competitive results on 13 IE benchmarks, with particularly strong performance in Event Extraction (CASIE) and Relation Extraction (NYT). Furthermore, the model showed robust zero-shot capabilities, outperforming other universal models like USM on NER tasks it had never encountered during training.

4.3 Cross-Task Synergy

An interesting finding during the study was that pretraining on classification tasks significantly boosted performance on Relation Extraction. This suggests that the semantic features required to categorize a text segment are highly relevant to identifying the relationships between entities within that text.

5. Limitations and Future Work

While Mirror represents a significant advancement, it is currently constrained by the 512-token window of the DeBERTa backbone, limiting its effectiveness for document-level extraction. Additionally, because the model decodes non-autoregressively, it may lack the "global history" context that generative models use to refine subsequent token predictions. Finally, the scarcity of large-scale, diverse event extraction data remains a bottleneck; future work will focus on synthesizing more diverse datasets to further improve EE performance.

6. Conclusion

Mirror provides a fast, accurate, and flexible framework for universal Information Extraction. By recasting IE as a cyclic graph problem and utilizing non-autoregressive decoding, it overcomes the primary hurdles of speed and indexing that have hindered previous unified approaches.

Summary updated

BibTeX
@inproceedings{zhu2023mirror,
  author = {Tong Zhu and Junfei Ren and Zijian Yu and Mengsong Wu and Guoliang Zhang and Xiaoye Qu and Wenliang Chen and Zhefeng Wang and Baoxing Huai and Min Zhang},
  title = {{Mirror: A Universal Framework for Various Information Extraction Tasks}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.548},
}
Figure