MDiff4STR: Mask Diffusion Model for Scene Text Recognition

Authors

  • Yongkun Du Institute of Trustworthy Embodied AI, Fudan University, China
  • Miaomiao Zhao School of Computer Science and Technology, Beijing Jiaotong University, China
  • Songlin Fan Institute of Trustworthy Embodied AI, Fudan University, China China Mobile Shanghai ICT Co., Ltd., China
  • Zhineng Chen Institute of Trustworthy Embodied AI, Fudan University, China
  • Caiyan Jia School of Computer Science and Technology, Beijing Jiaotong University, China
  • Yu-Gang Jiang Institute of Trustworthy Embodied AI, Fudan University, China

DOI:

https://doi.org/10.1609/aaai.v40i5.37370

Abstract

Mask Diffusion Models (MDMs) have recently emerged as a promising alternative to auto-regressive models (ARMs) for vision-language tasks, owing to their flexible balance of efficiency and accuracy. In this paper, for the first time, we introduce MDMs into the Scene Text Recognition (STR) task. We show that vanilla MDM lags behind ARMs in terms of accuracy, although it improves recognition efficiency. To bridge this gap, we propose MDiff4STR, a Mask Diffusion model enhanced with two key improvement strategies tailored for STR. Specifically, we identify two key challenges in applying MDMs to STR: noising gap between training and inference, and overconfident predictions during inference. Both significantly hinder the performance of MDMs. To mitigate the first issue, we develop six noising strategies that better align training with inference behavior. For the second, we propose a token-replacement noise mechanism that provides a non-mask noise type, encouraging the model to reconsider and revise overly confident but incorrect predictions. We conduct extensive evaluations of MDiff4STR on both standard and challenging STR benchmarks, covering diverse scenarios including irregular, artistic, occluded, and Chinese text, as well as whether the use of pretraining. Across these settings, MDiff4STR consistently outperforms popular STR models, surpassing state-of-the-art ARMs in accuracy, while maintaining fast inference with only three denoising steps. Code: https://github.com/Topdu/OpenOCR.

Published

2026-03-14

How to Cite

Du, Y., Zhao, M., Fan, S., Chen, Z., Jia, C., & Jiang, Y.-G. (2026). MDiff4STR: Mask Diffusion Model for Scene Text Recognition. Proceedings of the AAAI Conference on Artificial Intelligence, 40(5), 3705-3713. https://doi.org/10.1609/aaai.v40i5.37370

Issue

Section

AAAI Technical Track on Computer Vision II