betaFeedback

WorksComputer Science

Fill in the Blanks: Non-Autoregressive Schema-Parallel Key Information Extraction with CTC Decoding

Abstract

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×\times faster than the diffusion-VLM competition on average (up to 5.6×\times) 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×\times faster than autoregressive decoding (up to 10.4×\times) within 0.4 points of its accuracy, and 3.3×\times faster than speculative diffusion decoding while 13.0 points more accurate. We release the model and code.

Introduction

Turning a document image into structured data is one of the most common uses of vision-language models (VLMs). Given an invoice, a form, or a receipt and a JSON schema describing the fields of interest, the model must return the filled JSON: names, dates, amounts, addresses, and the rows of every repeated table. This task, key information extraction (KIE), is where VLMs now outperform pipelines built on separate OCR and layout models [2, 15, 20, 37]. Yet the way VLMs produce the answer is ill-matched to the task. An autoregressive (AR) decoder writes the JSON one token at a time, including every key, brace, and quote that the schema had already determined. Its latency therefore grows with the size of the output, and a dense form with dozens of fields costs dozens of times more decoding steps than a single answer.

One line of work reduces this sequential cost. Diffusion VLMs [9, 35, 38, 39] replace token-by-token generation with iterative denoising of masked blocks. In practice they are block diffusion models: the output is split into fixed-size blocks that are denoised one after another, with bidirectional attention inside a block and causal attention across blocks [1]. They still generate the whole JSON, structure included, from left to right, so their number of sequential steps still grows with the length of the output.

We leverage the fact that in KIE the schema already fixes the structure of the answer. Before decoding begins, the keys, their nesting, and the shape of every list are known. Only the values are unknown, together with one quantity a parallel decoder cannot see in advance: their lengths. Values can depend on each other, such as a total on its line items, but most of what a field needs is the document and the schema. We therefore predict every value at once and let the values inform each other over a few refinement passes (Figure 1).

Figure 1. All values at once. A document VLM reads the image and a requested JSON schema. Autoregressive (top): the decoder writes the answer one token per step, including every key, brace and quote the schema already determines. Ours, schema-parallel CTC (bottom): the structure is written out from the schema, and every value’s mask slots are predicted in parallel and refined over TT passes that do not grow with the answer, with CTC absorbing each value’s unknown length. Right: mean Tab. 1 score vs. latency.

We build a non-autoregressive extractor that works from the schema alone. Two things are unknown before decoding: how long each value is, and how many items each list has. We address both in one decoding scheme. The schema is written out as a skeleton in which every value is a block of mask slots, sized by a count pass that predicts the number of items in each list, and a bidirectional extractor predicts all slots in parallel, refining them over a few confidence passes. Each block is decoded with connectionist temporal classification (CTC) [12]: a value may occupy any number of slots up to the block size, with blank symbols absorbing the rest, so no value length is predicted or given. A value still open after its block gets a larger token budget: its decoded text is fixed, a fresh block is appended, and the next forward continues the value (a continuation). No gold keys, value lengths or item counts are needed at inference. The same extractor also works as a speculative drafter for its own autoregressive base model [6, 24]. Because the schema fixes where every value sits, the base model verifies the drafted values of all keys in one forward per round, rather than one block at a time from left to right, which trades part of the speedup for autoregressive-level accuracy.

We evaluate on VAREX, CORD and FUNSD, KIE benchmarks that the model never saw during training, under a single protocol in which every method receives only the image and the benchmark’s schema, and with all methods timed on the same GPU. Our extractor, fine-tuned from Granite Vision 4.1 (4B) [16], is more accurate than an 8B block-diffusion VLM on all three benchmarks, and 3.5× faster on average (up to 5.6×). It is also substantially faster than parallel-key autoregressive extraction with the same base model. In its speculative mode it approaches the accuracy of autoregressive decoding (Table 1).

MethodVAREX EMVAREX msCORD F1CORD msFUNSD F1FUNSD ms
GV4.1 AR92.16,11380.33,98659.16,067
Parallel-key AR91.01,32075.43,29855.11,859
Nemotron 8B85.894571.190252.61,399
Ours, masked diff.79.979369.677952.81,000
Ours NAR88.427876.839754.3249
Fast-dVLM 3B72.42,50071.11,69548.02,188
Ours NAR-SD91.064680.468659.0582

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 (§ 4.1). NAR: token budget up to 3n3n per value; NAR-SD: a two-pass draft and up to two 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 (Table 2).

In summary, our contributions are:

  • Schema-parallel decoding: once the schema is known no generation order is needed, so every value is predicted at once and the number of sequential steps stays nearly constant per document instead of growing with the output.

  • Variable-length values from a schema-only prompt: CTC value slots, a token budget that grows for values still open, and a list-count pass, with no gold keys, lengths, or item counts at inference.

  • A comparison on three zero-shot benchmarks against autoregressive, parallel-key autoregressive, and diffusion VLMs, under one schema-only protocol and on the same hardware.

  • A non-autoregressive KIE extractor built on Granite Vision 4.1, released with its weights and code; to our knowledge the first released non-autoregressive model for KIE.

Related Work

