Prefix-Adaptive Block Diffusion for Efficient Document Recognition

Chai, Mingxu, Shen, Ziyu, Liu, Chenyu, Kang, Jihua, Gui, Tao, Zhang, Qi

–arXiv.org Artificial Intelligence 

Abstractthis, recent studies have explored various parallel generation paradigms (Du et al., 2025; Duan Block Diffusion Models (BDMs) support par-et al., 2026). However, existing BDMs inside each block in parallel, thereby improving de-bind denoising and cache commitment to fixed block boundaries: parallelism shrinks duringcoding parallelism while retaining flexible-length intra-block denoising, while generated tokensgeneration and KV-cache reuse (Man et al., 2026). Moreover, intra-block bidirectional de-tion, the standard BDM formulation reveals limnoising conflicts with inter-block autoregres-itations in both efficiency and structural modelsion, creating inconsistent information flowing. First, standard BDMs rely on predefined block that can challenge structure-sensitive recogniboundaries and use them as both local denoisingtion. We propose the Prefix-Adaptive Block Diffusion Model (PA-BDM), which replacesranges and cache-commitment units, as shown in intra-block bidirectional denoising with causal Figure 1(c). As a result, generated tokens can be writdenoising from prefix to suffix and treats theten into the KV cache only after the whole block block size as a maximum candidate rangeis completed, making it difficult to promptly reuse rather than a fixed commitment unit. PA-BDM uses Confidence-gated Structural Loss (CSL) reliable intermediate predictions. Meanwhile, as intra-block denoising proceeds, the number of re-to build low-entropy prefixes before extending maining masked tokens gradually decreases, reductraining to longer continuations. Second,ence, Progressive Prefix Commitment (PPC) then dynamically commits the longest reliablestandard BDMs introduce inconsistent information prefix into the KV cache and resets the nextflow between intra-block and inter-block modelcandidate range from the updated prefix, restoring: tokens within the same block can condition on ing a large parallel decoding space at eacheach other bidirectionally, while cross-block genstep. Experiments show that the 3BPA-BDM achieves higher recognition scores on several eration still follows a left-to-right autoregressive order. For tasks mainly driven by global semantics, benchmarks and improves inference throughsuch bidirectional context may be beneficial, sinceput by 71.6% over the 2.5BMinerU-Diffusion. output quality does not always depend on the exact 1 Introductionstructural position of each token. However, document recognition requires precise reconstruction Document parsing aims to recognize document im-of discrete token sequences from visual content, ages into machine-readable formats (Zhang et al., and structured outputs such as LaTeX and HTML 2025).