← Latest papers
🤖 AI

Prefix-Adaptive Block Diffusion for Efficient Document Recognition

This paper proposes the Prefix-Adaptive Block Diffusion Model (PA-BDM), which enhances efficient document recognition by replacing fixed block boundaries with dynamic prefix commitment and causal denoising to resolve information flow inconsistencies, thereby achieving superior accuracy and a 71.6% increase in inference throughput compared to existing models.

Original authors: Mingxu Chai, Ziyu Shen, Chenyu Liu, Kaidi Zhang, Jiazheng Zhang, Dingwei Zhu, Zhiheng Xi, Ruoyu Chen, Jun Long, Jihua Kang, Tao Gui, Qi Zhang

Published 2026-05-19
📖 5 min read🧠 Deep dive

Original authors: Mingxu Chai, Ziyu Shen, Chenyu Liu, Kaidi Zhang, Jiazheng Zhang, Dingwei Zhu, Zhiheng Xi, Ruoyu Chen, Jun Long, Jihua Kang, Tao Gui, Qi Zhang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to transcribe a complex, handwritten math formula or a dense table from a document image into a computer-readable format.

The Old Way (The "Rigid Block" Problem)
Think of current efficient AI models (called Block Diffusion Models) as a team of scribes working in shifts. They divide the page into fixed-size chunks, say 32 words at a time.

  • The Bottleneck: They work on all 32 words simultaneously (which is fast), but they can't save their progress or "lock in" any of those words until the entire chunk of 32 is finished.
  • The Confusion: Inside that chunk, the scribes can look at each other's work from left to right and right to left. While this seems helpful, it creates a mess when they move to the next chunk. The next chunk only knows what came before it (left-to-right), but the previous chunk was a jumbled mix of directions. This inconsistency makes it hard to get the structure of things like math formulas or tables right.
  • The Waste: As they finish words inside a chunk, the "parallel" work slows down because fewer words are left to guess. It's like a factory assembly line that stops being efficient once half the products are made.

The New Solution: PA-BDM (The "Adaptive Scribe")
The authors propose a new method called Prefix-Adaptive Block Diffusion (PA-BDM). Here is how it changes the game using simple analogies:

1. The "Candidate Range" vs. The "Fixed Box"

Instead of treating a block of 32 words as a rigid box that must be filled completely before moving on, PA-BDM treats it as a maximum candidate range.

  • Analogy: Imagine you are filling a bucket with water. The old method says, "You must fill the whole bucket before you can pour any water into the storage tank." PA-BDM says, "Fill the bucket as much as you can, and as soon as you are sure a cup of water is clean and safe, pour it into the storage tank immediately."
  • Result: The AI doesn't wait for the whole block to finish. It grabs the "reliable" part (the prefix) and saves it instantly.

2. Causal Flow (The "One-Way Street")

The old method let scribes look backward and forward within a block, which confused the order of things. PA-BDM forces everyone to look only forward (from left to right), just like reading a book.

  • Analogy: In the old system, a scribe in the middle of a sentence could peek at the end of the sentence to guess the middle. This worked for casual chat but failed for strict structures like math equations where order matters. PA-BDM enforces a strict "one-way street" rule, ensuring the AI learns the correct sequence every time.

3. Progressive Prefix Commitment (PPC) – The "Confidence Check"

This is the engine of the new system. As the AI guesses the next batch of words, it checks its own confidence.

  • How it works: If the AI is 99% sure about the first 10 words of a 32-word block, it "commits" (locks in) those 10 words immediately. It then throws away the remaining 22 guesses and starts a fresh batch of 32 guesses based on those 10 locked words.
  • The Benefit: This resets the "parallel space." Instead of working on a shrinking list of 22, then 10, then 5 words, the AI gets to work on a fresh, full set of 32 words again and again. This keeps the speed high.

4. Confidence-Gated Structural Loss (CSL) – The "Strict Teacher"

During training, the AI learns by trying to fix mistakes. The old method forced the AI to learn from all mistakes, even if the beginning of the sentence was already shaky.

  • The Fix: PA-BDM uses a "confidence gate." If the AI is unsure about the start of a sentence, the teacher (the training algorithm) stops grading the rest of the sentence. It only grades the part the AI is confident about.
  • Analogy: Imagine a teacher grading a math test. If the student gets the first step wrong, the teacher doesn't waste time grading the final answer because it's based on a wrong premise. The teacher waits until the student gets the first step right before grading the rest. This prevents the AI from learning "noisy" or bad patterns.

The Results

The paper claims that this new approach, PA-BDM, is a massive upgrade:

  • Speed: It is 71.6% faster than the previous best diffusion model (MinerU-Diffusion) and about 8 times faster than standard autoregressive models (which write one word at a time).
  • Accuracy: It is more accurate at recognizing complex structures like math formulas, tables, and diagrams because it respects the strict order of tokens.
  • Efficiency: It uses memory just as efficiently as the older models but gets much more work done in the same amount of time.

In short, PA-BDM stops the AI from waiting for "perfect blocks" and instead lets it lock in "good enough" progress immediately, keeping the assembly line moving at top speed without losing accuracy.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →