Manuscript Offprint

arXiv:2608.20122

ArmorOCR: Grounded Adversarial Visual Perception via Observation-Transferred Self-Distillation

Linhan Cao, Siyuan Li, Jun Lan, Liangbo He, Guannan Li, Xiaolei Huang, Jun Jia, Shuheng Zhou, Huijia Zhu, Weiqiang Wang, Wei Sun

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large multimodal models (LMMs) have demonstrated strong OCR recognition capabilities, yet remain vulnerable to adversarial visual text that is readable to humans but challenging for models to localize and recognize. Existing OCR benchmarks mainly focus on natural or document-style text, while adversarial OCR evaluations remain limited in scale, task coverage, or region-aware evaluation. In this paper, we formulate adversarial OCR as a grounded OCR perception task and introduce AdvSpot, the first benchmark for grounded adversarial OCR evaluation. AdvSpot comprises 390 images with region-level annotations, spanning 5 primary categories and 13 fine-grained adversarial OCR types. To address this challenge, we propose ArmorOCR, a two-stage training framework for robust adversarial OCR perception. ArmorOCR first acquires missing adversarial OCR perception from privileged transformed observations through On-Policy Self-Distillation (OPSD), and then refines grounded OCR perception through Group Relative Policy Optimization (GRPO) with task-conditioned rewards for localization, recognition, full spotting, and visual question answering (VQA). Experiments on our AdvSpot, other adversarial OCR benchmarks, and general OCR benchmarks demonstrate that ArmorOCR consistently improves adversarial OCR perception while preserving competitive general OCR capability.

1Ant Group, 2Shanghai Jiao Tong University, 3East China Normal University

Code — https://github.com/ant-research/ArmorOCR

Figure

Figure 1: Examples of adversarial OCR patterns that reveal a human–AI perception gap: humans can easily recover the intended text from visual context, while current LMMs may mislocalize, overlook, or misread it.

Introduction

OCR is a fundamental capability of large multimodal models (LMMs) (Zhang et al. 2023; Li et al. 2024; Zhu et al. 2025), yet its reliability under challenging visual conditions remains limited (Li, Cai, and Wang 2025; Gao et al. 2025). As illustrated in Figure 1, certain visual text patterns expose a clear human–AI perception gap: humans can easily recover the intended text from visual context, whereas current LMMs may mislocalize, overlook, or misread it. We refer to such patterns as adversarial OCR patterns. These patterns expose systematic weaknesses in LMMs’ visual text perception, underscoring the need for systematic evaluation and targeted model improvement to bridge this gap and develop more robust OCR capabilities.

Existing OCR benchmarks (Liu et al. 2024; Yang et al. 2025; Fu et al. 2026) have advanced general OCR evaluation across diverse natural visual content, but provide limited coverage of adversarial OCR patterns. Recent adversarial OCR benchmarks (Xu et al. 2026; Li et al. 2026) begin to address this setting, but remain limited in scale, task diversity, or region-level annotations. Moreover, recognition-only evaluation provides limited insight into whether a model has identified the relevant text region or merely inferred the answer from global context or linguistic priors.

Motivated by this limitation, we formulate adversarial OCR as a grounded OCR perception task, where models are expected to identify relevant text regions, recognize adversarial text content, and answer region-specific questions under challenging visual conditions. This formulation supports region-level verification and more fine-grained analysis of adversarial OCR failures.

To instantiate this formulation, we introduce AdvSpot, the first benchmark for grounded adversarial OCR perception. AdvSpot provides the most comprehensive perception taxonomy of adversarial OCR patterns to date, covering 5 primary categories and 13 fine-grained types organized according to their underlying OCR failure mechanisms. It contains 390 images with region-level annotations, including bounding boxes, text transcriptions, category labels, and grounded visual question answering (VQA) pairs. Together, these annotations enable systematic evaluation of grounded adversarial OCR perception with respect to localization, recognition, and region-specific question answering.

Recent approaches (Xu et al. 2026; Li, Cai, and Wang 2025) to adversarial OCR perception rely on “thinking-with-images” strategies (Hong et al. 2025; Song et al. 2025), applying transformations such as cropping, resizing, or flipping at inference time to reveal adversarial text that is difficult to perceive from the original view. Although effective, these approaches introduce additional inference latency and deployment complexity, motivating us to ask: Can the perceptual information revealed by transformed views be internalized into model parameters during training?

To answer this question, we propose ArmorOCR, a two-stage training framework that internalizes transformation-revealed visual evidence for single-pass grounded adversarial OCR perception, without requiring additional visual transformations or tools at inference time. In Stage 1, we perform On-Policy Self-Distillation (OPSD) with response-region-aware token weighting: the student observes only the original image, while a teacher with the same backbone is conditioned on privileged transformed views. Token-level distribution guidance along the student’s on-policy trajectories transfers the perception revealed by privileged observations to the student, establishing a robust perceptual foundation. However, self-distillation remains constrained by the teacher’s performance ceiling and lacks explicit optimization of diverse grounded OCR objectives. Stage 2 therefore employs Group Relative Policy Optimization (GRPO) with task-conditioned rewards for localization, recognition, full spotting, and grounded VQA to jointly optimize these complementary capabilities.

Our contributions are summarized as follows:

  • We introduce AdvSpot, the first benchmark for grounded adversarial OCR perception, with the most comprehensive taxonomy of adversarial OCR patterns to date and region-level annotations enabling fine-grained evaluation of adversarial OCR perception.
  • We propose ArmorOCR, a two-stage framework that internalizes transformation-revealed perception through privileged observation transfer and refines grounded OCR perception with task-conditioned GRPO.
  • Extensive experiments on AdvSpot, existing adversarial OCR benchmarks, and general OCR benchmarks demonstrate that ArmorOCR consistently improves adversarial OCR perception while preserving competitive general OCR capability.

References (32)