Authors: Ahmed Nassar, Matteo Omenetti, Christoph Auer, Cesar Berrospi Ramis, Michele Dolfi, Said Gürbüz, Viktor Kuropiatnyk, Nikolaos Livathinos, Maksym Lysak, Ingmar Meijer, Tim Strohmeyer, Panos Vagenas, Valery Weber, Ahmetcan Yavuz, Daniel DeAlcala, Peter El Hachem, Vittorio Pippi, Emmanuele Vivoli, Peter Staar
We present Granite Docling V2, a family of two compact vision-language models, Granite Docling V2 500M and Granite Docling V2 2B, designed around one principle: a document's representation should preserve its structure as well as its text. Each model converts a page image directly into DocLang, a structured markup language in which every element carries its type, its position on the page and its place in the reading order, from headings, paragraphs and inline math to tables with full cell structure, formulas, code, nested lists, pictures and their captions. DocLang is also designed for compact tokenization: for instance, location coordinates map to single tokens, and structures like tables take fewer tokens than in HTML. The same representation is used for annotation, training and evaluation. Our data is labeled and curated in DocLang; both models are trained in four stages: vision-language alignment through captioning, document pre-training that teaches page-to-DocLang conversion under a resolution and context curriculum, supervised fine-tuning, and reinforcement learning with verifiable rewards computed on the DocLang output. The 2B model is built from Granite 4.0 1B, pruned and distilled for faster decoding; the 500M model is built from Granite 4.0 350M and adds a learned density router that allocates additional vision tokens only to dense pages. For reinforcement learning we introduce element-level credit assignment, prefix-conditioned rollouts and a validity gate. Finally, we describe our evaluation framework, which annotates benchmarks natively in DocLang and builds on the same representation as the models, so that every system is scored on the full structure of a page rather than on flattened text. Because we revise the ground truth of public benchmarks, these scores are not comparable with those reported on the original benchmarks.
Figures & tables
Figure 1: Accuracy against speed. Accuracy is page-content 1− NED (all text on the page, including table cells, formulas and code), pooled over ten benchmarks (20,502 pages) whose ground truth we converted to DocLang and reviewed ( Section 8 ); scores are not comparable with the original benchmarks. Speed is pages per second on one H100, peak over 8, 64 and 256 concurrent pages ( Section 10 ). Bubble area is the parameter count; a double ring marks two-pass systems. Granite Docling V2 2B and Granite Docling V2 500M use speculative decoding; Granite Docling V2 2B Flash and Granite Docling V2 500M Flash have the accuracy of Granite Docling V2 2B and Granite Docling V2 500M and are available in the IBM watsonx editions of Docling . Unlimited-OCR 2 runs on SGLang, the others on vLLM. The arrow marks the step from Granite Docling 258M to Granite Docling V2 500M. The stepped lines are Pareto frontiers, dashed for the other systems and solid with Granite Docling V2 included; the shaded area is reached only with Granite Docling V2.
Figure 2: A page and its DocLang 0.9 (abridged). Every element opens with its box, four location tokens x0,y0,x1,y1 measured from the top-left corner on a 512×512 grid (gray chips; each is a single token), followed by its content; a caption sits inside the element it describes. Inline formulas and scripts are marked inside running text, and tables use OTSL cell tokens with header cells (ched), filled cells (fcel) and row breaks (nl). Colors match element types between page and output.
Prompt
Output
<doclang>
The full page: every element with its type, location and content.
<doclang> [<detailed>]
The full page, plus a description of each picture.
<doclang> [<table>]
Only the tables. Any other single task works the same way.
<doclang> [<table>, <formula>]
Only tables and formulas. Any combination of tasks, in any order.
<doclang> [<ocr>, <layout>]
Adding layout adds the location tokens; without it the output carries content only.
Table 1: Example prompts accepted by Granite Docling V2. The table is illustrative, not exhaustive: any combination of the supported tasks (ocr, table, formula, code, picture, chemistry, layout), in any order, is a valid prompt. A task that has no content on the page yields an empty document, which the model learns from negative examples during training.
Figure 3: Four prompts on the page of Figure 2 , with location tokens shown by their values as there. Task lists select content: only the table or only the formula (left), or the text with its boxes (top right). detailed adds what is not printed on the page, here a picture description (bottom right).
Granite Docling V2 500M
Granite Docling V2 2B
Parameters
0.54B
2.2B
Vision encoder
SigLIP2-base/16 (12 layers)
SigLIP2-so400m/16 (27 layers)
Pixel shuffle ratio / tokens per tile
4 / 64 (fine route: 2 / 256)
2 / 256
DeepStack taps (ViT → LM)
3, 7, 10 → 0–2
8, 16, 24 → 0–2
Language model
Granite 4.0 350M, 28 layers
Granite 4.0 1B, pruned to 24 layers
Hidden / FFN width
1024 / 2048
2048 / 8192
Table 2: The two Granite Docling V2 configurations.
Figure 4: Granite Docling V2 architecture. The page is cut into 512×512 -pixel image tiles plus a global thumbnail when it spans more than one tile; each tile is encoded by SigLIP2, compressed by pixel shuffle and an MLP, and placed in the decoder input. DeepStack adds intermediate encoder features to the first decoder layers. In Granite Docling V2 500M a density router on the pooled tile features decides whether the page is re-encoded on the fine route.
Figure 5: The pool behind the data engine, from the Docling data board. (a) Document types: 47 million full pages were clustered on visual embeddings into 4,974 clusters named by a language model (2,855 distinct names); the names are grouped into genres by keyword rules, each block is sized by its pages and shows its largest types. Page-element images and scans are not clustered. (b) Annotated elements by class over the 76 million pages of the pool, 2.0 billion in total.
Language or script
Share
Language or script
Share
English
33.8%
French
2.4%
Chinese
16.6%
Arabic
2.0%
Japanese
14.7%
Portuguese
1.9%
Other Latin script
10.5%
Dutch
1.8%
German
4.2%
Polish
1.1%
Cyrillic
3.6%
Korean
0.9%
Table 3: Languages of the pages with text in the full pre-training pool (approximate estimate from page samples, covering nearly all of the 76 million pages). “Other Latin script” groups the Latin-script languages that each account for less than 1% (for example Indonesian, Hungarian, Czech, Romanian, Danish, Swedish, Catalan and Turkish) together with pages whose language the detector could not decide with confidence. “Other non-Latin scripts” are Greek, Thai, Devanagari and Hebrew.
Figure 6: The four training stages of Granite Docling V2.
Figure 7: Two mechanisms of Stage 4. (a) On dense newspaper pages, completions continue a shared ground-truth prefix cut at an element boundary, so that every group reaches the late part of the page where columns are skipped and pages closed early. (b) Matching predicted to ground-truth elements turns one sequence reward into per-token advantages; an invalid output gets zero on every reward except tag balance.
Family
Rewards (weight)
Content
content score of the evaluation scorer (15); recall (6); precision (3); F1, BLEU, edit distance on DocLang and on its Markdown export (1 each)
Structure
DocLang schema validity; tag balance (ungated); tag-sequence match; per-type element counts; element routing; picture skeleton (1 each); prompt compliance (0.25)
Repetition
n-gram repetition (4); repeated blocks (4); duplicated blocks (3); loop-free fraction (1.5), all relative to the ground truth’s own repetition
Table 4: The 37 rewards of Stage 4 and their weights. All rewards except tag balance are zeroed for completions that fail the validity gate.
Figure 8: The evaluation framework. Benchmarks are re-annotated in DocLang under one policy, all system outputs are mapped to DocLang and scored by the same code, which also provides the RL content reward, and per-page score distributions and predictions can be inspected for the public benchmarks in the Docling Benchmark Explorer.
Benchmark
Scope
Pages
Access
Reference
OmniDocBench 1.6 [ 45 ]
10 document types, Chinese and English
1,649
public
gold
DocLayNet v1 [ 47 ]
6 categories of English documents
4,999
public
gold
MDPBench [ 35 ]
17 languages (subset of 3,400 pages)
673
public
silver
ParseBench [ 67 ]
charts, layouts, tables, text
2,023
public
silver
ParseBench v2 [ 67 ]
charts, forms, tables, layouts, text
4,297
public
bronze
olmOCR-Bench [ 48 ]
math, old scans, tables, tiny text
1,403
public
silver
Table 5: Evaluation benchmarks. All ground truth is annotated natively in DocLang and verified as described in Section 8 . All benchmarks are reviewed and annotated by humans, but to different degrees; the Benchmark Explorer rates the reference quality of each benchmark as gold (human annotations, rigorously reviewed and cross-checked), silver (semi-automated annotations with detailed human review) or bronze (semi-automated annotations with partial human review), and we recommend checking this rating before comparing scores across benchmarks.
Params
ODB
DLN
DLN
Creative
MDP
Parse
Parse
olm
Real
VAREX
All
Speed
(B)
1.6
v1
v2
Layouts
Bench
Bench
v2
OCR
DocB.
(pages/s)
LightOnOCR 3 0.8B [ 54 ]
0.8
66.1
93.3
88.5
97.2
50.7
91.1
80.9
96.6
79.5
84.0
84.4
9.80
LightOnOCR 3 4B [ 54 ]
4
76.3
94.0
90.9
97.3
61.0
90.8
82.0
94.5
71.4
86.3
86.3
4.33
Unlimited-OCR 2 [ 61 ]
3.3
84.8
96.5
90.5
97.4
58.9
87.4
85.5
95.4
77.2
86.9
88.2
6.06
Chandra OCR 2 [ 13 ]
5.3
91.6
97.9
93.6
91.6
67.1
88.4
83.1
97.8
77.3
77.9
88.4
1.80
Nemotron 3.5 Parse [ 11 ]
0.6
92.1
97.0
93.2
97.0
82.1
93.8
86.6
96.5
78.0
87.8
91.6
20.36
Table 6: Page-content 1− NED (%) on the ten benchmarks of the evaluation framework ( Section 8 ); “All” pools all 20,502 pages, weighted by characters. Page content covers all text on the page, including table cells, formulas and code. Scores are computed against our revised ground truth and are not comparable with scores published on the original benchmarks or by the systems’ authors. Best per column in bold, second best underlined. Speed is the peak pages/s on one H100, measured with the protocol of Section 10 . Granite Docling V2 2B Flash and Granite Docling V2 500M Flash have the accuracy of Granite Docling V2 2B and Granite Docling V2 500M and are available in the IBM watsonx editions of Docling . ODB: OmniDocBench; DLN: DocLayNet; MDP: MDPBench; olm: olmOCR-Bench; Real: RealDocBench.
Tables
Formulas
Code
Layout
TEDS
Matched (%)
1 − NED
1 − NED
TORE F1
LightOnOCR 3 0.8B
87.7
72.3
95.4
81.0
80.7
LightOnOCR 3 4B
87.2
74.3
95.5
79.7
81.2
Unlimited-OCR 2
90.4
69.2
95.9
79.6
87.0
Chandra OCR 2
92.1
70.2
97.2
80.5
81.7
Nemotron 3.5 Parse
88.0
71.2
83.8
78.7
86.5
Table 7: Scores by element type, pooled over the ten benchmarks (%), from the Benchmark Explorer. TEDS is averaged over the tables a system matched and should be read together with the share of the 12,671 reference tables it matched. Formulas and code are 1− NED on the formula and code text, weighted by characters, over the pages that contain them (about 1,450 and 110). Layout is TORE F1 averaged over pages. Granite Docling V2 2B Flash and Granite Docling V2 500M Flash score as Granite Docling V2 2B and Granite Docling V2 500M. Best per column in bold, second best underlined.
Content
Matched content
Tables
Layout
Benchmark
Pages
F1
1 − NED
F1
1 − NED
TEDS
F1
OmniDocBench 1.6
1,649
95.7
95.6
97.4
97.2
90.5
92.3
DocLayNet v1
4,999
98.2
98.2
99.1
99.0
89.8
94.9
DocLayNet v2
2,067
95.2
95.8
97.1
97.8
94.3
81.3
Creative Layouts
1,034
97.6
97.7
99.2
99.3
95.3
87.5
MDPBench
673
89.9
92.5
93.5
96.2
90.6
96.1
Table 8: Granite Docling V2 2B on the benchmarks of the evaluation framework (%). Content scores are character-weighted over all page content; matched content is restricted to matched elements; TEDS is averaged over the matched tables. Scores are computed against our revised ground truth ( Section 8 ) and are not comparable with scores published on the original benchmarks or by the systems’ authors.
Model
Checkpoint
ODB 1.6
DLN v1
DLN v2
All
Invalid
Granite Docling V2 500M
Stage 3 (SFT)
88.4
94.8
88.9
87.5
184
Granite Docling V2 500M
Stage 4 (RL)
93.6
97.3
94.8
94.0
46
Granite Docling V2 2B
Stage 3 (SFT)
94.1
97.1
93.8
94.5
94
Granite Docling V2 2B
Stage 4 (RL)
95.6
98.2
95.8
95.8
14
Table 9: Page-content 1− NED (%) after Stage 3 and after Stage 4, on OmniDocBench 1.6, DocLayNet v1 and v2 and pooled over all ten benchmarks; “Invalid” counts the pages whose output cannot be parsed. Granite Docling V2 500M is run with its density router. Both checkpoints use the tiling of Section 5 : up to 32 tiles, and 54 for two-page spreads. The better value of each model is in bold.
Concurrent pages
Pages/s
8
64
256
Granite Docling 258M
–
9.60
12.90
Granite Docling V2 500M, no drafting
4.10
11.38
14.19
Granite Docling V2 500M, multi-token prediction
6.45
15.67
18.49
Granite Docling V2 2B, no drafting
2.48
5.86
6.80
Granite Docling V2 2B, multi-token prediction
4.64
9.52
10.07
Table 10: Serving speed (pages/s) on one H100 behind a vLLM server, over the 2,078 ParseBench pages (greedy decoding, median of two timed passes). 262 pages hit the 258M’s context limit, which shortens its runs. Concurrent pages: pages the client sends at the same time.
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 9: Score distribution and page filters. The open Pages menu shows reference-content and benchmark filters above the per-model box plots and histograms.
Figure 10: Scores by benchmark. Each spoke shows mean character edit similarity on one benchmark, with pages weighted by character count. The radial scale is fitted to the data and starts at 0.5 in this view.
Figure 11: Paired model comparison. Each tile counts pages in a pair of character edit similarity score intervals for the selected models. The tally groups pages by the score gap. Clicking a tile opens the page inspector for the selected score gap.
Figure 12: Page inspector. The reader can inspect any page of the chosen benchmark and compare model predictions with the reference annotations in several views.
Vision-Language Models (VLMs) parse documents end-to-end but frequently break down on layouts unlike those seen in training. We attribute this to a two-hop bottleneck: before the decoder can extract content (Hop 2), it must first classify and localize the enclosing layout entity (Hop 1), and when the first hop fails the second collapses into omissions, malformed structure, or autoregressive repetition. We pre-resolve Hop 1 outside the decoder by running a lightweight RT-DETR detector, serializing its outputs in the parser's native DocTags vocabulary, and injecting them into the prompt alongside the full page image. Unlike analyze-then-parse approaches that crop the page, or prior prompt-level priors written in plain text, our prior shares the decoder's generation space and leaves the global image in view as a fallback when detections are noisy. On a 10k-page structural out-of-distribution benchmark, markdown F1 rises from 0.37 to 0.92; on the Chinese subset of OmniDocBench, table TEDS rises from 0.01 to 0.36; and on the 26k-page ViDoRe V3 benchmark, infinite-loop decoding failures drop across every industrial domain tested. These gains cost 15% wall-clock latency and a median of 74 prompt tokens, with no architectural change to the base VLM. An attention-level analysis further reveals a bimodal phase shift in which the decoder attends to injected layout tokens when emitting structure and to image patches when emitting content, consistent with the two-hop bottleneck being alleviated. Model weights will be released to support reproducibility.
Peter El Hachem, Ahmed Nassar, A. Said Gurbuz +2
ETH Zurich Rämistrasse, Switzerland · IBM Research Rüschlikon, Switzerland
Answering questions over long, visually rich documents demands both cross-page structural reasoning and fine-grained visual understanding. Existing approaches sacrifice one for the other: retrieval-augmented methods fragment documents and lose inter-page structure; monolithic vision-language models preserve structure but scale poorly beyond a few pages. This impasse stems from a false premise: that the macroscopic task of evidence retrieval and the microscopic task of detailed reasoning must either be split into separate systems or be processed identically. By decoupling their perceptual resolutions rather than their architectures, a single model can achieve the structural holism of monolithic processing alongside the efficiency of targeted retrieval. UniDoc realizes this through two resolution-adaptive stages: a Fast Reading stage processes all pages at low resolution to structurally identify evidence pages, and a Focused Thinking stage re-processes only those pages at high resolution for multimodal inference. To train this pipeline, we construct 30K multi-hop reasoning instances with stage-level supervision. On MMLongBench-Doc, UniDoc yields relative accuracy gains of 55.7% on Qwen2.5-VL-7B and 16.9% on Qwen3-VL-8B, while significantly reducing token cost relative to uniform high-resolution processing. Error analysis identifies page retrieval and fine-grained visual reasoning as the remaining bottlenecks, delineating concrete targets for future work.
Qixin Xu, Haozhe Wang, Che Liu +2
Tsinghua University · University of Waterloo · The Hong Kong University of Science and Technology +1
Multi-page document vision-language models encode each page independently, creating a feature-level discontinuity at page boundaries: visual tokens are formed without access to content on adjacent pages, and the language model must reason over these page representations formed in isolation. We introduce DocSEAM (Document Selective Enrichment via Anchored Masking), a lightweight module inserted between a pretrained vision encoder and the language model that injects the inductive bias of local cross-page context into visual representations. For each page, DocSEAM forms a local triplet with its two neighbors, applies center-anchored masked self-attention with directional salience gates to fuse information from neighbor pages, and returns only the enriched center-page tokens, leaving the visual token count unchanged. After a supervised cross-page warm-up and multi-page fine-tuning with DocSEAM frozen, our 9B-parameter model achieves state-of-the-art results among the evaluated open-weight models of up to 10B parameters on five multi-page document VQA benchmarks. We further show that under controlled re-pagination, DocSEAM reduces sensitivity to boundary placement and improves cross-page span localization
Hoang-Nhat Nguyen, Chen Change Loy
S-Lab, Nanyang Technological University · Synvo AI