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

Shaked Perek, Avihu Dekel, Ben Wiesel, Sivan Harary, Eli SchwartzarXiv 2026

Imagine you’re using a state-of-the-art Vision-Language Model (VLM) to extract data from a stack of invoices. You give it a JSON schema, and then you wait. You watch as the model painstakingly types out every single curly brace, every quote mark, and every key name—information you already gave it in the schema. It’s like watching a professional typist transcribe a form they’ve already memorized, one character at a time.

A new paper from IBM Research, "Fill in the Blanks," argues that this autoregressive approach is fundamentally ill-suited for Key Information Extraction (KIE). Instead of generating the answer token-by-token, why not just fill in the blanks?

TL;DR

By leveraging the fact that a JSON schema pre-defines the structure of an answer, the authors developed a non-autoregressive extractor that predicts all document values in parallel. Using Connectionist Temporal Classification (CTC) to handle variable-length text, their model is up to 8.3× faster than standard autoregressive models and significantly more efficient than diffusion-based alternatives, all while maintaining top-tier accuracy.

What Problem Does This Paper Address?

Most modern VLMs are autoregressive (AR). They predict the next token based on all previous tokens. In KIE tasks—like pulling the "Total Due" and "Date" from a receipt—the output is usually a structured JSON object.

The problem is that the "structure" (the keys and nesting) is a "known known." If you ask for an invoice_id, you know the output will contain "invoice_id":. AR models waste massive amounts of computation and time regenerating this boilerplate. Furthermore, their latency scales linearly with the length of the output; a dense form with 50 fields takes 50 times longer to process than a form with one field, even if the model "sees" all the answers instantly.

Methods

The authors propose a Schema-Parallel approach. Instead of a sequential crawl, they treat the task like a "Mad Libs" game.

  1. The Count Pass: Since the schema doesn't tell you how many items are in a list (e.g., how many items are on a receipt), the model first performs a quick "count pass" to size every list.
  2. The Skeleton: The model writes out the JSON structure as a "skeleton," where every expected value is replaced by a block of mask tokens ([M]).
  3. Parallel CTC Decoding: This is the secret sauce. The model predicts all values in parallel across the entire skeleton. To handle the fact that we don't know how long a value (like an address) will be, they use Connectionist Temporal Classification (CTC).
  4. CTC allows the model to predict a sequence of tokens into a fixed-size block of slots. It uses "blank" symbols to absorb extra space, meaning the model doesn't need to predict the exact length of a value before it starts writing.
  5. Refinement Passes: The model doesn't just take one shot. It performs a few (usually 4–6) refinement passes where it "reveals" high-confidence tokens and re-predicts the rest, allowing different fields to "talk" to each other and ensure consistency.
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 T passes that do not grow with the answer, with CTC absorbing each value’s unknown length. Right: mean Tab. 1 score vs. latency.

Datasets

The model, a 4B-parameter extractor fine-tuned from Granite Vision 4.1, was evaluated on three major zero-shot benchmarks:

  • VAREX: A benchmark for schema-driven, nested extraction.
  • CORD: A collection of receipts with complex line items.
  • FUNSD: A dataset for form understanding (key-value pairs).

The model was trained on a synthetic dataset of 150,000 documents derived from FinePDFs, where an AR model was used to "bootstrap" the ground-truth schemas and values.

Key Insights and Ideas

  • Structure is Redundant: In KIE, the "where" is known; only the "what" is missing. By hard-coding the structure from the schema, the model focuses 100% of its compute on the actual data.
  • CTC for "Elastic" Values: Usually, non-autoregressive models struggle with variable lengths. By applying CTC per value slot rather than over the whole sequence, the authors created "elastic" blanks that can shrink or grow to fit the data.
  • Constant Latency: Unlike AR models, the number of forward passes in this model stays nearly constant (4–6 passes) regardless of whether the document has 5 keys or 50.
Latency vs. Number of Keys

Key Results

  • Speed: The standalone Non-Autoregressive (NAR) model is 3.5× faster than diffusion-VLM competitors and 8.3× faster than standard autoregressive decoding.
  • Accuracy: On VAREX, the NAR model achieved an 88.4 EM (Exact Match) score, outperforming the much larger Nemotron 8B diffusion model (85.8) while being significantly faster.
  • Speculative Decoding (NAR-SD): When used as a "drafter" to suggest values that a traditional AR model then verifies, it reaches 91.0 EM on VAREX—nearly matching the accuracy of pure AR decoding (92.1) but at a fraction of the time.

Limitations and Future Work

  • Nested List Dependencies: While the model predicts values in parallel, the "count pass" for nested lists is still somewhat sequential (one pass per level of nesting).
  • Token Budget: If a value is exceptionally long (longer than the pre-allocated block of slots), the model has to trigger a "continuation" pass, which adds a small amount of sequential overhead.
  • Schema Sensitivity: The model relies heavily on the provided schema. If the schema is poorly defined or ambiguous, the "skeleton" it builds will be flawed from the start.

The authors have released the code and weights, providing a high-speed alternative for anyone tired of watching their VLMs type out JSON boilerplate.

Summary updated

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.
BibTeX
@misc{perek2026fill,
  author = {Shaked Perek and Avihu Dekel and Ben Wiesel and Sivan Harary and Eli Schwartz},
  title = {{Fill in the Blanks: Non-Autoregressive Schema-Parallel Key Information Extraction with CTC Decoding}},
  year = {2026},
  eprint = {2611.29460},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29460},
}
Figure