TL;DR
The authors introduce General OCR Theory (OCR-2.0) and GOT, a 580M-parameter end-to-end model designed to replace fragmented, pipeline-based OCR systems and oversized multimodal LLMs. By coupling an 80M ViT image encoder that heavily compresses $1024\times1024$ inputs into just 256 tokens with a 0.5B language decoder supporting an 8K context window, GOT efficiently transcribes everything from natural scene text and dense multi-page documents to sheet music, charts, molecular SMILES, and geometric TikZ code.
What Problem Does This Paper Address?
Traditional optical character recognition (OCR-1.0) relies on multi-stage pipelines (e.g., layout analysis, text detection, bounding-box cropping, and text recognition). This modular setup suffers from compounding errors, high engineering overhead, and poor generalization across specialized domains like tables or math formulas.
Recently, Large Vision-Language Models (LVLMs) showed strong visual understanding, but they make poor dedicated OCR engines:
- Perception vs. reasoning mismatch: Aligning visual tokens directly to LLM text tokens causes low optical character compression, wasting thousands of image tokens on a single document page.
- Prohibitive scale: Billions of parameters make deployment and fine-tuning computationally expensive, requiring hefty hardware just to parse standard optical text.
The authors propose OCR-2.0: treating all artificial optical signals (plain text, formulas, sheet music, tables, charts, geometry) uniformly as "characters" within a compact, end-to-end architecture.
Methods
GOT employs a lightweight encoder-decoder architecture:
- Vision Encoder: An ~80M-parameter VitDet base model with local attention, taking $1024 \times 1024$ inputs and compressing them into $256 \times 1024$-dimensional vision tokens (a high $4\times$ spatial downsampling over standard patch extraction). Resizing handles varied aspect ratios.
- Decoder: A 500M-parameter Qwen model supporting up to an 8,192-token decoding context, joined to the encoder by a $1024 \times 1024$ linear projection layer. Total parameters: ~580M (deployable on a single 4GB consumer GPU).
The training unfolds across three stages:
- Decoupled Encoder Pre-training: VitDet is connected to an ultra-tiny decoder (OPT-125M) to backpropagate gradients efficiently on 5M image-text pairs of scene and document text.
- Multi-Task Joint Training: The encoder is plugged into Qwen-0.5B and trained across massive synthetic engines rendering structured outputs (LaTeX, Mathpix markdown, SMILES, TikZ, Humdrum
**kern, and Python dictionaries). - Decoder Post-Training for Advanced Interaction: Keeping the encoder frozen, the decoder is fine-tuned to enable:
- Fine-grained interactive OCR: Parsing regions targeted via normalized coordinates
[x1, y1, x2, y2]or visual color cues (red/green/blue bounding boxes). - Dynamic resolution: Handling high-res stitched images (e.g., side-by-side pages) by slicing into up to 12 tiles ($1024\times1024$ sliding window).
- Multi-page OCR: Generating cross-page transcriptions in a single forward pass without "for loops," bypassing strict PDF-page-break alignment issues.
+---------------------------------------------------------------------------------------+
| Three-Stage Training Pipeline |
| |
| [Stage 1: Encoder Pre-train] VitDet (80M) --> [Linear] --> OPT-125M (Tiny Head) |
| [Stage 2: Joint Training] VitDet (Frozen)--> [Linear] --> Qwen-0.5B (Structured) |
| [Stage 3: Post-Training] VitDet (Frozen)--> [Linear] --> Qwen-0.5B (Interactive)|
+---------------------------------------------------------------------------------------+
Datasets
- Pre-training: ~5M image-text pairs (2M scene images from LAION-2B and Wukong filtered with PaddleOCR; 1M slice crops; 2M document full-page/slices from Common Crawl via
fitz). - Joint-Training Engines:
- Handwriting: CASIA-HWDB2 (Chinese), IAM (English), NorHand-v3 (Norwegian).
- Formulas & Tables: ~1M LaTeX math formulas rendered with
mathpix-markdown-it, ~1M SMILES from ChEMBL 25 via RDKit, 0.3M LaTeX tables, ~1.2M markdown full-page PDFs (including 0.2M in-house Mathpix-labeled pages). - General OCR: 0.5M single-system sheet music excerpts from GrandStaff rendered via Verovio; 1M synthetic geometric shapes in TikZ; 2M synthetic charts rendered via Matplotlib and Pyecharts.
- Evaluation Benchmarks: Fox benchmark (plain doc OCR), 400 manually annotated natural scene images, 90 newly annotated pages of formatted documents, ChartQA-SE, PlotQA-SE, and custom test sets for geometry (180 samples) and sheet music (100 samples).
Key Insights and Ideas
- Decoupling perception from linguistic reasoning: Pure OCR does not require a 70B LLM. Moving from reasoning-heavy architectures back to high-compression, perception-focused encoder-decoders yields better accuracy at a fraction of the parameter count.
- Optical characters include code and graphics: Modeling musical notation (
**kern), vector graphics (TikZ), and molecular graphs (SMILES) under the same unified generative token objective proves that structured graphics translation can be treated purely as an OCR task. - Synthetic rendering as the primary driver: By leveraging tools like Mathpix-markdown-it, Verovio, TikZ, and Matplotlib to invert code directly into paired images, the authors circumvent the data-labeling bottleneck.
Key Results
- Document OCR (Fox Benchmark): Despite having only 580M parameters, GOT sets state-of-the-art results on dense English (Edit Distance: 0.035, F1: 0.972) and Chinese (Edit Distance: 0.038, F1: 0.980), outperforming 100× larger models such as Qwen-VL-Max (>72B: Edit Distance 0.057 en / 0.091 zh).
- Scene Text OCR: Surpasses InternVL-1.5 (26B) and Qwen-VL-Max, recording an edit distance of 0.112 (English) and 0.096 (Chinese).
- Chart Extraction: On ChartQA-SE, GOT scores 0.747 AP@strict and 0.867 AP@high, decisively outperforming domain-specific chart baselines (ChartVLM 7.3B at 0.718 AP@strict; Deplot 1.3B at 0.614) and GPT-4V (0.504).
- Fine-Grained & High-Res OCR: Achieved 0.041 (English box) and 0.034 (English color) edit distances on interactive regional tasks, while multi-crop inference noticeably boosted markdown formula extraction from 0.749 to 0.865 F1.
Limitations and Future Work
- Language Support: Primarily engineered for Chinese and English. While incidental multilingual data exists from pre-training, zero-shot transcription quality for other languages remains unverified without targeted fine-tuning.
- Geometric Complexity: TikZ generation is currently limited to basic geometric shapes and curves (lines, circles, hyperbolas); intricate, multi-layered visual geometries are not yet supported.
- Single-System Music: The sheet music engine only transcribes single-system staves rather than full-page orchestral or multi-system compositions.
Summary updated