Diffusion Drafts, AR Verifies: Accelerating Document OCR with Self-Speculative Decoding
Dohyun Kim, Sungjun Han, Hyungguk Kim, Yusik Kim, Jamin Shin, Paul Hongsuck Seo, Hongjoon Ahn
Abstract
Autoregressive OCR vision-language models accurately convert document images into text and structured markup, but require one sequential decoding step per output token, limiting inference speed. Unlike open-ended text generation, OCR outputs are strongly grounded in the input image, making diffusion-based parallel generation promising. However, when several tokens are predicted in one diffusion step, each is predicted before the others are known. Committing them directly can therefore introduce errors. We therefore introduce GravityOCR, a parameter-shared AR-block-diffusion model jointly trained for parallel drafting and causal AR verification. Verifying drafts before commitment lets the model commit multiple output tokens per round without a separate drafting network. The causal AR path also enables GRPO with sequence- and structure-level OCR rewards, avoiding diffusion-trajectory likelihood estimation while updating the shared drafter parameters. On OmniDocBench v1.6, AR-path GRPO improves the Overall score from 94.92 to 95.16 without reducing diffusion drafting efficiency, while the final model remains close to the original GLM-OCR score of 95.48. In an SGLang serving deployment, GravityOCR commits an average of 9.7 output tokens per forward pass and achieves a decode-only speedup on region crops and a end-to-end page-processing speedup over AR decoding.
Create a lesson
Metadata
- Categories
- cs.CL, cs.CV
Related papers
Look Back, Draft Ahead: Corrective Prefix Attention for Parallel Speculative Decoding
Shared title terminologycs.CLMohammad Mahdi Moradi, Ali Pourranjbar, Zongzuo Wang et al.
Pitfalls of Dependency-Ready Decoding for Masked Diffusion Language Models
Shared title terminologycs.CLLina Berrayana, Christopher Malon, Yoichi Ishibashi et al.
Quantizing Diffusion LLMs under Parallel Decoding: Commitment Risk and the Parallelism Tax
Shared title terminologycs.CLHuan Xu, Maosen Zhao, Pengtao Chen et al.
When Parallel Drafter Meets Parallel Speculative Decoding
Shared title terminologycs.CLFuliang Liu, Xue Li, Kun Qian et al.
Flash-dLLM: IO-Aware KV Caching and Parallel Decoding for Fast, Memory-Efficient Diffusion LLMs
Shared title terminologycs.CLQuan Nguyen-Tri, Mukul Ranjan, Zhiqiang Shen
Adapting Tree-Structured Speculative Decoding to DeepSeek-V4 for Efficient Inference
Shared title terminologycs.CLChangxu Liu, Zhaogeng Li