NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

UniVIE: A Unified Label Space Approach to Visual Information Extraction from Form-like Documents

Kai Hu, Jiawei Wang, Weihong Lin, Zhuoyao Zhong, Lei Sun, Qiang Huo · DOI

Abstract

Visual Information Extraction (VIE) is traditionally fragmented into distinct subtasks such as Key Information Extraction (KIE), Key-Value Pair Extraction (KVP), and Choice Group Extraction (CGE). UniVIE proposes a unified approach by reframing VIE as a single relation-prediction problem, treating document elements as nodes in a hierarchical tree. This method effectively captures complex, nested relationships that traditional flat models often overlook.

Introduction

Extracting information from form-like documents—such as invoices, medical forms, and applications—is a cornerstone of document AI. Historically, researchers have addressed this through three independent silos: KIE for identifying entities, KVP for linking labels to values, and CGE for grouping checkboxes with associated text.

However, real-world forms are inherently hierarchical. A "Value" field might contain nested key-value pairs, or a choice group might be part of a larger section. Traditional methods fragment these relationships, failing to capture the document's true semantic structure. UniVIE addresses this by treating the entire extraction process as a unified dependency parsing task.

UniVIE unifies fragmented VIE tasks into a single hierarchical tree representation.

Methodology

UniVIE operates on a "coarse-to-fine" strategy using a unified label space. Instead of employing separate models for different tasks, it treats every extraction as a relationship between "basic units" (text lines or widgets).

Unified Label Space

The model defines two primary relationship types:

  • Intra-field: Grouping units into a single semantic object, such as a multi-line address.
  • Inter-field: Linking these objects together, such as connecting a "Name" key to its corresponding value.

Architecture

The UniVIE architecture is composed of three main stages:

  1. Composable Multimodal Backbone: This component integrates visual features (ResNet) with textual embeddings (BERT or LayoutXLM) and 2D positional information.
  2. Tree Proposal Network (TPN): A Transformer encoder predicts the most likely "parent" for every unit on the page, creating an initial "forest" of document relationships.
  3. Relation Decoder: A Transformer decoder refines these proposals using a Tree Attention Mask to reduce noise and Tree Level Embeddings to encode hierarchical depth.
The UniVIE architecture featuring the Multimodal Backbone, Tree Proposal Network, and Relation Decoder.

To ensure the final output is a valid tree structure, the model utilizes the Chu-Liu/Edmonds’ algorithm to find the maximum spanning tree.

Datasets and Results

The model was evaluated on two primary benchmarks: SIBR, a public dataset of 1,000 form images, and HierForms, a new in-house dataset of 4,988 forms specifically annotated for complex hierarchical structures.

Key Results

UniVIE achieved state-of-the-art (SOTA) results across multiple metrics:

  • SIBR: Reached an F1-score of 96.68% for Entity Extraction and 87.72% for Entity Linking.
  • HierForms: In challenging hierarchical scenarios, UniVIE improved the Tree Edit Distance Similarity (TEDS) for choice groups by 7.2% over previous baselines like KVPFormer.
  • Robustness: The model maintained a significant performance lead even when using noisy, real-world OCR outputs from Azure Layout.

Conclusion

By treating document extraction as a dependency parsing problem, UniVIE naturally reconstructs the logical flow of complex forms. The explicit encoding of hierarchy allows the model to learn that field behaviors change based on their depth within a nested structure. While challenges remain regarding OCR dependency and the scarcity of hierarchical training data, UniVIE represents a significant step toward unified document understanding.

Summary updated

BibTeX
@inproceedings{hu2024univie,
  author = {Kai Hu and Jiawei Wang and Weihong Lin and Zhuoyao Zhong and Lei Sun and Qiang Huo},
  title = {{UniVIE: A Unified Label Space Approach to Visual Information Extraction from Form-like Documents}},
  booktitle = {ICDAR},
  year = {2024},
  url = {https://openreview.net/forum?id=9L3WDuBkP9},
}
Figure