Using Human Psychophysics to Evaluate Generalization in Scene Text Recognition Models

Sahar Siddiqui, Elena Sizikova, Gemma Roig, Najib J. Majaj, Denis G. PelliarXiv 2020

Introduction

In machine learning, high accuracy on a test set is often conflated with a model's true understanding of a task. However, Scene Text Recognition (STR)—the ability to read text in natural images—reveals a significant gap between benchmark performance and real-world robustness. While state-of-the-art models excel on standard datasets, they frequently fail when encountering minor perturbations like novel fonts or partial occlusions that humans navigate effortlessly.

This paper proposes a shift from simple performance optimization to system identification. By adopting techniques from human psychophysics—the study of how physical stimuli relate to mental percepts—the authors map the "breaking points" of STR models to understand where and why they fail to generalize.

Methods

The study evaluates two primary neural network architectures for STR:

  1. CRNN with Connectionist Temporal Classification (CTC): A sequence-based approach that identifies the most probable character string using maximum likelihood.
  2. Seq2Seq with Attention (Attn): A model that uses an attention mechanism to focus on specific image regions while generating output characters.

To identify breaking points, the researchers applied parametric manipulations to stimulus images across several dimensions, including occlusion, noise, and font variations.

Overview of psychophysical manipulations applied to the stimulus images, including occlusion, noise, flankers, and font variations.

The experiments utilized a synthetic dataset of 22,878 English words (lengths 2–7), allowing for precise control over environmental variables like font style and character spacing.

Key Insights

The Fragility of Attention

While attention mechanisms provide powerful alignment, they are prone to overfitting. Models trained exclusively on 5-letter words, for instance, failed to recognize 3-letter words because the attention mechanism expected a specific sequence length. This suggests that the alignment learned is often too rigid for general-purpose recognition.

CTC and Robustness

In contrast, CTC-based models demonstrated superior generalization across word lengths and high resistance to "flankers" (non-alphabetic characters surrounding a word). Because CTC does not rely on a strict character-level language model alignment, it can effectively ignore surrounding noise characters that typically confuse attention-based models.

Cross-Domain Generalization

A notable finding was that training with "salt and pepper" noise improved model performance on occluded text by approximately 18%. This suggests that certain types of noise can force the model to learn more robust, redundant features that aid in decoding partially hidden text.

Human-like Biases in Occlusion

Both models exhibited a bias similar to human vision: they are more effective at reading text when the bottom half is obscured than when the top half is covered. This indicates that these architectures may share structural similarities with human visual processing, though they remain significantly less robust overall.

Key Results

  • Word Length: The CTC model maintained high accuracy across various word lengths even when trained on a subset, whereas the Attention model's performance dropped sharply outside its training domain.
  • Flankers: CTC models handled flankers with near-perfect accuracy. Attention models, however, often attempted to incorporate flankers into the output string, leading to errors (e.g., predicting "ode" for "@%model%").
  • Occlusion Thresholds: Models tolerated roughly 1.5 times more bottom-up occlusion than top-down occlusion. Despite this, their performance remains far below the human baseline for partially covered text.
  • The Font Wall: Models proved highly sensitive to letter shapes. Training on five distinct fonts failed to provide the abstract character representation necessary to recognize a sixth, unseen font.

Conclusion

The research highlights that current STR models rely heavily on specific training shapes rather than abstract character concepts. To build truly robust systems for applications like autonomous navigation or industrial automation, the authors recommend that "breaking point" testing via psychophysical manipulations become a standard part of the evaluation pipeline, moving beyond simple accuracy metrics on static test sets.

Summary updated

BibTeX
@misc{siddiqui2020using,
  author = {Sahar Siddiqui and Elena Sizikova and Gemma Roig and Najib J. Majaj and Denis G. Pelli},
  title = {{Using Human Psychophysics to Evaluate Generalization in Scene Text Recognition Models}},
  year = {2020},
  eprint = {2007.00083},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.00083},
}
Figure