Building Grounded Document Intelligence

REPLICA

ICDAR 2026 Oral

M3Grounder

CVPR 2026

DoCoG

ECCV 2026 Spotlight

DocLayout-VL

ECCV 2026
BharatGen IIIT Hyderabad
Part 1 of 2

REPLICA

An Agentic Framework for Visually Faithful Document Reconstruction · ICDAR 2026 Oral

RR
Raghuveer R*
AS
Anirudh Srinivasan*
VK
Venkata Kesav Venna*
SS
Sreevatsa S
AJ
Aryan Jain
SK
Sahithi Kukkala
RK
Ravi Kiran Sarvadevabhatla
* equal contribution  ·  BharatGen · IIIT Hyderabad  ·  replica-agents.github.io
Part 2 of 2

From rebuilding to grounding

M3Grounder

CVPR 2026

DoCoG

ECCV 2026 Spotlight

DocLayout-VL

ECCV 2026
BharatGen IIIT Hyderabad CVPR 2026 ECCV 2026
The problem

Why grounding matters

72.0 fL   (83–101) lab report Q: “Which value is abnormal?” A: “the MCV of 72.0 fL [GROUND]”

Verify at a glance

one look, not a re-read

Audit & cite

healthcare · legal · finance

Act on regions

redact it, extract it, click it

The status quo — and where it cracks

How grounding works today

Language model four more tokens, nothing special <box>212, 88, 410, 236</box>
<polygon>212,88, 216,91, 221,97, 228,104, 236,110, 247,114, 259,116, 274,115, 291,112, 309,107, 328,101, … hundreds more … 🙁

Q: “What share does Mumbai hold?” → A: 7.7% — now show the evidence

Paris Mumbai Sydney the box grabs Paris + Sydney too Paris Mumbai Sydney the mask: Mumbai’s wedge — nothing else bbox-based mask-based

Too many tokens

hundreds of coordinates per span

Nothing ties them to the page

just next-token predictions — they can be hallucinated

Rectangles overshoot

pie wedges, curved text, diagram parts

Evidence is plural

one box ≠ two places

Paper 1 · In one picture

Any shape, one span or many

Single-span grounding on a map
(A) one span: <e>River Thames</e>[GROUND] → the curved river itself — no box could do this. The model writes the <e>…</e> span tags itself, then the pointer.
Multi-span grounding on a chart
(B) multi-span: the logo and three city rows each get their own mask, in one answer.
Paper 1 · In one picture

The same evidence, three granularities

Phrase, line and block granularity on a bank statement
(C1)–(C3) phrase ⊂ line ⊂ block on a bank statement — cite the number, redact the transaction row, or chunk the whole table. Same [GROUND] token, three nested masks.
Paper 1 · The obvious approach first

Why not just chain two tools?

tool 1 · OCR reads the page OCRtool 1 ANNUAL FEST 5TH YFAR CE1F8RAT TUG OF WAR COMPETITION SACK RACE COMPETITION DECORATIVE BIKE CONTEST POLE CLIMBING COMPETITION LOCATION: SCHOOL FIELD TIME: 4PM-7PM curved banner misread (illustrative) Q: What milestone is being celebrated? A: 5th Year Celebrations 2 · look up the answer in the OCR text “5th Year Celebrations” — no line matches, so no box no box ✗ SAMtool 2 no mask ✗ one OCR misread breaks the chain · SAM never sees the right region · nothing downstream looks at the pixels again
Paper 1 · The idea

Architecture

M3Grounder architecture

The VLM answers normally, dropping a [GROUND] after each cited span. Three small heads turn each token’s hidden state into three SAM prompts → three nested masks.

backbones: InternVL3.5-8B / Qwen3-VL-8B · segmenter: SAM, backbone-agnostic · grounding adds +63 ms per sample (supplement)

Paper 1 · Watch it run

The forward pass

Paper 1 · Training

Two document-specific losses

𝓛lmanswer text+ 𝓛segDice + BCE per mask+ 0.5 · 𝓛bleednew+ 0.5 · 𝓛hiernew

𝓛bleed · bleed suppression

