Manuscript Offprint

arXiv:2609.03181

Jina-OCR-v1: Efficient Document Parsing with Speculative Decoding and Dense Verifiable Rewards

Alejandro Barón García, Feng Wang, Emilia Garcia Casademont, Han Xiao

Abstract

We present Jina-OCR-v1, an end-to-end document parsing model built to serve on low-budget GPUs. It combines the compressed-vision encoder and the 3B mixture-of-experts decoder of DeepSeek-OCR, which activates about 570M parameters per token, with a FastMTP speculative decoding head that shares a single draft block recursively across K=3K=3 prediction steps. Greedy verification makes decoding lossless. Post-training combines instruction alignment, robustness fine-tuning on difficult documents, and GRPO under dense verifiable rewards: deterministic formula, table, and structural checks that award partial credit. The training data mixes cleaned public corpora with targeted synthetic pages. At the default dynamic-resolution setting, Jina-OCR-v1 scores 91.14 on OmniDocBench v1.6 and 83.4 on olmOCR-Bench, and reaches the highest page throughput in our comparison at 2.57 pages per second. On a low-budget GPU such as the NVIDIA L4, FastMTP doubles decoding speed over greedy autoregressive decoding. The model is publicly available at https://huggingface.co/jinaai/jina-ocr-v1.

1 Introduction

End-to-end document parsing with vision-language models (VLMs) has recently emerged as a prominent paradigm [Wei et al., 2024, Nassar et al., 2025, Rednote HiLab, 2025, Wei et al., 2025], collapsing layout analysis, text recognition, formula transcription, and table structure recovery into a single generative pass. Its outputs provide machine-readable representations for retrieval, grounding, and agentic workflows, but production use, especially on the low-budget GPUs common in deployment, remains constrained by decoding cost and post-training data coverage.

Long outputs make decoding expensive. General-purpose VLMs such as Qwen2.5-VL-72B [Bai et al., 2025] use thousands of vision tokens per page and decode strictly autoregressively. DeepSeek-OCR [Wei et al., 2025] showed that a compressed vision encoder and a compact MoE decoder substantially reduce the serving cost. We build on that architecture and target the remaining autoregressive bottleneck: the local structure of OCR output makes it possible to draft several tokens before the verifier evaluates them.

Post-training requires both reliable supervision and coverage. Open labels may contain degeneration loops or malformed structures, and formula- and table-specific rewards apply only to pages containing those elements. At the same time, document requests span full-page parsing, element transcription, and different formatting conventions.

Figure

Figure

Figure 1: Overview of specialized OCR models; blue marks this work. (a) Pixels per visual token (log scale) with the measured value. (b) Page throughput on olmOCR-Bench (pages/s, one A100, concurrency 32). (c) Benchmark overall against active parameters (log scale) on olmOCR-Bench (top) and OmniDocBench (bottom); the solid line joins the Pareto-optimal systems and the dashed segments extend it to the axis corners; unlabeled points are the remaining systems of Table 5, Table 6, and Table 7.

Our principal design choices are:

  • FastMTP decoding. We attach a recursively shared FastMTP [Cai et al., 2025] draft block (K=3) to the compressed-vision, 3B-MoE backbone of DeepSeek-OCR. Sharing one block across prediction depths keeps the draft parameter count constant in K.

  • Post-training under dense verifiable rewards. We optimize a multiplicative GRPO reward over content, structure, unit tests, repetition, and format with a ReMax baseline [Li et al., 2023]. Every term is deterministic code against a reference and is graded, so a partially correct page receives partial credit. Synthetic pages packed with scorable formulas and tables (JinaOCRSynth) raise the share of training pages on which the formula and table terms apply.

  • Instruction-oriented training. Building on ReaderLM-v2 [Wang et al., 2025], the mixture covers multiple parsing styles, element-level transcription, captioning, document VQA, and key-information extraction, with dynamically generated instructions and auxiliary grounding examples.

Figure 1 places Jina-OCR-v1 on three axes that jointly determine deployment cost: visual compression, page throughput, and accuracy per active parameter.

Panel (a) measures how aggressively the vision encoder compresses a page. The effective patch side pp is the spatial extent of one visual token, and pixels per visual token is how many image pixels that token represents. A square-patch ViT with patch side pp yields about p2p^2 pixels per token, so the 28–32 px encoders used by the Qwen-VL family and related models sit near 780–1,000 pixels/token. DeepEncoder instead maps a 1024×10241024\times1024 global view from 4,096 patches to 256 tokens (p=64p=64, about 4,096 pixels/token). Jina-OCR-v1 inherits that encoder, so a page of comparable resolution is represented by far fewer visual tokens.

Panel (b) reports page throughput on olmOCR-Bench. Visual compression alone does not determine it: DeepSeek-OCR matches the pixel-per-token density of Jina-OCR-v1 while emitting longer pages, and Section 6.3 measures the resulting difference.

Panel (c) shows that parsing quality is preserved. Jina-OCR-v1 activates 570M decoder parameters per token and lies on the accuracy frontier against that budget on both bench-marks, ahead of systems an order of magnitude larger, and on OmniDocBench it is the most compact point on that frontier.

Section 2 reviews related work. Section 3 specifies the FastMTP head, Section 4 the training data, Section 5 the post-training recipe, and Section 6 the evaluation.

References (50)