The Parse LayerTable, chart and layout extraction

Reading Order Detection in Complex Document Layouts

Why correct characters still arrive scrambled, and how parsers fix it.

Cover illustration for “Reading Order Detection in Complex Document Layouts”
  • Define reading order detection: identifying the correct sequence in which content blocks — paragraphs, headings, captions, tables, figures — should be read, reflecting human intent rather than positional extraction
  • Distinguish it from text extraction: a text extractor can return every character correctly and still produce incoherent output if it interleaves columns or threads footnotes into body text
  • The one-dimensional stream assumption: traditional OCR treats a page as a top-to-bottom, left-to-right scan — adequate for single-column prose, catastrophic for anything else
  • The structural interpretation gap: reading order detection adds a layer on top of raw character recognition that interprets logical relationships between content blocks — without this layer, correct characters arrive in the wrong order
  • Grounding for the reader: accessibility compliance, screen reader compatibility, and any downstream process that depends on coherent text all require this layer to be correct
  • Concrete failure image to anchor the section: a two-column academic paper where the extractor interleaves left and right columns — every word present, zero meaning preserved

Where complex layouts break the one-dimensional assumption

  • Enumerate the layout features that defeat top-to-bottom scanning:
    • Multi-column layouts (columns must be read down, not across)
    • Nested tables where cells reference footnotes across pages
    • Non-rectangular and non-convex text regions (e.g., commentary wrapping around a central text — the Glossa Ordinaria layout described in Hakim et al., July 2026)
    • Interleaved reading streams: marginalia, interlinear glosses, side notes, figure captions that occupy the same spatial band as body text
    • Cross-page content and rotated pages
    • Mixed modalities: text blocks, charts, formulas, checkboxes, handwriting on the same page
  • Geometry alone is underdetermined: on multi-stream layouts, several plausible successors may be spatially adjacent but belong to different narrative tracks — spatial adjacency does not imply sequential adjacency
  • Historical manuscripts as the extreme case: the Glossa Ordinaria page, where human readers rely primarily on semantic continuity rather than geometry to stay within a reading stream (per Hakim et al.)
  • Real-world document classes that carry these problems into enterprise workflows: scanned financial statements, multi-column legal briefs, clinical forms with embedded charts — the documents where a misread clause or dropped figure has material consequences
  • No need for a statistic here — the section's job is to make the failure modes vivid and concrete, setting up the technical approaches that follow

How failures in reading order propagate through RAG and LLM pipelines

  • The cascade chain: bad parsing → poor chunking → weak embeddings → irrelevant retrieval → incorrect answers — each stage amplifies the original structural error
  • Error propagation is not linear: a layout error does not corrupt one sentence; it can corrupt an entire section's worth of retrieved context, per the error-cascading failure mode identified in the research
  • Open with the data gap as the frame: per a December 2025 Harvard Business Review Analytic Services survey, 65% of business leaders say their structured data is prepared for AI use, but only 39% say the same about unstructured data — the PDFs, emails, and scanned documents that make up the majority of enterprise knowledge
  • Even best-in-class parsers fall short: per LlamaIndex's ParseBench benchmark on approximately 2,000 human-verified enterprise document pages, even the best document parsing services achieve only around 90% content faithfulness — meaning one in ten pages contains a meaningful omission or structural error a downstream agent will act on incorrectly
  • The 90% figure should be interrogated, not just cited: at scale, one error per ten pages means thousands of corrupted retrievals in a document-heavy enterprise system; the benchmark makes the abstract failure rate tangible
  • Concrete consequence: a contract analysis tool that misses a clause buried in a poorly scanned appendix is a legal liability — the stakes differ by domain but the mechanism is the same
  • Transition forward: because failures compound, the choice of parsing architecture is a systems-design decision, not a tooling preference — which sets up the survey of approaches

