When Semantics Mislead Vision: Mitigating Large Multimodal Models Hallucinations in Scene Text Spotting and Understanding

Yan Shu, Hangui Lin, Yexin Liu, Yan Zhang, Gangyan Zeng, Yan Li, Yu Zhou, Ser-Nam Lim, Harry Yang, Nicu Sebe

Introduction

Large Multimodal Models (LMMs), such as GPT-4o and Qwen-VL, have demonstrated remarkable capabilities in general visual understanding. However, when applied to Optical Character Recognition (OCR) and scene text spotting, they frequently exhibit a phenomenon termed semantic hallucination. This occurs when the model's internal Large Language Model (LLM) prioritizes linguistic "priors"—the expectation of coherent, meaningful words—over actual visual evidence. For instance, when presented with a typo like "MMOTEL" or a non-semantic string like a license plate, these models often "correct" the output to a semantically similar word like "MOTEL," effectively ignoring the visual input.

Examples of semantic hallucinations where models prioritize linguistic priors over visual evidence, and performance comparisons across different LMMs.

The Challenge of Non-Semantic Text

Existing benchmarks often fail to expose these weaknesses because they primarily feature semantically meaningful text. In real-world scenarios, however, reading non-semantic text—such as serial numbers, technical codes, or typos—is critical. The authors identify that this hallucination stems from "attention drift": as information passes through the layers of an LMM, the focus often shifts from the specific visual regions containing text to broader linguistic contexts, allowing the LLM's pre-trained biases to dominate the final output.

Proposed Methodology: A Training-Free Correction

To address this without the prohibitive cost of retraining, the researchers propose a two-stage, training-free plug-in:

1. ZoomText (Coarse-to-Fine Region Estimation)

ZoomText identifies text regions without requiring an external OCR detector. It employs a "glimpse-refocus" strategy. The "glimpse" phase analyzes query-to-image cross-attention to locate relevant regions. The "refocus" phase then filters background noise by identifying tokens with high attention variance across layers—a characteristic of foreground text tokens compared to stable background tokens.

2. Grounded Layer Correction (GLC)

The authors discovered that intermediate layers often maintain stronger visual grounding than the final output layers. GLC dynamically identifies the transformer layer with the highest attention to the text regions identified by ZoomText. The hidden states from this "grounded" layer are then fused into the final layer during decoding, effectively anchoring the model's linguistic output to the visual reality.

TextHalu-Bench: A New Evaluation Standard

To rigorously test this phenomenon, the authors introduced TextHalu-Bench, a manually curated dataset of 1,740 samples. It specifically targets semantic hallucinations by featuring non-semantic text across five domains: Business, Traffic, Industrial, Public Facilities, and Daily Life. Evaluation on this benchmark reveals that even top-tier proprietary models like GPT-4o struggle significantly with non-semantic strings, achieving F1 scores far below human parity.

Experimental Results

The proposed framework was evaluated across multiple open-source LMMs and standard benchmarks. As shown in the results table, the plug-in consistently improves performance across the board.

Performance comparison of various LMMs with and without the proposed correction method across multiple benchmarks.

Key findings include:

  • Significant Gains on TextHalu-Bench: Adding the framework to Qwen2.5-VL-3B resulted in a +5.5% F1 score improvement. Mini-Monkey saw a +4.1% increase.
  • Generalization: The method also boosts performance on standard datasets like ST-VQA and SEED-Bench, indicating that fixing hallucinations in difficult cases also refines general OCR accuracy.
  • Efficiency: The method outperforms alternative strategies like Chain-of-Thought (CoT) prompting while maintaining lower inference latency.

Conclusion

By identifying and leveraging the "grounded" intermediate layers of LMMs, this research provides a robust, training-free solution to semantic hallucinations in scene text tasks. While the method introduces some computational overhead due to attention map processing, it represents a significant step toward making LMMs reliable for high-precision OCR tasks where "reading exactly what is there" is more important than "making sense."

Summary updated

BibTeX
@inproceedings{shu2025when,
  author = {Yan Shu and Hangui Lin and Yexin Liu and Yan Zhang and Gangyan Zeng and Yan Li and Yu ZHOU and Ser-Nam Lim and Harry Yang and Nicu Sebe},
  title = {{When Semantics Mislead Vision: Mitigating Large Multimodal Models Hallucinations in Scene Text Spotting and Understanding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=BbWrp6O8Lm},
}
Figure