Efficient Document Parsing via Parallel Token Prediction

Lei Li, Ze Zhao, Meng Li, Zhongwang Lun, Yi Yuan, Xingjing Lu, Zheng Wei, Jiang Bian, Zang Li · DOI

TL;DR

Researchers from Tencent and Renmin University have introduced Parallel Token Prediction (PTP), a method that breaks the sequential bottleneck of Vision-Language Models (VLMs) in document parsing. By inserting learnable "register tokens" into the decoding process, PTP allows models to predict multiple future tokens simultaneously, achieving a 1.6× to 2.2× speedup while actually reducing hallucinations and maintaining state-of-the-art accuracy.

What Problem Does This Paper Address?

Document parsing—converting images of pages into structured, machine-readable text or Markdown—is increasingly handled by Vision-Language Models (VLMs). However, these models typically rely on Next-Token Prediction (NTP), an autoregressive process where the model generates one token at a time.

For a dense document with thousands of characters, this "one-by-one" approach creates a massive latency bottleneck. While researchers have tried compressing sequences or pruning models, the core sequential nature of the decoding remains. The authors argue that document parsing is essentially a high-certainty transcription task; unlike open-ended creative writing, the "ground truth" is physically present in the image, making it a prime candidate for parallelization.

Methods

The core innovation is Parallel Token Prediction (PTP). Instead of modifying the model's internal architecture (which often requires complex re-training), PTP is "plug-and-play."

  1. Register Tokens: The authors introduce a set of learnable continuous tokens called "registers." During training, these are appended after each regular token.
  2. Parallel Training: Each register is trained to predict a future token at a specific offset (e.g., the first register predicts the token after next, the second predicts the one after that).
  3. Modified Attention Masking: To prevent the model from "cheating" or getting confused, they use a custom causal attention mask. This ensures that register tokens can see the preceding text but cannot interfere with the generation of the primary token sequence.
  4. Inference Acceleration: During inference, the model appends $N$ special tokens to the input. In a single forward pass, the model generates $N+1$ tokens.
  5. Data Generation Pipeline: To train this effectively, the authors built a massive pipeline that synthesized and annotated 1.8 million high-quality document samples, using a "committee" of strong models (like Gemini-2.5 Pro and Qwen2.5-VL) to ensure layout-level accuracy.

Datasets

The study evaluates PTP across several rigorous benchmarks:

  • OmniDocBench: A comprehensive benchmark covering 9 document types (academic papers, financial reports, etc.) and 3 languages.
  • olmOCR-bench: A specialized benchmark for PDF-to-Markdown conversion.
  • ScienceQA: Used to test the model's ability to generalize PTP to general vision-language understanding tasks beyond simple OCR.
  • Proprietary 1.8M Dataset: A newly curated dataset featuring diverse layouts, formulas, and tables used for fine-tuning.

Key Insights and Ideas

  • OCR is Transcription, Not Reasoning: The authors realized that because document parsing is a "high-certainty" task, the model doesn't need to wait for the previous token to understand what the next one should be—it just needs to look at the next patch of the image.
  • Hallucination Mitigation: Surprisingly, predicting tokens in parallel reduced hallucinations. In standard sequential decoding, a single wrong token can lead the model "off the rails" (error propagation). PTP encourages the model to rely more on global visual evidence rather than just the immediate linguistic context.
  • Model Agnostic: PTP works across different architectures. The authors successfully applied it to Qwen2.5-VL, InternVL3, and MonkeyOCR, showing consistent gains regardless of the base model's scale.
  • Sample Efficiency: Unlike other multi-token methods that require architectural changes (like adding new "heads"), PTP converges much faster during training because it leverages the model's existing representational capacity.

Key Results

  • Speed: PTP-1 (predicting 2 tokens at once) achieved a 1.6× throughput increase, while PTP-2 (3 tokens at once) reached 2.2× acceleration.
  • Accuracy: On OmniDocBench, the PTP-enhanced models outperformed standard NTP models and even surpassed much larger proprietary models in text and formula recognition.
  • Hallucination Rate: In controlled tests where noise was injected into images, PTP showed significantly lower hallucination rates compared to standard autoregressive models.
  • Speculative Decoding Synergy: When combined with speculative decoding, PTP achieved an 82% acceptance rate on complex reasoning tasks like ScienceQA, proving it isn't just for simple OCR.

Limitations and Future Work

  • Diminishing Returns: The authors found that increasing the number of register tokens beyond three (PTP-2) leads to a "trade-off" where accuracy begins to dip. Predicting too far into the future increases complexity and the risk of error propagation.
  • Computational Overhead: While throughput (tokens per second) increases, each individual forward pass is slightly more computationally expensive because the sequence length is longer. This is generally acceptable in memory-bound decoding scenarios but might be a factor in compute-bound environments.
  • Future Directions: The authors suggest exploring dynamic register allocation—adjusting the number of parallel tokens based on the complexity of the document region being parsed.

Summary updated

BibTeX
@misc{li2026efficient,
  author = {Lei Li and Ze Zhao and Meng Li and Zhongwang Lun and Yi Yuan and Xingjing Lu and Zheng Wei and Jiang Bian and Zang Li},
  title = {{Efficient Document Parsing via Parallel Token Prediction}},
  year = {2026},
  eprint = {2603.15206},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.15206},
}
Figure