Abstract
Multimodal large language models (MLLMs) have shown impressive capabilities across various domains, excelling in processing and understanding information from multiple modalities. Despite the rapid progress made previously, insufficient OCR ability hinders MLLMs from excelling in text-related tasks. In this paper, we present Ocean-OCR, a 3B MLLM with state-of-the-art performance on various OCR scenarios and comparable understanding ability on general tasks. We employ Native Resolution ViT to enable variable resolution input and utilize a substantial collection of high-quality OCR datasets to enhance the model performance. We demonstrate the superiority of Ocean-OCR through comprehensive experiments on open-source OCR benchmarks and across various OCR scenarios. These scenarios encompass document understanding, scene text recognition, and handwritten recognition, highlighting the robust OCR capabilities of Ocean-OCR. Note that Ocean-OCR is the first MLLM to outperform professional OCR models such as TextIn and PaddleOCR.
Introduction
While Multimodal Large Language Models (MLLMs) have made massive strides in general visual reasoning, they often stumble on "fine-grained" perception tasks—specifically Optical Character Recognition (OCR). Standard MLLMs typically resize images to a fixed resolution, which destroys the legibility of small or densely packed text found in documents and medical reports. Conversely, specialized OCR engines are excellent at "reading" but lack the "understanding" needed to follow complex instructions or extract structured information. Ocean-OCR aims to bridge this gap, creating a single 3B-parameter model that combines the precision of professional OCR tools with the reasoning power of modern LLMs.
Methods
The architecture follows a LLaVA-style framework but introduces key optimizations for text-heavy tasks, as illustrated in the model architecture overview.
- Native Resolution ViT (NaViT): Instead of forcing every image into a fixed square, Ocean-OCR uses a NaViT-style vision encoder. This allows the model to process images of any aspect ratio and resolution natively, preserving the structural integrity of text.
- Token Compression: To maintain efficiency with high-resolution inputs, the authors implement a $2 \times 2$ pooling strategy in the MLP projector, compressing four adjacent visual tokens into one before they reach the LLM.
- The Backbone: The model utilizes Qwen-2.5-3B as its language backbone, striking a balance between edge-deployment feasibility and robust linguistic understanding.
- Three-Stage Training: The pipeline includes projector alignment, pre-training on a massive corpus of interleaved text and images, and supervised fine-tuning (SFT) to refine instruction-following for OCR tasks.
Datasets
The authors emphasize that "data is the key," utilizing a mix of public and massive in-house datasets totaling over 300 million samples. This includes public data like OBELICS and DocStruct4M, alongside a substantial collection of 150M+ pure text tokens to maintain reasoning and specialized synthetic datasets for bilingual (Chinese/English) handwriting and complex PDF layouts.
Key Results
Ocean-OCR demonstrates state-of-the-art (SOTA) performance for its size, outperforming both larger generalist models and specialized industry tools.
- OCR Benchmarks: It achieved an average score of 84.7 across DocVQA, TextVQA, ChartQA, and OCRBench, outperforming models like InternVL-2.5-4B.
- Real-World Scenarios: In dense document extraction, Ocean-OCR achieved an F1-score of 0.937 (English) and 0.962 (Chinese), significantly beating specialized models like PaddleOCR.
- Handwriting: It showed a remarkable ability to transcribe messy, bilingual handwriting, a task where even powerful models like Qwen-2-VL-2B often struggle.
- General Reasoning: Despite the heavy OCR focus, it remained competitive on general benchmarks like SEEDBench and MMBench, proving it retains its general reasoning capabilities.
Conclusion
Ocean-OCR proves that with the right data and resolution handling, a generalist MLLM can surpass specialized, traditional OCR engines. While the model is a major step forward, future work will focus on even more specialized benchmarks for high-stakes environments like the medical and financial domains.
Summary updated