Three architectural approaches to the reading order problem

  • Approach 1 — Geometric heuristics (XY-Cut family):
    • Recursively partition the page by horizontal and vertical cuts to isolate columns and blocks, then read each partition in order
    • Fast and requires no training data
    • Fundamental limit: assumes Manhattan layouts — fails when text regions are non-rectangular, wrap around other content, or when semantic dependencies cross geometric boundaries
    • XY-Cut achieves 685 FPS on DocBench-100 and a mean of 487 FPS across evaluation sets (per XY-Cut++ paper, 2025) — speed is the argument for it, not accuracy on complex layouts
  • Approach 2 — Learned sequence models (LayoutReader family):
    • Encode text and layout information jointly; train a seq2seq model to predict reading order
    • LayoutReader was trained on ReadingBank, a dataset of 500,000 document images with embedded reading order from Word XML metadata — the first large-scale dataset of its kind (EMNLP 2021)
    • Accuracy advantage over pure geometry on standard layouts; but LayoutReader achieves only 17 FPS on DocBench-100 and a mean of 22 FPS — roughly 22× slower than XY-Cut (per XY-Cut++ paper, 2025)
    • Generalization gap: trained at word level, transfers poorly to line-level historical inputs without retraining; supervision is layout-specific
    • Chong Zhang's DAG argument: a single ordered list is fundamentally flawed for complex documents — the correct representation is a Directed Acyclic Graph that can express multiple parallel reading streams
  • Approach 3 — Graph-based and training-free methods:
    • Model the page as a directed graph of candidate transitions; score edges using linguistic coherence signals rather than geometry alone
    • Does not require layout-specific annotation; generalizes across document types by exploiting pretrained language model priors
    • Particularly suited to non-Manhattan and multi-stream layouts where geometry is underdetermined
  • The speed-accuracy trade-off is the organizing tension of the field: fast geometric methods fail on complex layouts; accurate learned methods are too slow for high-volume production; graph methods offer a middle path at the cost of engineering complexity

What recent research reveals about the limits of each approach

  • FocalOrder (ACL 2026) — the focal preference insight:
    • Presented at the 64th Annual Meeting of the Association for Computational Linguistics (ACL 2026), pages 19012–19029, San Diego, California
    • Key insight: most existing methods use uniform supervision, implicitly assuming constant difficulty across layout regions — but complex regions are harder and deserve more focused training signal
    • Result on OmniDocBench v1.0: Edit Distance of 0.038 on English documents and 0.055 on Chinese documents — and significantly outperforms general vision-language models
    • Shows comparable performance to MinerU 2.5 (a multi-stage VLM pipeline) on challenging cases, while outperforming PaddleOCR-VL (pointer networks) on complex layout samples
    • What this implies: the difficulty distribution across a page matters as much as the architecture — a finding that points toward more adaptive supervision strategies
  • Parser-Oriented Structural Refinement (Unisound AI / Chinese Academy of Sciences, arXiv April 2026):
    • Identifies a specific failure point: the detector-to-parser handoff — on dense pages with overlapping regions, raw detector outputs are inconsistent with parser input order, causing downstream errors even when text recognition is correct
    • Proposes a lightweight structural refinement stage between the DETR-style detector and the parser; jointly determines instance retention, refines box localization, and predicts parser input order
    • Achieves a Reading Order Edit of 0.024 on OmniDocBench — framing handoff stabilization as a tractable sub-problem rather than requiring a full architectural redesign
    • Implication: even well-designed pipelines carry a silent failure point at the handoff stage that heuristic NMS does not fix
  • Hakim et al. graph-based training-free method (Tel Aviv University, arXiv July 2026):
    • On wrap-around Glossa Ordinaria layouts: recovers 95% of ground-truth successor edges vs. XY-cut's 50%
    • On a 140-page multi-column English subset of OmniDocBench: 88% macro edge accuracy vs. XY-cut's 75% and LayoutReader's 25%
    • LayoutReader's 25% on this subset is the sharpest evidence of the granularity mismatch problem — word-level training does not transfer to line-level historical inputs
    • Mirror-invariance test: the graph method changes by less than 1 percentage point under horizontal and vertical page reflections; XY-cut changes by 2 points; LayoutReader-T by up to 8 points — robustness to page orientation is a practical production requirement
    • Max-regret inference rule: avoids cascading edge-theft failures of greedy selection by prioritizing commitments with high opportunity cost — a concrete algorithmic contribution, not just a benchmark result
  • MonkeyOCR (Structure-Recognition-Relation paradigm, 2025):
    • Outperforms MinerU by an average of 5.1%, with particularly strong gains on formulas (+15.0%) and tables (+8.6%)
    • The 3B-parameter model surpasses larger models including Qwen2.5-VL (72B) on English document parsing tasks
    • Processes multi-page documents at 0.84 pages per second vs. 0.65 for MinerU and 0.12 for Qwen2.5-VL-7B
    • Deployable on a single NVIDIA 3090 GPU — the efficiency point matters for teams that cannot run 72B-parameter inference
  • Synthesis point: no single approach dominates across all document types and production constraints — the research landscape is converging on hybrid and adaptive strategies rather than a single winning architecture