SAM spills onto icons and graphics. Penalise every predicted mask pixel outside the ground-truth text.

The mask for '1 billion active users' spills onto the Facebook bar; the spill is penalised

𝓛hier · hierarchical enclosure

Phrase, line and block are three separate predictions. Penalise a finer mask outside its coarser one: phrase ⊂ line ⊂ block.

A phrase mask overflowing beyond its line A line mask overflowing beyond its block, into the next column
Paper 1 · Data engine · recap from Part 1

Every element of a Fid-HTML page is addressable

Govt Circular PostAssistant Engineer Last date15 March 2024 Fee₹ 500 e47 element e47 text“15 March 2024” structure<td> in row e46, table e40 positionits box on the page stylebold ide47 → its mask

An LLM can cite e47 instead of writing a coordinate.

Paper 1 · Data engine · the design choice

Why Fid-HTML + LLM makes better QA

what the LLM reads — Fid-HTML <h1 id="e12" style="font-size:22px">Govt Circular</h1><table id="e40" style="left:88px; top:412px"> <tr id="e46"> <td>Last date</td> <td id="e47" style="font-weight:700">15 March 2024</td> </tr></table> Explicit structure rows and cells, not inferred Position and style placement, bold, size are kept Exact text the page’s own words, not “March 15, 2024” Addressable evidence the answer cites e47 — its mask
so

Perception first, reasoning second — and HTML is what LLMs already read. 2M grounded QA, no coordinate written by a model.

Paper 1 · Data engine · layout documents

Training data: two ways to make grounded QA

DIRECT · image → frontier VLM → grounded QA one VLM does everything, coupled read the text · infer the layout · recover structure · reason write the question · ground the answer Q: “What is the last date for application?” A: 15 March 2024 + a box the model guessed if any step is wrong, nothing shows it OURS · image → Fid-HTML → LLM → grounded QA REPLICAperception only <h1 id="e12">Govt Circular</h1> <td id="e47" style="bbox:…"> 15 March 2024 </td> exact text · structure · geometry · style LLMreasoning only Q: “What is the last date…?” A: 15 March 2024 cites e47 ID → Hi-SAM mask — no coordinate was ever written by a model The LLM that writes the questions never sees a pixel — which is exactly why it cannot invent a coordinate.
Paper 1 · Data engine · pipeline ②

Training data: curved text no REPLICA

Curved text pipeline

The curved text is segmented first (2A) and highlighted (2B); the VLM may only ask about the highlight (2C). The mask exists before the question, so no box-to-mask step is needed.

Paper 1 · Data engine · pipeline ③

Training data: charts no REPLICA

Charts pipeline

3A–3D · render, intercepted. The plotting library’s renderer is intercepted, so every bar, tick and label is logged with its box and an ID.

3E–3G · write the QA. The VLM sees the chart and its ID-tagged metadata, and writes QA citing element IDs.

3F–3H · post-processing. The cited IDs map back to boxes, and Hi-SAM turns each box into a mask.

Paper 1 · Measuring it

Benchmark: GDQA-Bench

2.5K
documents — charts, reports, forms, tables, webpages
5K
QA pairs, every mask checked by a second annotator
3
mask granularities: phrase · line · block
Paper 1 · Results

Results

Grounding F1 on GDQA-Bench

higher is better · 0–100

0255075100 GPT-5Qwen3-VL-8BGemini-2.5-ProQwen3-VL-8B ftOurs GPT-5 · 4.5 Qwen3-VL-8B · 12.8 Gemini-2.5-Pro · 43.4 Qwen3-VL-8B fine-tuned · 60.6 Ours · 79.0 4.512.843.460.679.0

…and vs the best prior on every other benchmark:

BoundingDocs-Test
70.0→81.4
Gemini-2.5-Pro → ours · F1g
DOGR-Bench
66.4→73.3
DOGR, same 8B → ours · F1g
MMDocBench
49.4→68.2
Gemini-2.5-Pro → ours · IoU
Paper 1 · In the wild

Examples

Tabs switch examples · Phrase / Line / Block = granularity open standalone ↗
Paper 1 of 3

M3Grounder

Mask-Based Multi-Span and Multi-Granular Grounding for Document QA · CVPR 2026

VK
Venkata Kesav Venna*
SM
Sai Madhusudan Gunda*
JS
Jyothi Swaroopa Jinka†
HS
Hrithik Sagar Rachakonda†
AS
Anirudh Srinivasan
RK
Ravi Kiran Sarvadevabhatla
* equal contribution · † equal contribution  ·  BharatGen · IIIT Hyderabad  ·  m3grounder.github.io
Paper 2 · A harder question

“Is the Net Sales total in this image correct?”

Credit Card Summary table with a Net Sales column

the system answers in steps

S₁ look at the Net Sales column
S₂ read the values — 20 · 20 · 20 · 50 · 30 · 20
S₃ they sum to 160
Sf the printed total is 150 — so no, it is wrong
Paper 2 · The idea

What if every step pointed at the image?

Credit Card Summary table with a Net Sales column

the same chain — now every value points home

S₁ look at the Net Sales column
S₂ read the values — 20 20 20 50 30 20
S₃ they sum to 160
Sf the printed total is 150 — so no, it is wrong
Paper 2 · A real output

Why reasoning and grounding are needed together

A scanned medical bill with the regions each reasoning step grounds

“How much should I pay for the blood test?” — where would you draw the box for $27.50? Nowhere: it is printed nowhere on the bill. ×3 = three pointers, three masks in that step

S₁ cost of the Blood Test is $50 [GND]×3
S₂ premium members get a 5% discount [GND]
S₃ your plan is premium [GND]
S₄ 5% of 50 is 2.50  — arithmetic, no mask
S₅ discounted cost 50 − 2.50 = 47.50
S₆ the Claim for the Blood Test is $20 [GND]×3
S₇ 47.50 − 20 = 27.50  — arithmetic, no mask
Sf you should pay $27.50

Grounding alone

a mask for “$27.50” has nothing to point to

Chain-of-thought alone

“the cost is $50” can’t be checked without knowing which cell it read

Paper 2 · Watch it run

The forward pass

Paper 2 · The new piece

Why DoCoG needs GIM

VLM [GND] × K GIM SAM masks

M3Grounder · one answer, independent pointers

VLM [GROUND] MLP heads SAM each pointer is projected on its own

Fine for one answer span: its three masks come from one token.

DoCoG · a chain of pointers that depend on each other

S₁ the label HDFC Bank [GND] and its wedge [GND]
S₂ its value 8.84% [GND] — must be that same wedge
8.84% HDFC Bank Reliance ICICI Bank same company same region

The pointers are “related, complementary, or mutually constraining”. Projected one by one, nothing makes them agree.

Paper 2 · Teaching it

Training data

325K documents · 1.5M step-wise QA

325K documents 75K charts 75K tables 75K flowcharts 100K diverse docs
Grounded step-wise reasoning on a line chart
chart
Grounded step-wise reasoning on a credit-card summary table
table
Grounded step-wise reasoning on a medical flowchart
flowchart
Grounded step-wise reasoning on an infographic
document
Paper 2 · Training stage 2

Why preference training?

chain A · every step right

S₁cost of the Blood Test: $50 [GND]✓
S₂premium members get 5% off [GND]✓
S₃your plan is premium [GND]✓
S₄claim for the Blood Test: $20 [GND]✓
Sfyou pay $27.50✓

chain B · right answer, broken trail

S₁cost of the Blood Test: $50 [GND] mask on the X-Ray row✗
S₂premium members get 5% off [GND]✓
S₃your plan is premium — no evidence cited✗
S₄claim for the Blood Test: $20 [GND]✓
Sfyou pay $27.50✓

SFT cannot tell them apart

SFT checks one token at a time against one reference chain. Nothing scores a whole chain, so a right answer reached through wrong evidence is never penalised.

Preference training can

It compares two whole chains for the same question and pushes the model toward the better one.

Paper 2 · Training stage 2

Building the preference pairs

RLHF asks people which output is better. Here a scorer stands in for them, checking each chain against the reference.

