DocGallery Diagnosing Multi-Hop Visual Reasoning
in Rich Documents

Ten document domains arranged around the DocGallery wheel, with examples including clinical records, architectural drawings and historical archives.

Abstract

Multimodal models now obtain near-saturated scores on established document and chart benchmarks, which leaves little room to distinguish frontier systems or to identify where they still fail. We introduce DocGallery, a benchmark for multi-hop visual reasoning in rich documents. It comprises 120 documents rendered from agent-written source code, spanning maps, handwritten records, engineering drawings, and dense tables at a mean resolution of 7,655×6,106 pixels, and 932 questions that each require composing evidence from several regions of a page. Reference answers are computed by programs, and each question comes with its evidence regions and intermediate results. Across 18 frontier models, accuracy ranges from 40.2% to 88.7%. Accuracy declines with the length of the evidence chain, by 9 to 42 points between questions with at most three hops and those with ten or more. The more accurate models also reason more efficiently: the four most accurate models produce 638 to 1,883 output tokens per question on average, whereas three of the five lowest-scoring models produce over 18,000 and exhaust their budget on more than half of the questions. On all questions, tool access removes about a fifth of the errors of Claude Fable 5.2, GPT-6.1 Sol, and Claude Opus 5.5. DocGallery thus leaves clear headroom: no model exceeds 81% on questions with ten or more hops, and fourteen of the 18 models trail the leading model by 14 to 48 points.

Introduction

Multimodal models now carry out multi-step operations and cross-application tasks in real computer environments [22, 37]. Evaluation has moved with them: recent model releases lead with benchmarks of coding agents and delivered work, and image understanding takes up a small part of their reports [1, 7, 29]. The scores reported for it are high: those published for nine and eight recent models average 82.0% on MMMU-Pro and 85.1% on CharXiv reasoning [2, 4, 20, 21, 23, 27, 28]. Do these scores mean that image understanding is solved?

These scores come from images that typically show a single chart or figure. The images in the tasks of such agents are often rich documents such as reports, engineering drawings, forms, and maps, where small text, tables, and graphics share one high-resolution page [12, 24]. An answer often depends on several places at once: on a metro fare sheet, the cost of a day of travel depends on the routes on the map, the zone fares in a table, and a daily cap in a note. We refer to reading each piece and carrying its result into the next as multi-hop visual reasoning.

In this work, our goal is to measure how reliably frontier models perform multi-hop visual reasoning over rich documents and to identify what limits them. This requires a benchmark whose questions are difficult for these models and whose reference answers are exact. We address the following questions:

  1. How can questions be made difficult enough to separate frontier models?
  2. How can reference answers remain exact as pages become denser and reasoning chains longer?
  3. What limits the accuracy of current models on such questions?
Explore the airport fare example →
Table 4. The same models on established benchmarks and on DocGallery (%). MMMU-Pro and CharXiv reasoning scores without tools, as published by developers [4, 20, 21, 23, 27, 28]. †From another developer’s model card. ‡Independent run [2].

The DocGallery Benchmark

Design Principle

A benchmark that separates frontier models and shows what limits them must meet three requirements: (1) difficulty, with questions hard enough to separate these models without being selected by their failures; (2) exactness, with reference answers that remain exact as pages become denser and reasoning chains longer; and (3) granularity, with enough questions, each with its hops recorded, to analyze accuracy by the reasoning a question requires.

Manual annotation makes the three costly to obtain together [11, 12, 24]. DocGallery meets them by rendering each document from source code that records the facts it displays. (1) Page density and the number of hops are set in the source, so difficulty requires no selection on model performance. (2) Each reference answer is computed from the recorded facts by a program, so exactness does not depend on annotation effort. (3) The same source records the hops, evidence regions, and intermediate results of every question. Whether the rendered page visibly supports each answer is verified separately (Sec. 3.3).

Statistics

DocGallery comprises 120 documents in ten domains (Figure 1) and 932 questions (Tab. 12). The images average 7,655×6,106 pixels, which at 300 dpi is a sheet of 65×52 cm, between the A2 and A1 formats used for drawings and maps. On average 77.1% of the recognized text lines in an image are at most 1% of its long edge in height. This text is small relative to the page and of ordinary size in pixels: the median line is 41 pixels tall at native resolution, against 12 to 44 pixels in the benchmarks measured in Tab. 1 (Sec. B.2). The reference steps of a question cite a median of eight evidence boxes, which cover a median of 3.94% of the image, while the smallest rectangle enclosing them covers 46.01%; the evidence is small in area and dispersed across the page. The questions have at most three hops (93), four to six (411), seven to nine (328), or ten or more (100).

Construction

Task

The input consists of a rendered document image and a question, and the model returns an answer in a prescribed format. Answering requires reading text or graphics, relating evidence across regions, and applying relations or rules specific to the document. Each question is associated with a dependency graph that connects visible facts to intermediate results and to the final answer. We refer to each step in this graph as a hop; the result of one hop determines what the next hop must read or compute, and the hop count of a question is the number of steps in its reference solution.

Document generation

Document generation has four steps (Figure 2). (1) World facts: a fact ledger specifies the entities, values, rules, states, and spatial relations the document must present. (2) Structure: a coding agent plans the layout, writes it in HTML and CSS, sets fonts and text, and checks the measured boxes for overlap. (3) Key elements: content such as handwriting, maps, instrument panels, and 3D scenes is produced by dedicated code. For the field diary (DG004, panel A), the agent takes a scanned sample of each character from the CASIA-HWDB1.1 handwriting database (Liu et al., ICDAR 2011), varies its shape, and places it on the ruled page; for the station diagram (DG012, panel D), it builds a 3D model from the concourse and platform plans and anchors bilingual labels to the rendered structures. (4) Rendering: the source is rendered to the final image.

Vector figure ↓

Question construction

Question construction also has four steps (Figure 3).

Vector figure ↓
  1. Plan the question

    a question is planned over facts of the page, such as values, rules, and states.

  2. Build sub-questions

    the question is split into reading sub-questions, which take facts from the page, and reasoning sub-questions, which use earlier answers.

  3. Compose hops

    each sub-question becomes a hop that records its dependencies and evidence regions.

  4. Validate & Revise

    every hop must affect the answer, a shortcut that skips a hop must fail, and the reference program and a second one, written separately with a different method, must agree on one exact answer; a failed check returns the question to the step at fault.

For each question we retain an executable solution program, the reference answer and intermediate results it produces, and the locations of the evidence in the final image. Sections A and B, with their tables and figures, are in the appendix.

Six questions   /   4 to 9 hops

Follow a hop chain

Each question is first designed on its source page: the regions that hold the facts it needs are framed, linked into hops, and composed into one question. It is then solved in the order of the reference solution: the view moves to the evidence of every hop, the results gather along the bottom, and arcs mark the earlier results that a hop uses. Circles take facts from the page; squares also use earlier results.

Results and Analysis

Setup

We evaluate 18 recently released multimodal models (Tab. 2). Each model receives the document image and the question and has no tools. Pages are sent at a resolution at which their small text was verified to be legible, as overlapping tiles with an overview when they exceed a model’s single-image limit (Sec. A). Reasoning effort is listed per model in Tab. 2. All models share a cap of 25,600 output tokens, reasoning included, and a response that reaches the cap without a final answer is scored as incorrect. A program scores the answers against the references; no model acts as a judge.

Main Results

Accuracy ranges from 40.24% to 88.72% (Tab. 2). Gemini 4 Argon and Claude Fable 5.2 lead with 88.72% and 86.27%, followed by GPT-6.1 Sol (82.30%) and Opus 5.5 (80.58%). Eight models answer fewer than half of the questions, and the leading model misses 11% of them.

