Inference of reading order for complex document layouts

New training-free graph-based method infers reading order in complex manuscripts like the Glossa Ordinaria, outperforming classic techniques.

jueves, 2 de julio de 2026 • 2 min read • Q2BSTUDIO Team

New training-free method for reading order

The automatic interpretation of reading order in documents with complex structures represents one of the most interesting challenges for intelligent digitization. When dealing with historical manuscripts with wrapping glosses, multi-column forms, or reports with interleaved blocks, traditional OCR systems often fail because they do not understand the logical sequence followed by the human eye. This problem goes beyond old archives: today, companies processing invoices, contracts, or technical reports need to faithfully reconstruct the flow of information to feed analysis and automation engines.

Instead of relying on costly training with labeled data, the most recent approaches use models based on graphs and light language signals. For example, a directed graph can be built where each line of text is a node and edges are scored using the conditional probability of causal models or BERT's next sentence prediction. Then, the global order is recovered as a path cover with degree constraints, avoiding cascading errors through an inference rule that maximizes opportunity cost. This type of strategy has been shown to recover up to 95% of correct connections in wrapping designs, far surpassing classic methods like recursive XY cut.

From a business perspective, the ability to extract the actual reading order has direct implications for the quality of artificial intelligence systems applied to documents. When we combine these techniques with business intelligence services and tools like Power BI, we ensure that unstructured data flows correctly into dashboards and predictive models. Furthermore, the implementation of these algorithms can be integrated into custom applications or custom software that processes large volumes of documents, whether on-premise or through AWS and Azure cloud services.

At Q2BSTUDIO, we develop AI solutions for companies that address these challenges with a practical and scalable approach. Our AI agents can orchestrate automated reading, extraction, and classification workflows, ensuring the integrity of the logical order of information. Likewise, when document processing involves sensitive data, we apply cybersecurity protocols to protect each phase of the process, from digitization to cloud storage.

The combination of graph-based inference techniques with lightweight language models opens the door to digitization systems that do not require large volumes of labeled data or costly infrastructure. Companies in all sectors can benefit from this technological maturity to transform piles of documents into actionable information. If you are looking to implement a robust solution that respects the natural reading order in your document processes, custom application development will allow you to adapt these capabilities to your specific needs, with the support of experts in artificial intelligence and automation.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.