PaDoc is a document parsing system designed to accelerate the conversion of page images into structured data—such as text, tables, and formulas—by enabling parallel processing. While traditional end-to-end parsers process documents as a single, long sequence, PaDoc uses the document's layout to create a branching structure, allowing the model to generate content for different regions of a page simultaneously.
Addressing Sequential Bottlenecks
Standard document parsers use an autoregressive approach, where the model must generate the entire page layout and all regional content in one continuous line. This creates a "critical path" that grows with the total amount of content on the page, forcing the model to wait for one region to finish before starting the next. While "two-stage" parsers attempt to solve this by cropping regions and processing them in parallel, they often suffer from fragmented context and the overhead of repeatedly encoding the same page image. PaDoc aims to bridge this gap by keeping the full page image as a shared visual prefix while allowing content branches to fork off based on the predicted layout.
How PaDoc Works
The researchers implemented PaDoc within a single Multimodal Large Language Model (MLLM). The system relies on a "region-sufficiency" assumption, which posits that once a specific layout region is defined, its content can be generated independently of other regions on the page.
To achieve this without auxiliary models, the authors use "ancestor attention." During training, the model uses a packed variable-length attention mechanism that allows content branches to see the shared page image and their specific layout ancestors, while ignoring irrelevant sibling content. At inference, the system uses a vLLM backend to treat these branches as concurrent requests. Because these branches share the same visual and layout prefix, the system can reuse the cached data, significantly reducing the time required to parse a document.
Performance and Efficiency
On the OmniDocBench dataset, PaDoc achieved an overall score of 94.24, placing it among the top-tier end-to-end parsers. It also recorded the best performance in Text Edit (0.038) and Formula CDM (95.59) metrics.
In terms of efficiency, the researchers tested the model on a 384-page subset using a single A800 GPU. Compared to a standard sequential baseline, PaDoc improved valid-page throughput by 67.4% to 118% and reduced P95 latency by 39.2% to 54.9%. The authors note that by reducing the decoding depth to the longest layout-content path rather than the sum of all regional content, the model maintains high quality while significantly increasing processing speed.
Key Considerations
The PaDoc approach is built on the assumption that content within a document region is independent of other regions once the layout is known. While this allows for efficient parallelization, the model's performance is tied to the accuracy of its layout predictions. The authors note that their implementation avoids the need for separate detector or recognizer heads, relying instead on a single MLLM architecture initialized from the Qwen3-VL-2B checkpoint and refined through continual pre-training and supervised fine-tuning.
Comments (0)
to join the discussion
No comments yet
Be the first to share your thoughts!