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 SunarXiv 2026

TL;DR

Large Multimodal Models (LMMs) frequently fail to read text hidden in optical illusions or complex backgrounds that humans easily decode. This paper introduces AdvSpot, a new benchmark for grounded adversarial OCR, and ArmorOCR, a two-stage training framework that internalizes multi-view visual transformations into model parameters via self-distillation and reinforcement learning. The resulting model significantly closes the human-AI perception gap on adversarial text without sacrificing general OCR performance.

What Problem Does This Paper Address?

While Large Multimodal Models (LMMs) excel at standard text recognition, they exhibit a glaring "human-AI perception gap" when encountering adversarial OCR patterns. These are visual text designs—such as text blended into AI-generated artwork, hidden under dot/line overlays, or heavily distorted—that humans can read effortlessly but cause LMMs to overlook, misread, or mislocalize the text.

Examples of the human-AI perception gap where current LMMs fail to read or localize hidden text.

Existing solutions often rely on "thinking-with-images" paradigms at inference time, dynamically applying visual transformations like cropping, zooming, or flipping to make the text visible. However, this introduces significant computational latency and deployment complexity. Furthermore, current adversarial OCR benchmarks evaluate only recognition accuracy, failing to verify whether a model actually localizes the text correctly or is merely guessing based on global context or linguistic priors.

Methods

The authors propose ArmorOCR, a two-stage training framework designed to internalize the benefits of test-time visual transformations directly into the model's weights, enabling robust single-pass inference.

  1. Stage 1: Observation-Transferred Self-Distillation (OTSD)
    Instead of transforming the image at inference, a student model (which only sees the original image) learns from a privileged teacher model. The teacher is fed an optimized, transformed view (e.g., stretched, rotated, or compressed) selected by a judge LMM, alongside textual priors and the ground-truth text. To prevent the student from absorbing noisy intermediate reasoning, ArmorOCR introduces a response-region-aware distillation loss. It applies confidence-gated Jensen-Shannon Divergence (JSD) on intermediate analysis tokens and forward KL divergence on final answer tokens.

  2. Stage 2: Reward-driven Refinement
    To refine grounded perception, the model undergoes reinforcement learning via Group Relative Policy Optimization (GRPO). It optimizes four task-conditioned rewards simultaneously: text-to-bbox (localization), bbox-to-text (recognition), full spotting (joint region-text prediction), and grounded VQA.

Overview of the ArmorOCR framework, showing Stage 1 self-distillation and Stage 2 reward-driven refinement.

Datasets

  • AdvSpot: A newly introduced evaluation benchmark containing 390 images and 397 grounded VQA pairs. It features a comprehensive taxonomy covering 5 primary categories and 13 fine-grained adversarial OCR types (e.g., Mirrored Text, Dot-pattern Encoding, AIGC Fusion Text). Unlike previous datasets, it provides region-level bounding boxes and region-grounded QA pairs.
  • Synthesized Training Data: Due to the scarcity of real-world adversarial data, the authors built an automated synthesis pipeline generating 50K samples for Stage 1 and 70K samples for Stage 2.
  • External Benchmarks: The model was also evaluated on adversarial datasets (AdvOCR, SmuggleBench) and standard OCR benchmarks (OCRBench, CCOCR, OCRBench-v2).
Figure 2: Perception types of AdvSpot grouped by their un- derlying failure mechanisms.

Key Insights and Ideas

  • Internalizing Visual Perspectives: The core philosophy is that the perceptual advantages of visual transformations (like zooming or rotating) can be baked directly into model parameters during training, eliminating the need for slow, multi-turn image manipulation at inference time.
  • The Grounding-Recognition Mismatch: The paper highlights that text recognition accuracy does not equate to reliable grounding. For instance, Gemini 2.5 Flash achieved competitive VQA accuracy on adversarial text but scored poorly on Intersection over Union (IoU) localization, proving it often "guessed" text without truly identifying its region.
  • Selective Distillation is Crucial: Uniformly distilling all tokens from a teacher model can propagate uncertain or noisy intermediate reasoning. Separating structural, analysis, and answer tokens ensures cleaner knowledge transfer.

Key Results

  • AdvSpot Performance: ArmorOCR (built on a Qwen3-VL-8B-Instruct base) improved overall VQA accuracy by 24.5% over its base model, achieving 55.7% accuracy and 63.3% IoU.
  • Outperforming Proprietary Giants: ArmorOCR significantly outperformed massive closed-source models on AdvSpot; for comparison, GPT-5 scored 30.0% accuracy and Claude Sonnet 4.5 scored just 9.8%.
  • Cross-Benchmark Robustness: On the AdvOCR synthetic split, ArmorOCR outperformed the tool-assisted VACoT method by 20%. On SmuggleBench, it beat Smuggle-CoT by a notable margin, particularly on the "AI Illusions" category.
  • General OCR Preservation: ArmorOCR maintained highly competitive performance on standard OCR benchmarks, proving that learning to handle adversarial text does not degrade general reading capabilities.

Limitations and Future Work

  • Complex Encodings Still Challenging: While ArmorOCR leads performance, certain categories like Symbol Encoding and Pattern Overlay remain highly difficult, leaving a substantial gap before matching human-level perception.
  • Synthetic Dependency: The training framework relies heavily on automated data synthesis. Incorporating a wider variety of real-world, human-generated adversarial text could improve out-of-distribution generalization.
  • Broader Vision Applications: The authors suggest that this multi-view internalization strategy could be extended beyond OCR to other challenging visual tasks, such as fine-grained object detection or anomaly detection in cluttered scenes.

Summary updated

BibTeX
@misc{cao2026armorocr,
  author = {Linhan Cao and Siyuan Li and Jun Lan and Liangbo He and Guannan Li and Xiaolei Huang and Jun Jia and Shuheng Zhou and Huijia Zhu and Weiqiang Wang and Wei Sun},
  title = {{ArmorOCR: Grounded Adversarial Visual Perception via Observation-Transferred Self-Distillation}},
  year = {2026},
  eprint = {2608.20122},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.20122},
}
Figure