Abstract
Optical character recognition engines always return a transcription, so every pipeline must decide, word by word, whether to trust it. Existing verifiers judge the claim in isolation, by engine confidence, by agreement with a second recogniser, or by asking a large vision-language model. We instead ask whether the claim is the best explanation of the image among the strings it could have been confused with. LOCUS constructs a small graph around each claim, comprising plausible single-character edits and independent readings. It scores each candidate string according to how well it explains the real image relative to a clean rendering of that string, thereby cancelling the recogniser’s language prior, and uses a relation-aware graph neural network to determine whether the claim is locally optimal. The network is pretrained without human labels from engine agreement and synthetic corruptions and adapts from a few labelled words. We introduce a benchmark of real recognition errors from two engines on five public datasets covering forms, receipts, handwriting and scene text. With 25 labelled words per class, LOCUS ranks correct above incorrect transcriptions better than engine confidence, learned confidence, engine voting, Florence-2 re-recognition and a seven-billion-parameter vision-language judge on every dataset, and attains the best average macro-F1. It is significantly better than re-recognition with a strong recogniser where that recogniser is fallible, comparable where it is in-domain, and behind it on its own scene-text benchmark. Controlled analyses show that the gain comes from the explicit counterfactual evidence and label-free pretraining: simpler learners on the same evidence come within 0.015 macro-F1 of the graph network, and message passing is not needed. LOCUS also rejects most errors whose true string lies outside its graph. A cascade that runs LOCUS only on words a fast recogniser does not confidently confirm keeps its macro-F1 at 1.3–2.6 times the throughput.References
- Fu, Ling, Zhebin Kuang, Jiajun Song, Mingxin Huang, Biao Yang, Yuzhe Li, Linghao Zhu et al. “Ocrbench v2: An Improved Benchmark for Evaluating Large Multimodal Models on Visual Text Localization and Reasoning.” Advances in Neural Information Processing Systems 38 (2026).
- Zhang, Can, Ziheng Wu, Zhenghao Chen, Yufei Zhan, Yifan Li, Zhao Zhang, Xian Wang, and Minghui Qiu. “Seeing is Believing? Mitigating OCR Hallucinations in Multimodal Large Language Models.” Advances in Neural Information Processing Systems 38 (2026): 74230-74248.
- Bautista, Darwin, and Rowel Atienza. “Scene Text Recognition with Permuted Autoregressive Sequence Models.” In European conference on computer vision, Cham: Springer Nature Switzerland, 2022, 178-196.
- Li, Minghao, Tengchao Lv, Jingye Chen, Lei Cui, Yijuan Lu, Dinei Florencio, Cha Zhang, Zhoujun Li, and Furu Wei. “Trocr: Transformer-based Optical Character Recognition with Pre-Trained Models.” In Proceedings of the AAAI conference on artificial intelligence, vol. 37, no. 11, 2023, 13094-13102.
- Xiao, Bin, Haiping Wu, Weijian Xu, Xiyang Dai, Houdong Hu, Yumao Lu, Michael Zeng, Ce Liu, and Lu Yuan. “Florence-2: Advancing a Unified Representation for a Variety of Vision Tasks.” In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, 2024, 4818-4829.
- Qwen Team. (2025). Qwen2.5-VL-7B-Instruct [Vision-language model]. Alibaba Cloud. https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct
- Corbiere, Charles, Nicolas Thome, Antoine Saporta, Tuan-Hung Vu, Matthieu Cord, and Patrick Perez. “Confidence Estimation via Auxiliary Models.” IEEE Transactions on Pattern Analysis and Machine Intelligence 44, no. 10 (2021): 6043-6055.
- Kanerva, Jenna, Cassandra Ledins, Siiri Käpyaho, and Filip Ginter. “OCR Error Post-correction with LLMs in Historical Documents: No Free Lunches.” In Proceedings of the Third Workshop on Resources and Representations for Under-Resourced Languages and Domains (RESOURCEFUL-2025), 2025, 38-47.
- Kim, Geewook, Teakgyu Hong, Moonbin Yim, JeongYeon Nam, Jinyoung Park, Jinyeong Yim, Wonseok Hwang, Sangdoo Yun, Dongyoon Han, and Seunghyun Park. “Ocr-free Document Understanding Transformer.” In European Conference on Computer Vision, Cham: Springer Nature Switzerland, 2022, 498-517.
- Poznanski, Jake, Kyle Lo, and Luca Soldaini. “The olmOCR Project: Building Fully Open OCR using VLMs.” In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations), 2026, 626-635.
- Leng, Sicong, Hang Zhang, Guanzheng Chen, Xin Li, Shijian Lu, Chunyan Miao, and Lidong Bing. “Mitigating Object Hallucinations in Large Vision-Language Models Through Visual Contrastive Decoding.” In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, 2024, 13872-13882.
- Dubey, Shikhar, Krish Mittal, Sourava Kumar Behera, Manikandan Ravikiran, Nitin Kumar, Saurabh Shigwan, and Rohit Saluja. “Multi-Feature Graph Convolution Network for Hindi OCR Verification.” In Proceedings of the 1st Workshop on Benchmarks, Harmonization, Annotation, and Standardization for Human-Centric AI in Indian Languages (BHASHA 2025), 2025, 1-10.
- Saxena, S., Tripathi, V., & Abbas, S. (2026). Reading between the characters: Label-efficient OCR verification with graph neural networks. In Proceedings of NICCAI 2026, Hyderabad, India (to appear).
- Brody, Shaked, Uri Alon, and Eran Yahav. “How Attentive are Graph Attention Networks?.” arXiv preprint arXiv:2105.14491 (2021).
- Arazo, Eric, Diego Ortego, Paul Albert, Noel E. O’Connor, and Kevin McGuinness. “Pseudo-labeling and Confirmation Bias in Deep Semi-Supervised Learning.” In 2020 International joint conference on neural networks (IJCNN), IEEE, 2020, 1-8.
- Sohn, Kihyuk, David Berthelot, Nicholas Carlini, Zizhao Zhang, Han Zhang, Colin Raffel, Ekin Dogus Cubuk, Alexey Kurakin, and Chun-Liang Li. “Fixmatch: Simplifying Semi-Supervised Learning with Consistency and Confidence.” Advances in neural information processing systems 33 (2020): 596-608.
- Minderer, Matthias, Josip Djolonga, Rob Romijnders, Frances Hubis, Xiaohua Zhai, Neil Houlsby, Dustin Tran, and Mario Lucic. “Revisiting the Calibration Of Modern Neural Networks.” Advances in neural information processing systems 34 (2021): 15682-15694.
- Alexandari, Amr, Anshul Kundaje, and Avanti Shrikumar. “Maximum Likelihood with Bias-Corrected Calibration is Hard-to-Beat at Label Shift Adaptation.” In International conference on machine learning, PMLR, 2020, 222-232.
- Angelopoulos, Anastasios N., and Stephen Bates. “Conformal Prediction: A Gentle Introduction.” Foundations and Trends in Machine Learning 16, no. 4 (2023): 494-591.
- JJaume, Guillaume, Hazim Kemal Ekenel, and Jean-Philippe Thiran. “Funsd: A Dataset for Form Understanding in Noisy Scanned Documents.” In 2019 international conference on document analysis and recognition workshops (ICDARW), vol. 2, IEEE, 2019, 1-6.
- Park, Seunghyun, Seung Shin, Bado Lee, Junyeop Lee, Jaeheung Surh, Minjoon Seo, and Hwalsuk Lee. “Cord: a Consolidated Receipt Dataset for Post-ocr Parsing.” In Workshop on document intelligence at NeurIPS, vol. 2019, no. 1, p. 5. 2019.
- Huang, Zheng, Kai Chen, Jianhua He, Xiang Bai, Dimosthenis Karatzas, Shijian Lu, and C. V. Jawahar. “Icdar2019 Competition on Scanned Receipt Ocr and Information Extraction.” In 2019 International Conference on Document Analysis and Recognition (ICDAR), IEEE, 2019, 1516-1520.
- Tesseract OCR contributors. (2021). Tesseract OCR (Version 5) [Computer software]. https://github.com/tesseract-ocr/tesseract

Journal of Innovative Image Processing