DocFusion: A Unified Framework for Document Parsing Tasks
Mingxu Chai, Ziyu Shen, Chong Zhang, Yue Zhang, Xiao Wang, Shihan Dou, Jihua Kang, Jiazheng Zhang, Qi Zhang
TL;DR
DocFusion presents a unified, generative framework for document parsing that jointly handles DLA, MER, TR, and OCR with a compact 289M-parameter model. It introduces GK-CEL to resolve the discrete-continuous optimization clash inherent in token-based generation of coordinates, and it leverages a new DocLatex-1.6M dataset along with DocLayNet reannotations to standardize tasks. The approach achieves state-of-the-art results across all four tasks, driven by multi-task collaboration and a cohesive architecture consisting of a vision encoder, text embeddings, and a Transformer decoder. The work demonstrates practical benefits for downstream systems, though it notes limitations in handwritten/alternative table formats and real-time applicability.
Abstract
Document parsing is essential for analyzing complex document structures and extracting fine-grained information, supporting numerous downstream applications. However, existing methods often require integrating multiple independent models to handle various parsing tasks, leading to high complexity and maintenance overhead. To address this, we propose DocFusion, a lightweight generative model with only 0.28B parameters. It unifies task representations and achieves collaborative training through an improved objective function. Experiments reveal and leverage the mutually beneficial interaction among recognition tasks, and integrating recognition data significantly enhances detection performance. The final results demonstrate that DocFusion achieves state-of-the-art (SOTA) performance across four key tasks.