Key information extraction. Early KIE systems on document images run OCR first and then classify or link the recognized tokens, using layout-aware encoders such as the LayoutLM family [15, 37]. OCR-free models instead read the image directly and generate the answer as a sequence, either from task-specific pretraining (Donut [20], Pix2Struct [23]) or as one capability of a general document VLM [2, 7, 16]. We build on a document VLM and follow the schema-driven formulation: the model receives the image and a JSON schema and returns the filled JSON. Unlike these models, we decode that JSON without generating it left to right.

Diffusion and block-diffusion language models. Masked diffusion language models generate text by iteratively unmasking a fully masked sequence [27, 30]. Block diffusion [1] splits the output into fixed-size blocks that are denoised one at a time, bidirectional within a block and causal across blocks, which restores KV caching and variable-length generation. This design has been carried over to VLMs, either trained as diffusion models from the start [38] or converted from autoregressive VLMs (DiffusionVL [39], Fast-dVLM [35]), and combined with autoregressive and self-speculative decoding in a single model [9]. Our extractor shares their mask tokens and bidirectional attention but differs in two ways. First, these models still generate the whole answer, structure included, and visit the blocks left to right, so their sequential steps grow with the length of the output; we write the structure from the schema and decode every value in the same passes, in no order. Second, their output length is decided by where the generation ends, not per value; we decode each value with CTC, which leaves its length to the model within its own slots.

Structured generation. The usual way to make a language model emit valid JSON is constrained decoding: at every autoregressive step, tokens that would leave a grammar or JSON schema are masked out [8, 11, 34]. This guarantees well-formed output, and jump-forward decoding [40] skips the structure tokens that the grammar forces, but the values are still generated one token at a time, one after another. Parallel-key autoregressive decoding, our strongest autoregressive baseline (§ 4.1), skips the structure and decodes the values in parallel (lists still as JSON), so its latency is a lower bound for any template-forced autoregressive decoder. When the structure is known before decoding, it need not be generated at all. S3 [36] takes this view for diffusion LLMs: without any training, it writes the schema template into the output of a text-only masked diffusion model, which fills the values, with a null token for absent fields. It is evaluated on a seven-field text extraction task (WikiBio), and its authors note that the results depend on how many mask tokens each field receives. We share the schema template, but train a document VLM to fill it from the image, decode each value with CTC so that its length does not depend on the number of slots, extend the token budget of values still open, and size every list from the image. A different way to use the structure keeps the autoregressive decoder and runs one short answer per field, all in parallel [26]. A shared prompt prefix makes this cheap [18, 40], and we use it, on our base model, as our strongest autoregressive baseline.

Parallel decoding for KIE. Closest to our setting, PIP [33] introduced parallel masked-value prediction for KIE: it replaces the values in the prompt with mask tokens, switches the VLM to bidirectional attention, and predicts every masked position in one forward pass, each position decoded independently. Its fixed-slot formulation assigns one token per slot, which leaves open how to decode values of unknown length, values longer than the slots, and lists whose number of items is not known in advance; these are what schema-only extraction requires. No model or code for PIP is available, so we compare against a matched fixed-slot decoder, trained on our base model and data (§ 4.4).

Non-autoregressive generation with CTC. Non-autoregressive machine translation predicts the target in parallel and must handle the unknown target length, either by predicting it explicitly [13] or by decoding a longer canvas with connectionist temporal classification (CTC) [12], which marginalizes over alignments and absorbs length with blank symbols [5, 25, 29]; Mask-CTC adds iterative refinement of low-confidence tokens on top of a CTC draft [14]. Non-autoregressive models have also been applied to vision-language tasks such as captioning and VQA [21, 31], and parallel decoding is common in scene-text recognition [4]. We apply CTC per value slot rather than over a whole sequence: the schema fixes where each value sits, CTC handles each value’s length, and continuations extend values past the token budget of one block.

Speculative decoding. Speculative decoding drafts several tokens with a cheap model and verifies them with the target model in one forward pass, preserving the target’s output [6, 24], and has been extended to VLMs [10]; for document OCR, a single model can draft with block diffusion and verify autoregressively [19]. Self-speculative diffusion VLMs [9, 35] draft and verify one block at a time, left to right. Our second mode drafts with the non-autoregressive extractor for its own autoregressive base and, since the schema fixes where every value sits, verifies the drafted values of all keys in one forward.

Method

Problem setup

A KIE query is a document image II and a JSON schema SS. The schema lists the keys, their types, the nesting of objects and which fields are lists of objects; the answer is the JSON object yy that fills every leaf of SS with its value from II, or a null value when the field is absent. We follow a schema-only protocol at test time: the model receives II and SS and nothing else — no gold keys, no value lengths and no number of items in each list. An autoregressive VLM produces yy token by token, structure included. Our observation is that everything in yy except the values, and the number of list items, is already determined by SS. We therefore build the structure from SS and predict only the values, all of them in parallel (Figure 2).

Schema-parallel CTC decoding

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 nn [M] slots. (c) A bidirectional forward predicts all slots of all values at once; this is repeated for TT passes, each but the last revealing the slots predicted with probability above τ\tau 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 (∅\varnothing); a value still open after its block gets nn more slots (budget +n+n).

