TL;DR
Standard document reading order models suffer from "Positional Disparity"—they easily master predictable headers and footers but fail in complex document bodies because uniform training losses let easy patterns drown out hard ones. To fix this, FocalOrder introduces a dynamic framework that autonomously identifies hard-to-learn layout transitions and applies difficulty-calibrated pairwise ranking. This compact 0.4B parameter model flattens the document error curve, outperforming massive general vision-language models (VLMs) with zero inference overhead.
What Problem Does This Paper Address?
When converting a visually complex document (like a multi-column academic paper, textbook, or newspaper) into a linear stream of text, AI models must determine the correct reading order. Current state-of-the-art models treat this as a standard sequence generation task, optimizing with uniform supervision (like standard cross-entropy loss). This implicitly assumes that every transition step in a document is equally difficult to predict.
The authors challenge this assumption by exposing a systematic flaw they call Positional Disparity. Documents typically feature highly predictable, rigid templates at their boundaries—such as titles and headers at the start, or references and footers at the end. In contrast, the intermediate document body contains dense, highly ambiguous layouts (e.g., text wrapping around figures or multi-column tables).
Because standard training treats all tokens equally, the massive volume of trivial start/end patterns dilutes the gradient signals needed to learn complex intermediate transitions. This results in a distinct "Inverted-U" error curve where model performance collapses right in the middle of the document.
Methods
The authors propose FocalOrder, a framework driven by Focal Preference Optimization (FPO). Instead of uniform sequence modeling, it shifts training toward an adaptive, curriculum-style approach via two complementary mechanisms:
- Adaptive Difficulty Discovery (Intra-Sequence): The model partitions the document sequence into $K$ spatial bins and uses an Exponential Moving Average (EMA) to track historical error rates. This acts as a low-pass filter that dynamically up-weights ($w_t$) structurally ambiguous regions (the document body) and down-weights trivial, memorized templates (headers/footers).
- Difficulty-Calibrated Pairwise Ranking (Inter-Sequence): To enforce global logical consistency, the authors introduce a contrastive ranking objective. It samples preference pairs from the top and bottom sequences sorted by a difficulty-calibrated advantage function. Crucially, it employs a topology-aware adaptive margin ($m_{ij}$) that forces the model to maintain a larger probability gap for complex layouts.
During inference, the difficulty tracking and ranking modules are completely discarded. As a result, FocalOrder introduces virtually zero computational or latency overhead at test time compared to its base model.
Datasets
The framework was rigorously evaluated on two challenging document layout benchmarks:
- OmniDocBench (v1.0 and v1.5): A benchmark characterized by extreme element density. Version 1.5 triples the volume of inline formulas, posing significant challenges for local text sorting.
- Comp-HRDoc: A large-scale dataset consisting of 1,500 documents and nearly 1 million annotated elements, used to evaluate both text flows and graphical regions.
Key Insights and Ideas
- The Spatial-Logical Mismatch: To prove that the document body is inherently more ambiguous, the authors tracked how often the true reading order deviates from the geometrically nearest neighbor. This geometric proxy perfectly correlated with the "Inverted-U" error curve, confirming that physical proximity does not equal logical flow in a document's body.
- Data-Driven Weighting Beats Heuristics: Simply hardcoding a static, Gaussian-like weight curve (low at the ends, high in the middle) yields suboptimal results. The model genuinely needs the dynamic EMA mechanism to autonomously discover its own structural bottlenecks during training.
- Task-Specific Efficiency: A compact, specialized 0.4B parameter model optimized with FPO can comfortably beat 70B+ general-purpose VLMs at spatial coordinate serialization because it isn't distracted by overwhelming, trivial layout patterns.
Key Results
- Flattening the Error Curve: In the complex intermediate regions (20%–80% relative position), FocalOrder reduced the average baseline error rate from 25.99% to 10.28%—representing a 60.4% relative improvement.
- State-of-the-Art Performance: On OmniDocBench v1.0, FocalOrder achieved an Edit Distance score of 0.038 (EN) and 0.055 (ZH), outperforming top expert models like PaddleOCR-VL (0.045 EN) and massive general VLMs like GPT-4o (0.128 EN) and Gemini-1.5 Pro (0.049 EN).
- Graphical Robustness: On Comp-HRDoc, it achieved the highest Reading Edit Distance Scores (REDS) in both categories: 97.1% on Text Regions and 91.1% on Graphical Regions, proving highly effective at mining hard samples in complex tables and figures.
- Negligible Latency: Inference latency only marginally shifted from 12.1 ms to 12.3 ms, preserving its viability for fast, industrial-scale document processing pipelines.
Limitations and Future Work
- Upstream Dependencies: FocalOrder acts strictly as a downstream serialization module. If the upstream Document Layout Analysis (DLA) fails to detect or accurately segment a layout element in the first place, FocalOrder cannot correct the topological error.
- Ontology Constraints: The implementation incorporates semantic category embeddings tied to specific training benchmarks (English and Chinese). Direct zero-shot application to documents with wildly different semantic schemas or scripts may require re-aligning the embedding space.
- Artistic Subjectivity: Highly unstructured or artistic layouts inherently retain a degree of reading order subjectivity, which a difficulty-aware formulation may not fully capture.
- Future Directions: The authors plan to explore integrating this difficulty-aware preference mechanism directly into more general, end-to-end multimodal vision-language frameworks.
Summary updated