SFT modelone question chain 1 chain 2 chain 3 ⋯ N samples reward each chain ✓ final answer correct?✓ steps match the reference?✓ masks on the right evidence? highest reward → chosenlike chain A lowest reward → rejectedlike chain B
20K
preference pairs · DoCoG-PQA
Paper 2 · Training stage 2

Preference training without breaking the masks

1 · what is trained 🔥 VLMwrites the chain[GND] states❄ GIM❄ segmenterprompt encoder · decoder masks 2 · done naively, the masks collapse 🔥 VLMwrites the chain[GND] states❄ GIM❄ segmenterprompt encoder · decoder no longer what GIM was trained on blobs 3 · the fix: an anchor loss on what GIM hands the segmenter 🔥 VLMwrites the chain [GND] states ❄ GIM ⚓ refined [GND]the anchor is here ❄ segmenterprompt encoder · decoder masks each GIM-refined [GND] embedding stays close to its value in the SFT model
Paper 2 · Results

Results

Answer quality vs final-answer grounding on DoCoG-Bench

all document types · higher is better on both axes

020406080 7075808590 answer quality (AQ) → grounding GQfa → fluent but unverifiable GPT-5 · AQ 82.9 · GQ_fa 4.8 Claude Sonnet 4.5 · 79.9 · 7.1 Gemini 3 Pro · 84.2 · 11.4 Qwen3-VL fine-tuned · 77.5 · 61.9 InternVL3.5 fine-tuned · 76.1 · 64.6 Ours · 85.8 · 81.9 GPT-5Claude 4.5Gemini 3 Pro Qwen3-VL ftInternVL3.5 ft Ours (9B)
85.8 / 81.9
Ours · answer / grounding — best on both

General QA intact

ChartQA  92.7
TabFact  89.4
DocVQA  93.4

best of its size on 8 of 10 benchmarks

Paper 2 · In the wild

Examples

Autoplays · tabs switch examples · click any [GND] to re-sweep its mask open standalone ↗
Paper 2 · In one picture

What and where

DoCoG's grounded answer to Find the value of x
Red pill: find x, here it is. Blue pill: x = 5
where or what — pick one?

where — every value points to its pixels ✓

what — x = 5 ✓

Did you just take both pills?
yes — DoCoG takes both.
Paper 2 of 3

DoCoG

Mask-based Multi-Type Grounded Chain-of-Thought for Document QA · ECCV 2026 Spotlight

SM
Sai Madhusudan Gunda*
JS
Jyothi Swaroopa Jinka*
HS
Hrithik Sagar Rachakonda*
AJ
Aryan Jain†
VK
Venkata Kesav Venna†
AS
Anirudh Srinivasan
RK
Ravi Kiran Sarvadevabhatla
* equal contribution · † equal contribution  ·  IIIT Hyderabad · BharatGen  ·  docog-eccv.github.io
Paper 3 · The whole page

Why today’s layout tools fall short

Real pages are messy

a rectangle cannot trace them

Circular seals with curved text on a certificate
curved seals
Wedges and icons of a circular infographic
wedges and icons
Rotated text labels on infographic cards
rotated text

Every domain has its own words

fixed label sets can’t keep up

A banking app labelled status-bar, account-summary-card, quick-action-icons
banking app
An exam paper labelled multiple-choice-question, short-answer-question
exam paper
An insurance policy with generic and insurance-specific labels
insurance policy

A page is a tree, not a list

flat boxes throw that away

A newspaper front page segmented region by region
newspaper
A Telugu feature article with nested story regions
feature article
A restaurant menu with sections and item groups
menu
Paper 3 · So what would it take?

What a layout model needs

Masks

any shape a region has

Open-set labels

the prompt names the classes

The page as a tree

every region, and how they nest

Promptable

ask for any region in words

…all in one model. Sound familiar?

Paper 3 · From a question to the whole page

SAM for documents

SAM · natural images one click → that one object promptable class-free 1B masks Ours · documents “parse this page” + the tree → every region promptable open-set hierarchical 80M masks Same recipe — promptable task · one model · data engine. One addition: a page is a tree, not a pile of objects.
Paper 3 · What it does

