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

TL;DR

UniVIE reframes Visual Information Extraction (VIE) from a fragmented set of subtasks into a single, unified relation-prediction problem. By treating document elements as nodes in a hierarchical tree, the model effectively captures complex, nested relationships in forms that traditional methods often overlook.

What Problem Does This Paper Address?

Extracting information from form-like documents (invoices, medical forms, applications) is a cornerstone of document AI. Traditionally, researchers have split this into three distinct silos:

  1. Key Information Extraction (KIE): Finding entities like names or dates.
  2. Key-Value Pair Extraction (KVP): Linking a label (e.g., "Total") to its value ("$50.00").
  3. Choice Group Extraction (CGE): Grouping checkboxes and their associated text.

The problem? Real-world forms are hierarchical. A "Value" field might contain its own nested key-value pairs, or a choice group might be part of a larger section. Current methods "fragment" the process, treating these as flat, independent tasks. This leads to incomplete data structures and a failure to capture the true semantic "tree" of a document.

Methods

The authors introduce UniVIE, which operates on a "coarse-to-fine" strategy using a unified label space.

1. Unified Label Space

Instead of separate models for KIE, KVP, and CGE, UniVIE treats every task as a relationship between "basic units" (text lines or widgets). It defines two types of relationships:

  • Intra-field: Grouping units into a single semantic object (e.g., a multi-line address).
  • Inter-field: Linking these objects together (e.g., linking a "Name" key to a "John Doe" value).

2. The Architecture

  • Multimodal Backbone: Combines visual features (ResNet) with textual embeddings (BERT or LayoutXLM) and 2D positional information.
  • Tree Proposal Network (TPN): A Transformer encoder that predicts the most likely "parent" for every unit on the page. This creates a rough "forest" of document relationships.
  • Relation Decoder: A Transformer decoder that refines these proposals. It introduces two novel constraints:
  • Tree Attention Mask: Restricts attention flow to units within the same proposed tree, reducing noise from unrelated parts of the document.
  • Tree Level Embedding: Encodes the depth of a unit within its hierarchy, helping the model distinguish between high-level headers and low-level values.
  • Global Optimization: To ensure the final output is a valid tree structure, the model uses the Chu-Liu/Edmonds’ algorithm, a classic graph theory approach for finding the maximum spanning tree.

Datasets

The model was evaluated on two primary benchmarks:

  • SIBR: A public dataset of 1,000 form images (invoices, bills, and receipts) in Chinese and English.
  • HierForms: A new, larger in-house dataset created by the authors. It contains 4,988 real-world English forms specifically annotated to include complex, hierarchical structures that existing datasets lack.

Key Insights and Ideas

  • VIE as Dependency Parsing: The most significant "aha moment" is treating document extraction like linguistic dependency parsing. By forcing every element to point to a parent, the model naturally reconstructs the document's logical flow.
  • Hierarchy is a Feature, Not a Bug: By explicitly encoding tree levels, the model learns that "Value" fields behave differently depending on how deep they are in a nested structure.
  • The Power of Constraints: The Tree Attention Mask proves that "less is more." By preventing the model from looking at the entire page during the refinement stage, it focuses on the local context that actually matters for relationship building.

Key Results

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

  • On SIBR: It reached an F1-score of 96.68% for Entity Extraction and 87.72% for Entity Linking (using ground truth OCR), outperforming previous leaders like LayoutXLM and ESP.
  • On HierForms: In the most challenging "Hierarchical" scenarios, UniVIE outperformed baselines by a significant margin. For example, it improved the Tree Edit Distance Similarity (TEDS) for choice groups by 7.2% over KVPFormer.
  • Robustness: Even when using noisy, real-world OCR (Azure Layout), UniVIE maintained a substantial lead over existing methods, proving its practical utility.

Limitations and Future Work

  • OCR Dependency: While UniVIE is robust, there is still a significant performance gap between using ground-truth text and real-world OCR outputs.
  • Data Scarcity: The model relies on high-quality hierarchical annotations, which are expensive to produce. The authors suggest that future work should explore zero-shot or few-shot learning to adapt the unified label space to new form types without requiring thousands of labeled examples.
  • Dataset Availability: The HierForms dataset is currently in-house; the community would benefit greatly if a version of this hierarchical benchmark were released publicly.

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