DocAtlas: Long-Document Understanding as Mutable-State Interaction

arXiv cs.CL Papers

Summary

DocAtlas is a research system that frames long-document understanding as a mutable-state interaction process, using an external document harness with search, reading, note-taking, and review tools. It achieves state-of-the-art results on MMLongBench-Doc with GPT-5.4 and substantially improves compact VLM agents via end-to-end reinforcement learning.

arXiv:2608.07527v1 Announce Type: new Abstract: Long-document understanding requires models to find and combine evidence across many pages, layouts, tables, figures, and charts. Existing retrieval-augmented systems usually select evidence from a static index before generation, while recent agentic systems add multi-turn tool use but often rely on frozen proprietary backbones whose behavior is set by prompts. We present DocAtlas, a system that treats long-document understanding as a mutable-state information-seeking process. We instantiate DocAtlas as a mutable document harness: an external environment that determines what document information is searched, read, stored, reviewed, and shown to the model at each step. Given a document and question, the harness exposes search, reading, note-taking, and review tools, maintains a hierarchical tree and note store, and updates both as the agent records evidence. DocAtlas combines self-improving retrieval, selective evidence access, and active working memory under a fixed context budget. The same harness supports inference-time use with large VLMs and end-to-end reinforcement learning for compact VLM agents. With GPT-5.4, DocAtlas reaches 71.4\% on MMLongBench-Doc, exceeding the human-expert reference of 65.8\%. A Qwen3.5-4B VLM trained with end-to-end RL in the DocAtlas environment reaches 63.7\%, compared with a 54.4\% direct-input baseline, showing that mutable document-harness design can improve compact document agents by a large margin.
Original Article
View Cached Full Text

Cached at: 08/11/26, 08:05 AM

# DocAtlas: Long-Document Understanding as Mutable-State Interaction
Source: [https://arxiv.org/html/2608.07527](https://arxiv.org/html/2608.07527)
Hongchen Wei1,†,‡Yuanzhe Wang2,†,‡Bei Liu2,∗Yifan Yang2 Qi Dai2Kai Qiu2Yunsheng Li2Dongdong Chen2 Chong Luo2Zhenzhong Chen1Baining Guo2 1Wuhan University2Microsoft

###### Abstract

Long\-document understanding requires models to find and combine evidence across many pages, layouts, tables, figures, and charts\. Existing retrieval\-augmented systems usually select evidence from a static index before generation, while recent agentic systems add multi\-turn tool use but often rely on frozen proprietary backbones whose behavior is set by prompts\. We present DocAtlas, a system that treats long\-document understanding as a mutable\-state information\-seeking process\. We instantiate DocAtlas as a mutable document harness: an external environment that determines what document information is searched, read, stored, reviewed, and shown to the model at each step\. Given a document and question, the harness exposes search, reading, note\-taking, and review tools, maintains a hierarchical tree and note store, and updates both as the agent records evidence\. DocAtlas combines self\-improving retrieval, selective evidence access, and active working memory under a fixed context budget\. The same harness supports inference\-time use with large VLMs and end\-to\-end reinforcement learning for compact VLM agents\. With GPT\-5\.4, DocAtlas reaches 71\.4% on MMLongBench\-Doc, exceeding the human\-expert reference of 65\.8%\. A Qwen3\.5\-4B VLM trained with end\-to\-end RL in the DocAtlas environment reaches 63\.7%, compared with a 54\.4% direct\-input baseline, showing that mutable document\-harness design can improve compact document agents by a large margin\. Project homepage:[https://officeintelligence.github.io/docatlas/](https://officeintelligence.github.io/docatlas/)\.

††footnotetext:†Equal contribution\.‡Work done during an internship at MSRA\.∗Project leader\.## 1Introduction

Real\-world documents such as financial reports, legal contracts, scientific papers, and government filings often spread important information across dozens or even hundreds of pages\. They also combine free text with tables, figures, and charts in varied layouts\. Answering natural\-language questions over these documents therefore requires finding, extracting, and combining evidence that is distributed across pages and modalities\[[6](https://arxiv.org/html/2608.07527#bib.bib7)\]\. This remains difficult because relevant evidence may appear anywhere in a long document, visual elements such as charts and tables cannot be handled by text extraction alone\[[3](https://arxiv.org/html/2608.07527#bib.bib1)\], and complex questions often require evidence from multiple distant regions or modalities\[[21](https://arxiv.org/html/2608.07527#bib.bib21)\]\. Simply feeding the full document into a model quickly runs into the practical limits of current vision\-language models\[[12](https://arxiv.org/html/2608.07527#bib.bib17),[18](https://arxiv.org/html/2608.07527#bib.bib18),[34](https://arxiv.org/html/2608.07527#bib.bib16)\]\. Even when the input fits within the context window, performance often drops because irrelevant content competes for attention\[[17](https://arxiv.org/html/2608.07527#bib.bib22)\]\. These issues call for systems that can navigate long documents selectively, ground answers in both text and visual content, and combine information across distant parts of a document\.

MethodMutablestateFlexibleinteractionGroundedmemoryTrainableRL policyM3DocRAG\[[3](https://arxiv.org/html/2608.07527#bib.bib1)\]×\\times×\\times×\\times×\\timesDocAgent\[[32](https://arxiv.org/html/2608.07527#bib.bib23)\]×\\times△\\triangle×\\times×\\timesSimpleDoc\[[13](https://arxiv.org/html/2608.07527#bib.bib24)\]×\\times△\\triangle△\\triangle×\\timesDocLens\[[41](https://arxiv.org/html/2608.07527#bib.bib25)\]×\\times✓✓×\\timesDocDancer\[[38](https://arxiv.org/html/2608.07527#bib.bib26)\]△\\triangle✓×\\times△\\triangleMACT\[[37](https://arxiv.org/html/2608.07527#bib.bib27)\]△\\triangle△\\triangle×\\times×\\timesDocAtlas✓✓✓✓\(a\) Design comparison\.✓: yes,△\\triangle: partial,×\\times: no\.

![Refer to caption](https://arxiv.org/html/2608.07527v1/x1.png)

\(b\) MMLongBench\-Doc ALL\.

Figure 1:Motivation and positioning of DocAtlas\. \(a\)✓,△\\triangle, and×\\timesdenote full, partial, and absent support, respectively\. Flexible interaction means that the agent can choose the order and arguments of tool calls rather than following a fixed pipeline; grounded memory means that source\-attributed evidence can be stored and queried in later steps\. DocAtlas combines mutable state, flexible interaction, grounded memory, and a trainable compact policy\. \(b\) On MMLongBench\-Doc, DocAtlas\-Plus \(our GPT\-5\.4 instantiation\) exceeds the human\-expert reference, while the same environment improves Qwen3\.5\-4B\[[27](https://arxiv.org/html/2608.07527#bib.bib12)\]from direct input to DocAtlas 4B and then to DocAtlas 4B\+RL\.Early work\[[4](https://arxiv.org/html/2608.07527#bib.bib9),[8](https://arxiv.org/html/2608.07527#bib.bib8)\]has addressed part of this problem with retrieval\-augmented generation \(RAG\)\. In these systems, an embedding\-based retriever selects a fixed set of relevant pages, and a vision\-language model \(VLM\) generates an answer in one pass\[[3](https://arxiv.org/html/2608.07527#bib.bib1),[11](https://arxiv.org/html/2608.07527#bib.bib31)\]\. This design works reasonably well for simple lookups, but it gives the model no control over which pages to inspect more carefully or how to revise the search based on partial findings\. To overcome this limitation, recent work has moved toward agentic methods, where a vision\-language model interacts with a document through iterative tool use for searching, reading, and reasoning\[[13](https://arxiv.org/html/2608.07527#bib.bib24),[29](https://arxiv.org/html/2608.07527#bib.bib33),[30](https://arxiv.org/html/2608.07527#bib.bib34),[33](https://arxiv.org/html/2608.07527#bib.bib32),[37](https://arxiv.org/html/2608.07527#bib.bib27),[41](https://arxiv.org/html/2608.07527#bib.bib25)\]\. However, these systems still depend on frozen proprietary backbones, and their agent behavior is largely specified through prompting rather than learned from data\. A natural next question is whether the agent itself can be trained\. DocDancer\[[38](https://arxiv.org/html/2608.07527#bib.bib26)\]takes a simpler approach by training a single open\-source model on synthesized trajectories with supervised fine\-tuning\. However, DocDancer uses a text\-only LLM as the controller, and itsReadtool relies on an external VLM for visual understanding\. As a result, the agent learns when to call a tool, but not how to interpret visual content itself\. Because it is trained by imitation, it is also limited by the coverage of the expert trajectories it observes\.

DocAtlas addresses these gaps by exposing the document interface as a mutable environment in which the agent policy can be trained\. Equivalently, DocAtlas can be viewed as a mutable document harness: it wraps a VLM with tools and state that determine what document information is searched, read, stored, reviewed, and shown at each step\. The agent does more than call tools over a fixed document representation\. Each episode keeps an environment state with the document, a hierarchical tree, a structured note store, and the set of explored pages\.Searchreads this updated state;Readexposes selected pages as markdown, crops, and page images;Noterecords source\-attributed findings and writes them back to the tree; andReviewrevisits prior notes when later reasoning requires them\. This loop makes later retrieval depend on earlier evidence and helps the agent reason across many steps under a fixed context budget\. Because the same interaction protocol is used at inference time and during RL, DocAtlas also provides a direct way to train compact VLM agents instead of treating tool use as a fixed prompt script\. With GPT\-5\.4\[[25](https://arxiv.org/html/2608.07527#bib.bib14)\], DocAtlas reaches 71\.4% on MMLongBench\-Doc\[[21](https://arxiv.org/html/2608.07527#bib.bib21)\], surpassing the human\-expert reference at 65\.8%\. A Qwen3\.5\-4B\[[27](https://arxiv.org/html/2608.07527#bib.bib12)\]VLM fine\-tuned with end\-to\-end RL in the same environment reaches 63\.7%, compared with a 54\.4% direct\-input baseline\.

This work makes three contributions:

- •We formulate long\-document understanding as a mutable\-state information\-seeking process in which reading and note\-taking update the retrieval and memory state used by decisions\.
- •We instantiate this formulation in DocAtlas, a harness that combines self\-improving retrieval, decoupled search and reading, and structured note and review operations\.
- •We show that the same environment supports both large VLM agents at inference time and end\-to\-end RL for compact VLMs: DocAtlas reaches 71\.4% on MMLongBench\-Doc with GPT\-5\.4, while an RL\-tuned Qwen3\.5\-4B reaches 63\.7% against a 54\.4% direct\-input baseline\.

## 2Related Work

Multimodal Retrieval for Long\-Document Understanding\.Multi\-page document QA\[[10](https://arxiv.org/html/2608.07527#bib.bib2),[23](https://arxiv.org/html/2608.07527#bib.bib13),[31](https://arxiv.org/html/2608.07527#bib.bib10),[40](https://arxiv.org/html/2608.07527#bib.bib11)\]is commonly handled with multimodal RAG: pages are embedded as visual or textual vectors, a fixed top\-kksubset is retrieved, and a VLM answers in one pass\. Recent visual retrievers and benchmarks, including ColPali\[[7](https://arxiv.org/html/2608.07527#bib.bib39)\], VisRAG\[[36](https://arxiv.org/html/2608.07527#bib.bib44)\], ViDoRe\[[22](https://arxiv.org/html/2608.07527#bib.bib45)\], and MIRACL\-VISION\[[26](https://arxiv.org/html/2608.07527#bib.bib46)\], show the value of page\-image retrieval for documents with complex layouts and visual content\. M3DocRAG\[[3](https://arxiv.org/html/2608.07527#bib.bib1)\]and MDocAgent\[[11](https://arxiv.org/html/2608.07527#bib.bib31)\]build long\-document QA pipelines on this static\-index design with visual or parallel text–image retrieval\. Adaptive retrieval has also been studied in text QA through query rewriting\[[20](https://arxiv.org/html/2608.07527#bib.bib41)\]and self\-reflective retrieval control\[[1](https://arxiv.org/html/2608.07527#bib.bib42)\]\. These methods adapt queries or retrieval decisions, but the document index itself remains precomputed\. DocAtlas instead updates the retrieval state within an episode by writing page\-grounded findings back into a hierarchical tree\.

Agentic Document Understanding\.Recent systems\[[2](https://arxiv.org/html/2608.07527#bib.bib4),[9](https://arxiv.org/html/2608.07527#bib.bib3),[15](https://arxiv.org/html/2608.07527#bib.bib5),[16](https://arxiv.org/html/2608.07527#bib.bib6)\]move from one\-shot retrieval to tool\-mediated interaction: Doc\-React iterates sub\-queries\[[30](https://arxiv.org/html/2608.07527#bib.bib34)\], SimpleDoc combines visual embeddings with page summaries\[[13](https://arxiv.org/html/2608.07527#bib.bib24)\], and DocLens separates page navigation from element localization\[[41](https://arxiv.org/html/2608.07527#bib.bib25)\]\. Closest to our tree\-based navigation, DocAgent\[[29](https://arxiv.org/html/2608.07527#bib.bib33)\]builds a structured XML outline with section hierarchy, page ranges, paragraph hints, captions, and identifiers for fetching full content\. Its outline is primarily a fixed navigation scaffold, whereas DocAtlas treats the tree as per\-question mutable state enriched byNoteand observed by laterSearchcalls\. Existing document agents can be viewed as hand\-designed harnesses that decide what information is retrieved, shown, and carried forward, consistent with recent LLM harness work\[[14](https://arxiv.org/html/2608.07527#bib.bib15),[19](https://arxiv.org/html/2608.07527#bib.bib43)\]\. However, they typically rely on frozen proprietary backbones, follow staged tool flows, or leave the document state unchanged\. Learning\-based systems such as DocDancer\[[38](https://arxiv.org/html/2608.07527#bib.bib26)\]train tool\-use behavior, but either spread credit across multiple agents or rely on an external VLM for visual reading\. DocAtlas puts visual reading, control, mutable memory, and RL optimization in a single VLM policy\.

## 3Method

Passing an entire long document to a VLM quickly exceeds the effective context window\. Even when the document fits, irrelevant content can dilute attention and hurt performance\[[17](https://arxiv.org/html/2608.07527#bib.bib22)\]\. Static retrieval selects a fixed subset of pages, but it cannot refine the search as evidence accumulates\. We instantiate DocAtlas as a mutable document harness\. Given a document and question, the harness exposes a set of tools, maintains a document tree and note store, and updates both as the agent searches, reads, and records evidence\. Unlike a static retrieval harness, the state seen by later tool calls depends on earlier interactions\. We formalize this as a mutable\-state information\-seeking process: the agent’s actions reveal document content and update the retrieval and memory state used by later steps\.

Terminology\.We use*model*or*backbone*for the underlying VLM weights,*policy*for the mapping from interaction history to the next action, and*agent*for the policy running inside the DocAtlas tool environment\. Thus, the same VLM can be described as a model when discussing its architecture or size, as a policy when discussing RL or action choices, and as an agent when it interacts with tools and environment state\.

Given a document𝒟=\{d1,…,dN\}\\mathcal\{D\}=\\\{d\_\{1\},\\ldots,d\_\{N\}\\\}consisting ofNNpages and a natural\-language queryqq, the agent produces a trajectory

τ=\(q,u1,o1,u2,o2,…,uT,a\),\\tau=\(q,\\;u\_\{1\},o\_\{1\},\\;u\_\{2\},o\_\{2\},\\;\\ldots,\\;u\_\{T\},a\),\(1\)where each actionutu\_\{t\}fort<Tt<Tis a tool call\(toolt,argt\)∈𝒯×𝒜\(\\texttt\{tool\}\_\{t\},\\texttt\{arg\}\_\{t\}\)\\in\\mathcal\{T\}\\times\\mathcal\{A\}, and the trajectory ends with a terminal actionuT=finish​\(a\)u\_\{T\}=\\texttt\{finish\}\(a\)that outputs the final answeraa\. For each tool call, the environment returns an observationot=env​\(toolt,argt;𝒮\(t\)\)o\_\{t\}=\\texttt\{env\}\(\\texttt\{tool\}\_\{t\},\\texttt\{arg\}\_\{t\};\\,\\mathcal\{S\}^\{\(t\)\}\), where𝒮\(t\)=\(𝒟,𝒢\(t\),ℳ\(t\),ℋ\(t\)\)\\mathcal\{S\}^\{\(t\)\}=\(\\mathcal\{D\},\\mathcal\{G\}^\{\(t\)\},\\mathcal\{M\}^\{\(t\)\},\\mathcal\{H\}^\{\(t\)\}\)is the environment state comprising the document𝒟\\mathcal\{D\}, the document index𝒢\(t\)\\mathcal\{G\}^\{\(t\)\}\(defined in §[3\.1](https://arxiv.org/html/2608.07527#S3.SS1)\), the note storeℳ\(t\)\\mathcal\{M\}^\{\(t\)\}\(§[3\.3](https://arxiv.org/html/2608.07527#S3.SS3)\), and the set of previously explored pagesℋ\(t\)⊆\[1,N\]\\mathcal\{H\}^\{\(t\)\}\\subseteq\[1,N\]\. The tool set𝒯=\{Search,Read,Note,Review\}\\mathcal\{T\}=\\\{\\textsc\{Search\},\\textsc\{Read\},\\textsc\{Note\},\\textsc\{Review\}\\\}has a fixed action space but no fixed execution order: unlike staged pipelines, the agent may invoke any tool at any step and interleave search, reading, and memory operations as needed\.

The key departure from static retrieval is that𝒮\(t\)\\mathcal\{S\}^\{\(t\)\}is mutable\. In particular,𝒢\(t\)\\mathcal\{G\}^\{\(t\)\}andℳ\(t\)\\mathcal\{M\}^\{\(t\)\}are updated by the agent’s own actions:Notewrites evidence\-grounded annotations into the tree and archives structured notes, whileReviewexposes selected notes back to the policy\. Thus, a laterSearchcall depends on the original document, the query, and what the agent has already read and recorded\. This makes retrieval part of the closed\-loop decision process rather than a fixed preprocessing step\.

DocAtlas is built around a tool environment with three design principles \(Figure[2](https://arxiv.org/html/2608.07527#S3.F2)\)\. Self\-improving retrieval \(§[3\.1](https://arxiv.org/html/2608.07527#S3.SS1)\) organizes the document as a hierarchical tree thatSearchcan navigate and update during exploration\. Selective evidence access \(§[3\.2](https://arxiv.org/html/2608.07527#S3.SS2)\) separates finding evidence from consuming it:Searchidentifies relevant sections, andReadlets the agent decide which pages to inspect and in which modality\. Active working memory \(§[3\.3](https://arxiv.org/html/2608.07527#S3.SS3)\) is implemented throughNoteandReview, which record, optionally archive, and review evidence so the agent can reason across many steps under a fixed context budget\. This interaction can be viewed as a sequential decision problem, which we use in §[3\.4](https://arxiv.org/html/2608.07527#S3.SS4)for end\-to\-end reinforcement learning\.

![Refer to caption](https://arxiv.org/html/2608.07527v1/x2.png)Figure 2:Overview of DocAtlas\. The agent searches a mutable tree, reads selected document pages in multimodal form, writes structured notes that both compress context and update the retrieval state, reviews prior findings when needed, and finally produces an answer\. Unlike static RAG, evidence gathered during reading changes the state used by later search and reasoning steps\.### 3\.1Self\-Improving Retrieval

Standard embedding\-based retrieval maps each page to a fixed\-dimensional vector\. This discards the hierarchical structure of long documents and yields a static index that cannot improve as the agent gathers evidence\. Inspired by PageIndex111[https://github\.com/VectifyAI/PageIndex](https://github.com/VectifyAI/PageIndex), which builds a hierarchical tree index and performs LLM\-guided tree search, DocAtlas uses a tree\-structured index for semantic navigation\. We extend this idea in two ways: tree construction incorporates visual parsing for multimodal document understanding, andSearchis decoupled fromReadso retrieval proposes candidate regions rather than directly determining the consumed evidence\.

Hierarchical index\.Each document𝒟\\mathcal\{D\}is organized offline into a tree𝒢=\(V,E\)\\mathcal\{G\}=\(V,E\), where each nodev∈Vv\\in Vstores\(t​i​t​l​ev,\[psv,pev\],s​u​m​m​a​r​yv,f​i​n​d​i​n​g​sv\)\(title\_\{v\},\\;\[p^\{v\}\_\{s\},p^\{v\}\_\{e\}\],\\;summary\_\{v\},\\;findings\_\{v\}\), namely a section title, page range, summary, and a mutable findings list \(initially empty\)\. The tree is constructed once per document by a VLM in a question\-agnostic manner: the model receives structured markdown extracted from the document together with parsed visual content, including figure/table/chart captions and layout\-derived cues, and outputs a JSON tree with section titles, page ranges, and summaries\. This preprocessing does not use benchmark questions, answers, or evidence annotations\.

Structure\-aware navigation\.Searchtakes a search queryqsq\_\{s\}\(which may differ fromqq, e\.g\., a sub\-question\) and the current index state:

Search​\(qs;𝒢\(t\)\)→\{\(v1,s1\),…,\(vk,sk\)\},\\textsc\{Search\}\(q\_\{s\};\\,\\mathcal\{G\}^\{\(t\)\}\)\\;\\to\\;\\bigl\\\{\(v\_\{1\},s\_\{1\}\),\\,\\ldots,\\,\(v\_\{k\},s\_\{k\}\)\\bigr\\\},\(2\)An auxiliary LLM receives the serialized tree, including titles, page ranges, summaries, and accumulated annotations, together withqsq\_\{s\}and explored pagesℋ\(t\)\\mathcal\{H\}^\{\(t\)\}\. It then selects tree nodes by using the hierarchy, preferring unvisited regions when useful, and using annotations from prior exploration\.

Evidence\-grounded enrichment\.When the agent records findings viaNote, the evidence entriesevidencet⊆\{\(ej,pj,typej\)\}\\texttt\{evidence\}\_\{t\}\\subseteq\\\{\(e\_\{j\},p\_\{j\},\\text\{type\}\_\{j\}\)\\\}\(Eq\.[5](https://arxiv.org/html/2608.07527#S3.E5)\) are propagated back to the tree\. For each cited pagepp, the finest\-grained covering nodev∗=arg⁡minv:p∈\[psv,pev\]⁡\|pev−psv\|v^\{\*\}=\\arg\\min\_\{v:\\,p\\in\[p^\{v\}\_\{s\},p^\{v\}\_\{e\}\]\}\|p^\{v\}\_\{e\}\-p^\{v\}\_\{s\}\|receives a compact annotation inf​i​n​d​i​n​g​sv∗findings\_\{v^\{\*\}\}\. The index thus evolves:

𝒢\(t\+1\)=enrich​\(𝒢\(t\),evidencet\),\\mathcal\{G\}^\{\(t\+1\)\}=\\texttt\{enrich\}\\bigl\(\\mathcal\{G\}^\{\(t\)\},\\;\\texttt\{evidence\}\_\{t\}\\bigr\),\(3\)so laterSearchcalls see accumulated findings alongside original summaries\. Each annotation contains a normalized finding, its source page, evidence type, and the step at which it was observed\. The enrichment operation is deliberately conservative: it appends or merges source\-attributed findings into the finest covering node but never rewrites the original section summary\. Annotations are navigation hints only and do not replace direct evidence when composing the final answer\.

### 3\.2Selective Evidence Access

In most existing agentic systems, retrieval and reading are tightly coupled: if search returns a candidate setC=\{v1,…,vk\}C=\\\{v\_\{1\},\\ldots,v\_\{k\}\\\}, all pages inpages​\(C\)≜⋃v∈C\[psv,pev\]\\texttt\{pages\}\(C\)\\triangleq\\bigcup\_\{v\\in C\}\[p^\{v\}\_\{s\},p^\{v\}\_\{e\}\]are consumed\. This wastes context when a relevant section spans many pages and prevents accessing pages outsideCCwhen evidence is referenced indirectly\. DocAtlas decouples these stages:Searchproposes candidate regions, whileReadgives the agent explicit control over the final evidence setP⊆\[1,N\]P\\subseteq\[1,N\]\. Retrieval results are therefore proposals rather than mandatory context; the agent may read pages from a search hit, neighboring pages, explicit page references, or unresolved gaps recorded in memory\.

Multimodal reading\.The agent selects a page subsetPPand invokes:

Read​\(P\)→\[\(xpimg,xpmd,xpsub\)\]p∈P,\\textsc\{Read\}\(P\)\\;\\to\\;\\bigl\[\(x^\{\\text\{img\}\}\_\{p\},\\;x^\{\\text\{md\}\}\_\{p\},\\;x^\{\\text\{sub\}\}\_\{p\}\)\\bigr\]\_\{p\\in P\},\(4\)returning, for each pagepp, three content types: a full\-page layout imagexpimgx^\{\\text\{img\}\}\_\{p\}, a structured markdown renderingxpmdx^\{\\text\{md\}\}\_\{p\}\(extracted by MinerU\[[24](https://arxiv.org/html/2608.07527#bib.bib30)\]\), and a set of cropped sub\-imagesxpsub=\{xp,1sub,…\}x^\{\\text\{sub\}\}\_\{p\}=\\\{x^\{\\text\{sub\}\}\_\{p,1\},\\ldots\\\}for figures and charts\. The read observation is assembled adaptively rather than fixed by backbone type\. By default, the agent receives the page layout image together with markdown, so text, layout, and global spatial context are jointly available\. For questions that require fine\-grained visual inspection,Readfurther attaches cropped sub\-images to zoom in on the relevant regions\. This makesReadthe main channel through which visual observations enter the agent and the tool whose use can be improved by outcome\-based RL\.

### 3\.3Active Working Memory

EachReadinvocation appends multimodal observations to the interaction historyhth\_\{t\}\. At steptt, the cumulative token cost∑i≤t\(\|ui\|\+\|oi\|\)\\sum\_\{i\\leq t\}\(\|u\_\{i\}\|\+\|o\_\{i\}\|\)grows toward the context budgetBB, forcing a tradeoff between retaining early evidence and allocating tokens to further exploration\. DocAtlas therefore separates active context from evidence memory: bulky page observations remain in the interaction history when available, whileNotestores compact, source\-attributed findings that can be retrieved later byReview\.

Structured note\-taking\.Noterecords findings as a structured tuple

n=\(found,evidence,plan\),n=\\bigl\(\\texttt\{found\},\\;\\;\\texttt\{evidence\},\\;\\;\\texttt\{plan\}\\bigr\),\(5\)wherefoundsummarizes what has been established,evidence=\{\(ej,pj,typej\)\}j=1J=\\\{\(e\_\{j\},p\_\{j\},\\text\{type\}\_\{j\}\)\\\}\_\{j=1\}^\{J\}is an array of typed, source\-attributed entries \(typej∈\{text,table,image,formula\}\\text\{type\}\_\{j\}\\in\\\{\\text\{text\},\\text\{table\},\\text\{image\},\\text\{formula\}\\\}\), andplanstates remaining information gaps\. Unlike generic transcript summarization, notes in DocAtlas are structured evidence objects: they store what has been established, where it was observed, what modality supports it, and what remains unresolved\.Notetriggers two side effects\. When archival is enabled, priorReadoutputs inhth\_\{t\}can be replaced in\-place with short placeholders, yieldingh^t\\hat\{h\}\_\{t\}with\|h^t\|≪\|ht\|\|\\hat\{h\}\_\{t\}\|\\ll\|h\_\{t\}\|\. Evidence entries are also written back to the tree \(Eq\.[3](https://arxiv.org/html/2608.07527#S3.E3)\), closing the feedback loop withSearch\.

To avoid turning memory into an unconstrained summary channel, notes are constrained to be extractive and page\-grounded: each evidence entry must be copied or normalized from a previously read page and paired with its source page and modality\. Tree annotations therefore act as source\-attributed navigation hints rather than free\-form model beliefs\. We use append\-and\-merge semantics: new entries are concatenated with existing ones rather than replacing them, so the auxiliary model can inspect the accumulated evidence trail during later search\.

Evidence review\.As notes accumulate inℳ\(t\)\\mathcal\{M\}^\{\(t\)\},Review\(qv\)\(q\_\{v\}\)reviews the note store and returns only the findings relevant to a queryqvq\_\{v\}\. Each noteni∈ℳ\(t\)n\_\{i\}\\in\\mathcal\{M\}^\{\(t\)\}is projected to a compact note cardci=\(idi,stepi,foundi,pagesi\)c\_\{i\}=\(\\texttt\{id\}\_\{i\},\\texttt\{step\}\_\{i\},\\texttt\{found\}\_\{i\},\\texttt\{pages\}\_\{i\}\)that strips the full evidence payload\. An auxiliary LLM receives\{c1,…,c\|ℳ\(t\)\|\}\\\{c\_\{1\},\\ldots,c\_\{\|\\mathcal\{M\}^\{\(t\)\}\|\}\\\}and selects the relevant subset \(greedy decoding; prompt in Appendix[A\.6](https://arxiv.org/html/2608.07527#A1.SS6)\)\.Reviewexposes source\-attributed evidence summaries to the policy without requiring the full multimodal transcript to remain in context\.

### 3\.4End\-to\-End RL over Agent Trajectories

Because DocAtlas exposes document understanding as a sequence of structured actions and observations, it can train compact VLM agents directly\. We optimize a single VLM policy over complete tool trajectories using outcome rewards\. The environment components, including the tree, tool executors, and auxiliary subroutines used bySearchandReview, are frozen; the policy learns when to search, what to read, what to record, and when to answer\.

Formulation\.The agent policyπθ\\pi\_\{\\theta\}is a single VLM that, at each steptt, conditions onht=\(q,u1,o1,…,ut−1,ot−1\)h\_\{t\}=\(q,u\_\{1\},o\_\{1\},\\ldots,u\_\{t\-1\},o\_\{t\-1\}\)and emitsut∼πθ\(⋅∣ht\)u\_\{t\}\\sim\\pi\_\{\\theta\}\(\\cdot\\mid h\_\{t\}\)\. During RL training, each action is either a structured tool call or a terminal answer normalized as\\boxed\{\}for reward parsing; the trajectory terminates at the answer or afterTmax=8T\_\{\\max\}\{=\}8turns\. The four tools, the tree, and the auxiliary LLM subroutines insideSearchandReviewconstitute the frozen environment; they receive no gradient updates\.

Reward and optimization\.RL rewards are computed from the final answer only\. If the last visible answer lacks a parsable\\boxed\{\}field, the reward is zero; otherwise, we extract the boxed content and apply the LongDocURL type\-aware answer score:

r=ScoreLongDocURL​\(ExtractBoxed​\(a\),a⋆\)\.r=\\mathrm\{Score\}\_\{\\mathrm\{LongDocURL\}\}\\bigl\(\\mathrm\{ExtractBoxed\}\(a\),a^\{\\star\}\\bigr\)\.\(6\)We optimize with GRPO\[[28](https://arxiv.org/html/2608.07527#bib.bib29)\]using DAPO\-style asymmetric clipping\[[35](https://arxiv.org/html/2608.07527#bib.bib28)\]\(ϵlow=0\.1\\epsilon\_\{\\text\{low\}\}\{=\}0\.1,ϵhigh=0\.3\\epsilon\_\{\\text\{high\}\}\{=\}0\.3\),n=8n\{=\}8rollouts, group\-normalized advantages, and token\-level KL regularization \(λKL=0\.01\\lambda\_\{\\text\{KL\}\}\{=\}0\.01\)\. Appendix[A\.4](https://arxiv.org/html/2608.07527#A1.SS4)gives full reward and training details\.

## 4Experiments

We organize the evaluation around two questions:Q1:Does a mutable tree\-based tool environment improve long\-document understanding on benchmarks with complex layouts and visual content?Q2:Can the same environment train compact VLM policies through end\-to\-end RL, instead of only serving as an inference\-time prompting scaffold? We report results for large VLM agents at inference time and RL\-trained Qwen3\.5 policies\.

### 4\.1Experimental Setup

Table 1:Main results on MMLongBench\-Doc\[[21](https://arxiv.org/html/2608.07527#bib.bib21)\], FinRAGBench\-V\[[39](https://arxiv.org/html/2608.07527#bib.bib20)\], and LongDocURL\[[5](https://arxiv.org/html/2608.07527#bib.bib19)\]\. MMLongBench\-Doc is reported by evidence source: text \(TXT\), layout \(LAY\), chart \(CHA\), table \(TAB\), figure \(FIG\), unanswerable \(UNA\), with overall accuracy \(Acc\), F1, and LLM\-as\-judge score \(LasJ\)\. FinRAGBench\-V reports LLM\-as\-judge scores by evidence type and overall\. LongDocURL reports overall LLM\-as\-judge score using GPT\-5\.4\. Compact DocAtlas rows use GPT\-5\.4 as a fixed reference auxiliary forSearch/Review; Table[3](https://arxiv.org/html/2608.07527#S4.T3)tests open\-weight and self auxiliaries\. DocLens and†rows are copied from prior papers and are included for comparison; unavailable entries are marked with –\. Qwen RL rows omit LongDocURL because LongDocURL is used for RL data construction\. Green cells mark the best\-performing method in each metric column, and pale yellow cells mark the second\-best\-performing method;∗denotes results surpassing the MMLongBench\-Doc human\-expert\.ModelMMLongBench\-DocFinRAGBench\-VLongDocURLTXTLAYCHATABFIGUNAAccF1LasJTXTTABCHALasJLasJVanilla VLMsGPT\-5\.245\.845\.645\.343\.333\.586\.052\.852\.157\.640\.428\.940\.736\.059\.4GPT\-5\.457\.857\.755\.761\.151\.775\.662\.459\.463\.464\.645\.259\.955\.166\.9Claude\-4\-Sonnet50\.449\.450\.557\.343\.959\.053\.4––36\.620\.251\.933\.8–Gemini\-2\.5\-Flash44\.053\.246\.043\.948\.256\.749\.6––49\.041\.641\.043\.0–Gemini\-2\.5\-Pro52\.162\.155\.555\.354\.059\.958\.1––62\.255\.350\.454\.9–Qwen3\.5\-4B47\.548\.747\.655\.445\.563\.454\.453\.158\.766\.249\.048\.852\.852\.4Qwen3\.5\-9B54\.253\.851\.055\.746\.466\.958\.055\.060\.264\.252\.254\.755\.855\.5Qwen3\.5\-397B\-A13B––––––61\.9–––––––VLMs Augmented with OCRClaude\-4\-Sonnet52\.751\.650\.058\.145\.365\.956\.0––58\.721\.654\.341\.0–Gemini\-2\.5\-Flash55\.954\.952\.763\.450\.360\.858\.5––67\.664\.446\.158\.3–Gemini\-2\.5\-Pro59\.765\.360\.868\.355\.758\.463\.3––70\.070\.056\.264\.9–VLM\-based Agentic FrameworksM3DocRAG \(w/ Qwen2\-VL\-7B\)†30\.023\.518\.920\.120\.85\.821\.0–––––––MDocAgent \(w/ GPT\-4o\)†––––––42\.0–––––––DocDancer \(w/ GPT\-5\.2\)––––––57\.0–––––––SimpleDocw/ Claude\-4\-Sonnet52\.153\.358\.362\.446\.966\.558\.6––59\.668\.954\.961\.7–w/ Gemini\-2\.5\-Flash45\.557\.449\.051\.645\.266\.553\.3––70\.256\.253\.658\.3–w/ Gemini\-2\.5\-Pro48\.454\.855\.756\.152\.559\.756\.6––67\.564\.060\.963\.6–DocLensw/ Claude\-4\-Sonnet59\.958\.254\.463\.955\.374\.063\.3––70\.266\.060\.364\.8–w/ Gemini\-2\.5\-Flash59\.561\.554\.866\.959\.073\.864\.7––69\.971\.364\.568\.5–w/ Gemini\-2\.5\-Pro63\.764\.664\.369\.760\.272\.267\.6∗––68\.974\.267\.170\.4–DocAtlas \(Ours\)w/ Qwen3\.5\-4B58\.454\.656\.167\.048\.170\.661\.058\.763\.573\.366\.565\.467\.972\.5w/ Qwen3\.5\-9B58\.855\.356\.267\.851\.970\.861\.659\.464\.773\.967\.166\.469\.874\.0RL w/ Qwen3\.5\-4B59\.255\.957\.567\.851\.874\.663\.762\.467\.975\.270\.768\.571\.7–RL w/ Qwen3\.5\-9B66\.660\.558\.970\.159\.959\.364\.463\.169\.675\.872\.070\.772\.6–w/ GPT\-5\.267\.071\.568\.074\.467\.666\.570\.6∗69\.673\.976\.076\.273\.175\.277\.5w/ GPT\-5\.468\.869\.068\.274\.169\.868\.671\.4∗70\.374\.676\.377\.473\.275\.678\.8Human Expert†––––––65\.8–––––––##### Benchmarks and metrics\.

We evaluate on three widely used long\-document understanding benchmarks and follow their standard evaluation protocols\. MMLongBench\-Doc\[[21](https://arxiv.org/html/2608.07527#bib.bib21)\]reports overall accuracy, F1, LLM\-as\-judge score, and accuracy by evidence source\. FinRAGBench\-V\[[39](https://arxiv.org/html/2608.07527#bib.bib20)\]reports LLM\-as\-judge scores overall and by evidence type\. LongDocURL\[[5](https://arxiv.org/html/2608.07527#bib.bib19)\]reports the overall LLM\-as\-judge score; we use GPT\-5\.4 as the judge\. Since LongDocURL is used to construct the RL training set \(§[4\.1](https://arxiv.org/html/2608.07527#S4.SS1.SSS0.Px3)\), we do not report Qwen RL results on LongDocURL\.

##### DocAtlas configuration\.

The environment exposes four tools,Search,Read,Note, andReview, with no fixed execution order\.Readreturns structured markdown, layout images, and cropped sub\-images\.Noterecords extractive, page\-grounded evidence and optionally archives bulky read observations from the active context\. The auxiliary LLMs insideSearchandRevieware frozen routing and memory\-selection modules that can be swapped without changing the policy or tools; the main table uses GPT\-5\.4 as a fixed reference, and §[4\.4](https://arxiv.org/html/2608.07527#S4.SS4)tests open\-weight and self auxiliaries\. Archival is enabled for RL\-trained compact policies because unbounded accumulation of tool observations makes multi\-rollout training unstable \(§[4\.1](https://arxiv.org/html/2608.07527#S4.SS1.SSS0.Px3)\)\.

##### RL Data Construction and Training

We construct RL data from LongDocURL using model\-specific pass@16 filtering\. For each compact VLM policy, we sample 16 trajectories per question in the DocAtlas environment and retain medium\-difficulty questions with at least one but not all correct rollouts; all correct questions provide little advantage signal, while all\-wrong questions provide no positive trajectory under sparse rewards\. Because filtering is performed separately for each policy, the retained sets differ: 612 questions for Qwen3\.5\-4B and 587 for Qwen3\.5\-9B\. In early RL runs, the multimodal output ofReadcaused highly variable and rapidly growing contexts across rollouts, making memory use unstable\. We therefore enable context archival during RL training: after the agent records a page\-grounded note, bulky read observations can be replaced by short placeholders while the structured evidence remains accessible throughReview\. This reduces model input length and makes training more stable\. Appendix[A\.3](https://arxiv.org/html/2608.07527#A1.SS3)gives the episode\-level algorithm flow, and Appendix[A\.4](https://arxiv.org/html/2608.07527#A1.SS4)gives the reward parsing and RL hyperparameters\.

### 4\.2Main Results

Table[1](https://arxiv.org/html/2608.07527#S4.T1)summarizes the results in all three benchmarks\. Long\-document performance is not determined by the backbone alone: GPT\-5\.4 rises from 62\.4 direct accuracy on MMLongBench\-Doc to 71\.4 inside DocAtlas, a 9\.0\-point gain over the 65\.8 human\-expert reference\. The gain appears across answerable evidence types, especially visual and structured cases, while unanswerable accuracy decreases from 75\.6 to 68\.6\. This tradeoff is expected for an evidence\-seeking agent: more retrieved evidence helps answerable questions but can make abstention harder when partially relevant pages are found\. The same pattern appears beyond MMLongBench\-Doc: GPT\-5\.4 improves from 55\.1 to 75\.6 LasJ on FinRAGBench\-V and from 66\.9 to 78\.8 on LongDocURL; GPT\-5\.2 also reaches 70\.6 on MMLongBench\-Doc and 77\.5 on LongDocURL\.

In the fixed\-reference auxiliary setting, the mutable environment also improves compact open policies\. Qwen3\.5\-4B improves from 54\.4 with direct input to 61\.0 with DocAtlas, and Qwen3\.5\-9B improves from 58\.0 to 61\.6\. The gains are strongest on tables and other structured evidence, where the agent can first localize candidate regions and then inspect a smaller set of pages or crops\. This suggests that selective multimodal access helps compact models more than simply exposing the whole document in one context\.

RL further improves compact policies beyond inference\-time tool prompting\. On MMLongBench\-Doc, Qwen3\.5\-4B moves from 61\.0 to 63\.7 after RL, and Qwen3\.5\-9B from 61\.6 to 64\.4\. The gains transfer beyond the RL data source: FinRAGBench\-V improves from 67\.9 to 71\.7 for 4B and from 69\.8 to 72\.6 for 9B, while Qwen RL rows omit LongDocURL because it is used for data construction\. The category changes indicate that RL is not only changing the final answer style; it improves the policy’s choices about when to search, read, write notes, and review them\. The GPT\-5\.4 auxiliary is not required by the method: §[4\.4](https://arxiv.org/html/2608.07527#S4.SS4)shows that open\-weight or self auxiliaries keep most of the compact\-policy gain\.

![Refer to caption](https://arxiv.org/html/2608.07527v1/x3.png)

\(a\) Component ablation\.

![Refer to caption](https://arxiv.org/html/2608.07527v1/x4.png)

\(b\) Average tool calls per question\.

Figure 3:Component and tool\-use analysis on MMLongBench\-Doc\. \(a\) Bars report ALL accuracy after removing either an entire tool or an internal component of a tool; full DocAtlas with GPT\-5\.4 reaches 71\.4\. Detailed category\-level results are in Appendix[A\.1](https://arxiv.org/html/2608.07527#A1.SS1)\. \(b\) After RL, the 4B policy uses fewerSearchcalls and moreRead,Note, andReviewcalls despite only a small increase in total calls; DocAtlas\-Plus denotes the GPT\-5\.4 instantiation\.
### 4\.3Ablation Study

Figure[3](https://arxiv.org/html/2608.07527#S4.F3)\(a\) ablates DocAtlas on MMLongBench\-Doc; Appendix[A\.1](https://arxiv.org/html/2608.07527#A1.SS1)gives the full category\-level table\. The largest losses come from visual access\. Removing layout images lowers ALL from 71\.4 to 65\.7, with large drops on figures and charts; removing cropped sub\-images lowers ALL to 67\.2\. Full\-page layout images preserve spatial context and cross\-element relations, while cropped sub\-images expose local details inside figures, charts, and tables\. The result supports the two\-level design ofRead: neither text\-only extraction nor a single visual scale is sufficient for long documents with complex layouts and visual content\.

Selective evidence access also matters\. WithoutRead, the agent consumesSearchcandidates directly and ALL falls to 67\.2, showing thatSearchshould remain a high\-recall proposal mechanism rather than the final evidence selector\. The mutable\-state components each contribute consistent gains: removing the evidence field,Review,Note, plan field, or tree annotation yields 67\.8–68\.3 ALL\. These similar drops show that memory is a pathway rather than one switch: notes preserve page\-grounded facts, review retrieves them across steps, and tree annotations feed local findings back into later search\.

### 4\.4Behavior and Robustness Analysis

Table 2:Search\-Read evidence efficiency on MMLongBench\-Doc\. All\-Hit is the fraction of examples for which all gold evidence pages are covered; F1 is page\-level evidence F1\.MethodAvg\.All\-HitF1ColQwen top\-22\.0064\.1238\.75ColQwen top\-66\.0076\.4224\.36ColQwen top\-1010\.0083\.6018\.38FullSearch16\.6587\.4538\.33w/oAnnotation16\.9480\.0529\.40FirstRead2\.6759\.9056\.04w/oAnnotation2\.6158\.2156\.37FullRead5\.7978\.0158\.99w/oAnnotation6\.0176\.9358\.17This section checks whether the gains in Table[1](https://arxiv.org/html/2608.07527#S4.T1)come from the intended behavior: learned tool use, efficient evidence access, and robustness to the auxiliary model\.

Tool\-use behavior\.Figure[3](https://arxiv.org/html/2608.07527#S4.F3)\(b\) shows that RL changes the compact policy’s behavior without simply increasing its tool budget\. Total calls grow by only 10\.5%, but the mix shifts sharply:Searchdecreases by 28\.0%, whileRead,Note, andReviewincrease by 28\.3%, 66\.7%, and 320\.0%\. The policy is not just trying more actions; it shifts effort from broad localization to reading pages, recording evidence, and checking saved notes\. The clearest change isReview: the no\-RL 4B policy almost never uses it \(0\.05 calls/question\), whereas the RL policy reaches 0\.21, matching GPT\-5\.4’s 0\.20 rate\. This suggests that RL teaches the compact model to use the harness’s note\-and\-verify pathway rather than treating each read as an isolated context extension\.

Evidence efficiency\.Table[2](https://arxiv.org/html/2608.07527#S4.T2)explains whySearchandReadare separate tools\. Raw tree search has high coverage \(87\.45 All\-Hit\) but is intentionally broad, returning 16\.65 pages on average\. This is useful for recall but too expensive to pass directly to the policy\. The full reading trajectory inspects far fewer pages \(5\.79\) while achieving the best page\-level F1 \(58\.99\), showing thatReadconverts high\-recall candidates into a compact evidence set\. ColQwen shows the opposite tradeoff: larger top\-kkraises All\-Hit but lowers F1 by retrieving many extra pages\. Tree annotations also matter: removing them drops raw\-search All\-Hit from 87\.45 to 80\.05 and page F1 from 38\.33 to 29\.40, so the mutable tree improves later search rather than only storing notes for final synthesis\.

Table 3:Auxiliary LLM sensitivity on MMLongBench\-Doc\. The RL policy is fixed; only the frozen model used bySearch/Reviewis varied\. “Self” uses the corresponding Qwen policy model as the auxiliary\.Δ\\Deltais relative to GPT\-5\.4\.Aux\.4BΔ\\Delta9BΔ\\DeltaGPT\-5\.463\.70\.064\.40\.0Qwen3\.5\-35B\-A3B63\.4\-0\.364\.0\-0\.4Self62\.0\-1\.763\.2\-1\.2Auxiliary robustness\.Finally, we test whether the compact\-policy gains simply come from using GPT\-5\.4 insideSearchandReview\. Holding the RL policy fixed, Table[3](https://arxiv.org/html/2608.07527#S4.T3)replaces only this auxiliary model\. The GPT\-5\.4 row is a reference setting, not a required deployment choice: Qwen3\.5\-35B\-A3B loses only 0\.3–0\.4 points, and “Self” keeps both policies within 2 points\. The auxiliary routes search and selects saved notes, but the trained policy still decides when to invoke tools, which pages to read, and how to answer\. The fully open\-weight self setting still reaches 62\.0/63\.2 for the 4B/9B policies, suggesting that DocAtlas is not just a wrapper around a proprietary auxiliary model\.

## 5Conclusion

DocAtlas treats long\-document understanding as mutable\-state interaction: agents search a visual\-aware tree, read pages, write grounded notes, and review prior findings\. This turns a long document into state that the policy updates while it works\. Across three benchmarks, DocAtlas improves large VLM agents and helps compact Qwen policies learn tool use through RL\. The gains come from multimodal reading, decoupledSearch/Read, mutable notes, tree annotations, andSearch/Reviewauxiliaries that can be replaced by open\-weight or self models\. Overall, long\-document understanding depends not only on context length, but also on how the interface lets a model find, remember, and use evidence\.

## References

- \[1\]\(2023\)Self\-rag: learning to retrieve, generate, and critique through self\-reflection\.InICLR,Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p1.1)\.
- \[2\]L\. Chen, Z\. Xiao, J\. Wang, Z\. Huang, Y\. Zeng, and J\. Xu\(2025\)HEAR: a holistic extraction and agentic reasoning framework for document understanding\.InACM MM,pp\. 14376–14382\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p2.1)\.
- \[3\]J\. Cho, D\. Mahata, O\. Irsoy, Y\. He, and M\. Bansal\(2024\)M3docrag: multi\-modal retrieval is what you need for multi\-page multi\-document understanding\.arXiv preprint arXiv:2411\.04952\.Cited by:[Figure 1](https://arxiv.org/html/2608.07527#S1.F1.4.4.4.5),[§1](https://arxiv.org/html/2608.07527#S1.p1.1),[§1](https://arxiv.org/html/2608.07527#S1.p2.1),[§2](https://arxiv.org/html/2608.07527#S2.p1.1)\.
- \[4\]F\. Cuconasu, G\. Trappolini, F\. Siciliano, S\. Filice, C\. Campagnano, Y\. Maarek, N\. Tonellotto, and F\. Silvestri\(2024\)The power of noise: redefining retrieval for rag systems\.InSIGIR,pp\. 719–729\.Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p2.1)\.
- \[5\]C\. Deng, J\. Yuan, P\. Bu, P\. Wang, Z\. Li, J\. Xu, X\. Li, Y\. Gao, J\. Song, B\. Zheng,et al\.\(2025\)Longdocurl: a comprehensive multimodal long document benchmark integrating understanding, reasoning, and locating\.InACL,pp\. 1135–1159\.Cited by:[§4\.1](https://arxiv.org/html/2608.07527#S4.SS1.SSS0.Px1.p1.1),[Table 1](https://arxiv.org/html/2608.07527#S4.T1)\.
- \[6\]Y\. Ding, S\. Luo, Y\. Dai, Y\. Jiang, Z\. Li, G\. Martin, and Y\. Peng\(2025\)A survey on mllm\-based visually rich document understanding: methods, challenges, and emerging trends\.arXiv preprint arXiv:2507\.09861\.Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p1.1)\.
- \[7\]M\. Faysse, H\. Sibille, T\. Wu, B\. Omrani, G\. Viaud, C\. Hudelot, and P\. Colombo\(2025\)ColPali: efficient document retrieval with vision language models\.InICLR,Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p1.1)\.
- \[8\]Y\. Gao, Y\. Xiong, X\. Gao, K\. Jia, J\. Pan, Y\. Bi, Y\. Dai, J\. Sun, H\. Wang, H\. Wang,et al\.\(2023\)Retrieval\-augmented generation for large language models: a survey\.arXiv preprint arXiv:2312\.109972\(1\),pp\. 32\.Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p2.1)\.
- \[9\]L\. F\. Gomes, X\. Zhou, D\. Lo, and R\. Abreu\(2025\)VisDocSketcher: towards scalable visual documentation with agentic systems\.arXiv preprint arXiv:2509\.11942\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p2.1)\.
- \[10\]Z\. Gong, C\. Mai, and Y\. Huang\(2025\)MHier\-rag: multi\-modal rag for visual\-rich document question\-answering via hierarchical and multi\-granularity reasoning\.arXiv preprint arXiv:2508\.00579\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p1.1)\.
- \[11\]S\. Han, P\. Xia, R\. Zhang, T\. Sun, Y\. Li, H\. Zhu, and H\. Yao\(2025\)Mdocagent: a multi\-modal multi\-agent framework for document understanding\.arXiv preprint arXiv:2503\.13964\.Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p2.1),[§2](https://arxiv.org/html/2608.07527#S2.p1.1)\.
- \[12\]A\. Hu, H\. Xu, L\. Zhang, J\. Ye, M\. Yan, J\. Zhang, Q\. Jin, F\. Huang, and J\. Zhou\(2025\)Mplug\-docowl2: high\-resolution compressing for ocr\-free multi\-page document understanding\.InACL,pp\. 5817–5834\.Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p1.1)\.
- \[13\]C\. Jain, Y\. Wu, Y\. Zeng, J\. Liu, S\. Dai, Z\. Shao, Q\. Wu, and H\. Wang\(2025\)SimpleDoc: multi\-modal document understanding with dual\-cue page retrieval and iterative refinement\.InEMNLP,pp\. 28398–28415\.Cited by:[Figure 1](https://arxiv.org/html/2608.07527#S1.F1.12.12.12.5),[§1](https://arxiv.org/html/2608.07527#S1.p2.1),[§2](https://arxiv.org/html/2608.07527#S2.p2.1)\.
- \[14\]Y\. Lee, R\. Nair, Q\. Zhang, K\. Lee, O\. Khattab, and C\. Finn\(2026\)Meta\-harness: end\-to\-end optimization of model harnesses\.arXiv preprint arXiv:2603\.28052\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p2.1)\.
- \[15\]Z\. Li, H\. Tian, L\. Luo, Y\. Cao, and P\. Luo\(2026\)DeepRead: document structure\-aware reasoning to enhance agentic search\.arXiv preprint arXiv:2602\.05014\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p2.1)\.
- \[16\]K\. Liu, Z\. Chen, M\. Li, J\. Tang, D\. Yang, and L\. Zhang\(2025\)Resolving evidence sparsity: agentic context engineering for long\-document understanding\.arXiv preprint arXiv:2511\.22850\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p2.1)\.
- \[17\]N\. F\. Liu, K\. Lin, J\. Hewitt, A\. Paranjape, M\. Bevilacqua, F\. Petroni, and P\. Liang\(2024\)Lost in the middle: how language models use long contexts\.Trans\. Assoc\. Comput\. Linguistics12,pp\. 157–173\.Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p1.1),[§3](https://arxiv.org/html/2608.07527#S3.p1.1)\.
- \[18\]Y\. Liu, B\. Yang, Q\. Liu, Z\. Li, Z\. Ma, S\. Zhang, and X\. Bai\(2026\)Textmonkey: an ocr\-free large multimodal model for understanding document\.IEEE Transactions on Pattern Analysis and Machine Intelligence\.Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p1.1)\.
- \[19\]X\. Lou, M\. Lázaro\-Gredilla, A\. Dedieu, C\. Wendelken, W\. Lehrach, and K\. P\. Murphy\(2026\)AutoHarness: improving llm agents by automatically synthesizing a code harness\.arXiv preprint arXiv:2603\.03329\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p2.1)\.
- \[20\]X\. Ma, Y\. Gong, P\. He, H\. Zhao, and N\. Duan\(2023\)Query rewriting in retrieval\-augmented large language models\.InEMNLP,pp\. 5303–5315\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p1.1)\.
- \[21\]Y\. Ma, Y\. Zang, L\. Chen, M\. Chen, Y\. Jiao, X\. Li, X\. Lu, Z\. Liu, Y\. Ma, X\. Dong, P\. Zhang, L\. Pan, Y\. Jiang, J\. Wang, Y\. Cao, and A\. Sun\(2024\)MMLONGBENCH\-DOC: benchmarking long\-context document understanding with visualizations\.InNeurIPS,BC, Canada\.Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p1.1),[§1](https://arxiv.org/html/2608.07527#S1.p3.1),[§4\.1](https://arxiv.org/html/2608.07527#S4.SS1.SSS0.Px1.p1.1),[Table 1](https://arxiv.org/html/2608.07527#S4.T1)\.
- \[22\]Q\. Macé, A\. Loison, and M\. Faysse\(2025\)ViDoRe benchmark v2: raising the bar for visual retrieval\.arXiv preprint arXiv:2505\.17166\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p1.1)\.
- \[23\]D\. Napolitano, L\. Vaiani, and L\. Cagliero\(2024\)On leveraging multi\-page element relations in visually\-rich documents\.InCOMPSAC,pp\. 360–365\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p1.1)\.
- \[24\]J\. Niu, Z\. Liu, Z\. Gu, B\. Wang, L\. Ouyang, Z\. Zhao, T\. Chu, T\. He, F\. Wu, Q\. Zhang,et al\.\(2025\)Mineru2\.5: a decoupled vision\-language model for efficient high\-resolution document parsing\.InACL,Cited by:[§3\.2](https://arxiv.org/html/2608.07527#S3.SS2.p2.5)\.
- \[25\]OpenAI\(2026\)Introducing gpt‑5\.4\.Note:[https://openai\.com/index/introducing\-gpt\-5\-4/](https://openai.com/index/introducing-gpt-5-4/)Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p3.1)\.
- \[26\]R\. Osmulski, G\. de Souza P\. Moreira, R\. Ak, M\. Xu, B\. Schifferer, and E\. Oldridge\(2025\)MIRACL\-vision: a large, multilingual, visual document retrieval benchmark\.arXiv preprint arXiv:2505\.11651\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p1.1)\.
- \[27\]Qwen Team\(2026\)Qwen3\.5: towards native multimodal agents\.Note:[https://qwen\.ai/blog?id=qwen3\.5](https://qwen.ai/blog?id=qwen3.5)Cited by:[Figure 1](https://arxiv.org/html/2608.07527#S1.F1),[§1](https://arxiv.org/html/2608.07527#S1.p3.1)\.
- \[28\]Z\. Shao, P\. Wang, Q\. Zhu, R\. Xu, J\. Song, X\. Bi, H\. Zhang, M\. Zhang, Y\. Li, Y\. Wu,et al\.\(2024\)Deepseekmath: pushing the limits of mathematical reasoning in open language models\.arXiv preprint arXiv:2402\.03300\.Cited by:[§3\.4](https://arxiv.org/html/2608.07527#S3.SS4.p3.4)\.
- \[29\]L\. Sun, L\. He, S\. Jia, Y\. He, and C\. You\(2025\)Docagent: an agentic framework for multi\-modal long\-context document understanding\.InEMNLP,pp\. 17712–17727\.Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p2.1),[§2](https://arxiv.org/html/2608.07527#S2.p2.1)\.
- \[30\]J\. Wu, Y\. Xia, T\. Yu, X\. Chen, S\. S\. Harsha, A\. V\. Maharaj, R\. Zhang, V\. S\. Bursztyn, S\. Kim, R\. A\. Rossi, J\. J\. McAuley, Y\. Li, and R\. Sinha\(2025\)Doc\-react: multi\-page heterogeneous document question\-answering\.InACL,Vienna, Austria,pp\. 67–78\.Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p2.1),[§2](https://arxiv.org/html/2608.07527#S2.p2.1)\.
- \[31\]J\. Xiong, Y\. Wang, W\. Zhao, C\. Liu, B\. Yin, W\. Zhou, and H\. Li\(2026\)Docr1: evidence page\-guided grpo for multi\-page document understanding\.InAAAI,Vol\.40,pp\. 11178–11186\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p1.1)\.
- \[32\]D\. Yang, A\. Simoulin, X\. Qian, X\. Liu, Y\. Cao, Z\. Teng, and G\. Yang\(2025\)Docagent: a multi\-agent system for automated code documentation generation\.InACL,pp\. 460–471\.Cited by:[Figure 1](https://arxiv.org/html/2608.07527#S1.F1.8.8.8.5)\.
- \[33\]S\. Yao, J\. Zhao, D\. Yu, N\. Du, I\. Shafran, K\. R\. Narasimhan, and Y\. Cao\(2023\)ReAct: synergizing reasoning and acting in language models\.InICLR,Kigali, Rwanda\.Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p2.1)\.
- \[34\]J\. Ye, A\. Hu, H\. Xu, Q\. Ye, M\. Yan, Y\. Dan, C\. Zhao, G\. Xu, C\. Li, J\. Tian,et al\.\(2023\)Mplug\-docowl: modularized multimodal large language model for document understanding\.arXiv preprint arXiv:2307\.02499\.Cited by:[§1](https://arxiv.org/html/2608.07527#S1.p1.1)\.
- \[35\]Q\. Yu, Z\. Zhang, R\. Zhu, Y\. Yuan, X\. Zuo, Y\. Yue, W\. Dai, T\. Fan, G\. Liu, L\. Liu,et al\.\(2025\)Dapo: an open\-source llm reinforcement learning system at scale\.arXiv preprint arXiv:2503\.14476\.Cited by:[§3\.4](https://arxiv.org/html/2608.07527#S3.SS4.p3.4)\.
- \[36\]S\. Yu, C\. Tang, B\. Xu, J\. Cui, J\. Ran, Y\. Yan, Z\. Liu, S\. Wang, X\. Han, Z\. Liu, and M\. Sun\(2024\)VisRAG: vision\-based retrieval\-augmented generation on multi\-modality documents\.arXiv preprint arXiv:2410\.10594\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p1.1)\.
- \[37\]X\. Yu, C\. Xu, Z\. Chen, Y\. Zhang, S\. Lu, C\. Yang, J\. Zhang, S\. Yan, and X\. Hu\(2025\)Visual document understanding and reasoning: a multi\-agent collaboration framework with agent\-wise adaptive test\-time scaling\.arXiv preprint arXiv:2508\.03404\.Cited by:[Figure 1](https://arxiv.org/html/2608.07527#S1.F1.21.21.21.5),[§1](https://arxiv.org/html/2608.07527#S1.p2.1)\.
- \[38\]Q\. Zhang, X\. Lv, J\. Wu, B\. Li, Z\. Tao, G\. Yan, H\. Zhang, B\. Wang, J\. Xu, H\. Mi,et al\.\(2026\)DocDancer: towards agentic document\-grounded information seeking\.arXiv preprint arXiv:2601\.05163\.Cited by:[Figure 1](https://arxiv.org/html/2608.07527#S1.F1.17.17.17.4),[§1](https://arxiv.org/html/2608.07527#S1.p2.1),[§2](https://arxiv.org/html/2608.07527#S2.p2.1)\.
- \[39\]S\. Zhao, Z\. Jin, S\. Li, and J\. Gao\(2025\)Finragbench\-v: a benchmark for multimodal rag with visual citation in the financial domain\.InEMNLP,pp\. 4215–4249\.Cited by:[§4\.1](https://arxiv.org/html/2608.07527#S4.SS1.SSS0.Px1.p1.1),[Table 1](https://arxiv.org/html/2608.07527#S4.T1)\.
- \[40\]Y\. Zheng, P\. Fu, H\. Li, Z\. Wang, Y\. Zhang, W\. Ruan, X\. Zhang, Z\. Wei, Z\. Luo, J\. Luan,et al\.\(2026\)Doc\-v\*: coarse\-to\-fine interactive visual reasoning for multi\-page document vqa\.arXiv preprint arXiv:2604\.13731\.Cited by:[§2](https://arxiv.org/html/2608.07527#S2.p1.1)\.
- \[41\]D\. Zhu, R\. Meng, J\. Chen, S\. Li, T\. Pfister, and J\. Yoon\(2025\)Doclens: a tool\-augmented multi\-agent framework for long visual document understanding\.arXiv preprint arXiv:2511\.11552\.Cited by:[Figure 1](https://arxiv.org/html/2608.07527#S1.F1.14.14.14.3),[§1](https://arxiv.org/html/2608.07527#S1.p2.1),[§2](https://arxiv.org/html/2608.07527#S2.p2.1)\.

## Appendix AAdditional Experimental Results

### A\.1Full Ablation Results

Table[4](https://arxiv.org/html/2608.07527#A1.T4)reports the category\-level ablation results corresponding to Figure[3](https://arxiv.org/html/2608.07527#S4.F3)\.

Table 4:Ablation study of DocAtlas with GPT\-5\.4 as the agent,Search, andReviewLLM on MMLongBench\-Doc\. Each row removes one component from the full system\. Evidence\-source columns are text \(TXT\), layout \(LAY\), chart \(CHA\), table \(TAB\), figure \(FIG\), and unanswerable \(UNA\); Acc is overall accuracy and F1 is overall F1\.VariantTXTLAYCHATABFIGUNAAccF1w/oRead63\.967\.463\.571\.962\.869\.167\.266\.1w/oNote65\.872\.565\.371\.863\.467\.968\.066\.9w/oReview64\.971\.762\.971\.362\.571\.867\.966\.4w/o layout image64\.162\.363\.171\.658\.867\.465\.764\.9w/o sub\-image62\.070\.062\.973\.463\.368\.667\.265\.8w/o evidence field64\.871\.662\.470\.164\.269\.467\.866\.8w/o plan field65\.966\.763\.870\.865\.668\.868\.167\.1w/o tree annotation64\.771\.664\.072\.563\.968\.668\.367\.4Full DocAtlas68\.869\.068\.274\.169\.868\.671\.470\.3
### A\.2Full Tool\-Usage Statistics

Table[5](https://arxiv.org/html/2608.07527#A1.T5)reports the raw tool\-call statistics underlying Figure[3](https://arxiv.org/html/2608.07527#S4.F3)\.

Table 5:Average tool calls per question on MMLongBench\-Doc\. Total is the sum of the four normalized tool aliases:Search,Read,Note, andReview\.PolicySearchReadNoteReviewTotalDocAtlas\-Plus \(GPT\-5\.4\)1\.232\.811\.260\.205\.50DocAtlas\-4B \(Qwen3\.5\-4B\)1\.861\.450\.540\.053\.90DocAtlas\-4B\-RL1\.341\.860\.900\.214\.31Table[6](https://arxiv.org/html/2608.07527#A1.T6)summarizes the relative change induced by RL for the 4B policy\. RL increases the total tool budget by only 10\.5%, but clearly changes the tool mix:Searchdecreases whileRead,Note, andReviewincrease\.

Table 6:Tool\-use shift from DocAtlas\-4B to DocAtlas\-4B\-RL on MMLongBench\-Doc\.Tool4B no\-RL4B\-RLAbs\. changeRel\. changeSearch1\.861\.34\-0\.52\-28\.0%Read1\.451\.86\+0\.41\+28\.3%Note0\.540\.90\+0\.36\+66\.7%Review0\.050\.21\+0\.16\+320\.0%Total3\.904\.31\+0\.41\+10\.5%
### A\.3Algorithm Flow

The pseudocode below gives a compact view of one DocAtlas episode\. The same loop is used for inference and for RL rollouts; RL additionally stores the completed trajectory and scores it with the reward in Appendix[A\.4](https://arxiv.org/html/2608.07527#A1.SS4)\. The pseudocode abstracts away implementation\-specific tool schemas, but matches the state variables and tools defined in Section[3](https://arxiv.org/html/2608.07527#S3)\.

Algorithm 1DocAtlas mutable\-state interaction loop\.1:document

D=\{d1,…,dN\}D=\\\{d\_\{1\},\\ldots,d\_\{N\}\\\}, question

qq, initial tree

G0G^\{0\}, frozen toolsSearch,Read,Note,Review, policy

πθ\\pi\_\{\\theta\}, maximum turns

TmaxT\_\{\\max\}
2:Initialize note store

M0←∅M^\{0\}\\leftarrow\\emptyset, explored pages

H0←∅H^\{0\}\\leftarrow\\emptyset, and history

h1←\[q,overview​\(G0\)\]h\_\{1\}\\leftarrow\[q,\\mathrm\{overview\}\(G^\{0\}\)\]
3:for

t=1t=1to

TmaxT\_\{\\max\}do

4:

ut←πθ​\(ht\)u\_\{t\}\\leftarrow\\pi\_\{\\theta\}\(h\_\{t\}\)
5:if

ut=Finish​\(a\)u\_\{t\}=\\textsc\{Finish\}\(a\)then

6:returnanswer

aaand trajectory

τ\\tau
7:elseif

ut=Search​\(z\)u\_\{t\}=\\textsc\{Search\}\(z\)then

8:

ot←Search​\(z;Gt,Ht\)o\_\{t\}\\leftarrow\\textsc\{Search\}\(z;G^\{t\},H^\{t\}\)
9:

\(Gt\+1,Mt\+1,Ht\+1\)←\(Gt,Mt,Ht\)\(G^\{t\+1\},M^\{t\+1\},H^\{t\+1\}\)\\leftarrow\(G^\{t\},M^\{t\},H^\{t\}\)
10:elseif

ut=Read​\(P\)u\_\{t\}=\\textsc\{Read\}\(P\)then

11:

ot←Read​\(P\)o\_\{t\}\\leftarrow\\textsc\{Read\}\(P\)
12:

\(Gt\+1,Mt\+1,Ht\+1\)←\(Gt,Mt,Ht∪P\)\(G^\{t\+1\},M^\{t\+1\},H^\{t\+1\}\)\\leftarrow\(G^\{t\},M^\{t\},H^\{t\}\\cup P\)
13:elseif

ut=Note​\(b,e,p\)u\_\{t\}=\\textsc\{Note\}\(b,e,p\)then

14:

Mt\+1←Mt∪\{\(b,e,p\)\}M^\{t\+1\}\\leftarrow M^\{t\}\\cup\\\{\(b,e,p\)\\\};

Gt\+1←Enrich​\(Gt,e\)G^\{t\+1\}\\leftarrow\\mathrm\{Enrich\}\(G^\{t\},e\);

Ht\+1←HtH^\{t\+1\}\\leftarrow H^\{t\}
15:

ot←o\_\{t\}\\leftarrowacknowledgement

16:ifarchival is enabledthen

17:Replace bulky priorReadobservations with short placeholders

18:endif

19:elseif

ut=Review​\(z\)u\_\{t\}=\\textsc\{Review\}\(z\)then

20:

Ct←Cards​\(Mt\)C\_\{t\}\\leftarrow\\mathrm\{Cards\}\(M^\{t\}\);

ot←Review​\(z,Ct\)o\_\{t\}\\leftarrow\\textsc\{Review\}\(z,C\_\{t\}\)
21:

\(Gt\+1,Mt\+1,Ht\+1\)←\(Gt,Mt,Ht\)\(G^\{t\+1\},M^\{t\+1\},H^\{t\+1\}\)\\leftarrow\(G^\{t\},M^\{t\},H^\{t\}\)
22:else

23:

ot←o\_\{t\}\\leftarrowinvalid\-tool message

24:

\(Gt\+1,Mt\+1,Ht\+1\)←\(Gt,Mt,Ht\)\(G^\{t\+1\},M^\{t\+1\},H^\{t\+1\}\)\\leftarrow\(G^\{t\},M^\{t\},H^\{t\}\)
25:endif

26:

ht\+1←ht∥\(ut,ot\)h\_\{t\+1\}\\leftarrow h\_\{t\}\\mathbin\{\\\|\}\(u\_\{t\},o\_\{t\}\)
27:endfor

28:returntimeout answer and trajectory

τ\\tau
29:

30:RL scoring\.For a completed trajectory, set

r=0r=0if the final answer is not boxed; otherwise extract the boxed content and set

31:

r=ScoreLongDocURL​\(ExtractBoxed​\(a\),a⋆\)r=\\mathrm\{Score\}\_\{\\mathrm\{LongDocURL\}\}\\bigl\(\\mathrm\{ExtractBoxed\}\(a\),a^\{\\star\}\\bigr\)\.

### A\.4Training and Reward Details

Table[7](https://arxiv.org/html/2608.07527#A1.T7)summarizes the RL configuration used for the compact Qwen3\.5 policies\. We use the same DocAtlas tool environment as in inference, keep the tree, tool executors, and auxiliarySearch/Reviewmodels frozen, and train only the VLM policy\. The implementation uses verl with vLLM multi\-turn rollout and FSDP2 actor/reference workers\. Cloud\-storage paths, internal cluster identifiers, and credentials are not part of the method and are omitted\.

Table 7:RL training configuration for DocAtlas compact\-policy training\. Values reflect the default DaPO run used for the Qwen3\.5\-4B results unless stated otherwise\.CategorySettingBase policyQwen3\.5 VLM initialized from the local checkpointAlgorithmDAPO\-style GRPO; group\-normalized advantagesRolloutsn=8n\{=\}8sampled trajectories per promptEpochs and batch size1 epoch; train batch size 8; 8 GPUs per nodeLearning ratesactor learning rate1×10−61\\times 10^\{\-6\}; critic learning rate1×10−61\\times 10^\{\-6\}KL and entropytoken\-level KL coefficient 0\.01; low\-variance KL; entropy coefficient 0Clippingasymmetric DAPO clipping withϵlow=0\.1\\epsilon\_\{\\mathrm\{low\}\}\{=\}0\.1,ϵhigh=0\.3\\epsilon\_\{\\mathrm\{high\}\}\{=\}0\.3Sequence limitsmax prompt length 8192; max response length 16384Rollout enginevLLM; tensor parallel size 1; GPU memory utilization 0\.85Software stackPython 3\.12; PyTorch 2\.10; vLLM 0\.18; Transformers≥\\geq5\.5; Ray≥\\geq2\.54; flash\-attn 2\.8Reward function\.For RL training, the reward is computed from the final generated answer\. The last visible answer is the text after the last</think\>marker, if present\. If this answer does not contain a parsable\\boxed\{\}field, the reward is 0\. Otherwise, we extract the content inside the final boxed answer and apply the official LongDocURL type\-aware evaluation score:

r=ScoreLongDocURL​\(ExtractBoxed​\(a\),a⋆\)\.r=\\mathrm\{Score\}\_\{\\mathrm\{LongDocURL\}\}\\bigl\(\\mathrm\{ExtractBoxed\}\(a\),a^\{\\star\}\\bigr\)\.\(7\)The score is computed only from the extracted boxed answer and the ground\-truth answer; no separate process term is used\.

### A\.5Qualitative Trajectory Examples

Figure[4](https://arxiv.org/html/2608.07527#A1.F4)and Figure[5](https://arxiv.org/html/2608.07527#A1.F5)show two complete DocAtlas reasoning trajectories\. These examples illustrate the full interaction loop: the policy first usesSearchto localize a broad candidate region in the mutable document tree, then callsReadon selected pages or visual regions, writes source\-groundedNoteentries, optionally usesReviewto recall earlier findings, and finally produces a page\-grounded answer\. The examples are intended to make the environment dynamics concrete rather than serve as additional quantitative evidence\.

![Refer to caption](https://arxiv.org/html/2608.07527v1/x5.png)Figure 4:Qualitative trajectory example: multi\-hop evidence gathering\. DocAtlas iteratively searches the document tree, reads selected evidence pages, records intermediate findings in notes, and combines them through review before answering\.![Refer to caption](https://arxiv.org/html/2608.07527v1/x6.png)Figure 5:Qualitative trajectory example: complete DocAtlas reasoning flow\. The trajectory shows how tree search, selective multimodal reading, source\-grounded notes, and final evidence consolidation interact within one episode\.
### A\.6DocAtlas Prompt Design

This appendix summarizes the prompt material and tool\-call contracts used by DocAtlas\. The runtime system prompt is assembled from a fixed preamble, tool\-use protocol, optional memory and tree\-annotation blocks, the faithfulness rule, the final\-answer format, and the four skill descriptions\.

#### A\.6\.1System prompt template

Document context and roleYou are an expert document analysis assistant\. Answer user questions by strictly following the tool usage and reasoning protocol\. The document has been pre\-indexed into a hierarchical tree structure similar to a detailed table of contents\. The user message provides a lightweight table of contents with node IDs, titles, and page ranges, but no authoritative section content\. The agent must use tools to inspect actual document evidence\.

Tool strategySearchis the coarse filter: it performs structural tree search over the document hierarchy to locate relevant sections or page ranges\. Queries should be specific natural\-language descriptions rather than short keywords\.Readis the fine filter: it reads selected pages and returns markdown text, layout images, and optional cropped sub\-images\. The agent should read only needed pages, normally at most five pages per call\.Noterecords established findings, source\-grounded evidence, and the remaining plan\. It acts as a compact reasoning checkpoint\.Reviewrecalls previously saved notes using a focused query\. It returns only matched notes rather than a full transcript dump\.

Mandatory tool\-use protocolThe agent must call at least one tool before answering\. The tree overview alone is insufficient; factual answers must be verified by reading page content\. For specific questions, the default flow isSearch→\\rightarrowRead→\\rightarrowanswer\. For broad questions, the agent should search for key sections and read representative pages\. When search returns multiple candidates, the agent may start from the most promising subset, but should not skip unread candidates unless it can explain why the candidate set is structurally insufficient\. Page numbers in questions are treated cautiously because printed page or slide numbers may differ from physical PDF pages; search is used to resolve this mapping before reading\.

Note and Review protocolThe agent writes aNotewhenever it finds useful information: confirmed facts, key numbers, page references, negative findings, or changes in search strategy\. Every note should contain source\-grounded evidence rather than only a high\-level summary\. For multi\-hop or cross\-page questions, notes preserve partial findings so later reasoning does not rely on long transcript context\.The agent callsReviewwhen the answer requires combining evidence from multiple notes, when it needs to recall earlier findings, or before answering*Not answerable*after a multi\-step search\. Review is skipped for simple single\-page answers where all evidence is contained in the latest read result\.

Memory management and tree annotationWhen memory management is enabled, callingNotearchives earlier bulkyReadobservations into compact placeholders while preserving source\-grounded evidence in the note store\. Archived pages can be re\-read if needed\.When tree annotation is enabled, notes with explicit page references write page\-level findings back into the finest\-grained tree nodes covering those pages\. Thesepage\_findingsare partial observations from prior query\-driven reads, not complete page summaries\. LaterSearchcalls can use them as auxiliary hints while still relying primarily on the original tree structure\.

Faithfulness and abstention ruleThe agent must be faithful to the provided pages\. If the read evidence does not contain sufficient information, the final answer must be exactlyNot answerable\. When abstaining, the final\-answer line must contain onlyNot answerable; the reasoning may explain why the document lacks the evidence, but must not offer a guess or answer a related question\.

Final\-answer formatThe final response must use the benchmark format:Final answer: <shortest exact span\> Reasoning: <1\-\-3 sentence explanation with page references\> The final\-answer line should contain only the answer\. Numeric answers drop unit words unless required\. List answers use a one\-line Python list literal and preserve the document wording\. Unanswerable cases use exactlyFinal answer: Not answerable\.

#### A\.6\.2Per\-skill prompt material

Search skillSearchis the discovery step\. Given a question, an auxiliary LLM walks the document tree and selects nodes likely to contain the answer\. The harness expands selected nodes into suggested page ranges and records search history to avoid repeating the same pages\. Search does not read content; it only proposes where to inspect next\. Good queries name the target entity, aspect, and constraints, e\.g\., “Find sections discussing partisan splits on presidential ethics and transparency,” rather than a keyword such as “ethics\.”

Read skillReadis the only tool that brings document content into the conversation\. It fetches selected PDF pages as MinerU markdown or PyPDF text, with optional full\-page screenshots and cropped sub\-images\. It is used afterSearchidentifies candidate pages, when the actual page text or visual content is needed\. The prompt discourages reading more than five pages per call and encourages selective follow\-up reads for charts, figures, tables, or scanned pages\.

Note skillNoteappends a progress\-analysis note containing what was found, what remains to do, and evidence linked to page references\. The prompt requires exact quoted evidence when possible and discourages unsupported summaries\. Notes let the agent preserve important findings without carrying all page observations in active context; laterReviewcalls can retrieve relevant note bodies by query\.

Review skillReviewrecalls saved notes by query\. The harness builds compact note cards, an auxiliary LLM selects relevant cards, and the tool returns the full selected note bodies\. Review is used before final answers that combine multiple findings, before a new search when earlier notes may already contain the answer, or before abstaining after a multi\-step search\. It is not used when no notes exist or when the answer depends only on the latest single read result\.

#### A\.6\.3Tool\-call schemas

Search schemaPurpose\.Locate relevant document\-tree nodes and return suggested physical pages\.FieldTypeDescriptionquerystring, requiredDetailed natural\-language search query\.Contract\.The query should specify the entity, aspect, and constraints; short keyword queries are discouraged because tree search is LLM\-guided rather than lexical matching\.

Read schemaPurpose\.Fetch page text, page screenshots, or selected sub\-images\.FieldTypeDescriptionpagesstring, requiredPages or ranges, e\.g\.,1,3\-5,8\.with\_imagebooleanAttach full\-page screenshots\.figureslistFetch sub\-images by\(page, ref\)from prior metadata\.force\_figuresbooleanBypass the minimum\-size filter for requested figures\.zoomnumberZoom factor for page screenshots\.doc\_idstringOptional document identifier\.Contract\.pagesis the only required field\. The prompt recommends no more than five pages per call and usesfiguresonly after a previous read exposes afigure\_images\_metacatalog\.

Note schemaPurpose\.Save a compact, source\-grounded reasoning checkpoint and optionally trigger memory/tree side effects\.FieldTypeDescriptionfoundstring, requiredShort summary of established findings\.planstringRemaining gaps and next intended step\.evidencelistSource\-grounded evidence entries\.side\_effect\_policyenumOptional archive/enrich behavior override\.Evidence entry\.FieldTypeDescriptiontypeenumtext,table, orimage\.sourcestring, requiredExplicit page reference, e\.g\.,Page 5\.contentstringQuoted text, table row, or caption\.filenamestringImage filename for image evidence\.Contract\.Notes should contain page\-grounded evidence\. When tree annotation is enabled, page references in evidence allow the harness to write findings back into the document tree\.

Review schemaPurpose\.Recall previously saved notes by query\.FieldTypeDescriptionquerystring, requiredFocused description of what to recall from notes\.Contract\.Review searches only saved notes, not document pages\. It returns matched note bodies selected by an auxiliary LLM\.

## Appendix BBroader Impacts, Limitations, and LLM Usage

Broader impacts\.DocAtlas is intended to improve access to information in long documents with complex layouts and visual content, such as reports, scientific articles, manuals, filings, and policy documents\. Potential positive impacts include reducing the cost of searching and cross\-checking evidence in large document collections, improving accessibility for users who need to inspect complex documents, and enabling smaller open\-weight VLMs to perform more useful document analysis through tool\-mediated interaction instead of relying only on larger backbones\. At the same time, the system may be misused to summarize or extract information from sensitive or copyrighted documents without appropriate authorization\. It may also produce overconfident answers when retrieved evidence is incomplete or when the source document itself is ambiguous, outdated, or misleading\. For high\-stakes uses such as legal, medical, financial, or policy decisions, DocAtlas should be treated as an evidence\-navigation aid rather than an autonomous decision maker; users should inspect the cited pages and apply domain\-specific review\.

Limitations\.Our evaluation focuses on existing long\-document understanding benchmarks and may not cover all document genres, languages, scan qualities, or domain\-specific reasoning patterns encountered in deployment\. DocAtlas relies on document preprocessing, including markdown extraction, visual parsing, page\-image rendering, cropped sub\-images, and a question\-agnostic tree\. Errors in these preprocessing steps can affect downstream search and reading\. The environment also uses auxiliary LLMs forSearchandReview\. We use GPT\-5\.4 as a fixed reference auxiliary in the main comparison, and the sensitivity study shows that open\-weight and self auxiliaries remain close; still, performance and cost can depend on the quality of these frozen components\. The current RL setting trains compact Qwen policies with sparse outcome rewards and pass@16\-filtered data from LongDocURL, so further work is needed to understand scaling behavior, reward design, training stability, and transfer to broader domains\. Finally, DocAtlas improves evidence access and memory, but it does not guarantee factual correctness: the agent can still miss relevant pages, misread visual elements, write incomplete notes, or combine evidence incorrectly\.

Declaration of LLM usage\.Large language models are part of the research object studied in this paper: DocAtlas uses VLM agents, auxiliary LLMs forSearchandReview, and LLM\-as\-judge evaluation following the benchmark protocols described in the main text\. In addition, the authors used LLM\-based writing assistance only to check grammar and polish wording of the manuscript\. This writing assistance did not generate new experimental results, change the methodology, select data, perform analysis, or alter the scientific claims; all technical content, experiments, results, and conclusions were reviewed and approved by the authors\.

Similar Articles

DocAtlas: Multilingual Document Understanding Across 80+ Languages

Hugging Face Daily Papers

DocAtlas is a framework that creates high-fidelity OCR datasets and benchmarks across 82 languages, using differential rendering and synthetic generation. It demonstrates that Direct Preference Optimization improves multilingual model adaptation without degrading base-language performance.

DocsAlot

Product Hunt

DocsAlot is a documentation tool designed to be usable by both humans and AI systems.

MemoryDocDataSet: A Benchmark for Joint Conversational Memory and Long Document Reasoning

arXiv cs.CL

MemoryDocDataSet is a new synthetic benchmark of 50 micro-worlds and 1,000 QA pairs designed to evaluate AI systems on the joint task of conversational memory and long-document reasoning simultaneously. The best baseline (RAG-Both) achieves only 0.358 overall F1, highlighting a significant gap in current systems' ability to unify conversational memory with long-document navigation.