TL;DR
This paper introduces a lightweight, parser-oriented structural refinement module that replaces brittle, heuristic Non-Maximum Suppression (NMS) in document parsing pipelines. By jointly optimizing layout element retention, box refinement, and reading order from a single shared structural state, the framework stabilizes the critical "detector-to-parser" handoff and slashes reading order errors on complex, dense document pages.
What Problem Does This Paper Address?
Most modern document parsing systems follow a pipeline design: first, a Document Layout Analysis (DLA) model detects structural regions (like text blocks, tables, and figures), and then a downstream parser processes these regions in a specific reading order to output Markdown or JSON.
The authors identify a major bottleneck in this workflow: the detector-to-parser handoff. Layout detectors typically output a highly redundant pool of candidate boxes. Traditionally, pipelines use heuristic filters like NMS to eliminate duplicates, followed by a separate rule-based or learned sorting step to determine reading order.
On dense pages with overlapping text or complex formatting, this decoupled approach fails catastrophically. Independent IoU-based filtering can accidentally discard well-localized text fragments (causing content loss) or retain duplicates (causing content redundancy). Furthermore, because ordering is calculated separately from filtering, the final sequence frequently mismatches the surviving boxes, leading to garbled text flows.
Methods
Instead of treating detection, filtering, and ordering as isolated steps, the authors propose a unified Structural Refinement Decoder built on top of a DETR-style detector (specifically, D-FINE). The method operates in four stages:
- First-stage Detection: The base detector generates a fixed pool of $N$ raw layout hypotheses.
- Hypothesis Representation: Each candidate is converted into a "refinement token" using a gated fusion mechanism that blends four distinct signals: the detector's query features, bounding box geometry, a compact semantic category prior, and local visual evidence extracted via RoIAlign.
- Structural Refinement Decoding: A 6-layer Transformer decoder performs set-level reasoning across all tokens. It uses self-attention to let competing candidates "talk" to each other and cross-attention to look back at multi-scale image features, iteratively refining the bounding box coordinates.
- Parser Interface Construction: From this final, shared structural state, the model simultaneously predicts the category label, refined box coordinates, a learned retention score (completely bypassing the need for NMS), and an ordering score.
The network is trained using a combination of standard detection losses, a retention-oriented binary cross-entropy loss, and a difficulty-aware ordering objective that penalizes sequence errors more heavily when multiple blocks are tightly clustered together.
Datasets
The framework was evaluated on four prominent public document layout benchmarks:
- OmniDocBench: A diverse benchmark for document parsing with comprehensive layout and reading order annotations.
- D4LA: A challenging layout analysis dataset focused on complex document structures.
- DocLayNet: A large, human-annotated dataset for document-layout segmentation across diverse categories (financial reports, manuals, scientific papers).
- Real5-OmniDocBench: A full-scale physical reconstruction benchmark used to test parsing robustness against real-world document degradations (warping, skew, bad illumination).
Key Insights and Ideas
- The "Hypothesis Pool" Paradigm Shift: Instead of treating initial detector outputs as final answers to be aggressively filtered, treating them as a compact pool of hypotheses allows a Transformer to collectively resolve structural ambiguities (e.g., deciding whether a region is one multi-line equation or three separate text blocks).
- Shared State Prevents Misalignment: Deriving both the retention decision and the reading order from the exact same latent representation ensures that the predicted sequence naturally aligns with the elements that actually survive the filtering process.
- NMS is Brittle for Text: Class-wise analysis revealed that traditional NMS is particularly harmful to structurally sensitive categories like equations and page margins. Replacing NMS with a learned retention head prevents the fragmentation of valid document elements.
Key Results
- State-of-the-Art Layout Quality: The proposed method achieved the highest PageIoU F1-scores on OmniDocBench (96.23) and D4LA (93.93), outperforming heavy production baselines like MinerU2.5 and PP-DocLayoutV3.
- Drastic Reduction in Reading Order Errors: When integrated into a fixed end-to-end parsing pipeline (PaddleOCR-VL-1.5), the refined interface reduced the Reading Order Edit distance on OmniDocBench from 0.042 down to 0.024—outperforming all compared explicit and end-to-end parsing methods.
- High Efficiency: The module adds minimal overhead, running at 148.34 ms/page with a compact parameter footprint (61.57M parameters), making it significantly faster and lighter than large Vision-Language Model (VLM) alternatives.
Limitations and Future Work
The authors note that their current reading-order formulation assumes a fixed linear sequence. In reality, complex documents (like newspapers or multi-column textbooks) can often be read in multiple valid sequences. The authors suggest that future work should focus on developing evaluation protocols and architectures capable of handling non-linear reading orders and inherent structural ambiguity.
Summary updated