Masks, and open-set labels

Task A: layout as segmentation

A · masks, not boxes

every region pixel-accurate — even a donut-shaped magazine spread

Task B: open-set labels

B · open-set labels

the same insurance policy document parsed with generic classes (B1) or insurance-specific ones — “premium breakdown”, “authorization signature” (B2). The prompt defines the vocabulary.

Paper 3 · What it does

The page as a tree

Segmented newspaper front page
Hierarchical layout tree

“Give the full hierarchical layout parse for this newspaper” → teaser-strip, masthead and main-grid, down to headlines, media units and image captions — every node with its mask.

Paper 3 · What it does

Promptable: ask for any region in words

“Mask all personally identifiable information of the passport holder”
14 regionsphoto · signature · passport number · surname · given name · date of birth · … · MRZ block
Mask all personally identifiable information of the passport holder
“Find the figure to the left of a table”
a spatial questionFigure 2 — with an explanation: the page has two figures and two tables, and only Figure 2 sits left of one
Find the figure to the left of a table
“Segment all Hindi-language text regions on this cover page — ignore the English”
5 regionsmotto · connector · purpose · main Hindi title · date range
Segment all Hindi-language text regions on this cover page — ignore the English
“Segment all numbered section questions that introduce explanatory paragraphs”
2 regions“11. Who should file the returns?” · “12. Where to file or mail OSS returns?”
Segment all numbered section questions that introduce explanatory paragraphs
“Segment all circular official seals — ignore signatures and rectangular stamps”
curved boundariescircular seal × 3
Segment all circular official seals — ignore signatures and rectangular stamps
“Segment all vertical text labels along the coloured side bars”
rotated textvertical step label × 4
Segment all vertical text labels along the coloured side bars

Prompt track

PromptLay-Docs-Bench · cumulative IoU

Gemini 3 Pro28.9Qwen3-VL-8B fine-tuned42.4Ours70.2
Paper 3 · Architecture

Architecture

DocLayout-VL architecture

Same recipe as M3Grounder and DoCoG — except that the [LAY] hidden states now go through HGC (Hierarchical Grounding Contextualizer), which attends along the tree, before the segmenter.

Paper 3 · HGC

Why attention should follow the tree

A Telugu feature article: its tree, the HGC attention mask, and the segmented page
feature article
A restaurant menu: its tree, the HGC attention mask, and the segmented page
restaurant menu
A government gazette: its tree, the HGC attention mask, and the segmented page
gazette

Each [LAY] attends only to its parent, children and siblings — the coloured blocks in the mask.

So a headline stays with its article, an item with its menu section — regions of different branches never merge.

Paper 3 · Watch it run

The model in action

Paper 3 · Training objective

Structure-aware losses

𝓛lmthe tagged tree+ 2 · 𝓛segDice + BCE per mask+ 0.5 · 𝓛structnew+ 0.5 · 𝓛bgnew

𝓛struct · the masks must respect the tree

Containment: a child’s mask outside its parent is penalised. Overlap: two siblings claiming the same pixels are penalised.

A predicted child mask bleeding outside its ground-truth parent is penalised A predicted sibling mask bleeding into its neighbouring sibling is penalised

𝓛bg · masks stay off the background

Every predicted pixel outside the page’s ground-truth foreground — whitespace and background — is penalised.

Predicted masks bleeding into the background are penalised

M3Grounder’s two priors, now on a tree: enclosure → containment, bleed → background.

Paper 3 · Training strategy

A three-stage curriculum

1 · flat layouts FlatLay-25M
Flat open-set labels on an exam paper

learn to see regions · HGC with full attention

2 · hierarchical HierLay-40M
A layout tree with its tree-shaped attention mask

learn structure · HGC switches to tree attention

3 · instructions PromptLay-15M
A prompted request: segment only the Hindi text regions

learn to be asked · “segment only the Hindi text”

Paper 3 · Measuring it

Benchmark: HOPLay-Docs-Bench

5K
documents, every one manually verified
51K
annotated regions
5.3K
open-set labels
47.6K
prompt-conditioned annotations

