← Latest papers
💻 computer science

RT-DocLayout: Real-Time End-to-End Document Layout Analysis with Reading Order in the Wild

This paper introduces RT-DocLayout, a highly efficient, 33M-parameter end-to-end framework that unifies detection, segmentation, classification, and reading order prediction within a single RT-DETR-based architecture to achieve state-of-the-art performance and real-time inference (132.1 FPS) for robust document layout analysis in the wild.

Original authors: Cheng Cui, Tingquan Gao, Xueqing Wang, Changda Zhou, Hongen Liu, Ting Sun, Yubo Zhang, Zelun Zhang, Jiaxuan Liu, Manhui Lin, Yue Zhang, Suyin Liang, Yiqing Xiang, Yi Liu

Published 2026-06-23
📖 4 min read☕ Coffee break read

Original authors: Cheng Cui, Tingquan Gao, Xueqing Wang, Changda Zhou, Hongen Liu, Ting Sun, Yubo Zhang, Zelun Zhang, Jiaxuan Liu, Manhui Lin, Yue Zhang, Suyin Liang, Yiqing Xiang, Yi Liu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a stack of messy, crumpled, and crooked papers. Some are bent from being in a pocket, some are photos taken at an angle, and some have weird lighting. Your goal is to turn this chaos into a clean, digital book where every paragraph, picture, and table is in the right place and the right order.

This is the job of RT-DocLayout, a new AI tool described in the paper. Here is how it works, explained simply:

The Problem: The "Clumsy Robot" vs. The "Messy Room"

Previous tools for organizing documents were like clumsy robots trying to tidy a messy room. They had two main problems:

  1. They were too slow: Some were like super-intelligent robots that took forever to think about every item.
  2. They were too rigid: Most tools tried to grab items using only square boxes (like cardboard boxes). If a piece of paper was bent or curved, a square box would either cut off part of the text or grab too much background noise.
  3. They got the order wrong: They would find the items but then have to guess the reading order separately, often making mistakes that couldn't be fixed later.

The Solution: The "Smart, Flexible Organizer"

The authors created RT-DocLayout, which acts like a highly skilled, fast-moving organizer who can see the whole room at once.

1. It's All-in-One (The "Swiss Army Knife" Approach)
Instead of using three different tools to find items, draw boxes, and guess the order, RT-DocLayout does everything in a single step. It's like a chef who chops, cooks, and plates the meal in one seamless motion. It classifies what an item is (is it a title? a photo?), finds its exact shape, and decides where it goes in the story, all at the same time.

2. It Uses "Masks" Instead of "Boxes" (The "Cookie Cutter" Analogy)
Old tools used square boxes to grab text. If the text was on a curved page, the box would grab the text and the background.
RT-DocLayout uses pixel-level masks. Imagine instead of a square box, the AI uses a flexible cookie cutter that can mold perfectly around the shape of the text, even if the text is curved, tilted, or warped. This ensures it grabs only the content and leaves the background behind.

3. It Reads the "Story" While It Looks (The "Conductor" Analogy)
Most tools look at a document and then try to figure out the reading order later. RT-DocLayout is like a conductor who hears the music and knows the order of the notes while the orchestra is playing. It learns the relationship between items (e.g., "This title belongs to this paragraph") as it finds them, so it never gets the sequence wrong.

4. It Trains on "Fake Mess" (The "Flight Simulator" Analogy)
To make sure it works on real, crumpled papers, the team taught the AI using a special training method. They took clean digital pages and digitally "warped," "twisted," and "tilted" them to look like real-world damage. It's like a pilot training in a flight simulator that creates storms and turbulence before ever flying a real plane. This makes the AI incredibly tough and ready for any real-world mess.

The Results: Fast, Accurate, and Tough

The paper claims that this new tool is a game-changer because:

  • It's Blazing Fast: It can process over 130 pages per second (132.1 FPS), which is real-time speed.
  • It's Small: It fits into a tiny package (33 million parameters), making it easy to run on standard computers, unlike the giant, slow models of the past.
  • It's the Best: In tests, it outperformed all other methods, especially on documents that were bent, skewed, or poorly lit. It didn't just find the items; it kept the story in the right order better than anyone else.

In short: RT-DocLayout is a fast, small, and incredibly smart tool that can take a messy, distorted document and instantly turn it into a clean, perfectly ordered digital file, handling curves and wrinkles better than any previous method.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →