Vision-language models (VLMs) extract structured data from documents by generating the requested JSON one token at a time, so their sequential steps grow with the length of the answer. Yet in key information extraction (KIE) the schema already fixes the answer's structure: keys, nesting and lists are known before decoding, and only the values are unknown. We exploit this with a non-autoregressive extractor that writes the structure from the schema, sizes every list with a count pass, and predicts all values in parallel, in a fixed number of passes that does not grow with the document. Each value is decoded with connectionist temporal classification (CTC) in its own block of slots, so its length never has to be predicted, and a value that is still open after its block gets a larger token budget. Zero-shot on VAREX, CORD and FUNSD, our 4B extractor is 3.5× faster than the diffusion-VLM competition on average (up to 5.6×) and more accurate, with 4--6 forward passes per document where block diffusion needs 12--74. The same extractor also drafts for speculative decoding with its own autoregressive base: it runs 8.3× faster than autoregressive decoding (up to 10.4×) within 0.4 points of its accuracy, and 3.3× faster than speculative diffusion decoding while 13.0 points more accurate. We release the model and code.
Figures & tables
Figure 2: Schema-parallel CTC decoding. (a) A count pass reads the image and the schema and sizes every list. (b) The schema is written out as a skeleton in which every value gets a block of n [M] slots. (c) A bidirectional forward predicts all slots of all values at once; this is repeated for T passes, each but the last revealing the slots predicted with probability above τ and re-predicting the rest (blanks are never revealed; the last pass takes the argmax of every slot), with the image–prompt key/values computed once. (d) CTC collapse first merges repeats, then drops blanks ( ∅ ); a value still open after its block gets n more slots (budget +n ).
VAREX
CORD
FUNSD
Method
EM
ms
F1
ms
F1
ms
GV4.1 AR
92.1
6,113
80.3
3,986
59.1
6,067
Parallel-key AR
91.0
1,320
75.4
3,298
55.1
1,859
Nemotron 8B
85.8
945
71.1
902
52.6
1,399
Ours, masked diff.
79.9
793
69.6
779
52.8
1,000
Ours NAR
88.4
278
76.8
397
54.3
249
Table 1: Accuracy and latency on three zero-shot benchmarks. Every method gets only the image and the benchmark’s schema. VAREX: VAREX-Bench score (official scorer); CORD: field F1; FUNSD: pair F1. Latency: mean ms per document over all documents, one document at a time ( Sec. 4.1 ). NAR: token budget up to 3 n per value; NAR-SD: a two-pass draft and up to three verification rounds, values still open at the cap fall back to their first draft. Averages in the text are geometric means of the per-benchmark speedups. Ours, masked diff. is our model with its CTC slots replaced by masked diffusion with 8 steps ( Tab. 2 ).
VAREX
CORD
FUNSD
Value decoder
EM
ms
F1
ms
F1
ms
CTC (ours)
88.4
278
76.8
397
54.3
249
Fixed-slot CE
68.4
141
68.0
253
45.2
104
Masked diffusion
1 step
63.3
150
65.9
256
41.0
146
4 steps
73.4
422
66.6
473
45.8
515
Table 2: Value-decoder ablation. Same base model, training data, epochs and inputs; only the value decoder differs. Every row uses the schema skeleton with predicted list counts, so the count pass is in every latency. Fixed-slot CE decodes each slot independently in one pass; masked diffusion unmasks the slots over the given number of steps, in blocks. Latency: ms per document.
(a) Ablations, NAR
VAREX
CORD
FUNSD
Variant
EM
ms
F1
ms
F1
ms
Ours (stale prefix after pass 1)
88.7
242
77.2
233
54.3
244
Full bidirectional, every pass
88.6
394
77.2
351
54.5
400
Stale prefix after pass 2
88.6
290
77.1
263
53.7
273
Prefix-causal, trained
86.5
271
73.8
256
54.8
266
Table 3: Ablations and inference design. (a) One change at a time against the paper model, with oracle list counts so that only the change differs; each model is evaluated with its own training settings. (b) Speculative mode by the cap on verification rounds, predicted list counts, drafts with T=2 ; values still open at the cap fall back to their first draft. Three rounds is our working point ( Tab. 1 ); to completion has no cap and no fallback.
Count pass
VAREX
CORD
FUNSD
Count adapter
88.4
76.8
54.3
Oracle counts
88.7
77.2
54.3
Dual task
88.2
74.7
54.2
Table 4: Count pass. Separate count adapter, oracle counts, and count queries trained into the extractor (dual task). NAR; EM on VAREX, F1 on the others.
Figure 3: Decoding trace on a VAREX test form, coloured by the forward that wrote each token. The first bidirectional pass commits most of every value (blue) and the later confidence passes fill what it was unsure of (orange). The extended budget (green) writes the end of the longest value, the physician’s details, and all eleven values are exact. In the speculative mode the verifier accepts all eleven unchanged.
Figure 4: Sequential cost vs. document size. Forward passes (left, log scale) and latency (right) per document against the number of keys in its schema, pooled over VAREX, CORD and FUNSD (1,924 documents; median and interquartile range per bin). Our forward count stays at 4–6 for every document, while block diffusion’s grows with the size of the JSON it generates. Masked diffusion on our own skeleton (value-decoder ablation, 8 steps) is also flat but needs more forwards than CTC and is slower.
Document processing pipelines traditionally cascade optical character recognition (OCR) engines with downstream models for structured information extraction, leading to multi-stage error propagation. We fine-tune SmolDocling, a compact 256M-parameter vision-language model (VLM), to perform end-to-end key-value extraction directly from document images, jointly solving identification, localization, and association in a single pass without OCR preprocessing. We extend DocTags with specialized key, value, region, and link tags, enabling many-to-many relationships in a unified output sequence. To address data limitations, we design an augmentation pipeline combining synthetic form filling and graph-based crops that preserve complete key-value subgraphs. We further introduce a layout-aware evaluation framework extending text matching with spatial bounding box verification. On FUNSD, XFUND, and a large-scale private dataset, our model outperforms larger zero-shot VLM baselines under layout-aware evaluation, while being 27 times smaller than Qwen2.5-VL (7B) and over 5 times faster at inference. The model weights will be released publicly after publication.
A. Said Gurbuz, Ahmed Nassar, Christoph Auer +8
IBM Research Zurich · ETH Zurich · IBM Research Zurich, Rüschlikon, Switzerland +1
Document-level Information Extraction (DocIE) aims to produce an output template with the entities, relations, and events of interest occurring in the given document. Standard practices include prompting decoder-only LLMs using greedy decoding to avoid output variability. Rather than treating this variability as a limitation, we show that sampling can produce substantially better solutions than greedy decoding, especially when using reasoning models. We thus propose ThinkTwice, a sampling and selection framework in which the LLM generates multiple candidate templates for a given document, and a selection module chooses the most suitable one. We introduce both an unsupervised method that exploits agreement across generated outputs, and a supervised selection method using reward models trained on labeled DocIE data. To address the scarcity of golden reasoning trajectories for DocIE, we propose a rejection-sampling-based method to generate silver training data that pairs output templates with reasoning traces. Our experiments show the validity of unsupervised and supervised ThinkTwice, consistently outperforming greedy baselines and the supervised state-of-the-art.
Mikel Zubillaga, Oscar Sainz, Oier Lopez de Lacalle +1
HiTZ Center - Ixa, University of the Basque Country UPV/EHU
Enterprise workflows increasingly rely on agents for schema-guided extraction: given a document and a user-defined schema, the agent faithfully follows the schema to produce the correct output with source evidence as grounding metadata. We present ExtractBench, a benchmark for schema-guided extraction and, to our knowledge, the first to score value accuracy, record completeness at scale, grounding, and measured cost together. The evaluation system contains 4,869 pages across 370 enterprise documents, 8 business domains, and 67 document types, with clear tags differentiating their challenge scenarios. The scalable schema and ground-truth curation pipeline combines independent-system agreement for real documents, known values for synthetic lists, and human verification for forms. We report order-insensitive value F1 for value accuracy, plus two grounding metrics for source traceability: word- and page-level F1. Commercial VLMs perform well on short documents but often truncate record lists on long ones, while coding agents retain higher accuracy at much higher cost. LlamaExtract Agentic Plus ranks first on all three metrics, with accuracy comparable to coding agents at a fraction of the cost. Dataset and evaluation code are available on HuggingFace and GitHub.