Schema skeleton and list counts

Given item counts for every list in SS, we serialize the answer JSON with each leaf value replaced by a block of nn mask tokens. Keys, braces, commas and quotes are written out as fixed tokens (read but not predicted), so the model never has to generate structure. The item counts are the one part of the structure the schema does not give. We predict them with a small count adapter, a LoRA on the extractor’s weights that is switched on only for this pass: a count query lists the schema path of every list, each followed by a single mask slot, and one bidirectional forward predicts all counts at once. Nested lists need one count forward per nesting level, since an inner list exists once per predicted outer item. The skeleton is then expanded with the predicted items. Counts come before values, so the count pass adds one sequential step per level of list nesting; like every other step of the method (the confidence passes and the budget extensions), it does not depend on the length of the output or the number of keys. The adapter is trained for one epoch on count queries built from the same training data.

CTC value slots

The extractor is a pretrained document VLM whose causal attention is replaced by bidirectional attention, so every po sition, including every mask slot, attends to the whole image, prompt and skeleton. Each of a value’s nn slots predicts one symbol: a token of the vocabulary, or a blank ∅\varnothing meaning that the slot emits nothing. A value v=(v1,…,vm)v=(v_1,\ldots,v_m) has its own length m≤nm\le n, which differs from value to value, so the slots need not match the tokens one to one. Following CTC [12], an assignment a=(a1,…,an)a=(a_1,\ldots,a_n) of symbols to the slots, called an alignment, is read out by the collapse map B\mathcal{B}, which merges repeated tokens and then removes blanks. The block is trained to maximize the total probability of all alignments that collapse to vv; the CTC loss is then:

LCTC(v)=−log⁡∑a:B(a)=v∏i=1np(ai∣I,S,y~),(1)\mathcal{L}_{\mathrm{CTC}}(v)=-\log\sum_{a:\mathcal{B}(a)=v}\prod_{i=1}^{n}p(a_i\mid I,S,\widetilde{y}), \tag*{(1)}

where y~\widetilde{y} is the partially masked skeleton. Within one forward the slot symbols are conditionally independent given (I,S,y~)(I,S,\widetilde{y}); dependencies between slots and between values enter through the confidence reveals (below), which change y~\widetilde{y} between forwards. The loss is summed over all values of the document. Because the loss sums over all alignments, one block of nn slots holds a value of any length up to nn: unused slots emit blanks, so the length need not be known before decoding, as it must be when each token has its own slot. We reuse the mask token as the blank, so an unused slot is simply a slot that stays masked. Absent fields are trained to the literal value NA. At inference, each block is decoded by taking the argmax at every slot and applying B\mathcal{B}.

Confidence reveals. To let slots and values condition on each other, we run TT forwards. After each of the first T−1T-1, slots whose argmax is not blank and whose probability exceeds τ\tau are written into the input as fixed tokens, and the next forward predicts the remaining slots with that context; the last forward takes the argmax of every slot, so T=1T=1 is a single pass with no reveals. Training mirrors inference: we run the same TT forwards with the model’s own reveals and apply the CTC loss at every forward. Unlike an autoregressive decoder, the reveals impose no order; any value, and any slot of a value, can be committed in any pass.

Token budget and continuation

A block of nn slots bounds the length that one decode can emit. To handle longer values without predicting their lengths in advance, we progressively extend each value’s token budget by nn slots. As illustrated in Figure 2(d), a continuation writes the collapsed draft B(a)\mathcal{B}(a) into the input as fixed tokens, followed by a fresh block of nn mask slots. The next forward predicts the continuation of all values in parallel.

Training. To teach the model to continue from arbitrary positions, we do not always start with an empty value. For each value independently, we uniformly sample a ground-truth prefix length, reveal that prefix, and append nn mask slots. The CTC loss supervises the remaining suffix. We then decode the model’s predictions and use its own draft, including mistakes, as the prefix for a continuation. The new slots are supervised with the remaining ground-truth tokens after the emitted draft. Every value is extended once during training; values that are already complete receive an all-blank target, teaching the model to emit nothing once a value is finished. For values longer than the available block (m>nm>n), the CTC target is truncated to the first n−1n-1 remaining tokens, with the rest assigned to the continuation.

