DharmaOCR: Specialized Small Language Models for Structured OCR that outperform Open-Source and Commercial Baselines
On the map: LLM alignment / RLHF / preference optimisation → Diffusion and multimodal model alignment
Abstract (arXiv)
This manuscript introduces DharmaOCR Full and Lite, a pair of specialized small language models (SSLMs) for structured OCR that jointly optimize transcription quality, generation stability, and inference cost. It also presents DharmaOCR-Benchmark, a benchmark that covers printed, handwritten, and legal/administrative documents, and proposes a unified evaluation protocol that measures fidelity and structure while explicitly tracking text degeneration as a first-class benchmark metric (alongside unit cost). Beyond reporting degeneration rates, the manuscript empirically shows degeneration is not merely a quality failure, since it materially worsens production performance by increasing response time, reducing throughput, and inflating computational cost due to abnormally long generations. To the best of the author's knowledge, as a methodological contribution, this is the first application of Direct Preference Optimization (DPO) for OCR, explicitly using degenerate generations as rejected examples to penalize looping behavior. Combined with Supervised Fine-Tuning (SFT) for enforcing a strict JSON schema (header, margin, footer, and text), DPO consistently reduces degeneration rate across model families (up to 87.6% relative) while preserving or improving extraction quality. The resulting models, namely, DharmaOCR Full (7B) and DharmaOCR Lite (3B), set a new state-of-the-art on DharmaOCR-Benchmark, outperforming each open-source and commercial baseline model evaluated regarding extraction quality, reaching 0.925 and 0.911 scores with 0.40% and 0.20% degeneration rates. AWQ quantization reduced up to 22% per-page cost with negligible quality loss, enabling a strong quality-cost trade-off in comparison to proprietary OCR APIs and open-source alternatives.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Diffusion and multimodal model alignment, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 26 of its 58 references that are in the map. First posted on arXiv 15 Apr 2026.
Builds on
26 of 58 references.
Closest ancestors · 1
Same direction, newest first
Other references · 25
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2019LayoutLM: Pre-training of Text and Layout for Document Image Understandingcited by 553
- 2015An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognitioncited by 520
- 2019Neural Text Generation with Unlikelihood Trainingcited by 503
- 2020LayoutLMv2: Multi-modal Pre-training for Visually-Rich Document Understandingcited by 408
- 2024Break the Sequential Dependency of LLM Inference Using Lookahead Decodingcited by 298
- 2020Integer Quantization for Deep Learning Inference: Principles and Empirical Evaluationcited by 188
13 more
- 2025olmOCR: Unlocking Trillions of Tokens in PDFs with Vision Language Modelscited by 125
- 2020A Theoretical Analysis of the Repetition Problem in Text Generationcited by 83
- 2025olmOCR 2: Unit Test Rewards for Document OCRcited by 47
- 2024MBQ: Modality-Balanced Quantization for Large Vision-Language Modelscited by 45
- 2023Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspectivecited by 39
- 2025Principled Data Selection for Alignment: The Hidden Risks of Difficult Examplescited by 37
- 2025Understanding the Repeat Curse in Large Language Models from a Feature Perspectivecited by 37
- 2024Queue management for slo-oriented large language model servingcited by 36
- 2021Relating Neural Text Degeneration to Exposure Biascited by 19
- 2024Comparing Specialised Small and General Large Language Models on Text Classification: 100 Labelled Samples to Achieve Break-Even Performancecited by 18
- 2024Mitigating the Language Mismatch and Repetition Issues in LLM-based Machine Translation via Model Editingcited by 18
- 2025Multimodal LLMs for OCR, OCR Post-Correction, and Named Entity Recognition in Historical Documentscited by 12
- 2026What LLMs Think When You Don't Tell Them What to Think About?cited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Do VLMs Read or Rewrite? On Transcription Faithfulness in Vision-Language Models
- 2026HunyuanOCR-1.5: Making Lightweight OCR VLMs Faster and Better
- 2026OmniHandwritingOCR: A Diagnostic Benchmark for Evaluating Multimodal LLMs in Handwritten OCR Scenarios
- 2026Scaling State-Space Models from Lines to Paragraphs: An Ablation of Mamba-based OCR
- 2026PP-OCRv5: A Specialized 5M-Parameter Model Rivaling Billion-Parameter Vision-Language Models on OCR Tasks
- 2026GlotOCR Bench: OCR Models Still Struggle Beyond a Handful of Unicode Scripts
- 2026LightOnOCR: A 1B End-to-End Multilingual Vision-Language Model for State-of-the-Art OCR
- 2026PolyOCR-Venus: Unified OCR Foundation Models for Text-Centric Visual Intelligence