UIE (Unified Structure Generation for Universal Information Extraction)
A T5-based text-to-structure model that does information extraction by generating structured records.
Language · 1,681 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 247.5M
- Operations
- 1,681
- Framework
- PyTorch
- Recurrent
- No
- Published
- ACL 2022
- Cited by
- 9 (as of 27 October 2026)
- Authors
- Yaojie Lu, Qing Liu, Dai Dai and others
- Source
- GitHub: universal-ie/UIE
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m21121
- Graph hash
- 4ba920cec7979193bbb704eb41149e4f258cd4884a12bce4b4d59936c1faabab
- Skeleton hash
- deb6ab79fce702403d389006b95aea9048b0924874202b06d7be7435d8a5d66a
- Architecture hash
- d408c8a07fa624c703b4ec176f0dbdfe5af94c2f03e360d6457dc9caac6815ee
- Diagram SHA-256
- c257f220a92ee3566085b62ee72d5e09cbdcde2ce995b1ed2b894e75f64ef82e
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
UIE treats information extraction (IE) as text-to-structure generation: one model reads a sentence and writes out the entities, relations, events or sentiment structures to be extracted. The paper starts from the observation that information extraction suffers from varying targets, heterogeneous structures and demand-specific schemas.
A structured extraction language (SEL) writes every kind of extraction result in one grammar of spot names, association names and text spans, so that all the tasks become a transformation from text to SEL. A schema-based prompt, the structural schema instructor (SSI), is placed in front of the input text to say what to extract; the paper's example is “[spot] person [spot] company [asso] work for [text]”. A Transformer encoder reads the prompt and the text, and a Transformer decoder generates the linearized SEL in an auto-regressive style.
UIE-base and UIE-large are initialized with T5-v1.1-base and T5-v1.1-large and then pre-trained with three sequence generation tasks. The paper reports results on 13 datasets across 4 IE tasks, in supervised, low-resource and few-shot settings. The released code uses the extra tokens of T5 as the structure indicators.
Key idea. UIE models entity, relation, event and sentiment extraction as one text-to-structure generation task, using a structured extraction language and a schema-based prompt.
- UIE
- universal information extraction
- unified structure generation
- text-to-structure generation
- structured extraction language
- structural schema instructor
- uie-base-en
- information extraction
- relation extraction
- event extraction
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{lu2022unifiedstructuregenerationuniversal,
title={Unified Structure Generation for Universal Information Extraction},
author={Yaojie Lu and Qing Liu and Dai Dai and Xinyan Xiao and Hongyu Lin and Xianpei Han and Le Sun and Hua Wu},
year={2022},
eprint={2203.12277},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2203.12277},
}