four tracks · the Overall Score is their mean

FlatLay-Docs-Bench

flat, open-set segmentation

HierLay-Docs-Bench

hierarchical parsing — the layout tree

CurveLay-Docs-Bench

boundaries of curved, irregular regions

PromptLay-Docs-Bench

regions asked for by an instruction

Paper 3 · Results

Results

Overall Score on HOPLay-Docs-Bench

HOPLay = Hierarchical, Open-set, Promptable Layout · mean over four tracks · 0–100

0255075100 best small open VLMGemini 3 ProQwen3-VL-8B ftOurs · 4BOurs · 8B Qwen3-VL-8B-it · 31.6 (open VLMs span 10.0–31.6) Gemini 3 Pro · 37.2 — best zero-shot Qwen3-VL-8B fine-tuned · 45.8 Ours 4B · 71.8 Ours 8B · 79.4 31.637.245.871.879.4
6.9 vs 77.5
hierarchical-track Open mIoU · Gemini 3 Pro vs ours

Zero-shot on classic benchmarks

PubLayNet  96.5
M6Docs  76.9
IndicDLP  77.5

mAP · competitive with per-dataset detectors

Paper 3 · One question we kept being asked

What matters more — architecture, or scale of data?

Hierarchy quality vs training-data fraction (Qwen3-VL-8B backbone)

Open mIoU, hierarchical track · one component added at a time · 25%, 50%, 100% data

the gap never closes 25% data50%100% data VLM only (boxes) · 32.528.4+ SAM head · 58.347.6+ HGC · 69.259.8full (+ structure losses) · 77.563.5

Both — but architecture wins.

Paper 3 of 3

DocLayout-VL

A Foundational Model for Hierarchical, Open-Set and Promptable Document Layout Segmentation · ECCV 2026

VK
Venkata Kesav Venna*
SB
Srihari Bandarupalli*
AS
Anirudh Srinivasan*
RR
Raghuveer R
SM
Sai Madhusudan Gunda
RK
Ravi Kiran Sarvadevabhatla
* equal contribution  ·  BharatGen · IIIT Hyderabad  ·  doclayoutvl.github.io
Stepping back

Three papers — one recipe

hidden state at a special token … is SAM’s prompt M3Grounderanswer spansVLM[GROUND]3 MLP headsSAMDoCoGevery reasoning stepVLM[GND] × KGIMSAMDocLayout-VLevery node of a treeVLM[LAY] / nodeHGCSAM

What changes is how the pointers talk: not at all → across a chain → along a tree.

Stepping back

What made this possible

Data engines
reconstruct first, then cite element IDs — masks never typed as coordinates
2M grounded QA
1.5M step-wise QA + 20K pairs
80M masks on 2.5M pages
Compute
full fine-tuning of 8B backbones, DeepSpeed ZeRO-3
M3Grounder64 × H100 · batch 128
DoCoG32 × H100 · batch 256
DocLayout-VL64 × H100 · batch 128
Data × model
the same 8B backbone, three stages
zero-shot+ data+ model
M3Grounder12.860.679.0
DoCoG5.561.981.9
DocLayout-VL31.645.879.4

Data brings the backbone into the task; the architecture closes the rest.

Where this takes the field

Pushing the frontier, one paper at a time

REPLICAREPLICArebuild the page, faithfully M3GrounderM3Grounderpoint at the evidence with masks DoCoGDoCoGDoCoGground every reasoning step DocLayout-VLDocLayout-VLparse the whole page as a tree grounded answersgrounded reasoningwhole-page structurefaithful reconstructionanswer quality frontier VLMs ours

Thank you — questions?

REPLICA
replica-agents.github.io
M3Grounder
m3grounder.github.io
DoCoG
docog-eccv.github.io
DocLayout-VL
doclayoutvl.github.io
BharatGenIIIT Hyderabad

REPLICA (ICDAR 2026, Oral) · M3Grounder (CVPR 2026) · DoCoG (ECCV 2026, Spotlight) · DocLayout-VL (ECCV 2026)
BharatGen · IIIT Hyderabad