Inference. We initialize every value with nn mask slots and decode using the confidence passes of § 3.3 (Figure 2(c)). We then extend every value by appending nn fresh slots after its collapsed draft, including values that are already complete. After this extension, only values whose text remains open, indicated by the absence of a closing quote (") as illustrated in Figure 2(d), receive another block of nn slots, up to a maximum budget of 3n3n. At inference, we collapse the entire block, including the committed draft and the new slots, allowing the model to revise earlier predictions and repair errors from the confidence passes. All open values are extended in the same forward, so continuation does not introduce a sequential dependency between fields.

Parallel Decoding and Dependencies

Every value is decoded in the same forwards, so the number of forwards per document is fixed by the decoding schedule (TT confidence passes, up to two continuations, plus one count forward per list level), not by the number of keys or the length of the answer (§ 4.3). Values are not assumed independent, since all slots attend to each other and the reveals pass fixed tokens between values; we drop only a fixed generation order, and where order matters the speculative mode (§ 3.7) verifies left to right.

Efficient inference

The image and prompt make up most of the sequence, but only the JSON changes between passes. We run the first value forward with full bidirectional attention over image, prompt and skeleton, so the image representation is computed while seeing the masked skeleton, and then freeze the key/value (KV) cache of the image and prompt. Every later forward (the remaining confidence passes and the continuations) runs only over the JSON tokens, attending bidirectionally to the frozen KV cache and to each other. This stale prefix keeps the accuracy of full bidirectional decoding at every step, whereas training with a prefix-causal mask, so that the image never attends to the skeleton, loses 2.2 and 3.4 points on VAREX and CORD (Table 3a).

VariantVAREX EMVAREX msCORD F1CORD msFUNSD F1FUNSD ms
Ours (stale prefix after pass 1)88.724277.223354.3244
Full bidirectional, every pass88.639477.235154.5400
Stale prefix after pass 288.629077.126353.7273
Prefix-causal, trained86.527173.825654.8266
No confidence reveals (T=1T=1)70.118366.518247.5186
10 slots per block83.025173.723452.6243
Loss on the last pass only84.825568.924850.0254
RoundsVAREX EMVAREX msCORD F1CORD msFUNSD F1FUNSD ms
289.353178.859857.4471
3 (ours)91.064680.468659.0582
492.272880.272259.2667
to completion93.196480.774959.51,653

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=2T=2; values still open at the cap fall back to their first draft. Three rounds is our working point (Table 1); to completion has no cap and no fallback.

Speculative decoding mode

The same extractor can draft for its own autoregressive base model. In each verification round, the base model verifies the drafted values of all keys in one forward over the JSON, with the image and prompt cached. For each value it accepts the longest prefix on which the draft matches its own greedy prediction, plus its next token as a correction; a value is finished when that correction closes the string. The extractor then redrafts the remaining keys from their accepted prefixes, again in one forward for all of them. Verification makes each value agree with the base model’s greedy prediction for that value, given the other values’ drafts in its context rather than the base model’s own earlier output, and up to tokenization differences, which can stall a value that the draft had right; for example, a draft that writes 2024 as one token is rejected when the base model would write it as 20+2+420+2+4, although the text is the same. Values still open when the cap on verification rounds is reached therefore fall back to their first non-autoregressive draft.

Experiments and Results

Setup

Training data. We train on a synthetic dataset built from real documents. Pages are selected from the English subset of FinePDFs [22]: mostly forms and transactional documents such as invoices, delivery notes and statements, but also product sheets, technical drawings and listings. For each page, an autoregressive VLM, given the page image and the text extracted programmatically from the PDF, proposes a schema and reads its values, so every document comes with its own schema. Each document is paired with several instructions that vary how the schema is presented (as a JSON Schema, a typed model, a table or a list of field names), which fields are requested and in what order, and the null and formatting conventions; the training target is always the answer JSON, with its values masked. We train on 150K documents and keep a held-out split for validation, on which the decoding settings were selected before any public benchmark was evaluated.

Zero-shot evaluation. We evaluate on VAREX [3] (1,777 documents with schema-driven, nested extraction), CORD [28] (100 receipts with line items) and FUNSD [17] (key–value pairs, with the revised labels of [32]), public benchmarks none of which is used for training or model selection. Every method receives only the document image and the benchmark’s own JSON schema in the same prompt; no method sees gold keys, value lengths or list sizes. CORD and FUNSD are converted to the same schema-and-answer format as VAREX. We report the VAREX-Bench score on VAREX, computed with the benchmark’s official scorer, and the metrics used in the literature for the others: field F1 on CORD and pair F1 on FUNSD.

Implementation. All models in the paper start from Granite Vision (GV) 4.1 4B [16]. GV 4.1 was already trained on a larger KIE dataset encompassing all 150K documents used in our fine-tuning. Thus, our NAR model gains no additional data exposure over the AR baseline.. The extractor is trained with LoRA (rank 16, α=32\alpha=32) for five epochs on one node with eight H200 GPUs (AdamW, learning rate 2⋅10−52 \cdot10^{-5} with a cosine schedule and 5% warmup, global batch 32, bf16), bidirectional attention, n=20n=20 CTC slots per value and T=3T=3 confidence passes with reveal threshold τ=0.7\tau=0.7; the count adapter is a separate rank-16 LoRA, trained for one epoch on count queries only, on top of the frozen extractor, and switched on only for the count pass. At inference the extractor uses the stale prefix and a token budget of up to 3n3n per value (§ 3.4), and the speculative mode drafts with two passes (T=2T=2) and runs up to three verification rounds. Latency is the mean time per document over all documents of a benchmark, one document at a time on a single H200 GPU, every method on the same exclusive node.

Baselines. We compare with two autoregressive and two diffusion decoders, each run with its released inference code and the same prompt. AR is Granite Vision 4.1 itself, generating the whole JSON with greedy decoding; it is the accuracy reference and the model our extractor is fine-tuned from. Parallel-key AR keeps the same model but removes the structure from the generation: the image and prompt are prefilled once, and one short greedy answer is decoded for every key of the schema [26], all keys as one batch from the shared prefix [18, 40]; each list becomes one query that returns the whole list as JSON. It is the strongest autoregressive baseline for latency. Nemotron diffusion 8B [9] is a block-diffusion VLM that decodes blocks of 32 tokens in parallel, committing every token above confidence 0.9 at each step, with no verifier; it is the closest non-autoregressive competitor of our extractor. Fast-dVLM 3B [35], converted from Qwen2.5-VL [2], drafts each block with diffusion and verifies it with its causal mode, so we compare it with our speculative mode. As a controlled comparison, we also report our own model with its CTC slots replaced by masked diffusion (8 steps), trained on the same base, data and skeleton (§ 4.4).

Main results

Table 1 compares each of our two modes with the methods of the same kind.

Without a verifier. Our extractor is more accurate than Nemotron diffusion 8B on all three benchmarks (+3.3 points on average) and 3.5× faster on average (up to 5.6×). The gap is not model size: Nemotron’s forwards are cheaper than ours (22–26 ms against 55–76 ms), but a median document needs 12–74 of them against our 4–5 (§ 4.3). With the same base model and data, replacing our CTC slots with masked diffusion (8 steps) is 2.8× slower and 5.7 points less accurate on average. Parallel-key AR on our base model is 6.6× slower on average and 0.7 points more accurate.

Figure 3 traces one document: most of every value is committed by the first pass, and the extended budget finishes the longest value.

Figure 3. Input: a filled CDPH application form (crop). 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.

With a verifier. In the speculative mode the base model verifies the drafted values, so each value follows the base model’s greedy prediction for that value. NAR-SD is 0.4 points below autoregressive decoding on average and 8.3× faster (up to 10.4×). It is also 3.3× faster than Fast-dVLM 3B, the other draft-and-verify method, and 13.0 points more accurate, and both faster (3.2×) and more accurate (+3.0) than parallel-key AR. It is the only method in Table 1 that is both faster and more accurate than the strongest autoregressive baseline.

Sequential cost vs document size

Our number of forward passes should not grow with the size of the document (§ 3.5). We measure forwards and latency per document against the number of keys in its schema (Figure 4). Across all 1,924 test documents, our extractor runs 4–6 forward passes per document regardless of how many keys the schema has: the count pass, the confidence passes and up to two continuations. Block diffusion generates the answer JSON block by block, so its forward count follows the length of what it writes: the median Nemotron document needs 12 forwards at 3 keys, up to 74 at 31–50 keys, against 4–5 for ours. Latency grows for both models, since our passes run over a longer skeleton when a schema has more keys, but more slowly for ours: the median document takes 206–446 ms against 441–1,721 ms for Nemotron, so the gap widens with document size. The third curve is the masked-diffusion decoder of our ablation (§ 4.4), run on our own schema skeleton. Its forward count does not grow with the number of keys either, which confirms that the saving comes from decoding the

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.

values on a given skeleton rather than generating the JSON in order. But it needs more forwards than CTC for less accuracy: eight unmasking steps per block, plus extra blocks for long values, give 8.2–13.1 forwards per document on average across the benchmarks, against 4.5–5.2 for CTC, at 2.0–4.0× its latency and 8.5 points lower VAREX EM (Table 2).

Value decoderVAREX EMVAREX msCORD F1CORD msFUNSD F1FUNSD ms
CTC (ours)88.427876.839754.3249
Fixed-slot CE68.414168.025345.2104
Masked diffusion
1 step63.315065.925641.0146
4 steps73.442266.647345.8515
8 steps79.979369.677952.81,000
20 steps84.91,90672.61,63655.22,530

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.

Ablations

Value decoder. Table 2 is a controlled comparison: base model, training data, epochs and inputs are the same, and every row uses the predicted list counts. Fixed-slot decoding with a per-position cross-entropy, the formulation of PIP [33], must place every token at its exact slot: per-slot cross-entropy fixes which slot each token occupies, so every slot has to know how many tokens of the value precede it, whereas CTC scores only the collapsed text and lets each token land in any slot. It is faster than CTC, as it decodes in one pass, but trails by 20.0 points on VAREX, the benchmark with the most long and variably sized values, and by 8.8–9.1 on CORD and FUNSD. Masked diffusion on the same slots [27, 30] never matches CTC at its speed: with four steps, already 1.2–2.1× slower, it trails by 8.5–15.0 points, and with 20 steps it is 4.1–10.2× slower and still behind on VAREX and CORD.

Model and inference design. Table 3a changes one thing at a time. Freezing the image–prompt key/values after the first pass (§ 3.6) costs no accuracy: the stale prefix is within 0.2 points of full bidirectional decoding and 1.5–1.6× faster. The image must attend to the skeleton, though: training with a prefix-causal mask costs 2.2 EM on VAREX and 3.4 F1 on CORD, since the image is then encoded without seeing which values the schema asks for. The confidence reveals are essential (a single pass is 22–24% faster but loses 6.8–18.6 points), and so are the 20-slot block (10 slots lose 1.7–5.7) and the CTC loss on every pass (the last pass only loses 3.9–8.3, at the same speed). The speculative mode makes improving with more verification rounds, at the cost of latency (Table 3b). Without a cap it matches autoregressive decoding (it is 0.4–1.0 points more accurate on every benchmark), but not its exact output: the skeleton always holds every key of the schema, while free decoding sometimes omits one; the list counts come from the count pass; and each value is verified in the context of the other values’ drafts (§ 3.7). The two outputs differ on 8–26% of the fields, and the differences slightly favour the speculative mode (supplementary). It also costs up to 2.8× the latency of three rounds, since a few long values need many rounds. We use three rounds as the working point: they keep most of that accuracy at the speed of Table 1; values still open at the cap fall back to their draft.

Count pass. Predicting the list counts costs little (Table 4): against oracle counts it loses 0.3 EM on VAREX and 0.4 F1 on CORD, with 84% of lists exact; its cost is 163 ms per CORD document. Training the count queries into the extractor instead (one more epoch on value and count queries together) removes the adapter and makes CORD 21% faster, but costs 2.1 F1 there (77% of lists exact), so we keep the separate adapter. Count errors are mostly under-counts and concentrate in nested lists (supplementary); a missed item costs only that item’s values, since the remaining items are still decoded.

Count passVAREXCORDFUNSD
Count adapter88.476.854.3
Oracle counts88.777.254.3
Dual task88.274.754.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.

Conclusion

We present a non-autoregressive extractor for schema-driven key information extraction that decodes every value of a document at once. We exploit the fact that in key information extraction the schema already gives a known frame for the answer, so regenerating it is redundant, only the values have to be predicted. The frame is written out from the schema, each value gets its own block of CTC slots so that its length is left to the model, and all values are refined together in a fixed number of passes that does not grow with the document. The same extractor runs in two modes, with no retraining: on its own, it is both more accurate and faster than Nemotron diffusion 8B at half its size; as a drafter for speculative decoding, verified by its own autoregressive base, it beats Fast-dVLM on both counts and is the only method we evaluate that is faster and more accurate than parallel-key autoregressive decoding.

No open model exists for non-autoregressive, schema-driven extraction, so we compared against the closest general-purpose diffusion VLMs and against our own value-decoder variants trained on the same data; the parallel decoder held up in both comparisons. We release the model and code as the first open baseline for this task.

LLM Usage Statement

The research idea, the method and its design choices, the choice of experiments and ablations, and the interpretation of the results are the authors’ own; the authors directed the work at every step. We used Claude (Anthropic), through the Claude Code agent, as an implementation and writing assistant under that direction: it wrote and debugged training, decoding and evaluation code, set up and monitored experiments on our cluster, produced the figures and tables with scripts that read the logged evaluation outputs, and drafted and edited text, including grammar, which the authors revised. The authors reviewed all results and the final text and take full responsibility for the paper.

References

  1. [1]Marianne Arriola, Aaron Gokaslan, Justin T. Chiu, Zhihan Yang, Zhixuan Qi, Jiaqi Han, Subham Sekhar Sahoo, and Volodymyr Kuleshov. Block diffusion: Interpolating between autoregressive and diffusion language models. In International Conference on Learning Representations (ICLR), 2025. 2
  2. [2]Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, et al. Qwen2.5-VL technical report. arXiv preprint arXiv:2502.13923, 2025. 1, 2, 6arxiv.org/abs/2502.13923
  3. [3]Udi Barzelay, Ophir Azulai, Inbar Shapira, Idan Friedman, Foad Abo Dahood, Madison Lee, and Abraham Daniels. VAREX: A benchmark for multi-modal structured extraction from documents. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 7368–7376, 2026. 5
  4. [4]Darwin Bautista and Rowel Atienza. Scene text recognition with permuted autoregressive sequence models. In European Conference on Computer Vision (ECCV), 2022. arXiv:2207.06966. 3arxiv.org/abs/2207.06966
  5. [5]William Chan, Chitwan Saharia, Geoffrey Hinton, Mohammad Norouzi, and Navdeep Jaitly. Imputer: Sequence modelling via imputation and dynamic programming. In International Conference on Machine Learning (ICML), pages 1403–1413, 2020. 3arxiv.org/abs/2002.08926
  6. [6]Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. Accelerating large language model decoding with speculative sampling. arXiv preprint arXiv:2302.01318, 2023. 2, 3arxiv.org/abs/2302.01318
  7. [7]Zhe Chen, Weiyun Wang, Yue Cao, Yangzhou Liu, Zhangwei Gao, et al. Expanding performance boundaries of open-source multimodal models with model, data, and test-time scaling. arXiv preprint arXiv:2412.05271, 2024. 2arxiv.org/abs/2412.05271
  8. [8]Yixin Dong, Charlie L. Ruan, Yaxing Cai, Ruihang Lai, Ziyi Xu, Yilong Zhao, and Tianqi Chen. XGrammar: Flexible and efficient structured generation engine for large language models. In Proceedings of Machine Learning and Systems (MLSys), 2025. arXiv:2411.15100. 2arxiv.org/abs/2411.15100
  9. [9]Yonggan Fu, Lexington Whalen, Abhinav Garg, Chengyue Wu, Maksim Khadkevich, Nicolai Oswald, Enze Xie, Daniel Egert, Sharath Turuvekere Sreenivas, Shizhe Diao, Chenhan Yu, Ye Yu, Weijia Chen, Sajjad Norouzi, Jingyu Liu, Shiyi Lan, Ligeng Zhu, Jin Wang, Jindong Jiang, Morteza Mardani, Mehran Maghoumi, Song Han, Ante Jukić, Nima Tajbakhsh, Jan Kautz, and Pavlo Molchanov. Nemotron-Labs-Diffusion: A tri-mode language model unifying autoregressive, diffusion, and self-speculation decoding. arXiv preprint arXiv:2607.05722, 2026. 1, 2, 3, 6
  10. [10]Mukul Gagrani, Raghavv Goel, Wonseok Jeon, Junyoung Park, Mingu Lee, and Christopher Lott. On speculative decoding for multimodal large language models. arXiv preprint arXiv:2404.08856, 2024. 3arxiv.org/abs/2404.08856
  11. [11]Saibo Geng, Martin Josifoski, Maxime Peyrard, and Robert West. Grammar-constrained decoding for structured NLP tasks without finetuning. In Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP), 2023. arXiv:2305.13971. 2arxiv.org/abs/2305.13971
  12. [12]Alex Graves, Santiago Fernández, Faustino Gomez, and Jürgen Schmidhuber. Connectionist temporal classification: Labelling unsegmented sequence data with recurrent neural networks. In International Conference on Machine Learning (ICML), pages 369–376, 2006. 2, 3, 4
  13. [13]Jiatao Gu, James Bradbury, Caiming Xiong, Victor O. K. Li, and Richard Socher. Non-autoregressive neural machine translation. In International Conference on Learning Representations (ICLR), 2018. arXiv:1711.02281. 3arxiv.org/abs/1711.02281
  14. [14]Yosuke Higuchi, Shinji Watanabe, Nanxin Chen, Tetsuji Ogawa, and Tetsunori Kobayashi. Mask CTC: Non-autoregressive end-to-end ASR with CTC and mask predict. In Proceedings of Interspeech, 2020. arXiv:2005.08700. 3arxiv.org/abs/2005.08700
  15. [15]Yup an Huang, Tengchao Lv, Lei Cui, Yutong Lu, and Furu Wei. LayoutLMv3: Pre-training for document AI with unified text and image masking. In ACM International Conference on Multimedia (ACM MM), 2022. arXiv:2204.08387. 1, 2arxiv.org/abs/2204.08387
  16. [16]IBM Granite Vision Team. Granite 4.1 vision. https://huggingface.co/ibm-granite/granite-vision-4.1-4b, 2026. Model card, granite-vision-4.1-4b. 2, 6
  17. [17]Guillaume Jaume, Hazim Kemal Ekenel, and Jean-Philippe Thiran. FUNSD: A dataset for form understanding in noisy scanned documents. In International Conference on Document Analysis and Recognition Workshops (ICDAR-OST), 2019. arXiv:1905.13538. 5arxiv.org/abs/1905.13538
  18. [18]Jordan Juravsky, Bradley Brown, Ryan Ehrlich, Daniel Y. Fu, Christopher Ré, and Azalia Mirhoseini. Hydragen: High-throughput LLM inference with shared prefixes. arXiv preprint arXiv:2402.05099, 2024. 3, 6arxiv.org/abs/2402.05099
  19. [19]Dohyun Kim, Sungjun Han, Hyungguk Kim, Yusik Kim, Jamin Shin, Paul Hongsuck Seo, and Hongjoon Ahn. Diffusion drafts, AR verifies: Accelerating document OCR with self-speculative decoding. arXiv preprint arXiv:2609.26638, 2026. 3arxiv.org/abs/2609.26638
  20. [20]Geewook Kim, Taekgyu Hong, Moonbin Yim, Jeongyeon Nam, Jinyoung Park, Jinyeong Yim, Wonseok Hwang, Sangdoo Yun, Dongyoon Han, and Seunghyun Park. OCR-free document understanding transformer. In European Conference on Computer Vision (ECCV), 2022. arXiv:2111.15664. 1, 2arxiv.org/abs/2111.15664
  21. [21]Sungwoong Kim, Daejin Jo, Donghoon Lee, and Jongmin Kim. MAGVLT: Masked generative vision-and-language transformer. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 23338–23348, 2023. 3arxiv.org/abs/2303.12208
  22. [22]Hynek Kydlíček, Guilherme Penedo, and Leandro von Werra. FinePDFs. https://huggingface.co/datasets/HuggingFaceFW/finepdfs, 2025. 5
  23. [23]Kenton Lee, Mandar Joshi, Iulia Raluca Turc, Hexiang Hu, Fangyu Liu, Julian Martin Eisenschlos, Urvashi Khandelwal, Peter Shaw, Ming-Wei Chang, and Kristina Toutanova. Pix2Struct: Screenshot parsing as pretraining for visual language understanding. In International Conference on Machine Learning (ICML), pages 18893–18912. PMLR, 2023. arXiv:2210.03347. 2arxiv.org/abs/2210.03347
  24. [24]Yaniv Leviathan, Matan Kalman, and Yossi Matias. Fast inference from transformers via speculative decoding. In International Conference on Machine Learning (ICML), pages 19274–19286. PMLR, 2023. 2, 3arxiv.org/abs/2211.17192
  25. [25]Jindřich Libovický and Jindřich Helcl. End-to-end non-autoregressive neural machine translation with connectionist temporal classification. In Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 3016–3021, 2018. 3arxiv.org/abs/1811.04719
  26. [26]Jinghui Lu, Ziwei Yang, Yanjie Wang, Xuejing Liu, Brian Mac Namee, and Can Huang. PaDeLLM-NeR: Parallel decoding in large language models for named entity recognition. In Advances in Neural Information Processing Systems (NeurIPS), 2024. arXiv:2402.04838. 3, 6arxiv.org/abs/2402.04838
  27. [27]Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, Jun Zhou, Yankai Lin, Ji-Rong Wen, and Chongxuan Li. Large language diffusion models. In Advances in Neural Information Processing Systems (NeurIPS), 2025. 2, 8arxiv.org/abs/2502.09992
  28. [28]Seunghyun Park, Seung Shin, Bado Lee, Junyeop Lee, Jae-heung Suhr, Minjoon Seo, and Hwalsuk Lee. CORD: A consolidated receipt dataset for post-OCR parsing. In Document Intelligence Workshop at Neural Information Processing Systems, 2019. 5
  29. [29]Chitwan Saharia, William Chan, Saurabh Saxena, and Mohammad Norouzi. Non-autoregressive machine translation with latent alignments. In Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1098–1108, 2020. 3arxiv.org/abs/2004.07437
  30. [30]Subham Sekhar Sahoo, Marianne Arriola, Yair Schiff, Aaron Gokaslan, Edgar Marroquin, Justin T. Chiu, Alexander Rush, and Volodymyr Kuleshov. Simple and effective masked diffusion language models. In Advances in Neural Information Processing Systems (NeurIPS), 2024. 2, 8arxiv.org/abs/2406.07524
  31. [31]Kunyu Shi, Qi Dong, Luis Goncalves, Zhuowen Tu, and Stefano Soatto. Non-autoregressive sequence-to-sequence vision-language models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 13603–13612, 2024. 3arxiv.org/abs/2403.02249
  32. [32]Hieu M. Vu and Diep Thi-Ngoc Nguyen. Revising FUNSD dataset for key-value detection in document images. arXiv preprint arXiv:2010.05322, 2020. 5arxiv.org/abs/2010.05322
  33. [33]Xinzhong Wang, Ya Guo, Jing Li, Huan Chen, Yi Tu, Yijie Hong, Gongshen Liu, and Huijia Zhu. Up to 36x speedup: Mask-based parallel inference paradigm for key information extraction in MLLMs. In IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2026. arXiv:2601.19613. 3, 8
  34. [34]Brandon T. Willard and Rémi Louf. Efficient guided generation for large language models. arXiv preprint arXiv:2307.09702, 2023. 2arxiv.org/abs/2307.09702
  35. [35]Chengyue Wu, Shiyu Lan, Yonggan Fu, Sensen Gao, Jin Wang, Jincheng Yu, Jose M. Alvarez, Pavlo Molchanov, Ping Luo, Song Han, Ligeng Zhu, and Enze Xie. Fast-dVLM: Efficient block-diffusion VLM via direct conversion from autoregressive VLM. arXiv preprint arXiv:2604.06832, 2026. 1, 2, 3, 6arxiv.org/abs/2604.06832
  36. [36]Zhen Xiong, Yujun Cai, Zhecheng Li, and Yiwei Wang. Unveiling the potential of diffusion large language model in controllable generation. In International Conference on Learning Representations (ICLR), 2026. 3arxiv.org/abs/2507.04504
  37. [37]Yiheng Xu, Minghao Li, Lei Cui, Shaohan Huang, Furu Wei, and Ming Zhou. LayoutLM: Pre-training of text and layout for document image understanding. In ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD), 2020. arXiv:1912.13318. 1, 2DOI
  38. [38]Zebin You, Shen Nie, Xiaolu Zhang, Jun Zhou, Zhiwu Lu, Ji-Rong Wen, and Chongxuan Li. LLaDA-V: Large language diffusion models with visual instruction tuning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10093–10105, 2026. 1, 2arxiv.org/abs/2505.16933
  39. [39]Lunbin Zeng, Jingfeng Yao, Bencheng Liao, Hongyuan Tao, Wenyu Liu, and Xinggang Wang. DiffusionVL: Translating any autoregressive models into diffusion vision language models. In European Conference on Computer Vision (ECCV), 2026. 1, 2arxiv.org/abs/2512.15713
  40. [40]Lianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun, Jeff Huang, Cody Hao Yu, Shiyi Cao, Christos Kozyrakis, Ion Stoica, Joseph E. Gonzalez, Clark Barrett, and Ying Sheng. SGLang: Efficient execution of structured language model programs. In Advances in Neural Information Processing Systems (NeurIPS), 2024. 2, 3, 6arxiv.org/abs/2312.07104

Paper details

vlnc:W_pyad4q9j
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Claude Code

View statement
Looking for related papers…
Contents