How production OCR APIs handle reading order in 2026

  • Frame the evaluation correctly up front: completion before accuracy — a provider that looks accurate on successful pages but fails or times out on difficult documents creates a worse production workflow than a slightly less accurate one that always returns a usable result (per Reducto's published evaluation criteria, July 2026)
  • Five questions that matter for complex-document workloads (per the Reducto guide): Does the system preserve tables, reading order, forms, figures, and page structure? Can output be traced to its source location? What happens on long, low-quality, handwritten, or mixed-format files? Does the API return a stable schema with reliable error handling? What does a successful result cost after retries and human review?
  • Named tools — carry each exactly as sourced:
    • Reducto: Parse API runs OCR and layout detection, returns structured JSON with text, tables, figures, headers, page positions, and confidence information; designed for complex documents combining forms, handwriting, tables, figures, and multi-column layouts; includes Extract, Classify, Split, and document editing in one platform; Standard plan r-1 Parse at $0.01 per page with $150 in free usage; positioned for extraction, RAG, search, and agent workflows at enterprise scale (source: Reducto guide, July 2026)
    • LlamaParse: natural fit for teams already building in the LlamaIndex ecosystem; parsing tier selection matters by document type; Reducto's own guide recommends testing parsing separately from embedding and retrieval to isolate output quality (source: Reducto guide)
    • Mistral OCR: returns page-level Markdown; can preserve headers, paragraphs, lists, tables, and hyperlinks; positioned as strong for multilingual, structure-preserving OCR (source: Reducto guide)
    • Google Document AI: extracts text, tables, figures, headings, selection marks, and structural elements (page headers and footers); prebuilt and custom models; batch analysis and container options; fits Google Cloud-native workflows (source: S1 research brief)
    • Azure Document Intelligence: Layout model covers reading order within pages (cross-page reading order is not supported), Office documents, custom-model operations; fits Azure-native teams (source: Reducto guide)
    • Amazon Textract: detects printed and handwritten text; structured analysis for forms, tables, queries, signatures; separate operations for expenses, identity documents, lending workflows; fits AWS-native stacks (source: S1 research brief / Reducto guide)
    • Unsiloed AI: dual-stream vision model processing image tokens alongside text; schema-driven extraction with word-level citations, bounding boxes, and confidence scores; native support for 20+ file formats; processes 10M+ pages weekly for Fortune 150 banks and healthcare organizations; best for high-stakes finance, legal, and healthcare parsing (source: Unsiloed AI guide, March 2026); vendor claims 99% accuracy and the quote from a Fortune 150 Bank head of AI — "The accuracy, particularly for tables, is great. We tried 15+ closed and open-source solutions in total. Unsiloed was the only one that seemed to work effectively."
    • Hyperscience: ORCA Vision Language Model framework; vendor claims 99% accuracy and 98.5% automation rates on structured and semi-structured inputs; trainable and pretrained models with continuous learning; no-code trainer for specialized model building; cloud, on-premises, and air-gapped deployment with FedRAMP High certification; limitation — multi-vendor cloud support adds deployment complexity; gaps on charts, equations, and mixed multimodal content; strongest for high-volume handwritten forms (source: Unsiloed AI guide)

Notes

  1. Best Layout-Aware OCR Solutions for Complex Documents (April 2026 Update)

    Supplied the Unsiloed AI and Hyperscience profiles, including vendor accuracy claims and deployment details.

  2. Best OCR APIs for Complex Documents in 2026 | Reducto Guides

    Provided the evaluation criteria and the descriptions of Reducto, LlamaParse, Mistral OCR, Azure and Textract.

  3. Parser-Oriented Structural Refinement for a Stable Layout Interface in Document Parsing

    Described the detector-to-parser handoff problem and the structural refinement stage with its reading order edit score.

  4. Reading Order Inferencefor Complex Document Layouts

    Supplied the Hakim et al. graph-based training-free method, Glossa Ordinaria results and mirror-invariance test.

  5. What is Reading Order Detection?

    Informed the definition of reading order detection and its distinction from plain text extraction.

  6. Reading Order Inference for Complex Document Layouts

    Abstract page of the Hakim et al. paper on reading order inference for complex layouts.

  7. Reading Order Inference for Complex Document Layouts

    Full text of the Hakim et al. paper, behind the edge accuracy and max-regret inference figures.

  8. https://arxiv.org/pdf/2601.07483

    Source for the FocalOrder method and its OmniDocBench results.

Every new piece from The Parse Layer, as it's published.

Follow

Tomasz Wierzbicki

More from The Parse Layer

  1. November 5, 2026Page Segmentation Failures in Mixed Text and Image Documents8 min read →
  2. November 9, 2026Footnote and Endnote Linkage in Document Layout Analysis8 min read →
  3. September 15, 2026Table Structure Recognition Models Compared on Spanning Cells10 min read →