Comparison with established benchmarks. Table 4 lists the MMMU-Pro [40] and CharXiv reasoning [36] scores published for nine of these models. They span 11.4 points on MMMU-Pro and 15.1 points on CharXiv, against 41.8 points on DocGallery (40.1 among the eight models with a CharXiv score). Seed-2.1-Pro and Seed-2.1-Turbo differ by 1.5 and 2.9 points on the two established benchmarks and by 29.4 points here.

Accuracy by number of hops

Without tools · Table 2 · all 932 questions

    Table view: all 18 models
    Accuracy (%) without tools, from Table 2
    ModelAll1–3 hops4–67–910+
    Gemini 4 Argon88.7295.7091.4686.2879.00
    Claude Fable 5.286.2790.3286.6286.2881.00
    GPT-6.1 Sol82.3096.7785.4077.7471.00
    Claude Opus 5.580.5886.0284.4378.0568.00
    Gemini 3.8 Flash74.3688.1779.8171.0450.00
    Kimi K3.1 Pro72.7583.8778.8366.7757.00
    Seed-2.1-Pro71.5783.8777.1368.2948.00
    Qwen3.8-Max65.4577.4272.2661.2840.00
    DeepSeek-Flash60.4166.6767.6456.4038.00
    Qwen3.8-27B57.0869.8965.2152.1328.00
    GLM-5.3-Flash49.3659.1454.7444.8233.00
    MiMo-V2.6-Pro49.2565.5954.7443.6030.00
    Ling-3.2-Flash47.6460.2254.9940.2430.00
    Step 5 Preview42.6052.6950.1236.2823.00
    Seed-2.1-Turbo42.1750.5450.8535.3721.00
    MiniMax-M3.1-Flash40.4555.9146.9632.9324.00
    LongCat-2.540.2456.9947.6932.6219.00
    Tencent Hy440.2461.2945.2633.5422.00

    Human reference

    Three graduate students from different fields solve a 93-question sample from the image alone, with non-AI aids such as a calculator (Sec. 3.3); their familiarity with the subject matter of these questions is high, medium, and low (Tab. 3). They answer 84.95%, 74.19%, and 63.44% of the questions, in 22 minutes per question on average; Gemini 4 Argon and Fable 5.2 score above the first solver, and ten models score below the third. With the evidence regions marked, they gain 8 to 15 points (Tab. 10).

    Human evaluation · Table 3
    Table 2. Main results on DocGallery. Accuracy (%) without tools on the 932 questions, for all questions and by number of hops (93, 411, 328, and 100 questions). Tokens is the mean number of output tokens per question, reasoning included, and Capped is the share (%) of questions that reached the 25,600-token cap. With tools: on a 93-question subset, in Claude Code for the Claude models and in Codex for the others; tokens include tool rounds, and ∆ is the change against the run without tools on the same questions (points of accuracy, output tokens). Best and second best model.
    Table 3. Human solvers on a 93-question sample. Accuracy (%) from the image alone, by number of hops; Evidence: with the evidence regions marked. Minutes: mean time per question.

    Analysis

    Number of hops

    Short chains are within reach of the leaders: three models answer 90.3% to 96.8% of the questions with at most three hops. With ten or more hops every model is less accurate (Tab. 2), by 9.3 points (Fable 5.2) to 41.9 points (Qwen3.8-27B). Under a constant success rate per hop (Sec. A), the fitted rates range from 0.885 (LongCat-2.5) to 0.989 (Fable 5.2), and compounding turns this gap of 0.10 per hop into 0.90 against 0.29 over ten hops. Chain length also reorders the leaders: GPT-6.1 Sol ranks first with at most three hops (96.8%) and third with ten or more (71.0%), where Fable 5.2 leads (81.0%).

    Output tokens

    Across the 18 models, the more accurate models also reason more efficiently: accuracy is negatively correlated with the mean number of output tokens per question (Spearman ρ = −0.83; Figure 4a). The four most accurate models produce between 638 (GPT-6.1 Sol) and 1,883 (Gemini 4 Argon) output tokens per question, whereas Hy4, LongCat-2.5, and Seed-2.1-Turbo produce more than 18,000 and reach the cap on 51% to 56% of the questions. Token efficiency is also found to vary widely among models on text reasoning and coding [9].

    Two kinds of failure

    Figure 4b separates the questions a model answers incorrectly from those on which it reaches the cap. For Hy4, Seed-2.1-Turbo, and LongCat-2.5, reaching the cap accounts for 86% to 94% of the errors. MiniMax-M3.1-Flash has nearly the same overall accuracy as these three, completes 88% of the questions, and answers 46% of the completed ones correctly.

    What long traces contain

    In the three traces of Figure 5, Hy4 repeats one block ten times until the cap ends the response, Seed-2.1-Turbo restates a correct total nine more times, and LongCat-2.5 alternates between two readings of a fee table until the cap; such repetition loops are also reported in prior work [10, 26].

    Larger budgets

    For the five models that reach the cap on more than 25% of the questions, we reran every capped question with a cap of 51,200 tokens (Figure 4c, Tab. 8). Hy4, Seed-2.1-Turbo, and LongCat-2.5 then answer 37%, 32%, and 24% of these questions correctly, and their overall accuracy rises from 40.2%, 42.2%, and 40.2% to 61.1%, 59.3%, and 52.7%. The cap thus accounts for 12 to 21 points of their deficit in Tab. 2: on these questions the models reach the correct answer once given more tokens. We conjecture that post-training contributes to this deficit, since reinforcement learning with verifiable rewards is reported to raise the efficiency with which a model samples correct solutions, without eliciting reasoning patterns beyond those of its base model [41]. At twice the budget, 63% to 76% of the rerun questions remain unsolved, and the three models stay 28 to 36 points below Gemini 4 Argon.

    Tool access

    In the tool setting, a model works in a coding agent, Claude Code for the Claude models and Codex for the others, and can run code to crop, rescale, and view page regions; the cap covers all rounds (Sec. A). On all 932 questions, tool access raises Fable 5.2 from 86.27% to 88.73%, GPT-6.1 Sol from 82.30% to 85.62%, and Opus 5.5 from 80.58% to 85.19% (Tab. 11), which removes 18% to 24% of their errors; 11% to 15% remain wrong. On the 93-question subset of Tab. 2, nine of the 18 models improve with tools and eight decline; Ling-3.2-Flash and Step 5 Preview, which decline most, reach the cap on 62% and 68% of these questions. Some losses come from the answer format: after several tool rounds, models add notes to the final answer or write invalid JSON, which is scored as incorrect even when the values are right.

    Longer responses, lower accuracy

    Across the 18 models, accuracy is negatively correlated with the mean number of output tokens per question. The halo around a model marks the share of its questions that reached the 25,600-token cap; on the right, the questions of each model split into those answered correctly, those completed with an incorrect answer, and those ended by the cap.

    Accuracy against mean output tokens per question
    Outcomes under the 25,600-token cap
    Table view

    Limitations

    Generated documents cover a bounded range of layouts and tasks, and conclusions about real documents need external validation. Reference answers are exact with respect to the source, and their visual support is checked on a 10% sample (Sec. 3.3). The shared cap of 25,600 output tokens lowers the scores of models that reason at length, by 12 to 21 points for three of them. Tool runs use two agent environments, and tiling differs across APIs.

    Conclusion

    DocGallery renders rich documents from source code, which keeps reference answers exact while pages become dense and reasoning chains long. Eighteen frontier models score between 40.2% and 88.7%, and none exceeds 81% on questions with ten or more hops. Accuracy falls as evidence chains lengthen, and the gap between models widens. More accurate models also reason more efficiently, and several exhaust the budget before answering. On all questions, tool access removes about a fifth of the errors of Fable 5.2, GPT-6.1 Sol, and Opus 5.5, which still miss 11% to 15%.

    Full-set accuracy with tool access Section 4.3 · 932 questions
    ModelWithout toolsWith tools
    Claude Fable 5.286.27%88.73%
    GPT-6.1 Sol82.30%85.62%
    Claude Opus 5.580.58%85.19%