评估Devanagari OCR后校正的上下文学习和检索策略
摘要
本文首次对大规模语言模型在印地语和马拉地语的OCR后校正进行系统性评估,比较上下文学习的检索策略,并展示CharBM25的有效性。
arXiv:2609.21595v1 Announce Type: new
Abstract: In-context learning using Large Language Models (LLMs) offers a compelling path to training-free post-OCR correction, yet its effectiveness for Devanagari script remains entirely unexplored. We present the first systematic evaluation of LLMs (3B-32B) for post-OCR correction in Hindi and Marathi, comparing three in-context example retrieval strategies: domain-random selection, dense semantic retrieval, and our proposed CharBM25, which retrieves examples by character n-gram BM25 similarity over OCR inputs to target shared error patterns with the test sentence. Across a 20,000-sentence benchmark spanning five news domains, retrieval strategy is the decisive factor in correction quality: CharBM25 outperforms domain-random selection by 2.8-4.0pp absolute WER on Hindi and 2.9-3.8pp on Marathi, using character trigrams, which consistently outperform bigrams and unigrams. Scale dominates performance: Gemma-3-27B achieves WER reductions of 55.0% for Hindi and 33.3% for Marathi under CharBM25-5. Few-shot gains are capacity-gated: models below 8B do not reliably improve over the OCR baseline, and on Marathi the smallest models (3B) degrade more sentences than they improve. Marathi is persistently harder to correct than Hindi across all scales, reflecting its greater morphological complexity. These findings establish CharBM25 as an effective, GPU-free retrieval strategy that matches or exceeds dense retrieval at negligible computational cost, and show that combining it with a general-purpose LLM of 12B+ parameters delivers reliable, training-free Devanagari post-OCR correction without task-specific fine-tuning. Dataset: https://huggingface.co/datasets/AbhishekBhandari/Devanagari-OCR-ICL-Benchmark
查看缓存全文
缓存时间: 2026/09/21 09:08
# Evaluating In-Context Learning and Retrieval Strategies for Devanagari Post-OCR Correction Source: [https://arxiv.org/abs/2609.21595](https://arxiv.org/abs/2609.21595) [View PDF](https://arxiv.org/pdf/2609.21595) > Abstract:In\-context learning using Large Language Models \(LLMs\) offers a compelling path to training\-free post\-OCR correction, yet its effectiveness for Devanagari script remains entirely unexplored\. We present the first systematic evaluation of LLMs \(3B\-32B\) for post\-OCR correction in Hindi and Marathi, comparing three in\-context example retrieval strategies: domain\-random selection, dense semantic retrieval, and our proposed CharBM25, which retrieves examples by character n\-gram BM25 similarity over OCR inputs to target shared error patterns with the test sentence\. Across a 20,000\-sentence benchmark spanning five news domains, retrieval strategy is the decisive factor in correction quality: CharBM25 outperforms domain\-random selection by 2\.8\-4\.0pp absolute WER on Hindi and 2\.9\-3\.8pp on Marathi, using character trigrams, which consistently outperform bigrams and unigrams\. Scale dominates performance: Gemma\-3\-27B achieves WER reductions of 55\.0% for Hindi and 33\.3% for Marathi under CharBM25\-5\. Few\-shot gains are capacity\-gated: models below 8B do not reliably improve over the OCR baseline, and on Marathi the smallest models \(3B\) degrade more sentences than they improve\. Marathi is persistently harder to correct than Hindi across all scales, reflecting its greater morphological complexity\. These findings establish CharBM25 as an effective, GPU\-free retrieval strategy that matches or exceeds dense retrieval at negligible computational cost, and show that combining it with a general\-purpose LLM of 12B\+ parameters delivers reliable, training\-free Devanagari post\-OCR correction without task\-specific fine\-tuning\. Dataset:[this https URL](https://huggingface.co/datasets/AbhishekBhandari/Devanagari-OCR-ICL-Benchmark) ## Submission history From: Abhishek Bhandari \[[view email](https://arxiv.org/show-email/376ecdfa/2609.21595)\] **\[v1\]**Fri, 18 Sep 2026 10:26:08 UTC \(120 KB\)
相似文章
OCR-VLM能阅读天城文吗?一个压力测试基准与后校正研究
本文在合成退化与真实扫描条件下对十种OCR系统进行了天城文基准测试,发现合成渲染高估了质量,专用OCR-VLM脆弱,且强大的英文OCR无法预测印地语OCR性能。发布了基准、代码和模型。
用于资源匮乏的东北印度语言的BM25增强多示例翻译
本文提出了一种使用BM25和Gemini 2.5 Flash的检索增强翻译系统,针对资源匮乏的东北印度语言,提交至WMT26共享任务,无需模型微调。
Inspect India Evals:面向印度语言文化语境的大语言模型开放评估框架
介绍Inspect India Evals,一个用于在印度语言文化语境中评估大语言模型的开源框架,包含六项基准测试,涵盖多语言能力、偏见、安全性和文化知识。对五个模型的测试显示,Sarvam-M 24B和Gemma 2 27B表现领先。
使用渐进微调序列到序列Transformer的上下文泰米尔语拼写和语法纠正
本文提出了一种端到端的序列到序列方法,用于上下文泰米尔语拼写和语法纠正,使用在合成数据上渐进微调的mT5和mBART模型,在诊断集上实现了69.3%的精确匹配准确率。
评估针对达罗毗荼语的专用单语模型与联合多语言因果模型
本文从头训练了五个GPT-2风格模型,比较了针对泰米尔语、泰卢固语、卡纳达语和马拉雅拉姆语的专用单语模型与一个联合多语言模型,发现单语模型在情感分类和命名实体识别上优于mGPT,且分词器更高效。