CREPE: Coordinate-Aware End-to-End Document Parser
Yamato Okamoto, Youngmin Baek, Geewook Kim, Ryota Nakao, DongHyun Kim, Moon Bin Yim, Seunghyun Park, Bado Lee
TL;DR
CREPE tackles visual document understanding without relying on OCR by jointly producing parsing outputs and text coordinates from document images. It introduces a coordinate head within a multi-head Transformer decoder, where coordinates are decoded only when the special token </ocr> is generated, and coordinates are normalized to the input image size; the architecture supports both bounding boxes ($x_{\min}$, $y_{\min}$, $x_{\max}$, $y_{\max}$) and quadrilaterals ($x_1,y_1$–$x_4,y_4$). A weakly supervised learning framework enables training with parsing annotations only by mixing synthetic OCR tasks and real parsing data and using selective loss masking and standard losses for sequence and coordinates, along with Distance Box IoU losses for better localization. Empirically, CREPE achieves state-of-the-art parsing on CORD, POIE, and FUNSD within the same modality, demonstrates credible text-coordinate extraction (via CLEval), and shows adaptability to document layout analysis, DocVQA, and scene understanding tasks, thereby reducing dependence on external OCR and enabling broader end-to-end document understanding capabilities.
Abstract
In this study, we formulate an OCR-free sequence generation model for visual document understanding (VDU). Our model not only parses text from document images but also extracts the spatial coordinates of the text based on the multi-head architecture. Named as Coordinate-aware End-to-end Document Parser (CREPE), our method uniquely integrates these capabilities by introducing a special token for OCR text, and token-triggered coordinate decoding. We also proposed a weakly-supervised framework for cost-efficient training, requiring only parsing annotations without high-cost coordinate annotations. Our experimental evaluations demonstrate CREPE's state-of-the-art performances on document parsing tasks. Beyond that, CREPE's adaptability is further highlighted by its successful usage in other document understanding tasks such as layout analysis, document visual question answering, and so one. CREPE's abilities including OCR and semantic parsing not only mitigate error propagation issues in existing OCR-dependent methods, it also significantly enhance the functionality of sequence generation models, ushering in a new era for document understanding studies.
