DOSA: A Tree-Guided, Self-Regressive Framework for Long Document Structure Analysis
The paper proposes DOSA, a tree-guided, self-regressive framework that incrementally reconstructs document-level semantic trees by processing multi-page documents chunk-by-chunk to effectively capture long-range dependencies and heterogeneous layouts, achieving state-of-the-art performance on document structure analysis benchmarks.
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 are trying to understand a massive, multi-volume encyclopedia that was printed on loose sheets of paper, scattered across a giant floor. Some pages have pictures, some have lists, and some have big bold titles. To make sense of this mess, you don't just read the words; you have to figure out how the pieces fit together. Is that picture part of the paragraph above it? Is that list a child of the title, or is it a separate section entirely? This is the world of "visually-rich documents," where information isn't just a stream of text, but a complex puzzle of shapes, positions, and styles. For computers to truly "read" these documents—whether they are legal contracts, scientific papers, or slide decks—they need to solve a specific puzzle called Document Structure Analysis. They need to build a "semantic tree," which is like a family tree for the document's parts, showing who is the parent of whom and in what order everyone should be read. Without this, a computer might see a title and a paragraph as two unrelated strangers, missing the fact that they are actually a parent and child.
Enter DOSA (Document Structure Analyzer), a new method proposed by researchers at Glean Technologies to solve this puzzle for long, multi-page documents. Think of trying to build a 1,000-piece LEGO castle all at once; it's overwhelming, and if you make a mistake early on, the whole thing might collapse. Previous methods tried to look at the whole document at once, which is like trying to hold the entire castle in your hands while building it—it gets too heavy and the computer gets confused. DOSA takes a different approach: it builds the castle one small section at a time. It processes the document in "chunks," like assembling one room of the castle before moving to the next. But here is the clever twist: as it builds each new room, it doesn't just look at the bricks in its hand; it looks at the "rightmost branch" of the castle it has already built. This acts as a guide, telling the computer exactly which parts of the previous rooms are relevant to the new ones. By using this "tree-guided" map, DOSA avoids getting lost in the sheer size of the document.
The researchers found that this step-by-step, self-guided method works incredibly well. When they tested DOSA on five different datasets, including a very tricky one called DocHieNet filled with complex, multi-page layouts, it outperformed the current best methods. On that challenging benchmark, DOSA improved accuracy by up to 4 points on a scale called F1 and nearly 20 points on a scale called TEDS (which measures how similar the computer's tree is to the real one). Even more impressively, it beat powerful, general-purpose AI models like Gemini-2.5-Pro and GPT-5.2, suggesting that for this specific job of building document trees, a specialized, structured approach is better than just asking a giant AI to "guess" the structure. The paper suggests that by fusing visual clues (like where a box is on the page), text content, and the size of the objects, DOSA can reconstruct the document's logic with high precision, even without needing to memorize the entire document in one go. However, the authors note that while this method is robust, it isn't perfect; it currently focuses on tree structures and doesn't yet handle more complex web-like connections, like citations, and it can still be tripped up if it makes a mistake early on that it can't correct later.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.