every region gets a pixel-accurate mask — even a donut-shaped magazine spread
B · open-set labels
the same policy parsed with generic classes (B1) or insurance-specific ones — "premium breakdown", "authorization signature" (B2). The prompt defines the vocabulary.
DocLayout-VL · Task
Task C — the page as a hierarchy tree
"Give the full hierarchical layout parse for this newspaper" → a layout tree Tˆ = (Vˆ, Eˆ): teaser-strip, masthead and main-grid, down to headlines, media units and image captions.
DocLayout-VL · Task
Task D — promptable parsing
(D1) "Mask all personal identifiable information of the passport holder" → photo, signature, MRZ block… · (D2) "Find the figure to the left of a table" → a spatial query answered with a grounded region + explanation.
DocLayout-VL · Output representation
A serialized layout tree, interleaved with [LAY] tokens
The generated sequence directly encodes the hierarchy: leaves as label[LAY], parent nodes closed by </tag>[LAY]. Each [LAY] token corresponds one-to-one with a spatial region; labels come from the prompt-defined vocabulary.
DocLayout-VL · Architecture
Architecture
DocLayout-VL · Interactive
DocLayout-VL in action
Click inside to drive it · Space pause · R restart · F fit — then use ‹ › to continue the talkopen standalone ↗
DocLayout-VL · Training objective
The loss function
𝓛total =
𝓛lmcross-entropy
+
𝓛segDice + BCE per mask
+
𝓛bgbackground exclusion
+
𝓛structcontainment + non-overlap
Containment
a child's mask is penalized wherever it leaves its parent's
Sibling non-overlap
siblings can't claim the same pixels
𝓛bg — no mask may spill into whitespace outside the page's ground-truth foreground.
DocLayout-VL · Training strategy
A three-stage curriculum
DocLayout-VL · Data & benchmark
HOPLay-Docs-80M — layout supervision at foundation scale
Overall score vs training-data fraction (Qwen3-VL-8B)
DocLayout-VL · The point
Layout as a queryable interface
One pass turns a page into a controllable structured parse: semantic nodes, hierarchy, pixel masks, and prompt-conditioned explanations.…and every node of that parse is groundable — here, a fund factsheet's full layout tree.
Takeaway #3 — with one [LAY] token per region, layout is no longer a preprocessing step — it's a model output you can prompt: tree, masks, explanations.