On the Hidden Mystery of OCR in Large Multimodal Models

Yuliang Liu, Zhang Li, Hongliang Li, Wenwen Yu, Mingxin Huang, Dezhi Peng, Mingyu Liu, Mingrui Chen, Chunyuan Li, Lianwen Jin, Xiang Bai · DOI

TL;DR

This paper introduces OCRBench, a comprehensive benchmark for evaluating Large Multimodal Models (LMMs) on various Optical Character Recognition (OCR) tasks. The study reveals that while LMMs show promise, they still lag behind domain-specific methods, particularly with handwritten, multilingual, and non-semantic text, highlighting a need for specialized adaptations.

What Problem Does This Paper Address?

Large Multimodal Models (LMMs) have revolutionized natural language processing and vision-language tasks, demonstrating impressive zero-shot capabilities. However, their effectiveness in text-centric visual tasks, such as Optical Character Recognition (OCR), remains relatively unexplored. Existing evaluations often lack comprehensive coverage of diverse OCR sub-tasks or rely on metrics that aren't ideal for LMM outputs. This paper aims to bridge this gap by providing a thorough evaluation of prominent LMMs across a wide range of OCR tasks and introducing a new, comprehensive benchmark, OCRBench, to facilitate future research and development in this area.

Methods

The researchers conducted a comprehensive evaluation of 14 LMMs on five representative text-related visual tasks: Text Recognition, Scene Text-Centric Visual Question Answering (VQA), Document-Oriented VQA, Key Information Extraction (KIE), and Handwritten Mathematical Expression Recognition (HMER). For evaluation, they defined a unified criterion: checking for the presence of the ground truth in the LMM's output, with a filter to reduce false positives by excluding answers with fewer than 4 symbols. They also introduced OCRBench, a benchmark comprising 1000 manually filtered and corrected question-answer pairs across these five tasks, designed to be more accurate and convenient for evaluating LMM OCR capabilities.

Datasets

The evaluation utilized a variety of existing datasets for each task:

  • Text Recognition: Regular Text Recognition (IIIT5K, SVT, IC13), Irregular Text Recognition (IC15, SVTP, CT80), Occluded Scene Text (WOST, HOST), Artistic Text Recognition (WordArt), Handwritten Text Recognition (IAM), Chinese Text Recognition (ReCTS), Handwritten Digit String Recognition (ORAND-CAR-2014), and Non-Semantic Text (NST) and Semantic Text (ST) datasets created by shuffling characters from IIIT5k.
  • Scene Text-Centric VQA: STVQA, TextVQA, OCRVQA, and ESTVQA (split into EN and CN).
  • Document-Oriented VQA: DocVQA, InfographicVQA, and ChartQA.
  • Key Information Extraction: SROIE, FUNSD, and POIE.
  • Handwritten Mathematical Expression Recognition: HME100K.

The paper also introduced OCRBench, a new benchmark consisting of 1000 question-answer pairs across the five main tasks, with manually verified and corrected answers.

Key Insights and Ideas

  • Semantic Reliance: LMMs heavily depend on semantic understanding to recognize words. This leads to poor performance on character combinations lacking meaning, as evidenced by a significant drop in accuracy on non-semantic text datasets compared to domain-specific models.
  • Handwritten Text Challenges: LMMs struggle with handwritten text due to visual similarities between characters and the inherent blurriness or incompleteness often found in such text.
  • Multilingual Gaps: A notable performance gap exists between English and Chinese tasks, indicating LMMs' limited proficiency in processing non-English languages without specific training.
  • Resolution Matters: Models with lower input resolutions (e.g., 224x224) perform poorly on tasks requiring fine-grained detail extraction, such as Document-Oriented VQA and KIE. Higher resolutions (e.g., 896 or 2560) lead to better performance.
  • HMER is Tough: Recognizing handwritten mathematical expressions is particularly challenging for LMMs due to complex spatial structures, messy characters, and indirect LaTeX representations.

Key Results

  • Overall Performance: Gemini achieved the highest score on the proposed OCRBench, followed closely by GPT4V. Monkey also showed competitive performance.
  • Text Recognition: LMMs perform comparably to supervised SOTA models on regular, irregular, occluded, and artistic text. However, they exhibit significantly lower performance on handwritten, Chinese, and non-semantic text.
  • VQA and KIE: LMMs with higher input resolutions generally perform better on Document-Oriented VQA and KIE tasks.
  • Specific Task Weaknesses: LMMs struggle with blurry images, handwritten text, non-semantic text, and adhering strictly to task instructions (e.g., providing answers in a specific format). For instance, Gemini consistently interpreted dates in a different format than requested.

Limitations and Future Work

The paper acknowledges that even state-of-the-art LMMs still exhibit significant gaps compared to domain-specific methods, particularly in complex OCR tasks. They suggest that specialized techniques and domain-specific adaptations are essential. Future work could focus on:

  • Expanding OCRBench: Including more challenging data types like multilingual documents and texts from diverse scenarios, as well as tasks like text detection.
  • Improving Fine-Grained Perception: Developing LMMs with higher resolution capabilities to better capture intricate details.
  • Multilingual Training: Incorporating more multilingual data into LMM training to improve performance on non-English languages.
  • Ablation Studies: Conducting further analysis to understand the impact of multimodal training data volume on OCR performance.
  • Novel OCR Techniques: Developing innovative strategies for enhancing zero-shot multimodal OCR capabilities.

Summary updated

BibTeX
@article{liu2024hidden,
  author = {Yuliang Liu and Zhang Li and Hongliang Li and Wenwen Yu and Mingxin Huang and Dezhi Peng and Mingyu Liu and Mingrui Chen and Chunyuan Li and Lianwen Jin and Xiang Bai},
  title = {{On the Hidden Mystery of OCR in Large Multimodal Models}},
  journal = {Science China Information Sciences},
  year = {2024},
  doi = {10.1007/s11432-024-4235-6},
}
Figure