LogicOCR: Do Your Large Multimodal Models Excel at Logical Reasoning on Text-Rich Images?

Maoyuan Ye, Jing Zhang, Juhua Liu, Bo Du, Dacheng TaoarXiv 2025 · DOI

Abstract

While Large Multimodal Models (LMMs) like GPT-4o and Qwen2.5-VL have achieved remarkable proficiency in Optical Character Recognition (OCR), their ability to perform high-level logical reasoning on text-embedded images remains a significant bottleneck. We introduce LogicOCR, a new benchmark comprising 2,780 questions designed to evaluate LMMs on complex logical tasks—such as syllogisms and multi-hop deductions—isolated from specialized domain knowledge. Our study reveals a persistent "reasoning gap": models often fail to reason about text they can read with near-perfect accuracy. To address this, we propose TextCue, a training-free method that leverages internal attention maps to focus models on critical text regions, yielding measurable performance gains.

The Reasoning Gap in LMMs

Existing multimodal benchmarks often conflate visual perception with domain-specific knowledge (e.g., advanced mathematics or physics). This makes it difficult to determine if a model's failure stems from poor OCR, a lack of subject matter expertise, or a fundamental inability to reason. LogicOCR addresses this by focusing on "pure" logical reasoning using content derived from civil service examinations, which emphasize logic over rote memorization.

Comparison of LogicOCR with existing multimodal reasoning and OCR benchmarks.

As shown in the comparison above, LogicOCR distinguishes itself by being both knowledge-free and focused on complex reasoning across diverse topics, utilizing a mix of real-world and high-fidelity generated images.

Building the LogicOCR Benchmark

The benchmark is divided into two primary subsets:

  1. LogicOCR-Gen (1,100 questions): These consist of multiple-choice questions rendered into realistic images using a custom pipeline. This subset allows for "modality twin" experiments, comparing model performance on identical text in both raw string and visual formats.
  2. LogicOCR-Real (1,680 questions): These involve free-form questions based on real-world artifacts like charts, document scans, and product labels, requiring multi-hop reasoning over complex visual layouts.
The LogicOCR-Gen pipeline and sample generated images showcasing diverse layouts and fonts.

Methodology and Model Enhancement

Beyond benchmarking, the researchers introduced TextCue, a novel, training-free enhancement technique. TextCue operates through Adaptive Layer Selection (ALS), which identifies the transformer layers most responsive to a given question. It then uses these attention maps alongside a text segmenter (Hi-SAM) to identify and enlarge critical text regions. By feeding both the original image and these enlarged "cues" back into the model, TextCue improves the model's perceptual focus during the reasoning phase.

Key Insights and Results

Our evaluation of state-of-the-art LMMs yielded several critical insights:

  • The Modality Gap: Models consistently perform better on pure-text versions of questions than on their image-based counterparts. This confirms that the integration of visual perception and high-level reasoning is still immature.
  • OCR is Not the Bottleneck: Most top-tier models achieve F1-scores above 95% for text recognition on these images, yet their reasoning accuracy lags significantly behind.
  • Top Performers: Gemini-2.5-Pro led the benchmark with 72.4% accuracy using Chain-of-Thought (CoT) prompting. Qwen2.5-VL-72B also demonstrated strong performance, occasionally surpassing GPT-4o in specific logical categories.
  • Fragility to Orientation: LMMs are surprisingly sensitive to image rotation. Rotating an image by 90 or 180 degrees can degrade performance to near-random levels, even when the text remains perfectly legible to humans.
  • Effectiveness of TextCue: Applying TextCue to LLaVA-OV-1.5-8B resulted in a 1.8% accuracy boost without any fine-tuning, demonstrating the value of test-time visual guidance.

Conclusion

LogicOCR highlights that for modern LMMs, the primary challenge has shifted from "reading" to "thinking." While models are becoming expert transcribers, their ability to synthesize that information into logical conclusions remains fragile. Future work will focus on narrowing this modality gap through better alignment of visual and linguistic representations and more efficient test-time scaling strategies.

Summary updated

BibTeX
@misc{ye2025logicocr,
  author = {Maoyuan Ye and Jing Zhang and Juhua Liu and Bo Du and Dacheng Tao},
  title = {{LogicOCR: Do Your Large Multimodal Models Excel at Logical Reasoning on Text-Rich Images?}},
  year = {2025},
  eprint = {2505.12307},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.12307},
}
Figure