Abstract
HunyuanOCR is a lightweight, 1B-parameter Vision-Language Model (VLM) that unifies diverse OCR tasks—from text spotting to complex document translation—into a single, end-to-end framework. By leveraging high-quality data and being the first to successfully apply Reinforcement Learning (GRPO) to OCR, it outperforms commercial APIs and models four times its size.
Introduction
Traditional OCR systems are typically structured as "cascaded pipelines," where separate models are used for text detection, layout analysis, character recognition, and translation. This modular approach is inherently brittle; an error in the initial detection step propagates through the entire chain, leading to significant downstream failures.
While general-purpose VLMs (such as GPT-4o or Qwen-VL) can handle OCR tasks, they are often computationally expensive for edge deployment and sometimes lack the precision required for dense, complex documents. HunyuanOCR aims to bridge this gap by providing a commercial-grade, efficient model that handles the entire OCR lifecycle in a single inference pass without external dependencies.
Architecture and Methodology
The architecture of HunyuanOCR is elegantly simple: a Native Vision Transformer (ViT) based on SigLIP-v2-400M and a Lightweight LLM (Hunyuan-0.5B) connected via an MLP adapter.
Key Technical Innovations
- End-to-End Optimization: By eliminating pre-processing steps like layout analysis, the model resolves the error propagation issues common in cascaded systems.
- XD-RoPE: A novel positional encoding scheme that deconstructs standard RoPE into four subspaces (text, height, width, and time). This allows the model to better align 1D text sequences with 2D page layouts.
- Reinforcement Learning (RL): This report is the first to demonstrate that RL strategies, specifically Group Relative Policy Optimization (GRPO), yield significant gains in OCR. For "closed-form" tasks like spotting, the team used Reinforcement Learning with Verifiable Rewards (RLVR) based on metrics like IoU and edit distance. For open-ended tasks like VQA, an LLM-as-a-judge approach was employed.
- Native Resolution Scaling: The ViT processes images in their native proportions to avoid distortion, which is critical for maintaining accuracy in documents with dense, long-form text.
Data and Evaluation
The model was trained on a massive corpus of over 200 million image-text pairs spanning 130+ languages and nine scenarios, including street views, documents, and handwritten text. To enhance training, the team extended the SynthDog framework to support paragraph-level rendering and Right-to-Left (RTL) languages.
In addition to standard benchmarks like OmniDocBench (parsing), OCRBench (VLM-OCR capabilities), and DoTA (translation), the authors introduced new benchmarks:
- Wild-OmniDocBench: Documents with real-world distortions like folds and blurs.
- DocML: A multilingual parsing dataset covering 14 high-frequency languages.
Key Results and Analysis
HunyuanOCR achieves impressive performance across the board, often surpassing models with significantly higher parameter counts.
In document parsing, HunyuanOCR secured 1st place in the ICDAR 2025 DIMT Challenge (Small Model Track). On the OmniDocBench benchmark, it achieved a state-of-the-art (SOTA) score of 94.10, outperforming models like Qwen3-VL-235B-Instruct and specialized tools like MinerU2.5.
Despite its 1B-parameter scale, the model demonstrates remarkable efficiency. On the DoTA translation benchmark, it achieved a 83.48 COMET score, surpassing models with over 8B parameters. The authors attribute this success to "application-aligned" training data and the unification of tasks, which allows the model to reuse features across different OCR domains.
Limitations and Future Work
While HunyuanOCR is highly efficient, its translation capabilities still lag slightly behind much larger specialized models (like Hunyuan-MT-7B) due to the limited linguistic capacity of the 0.5B LLM backbone.
Future work will focus on:
- Token Compression: Reducing sequence length to further improve inference speed.
- Higher Resolution: Enhancing the model's ability to handle ultra-high-resolution images.
- Multi-page Support: Extending the architecture to handle long, multi-page documents natively.
Summary updated