XFormParser: A Simple and Effective Multimodal Multilingual Semi-structured Form Parser

Xianfu Cheng, Hang Zhang, Jian Yang, Xiang Li, Weixiao Zhou, Fei Liu, Kui Wu, Xiangyuan Guan, Tao Sun, Xianjie Wu, Tongliang Li, Zhoujun Li

Abstract

XFormParser is a streamlined, multimodal framework designed to master the "messy" task of parsing semi-structured forms. By unifying Semantic Entity Recognition (SER) and Relation Extraction (RE) into a single Transformer-based architecture and introducing a novel "warm-up soft label" training strategy, it achieves state-of-the-art results across multilingual and zero-shot benchmarks. The model significantly outperforms existing benchmarks while maintaining the efficiency required for practical industrial deployment.

Introduction: The Challenge of Semi-Structured Forms

In the field of Document AI, form parsing remains a notorious hurdle. Unlike plain text, forms are "semi-structured"—their meaning is derived not just from words, but from their spatial layout and visual context. For instance, a "Total" label's value is determined by its physical proximity to a specific numerical string.

Example of a semi-structured form with annotated entities and relations.

Current solutions face three major bottlenecks:

  1. Multilingual Weakness: Accuracy often drops sharply when moving between different languages.
  2. Industrial Complexity: Models frequently fail to generalize to the "rich text" and complex visual templates found in real-world industrial documents.
  3. Deployment Constraints: While massive Multimodal Large Language Models (MLLMs) are powerful, they are often too computationally expensive for edge devices or low-memory GPUs.

XFormParser offers a "simple but effective" middle ground: a model powerful enough for complex industrial forms but efficient enough for practical deployment.

Methodology

XFormParser is built on a multimodal joint network architecture that integrates text, visual features, and 2D positional information.

The XFormParser multimodal joint network architecture, unifying SER and RE tasks.

Core Components

  • The Backbone: The model utilizes LayoutXLM, a pre-trained model that simultaneously processes text, visual features, and 2D positional embeddings.
  • Unified Task Learning: The architecture performs two tasks concurrently: Semantic Entity Recognition (SER), which classifies text blocks (e.g., identifying "Question" vs. "Answer"), and Relation Extraction (RE), which identifies the logical links between these blocks.
  • The Decoder: For the RE task, the authors combine a Bi-LSTM (to capture sequence relations) with a Biaffine decoder to determine the probability of a relationship between any two entities.
  • Warm-up Soft Label Training: This is the paper's "secret sauce." Early in training, the model uses "hard labels" (binary 0 or 1) to converge quickly. As training progresses, it transitions to "soft labels" (probability distributions). This prevents overfitting and helps the model learn the nuances and uncertainties inherent in complex document layouts.

Datasets and Evaluation

The researchers evaluated XFormParser on standard benchmarks and a new, custom-built industrial dataset:

  • FUNSD: The classic benchmark for form understanding in English.
  • XFUND: A multilingual benchmark covering seven languages.
  • InDFormSFT: A pioneering industrial dataset created by the authors. It contains 562 form images across 8 major industrial scenarios (e.g., financial platforms, university records), semi-automatically annotated using GPT-4o and rigorously verified by humans.

Key Insights and Results

The authors found that training SER and RE together creates a synergy where shared information improves the performance of both tasks. Furthermore, the transition from hard to soft labels acts as a regularizer, acknowledging that in complex forms, the "correct" classification isn't always black and white.

XFormParser consistently outperformed existing State-of-the-Art (SOTA) models like LiLT and GOSE:

  • Language-Specific Gains: Achieved up to a 1.79% F1 score improvement on RE tasks compared to previous SOTAs.
  • Multilingual Mastery: In multilingual fine-tuning on XFUND, it reached an average F1 of 91.67% for SER and 95.89% for RE.
  • Zero-Shot Performance: In cross-lingual zero-shot transfers, XFormParser saw a massive 13.89% F1 improvement in Relation Extraction, proving its architecture captures universal structural logic that transcends language.

Limitations and Future Work

Despite its success, the authors acknowledge areas for growth. The InDFormSFT dataset currently only supports Chinese and English; expanding this to include more languages is a priority. Additionally, while the model is efficient, the authors note a lack of specific validation for model compression techniques like distillation or quantization, which are necessary for true "on-device" deployment. Future work will also explore how XFormParser's logic scales to even larger MLLM architectures.

Summary updated

BibTeX
@inproceedings{cheng2025xformparser,
  author = {Xianfu Cheng and Hang Zhang and Jian Yang and Xiang Li and Weixiao Zhou and Fei Liu and Kui Wu and Xiangyuan Guan and Tao Sun and Xianjie Wu and Tongliang Li and Zhoujun Li},
  title = {{XFormParser: A Simple and Effective Multimodal Multilingual Semi-structured Form Parser}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
}
Figure