NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Focus on the Whole Character: Discriminative Character Modeling for Scene Text Recognition

Bangbang Zhou, Yadong Qu, Zixiao Wang, Zicheng Li, Boqiang Zhang, Hongtao Xie

Abstract

Scene Text Recognition (STR) has seen significant advancements, yet recognizing characters in challenging environments—such as artistic fonts or distorted perspectives—remains a major hurdle. This paper presents the Character Features Enriched (CFE) model, which specifically addresses the issues of Large Intra-Class Variance (LICV) and Small Inter-Class Variance (SICV). By integrating a Character-Aware Constraint Encoder (CACE) with a spatial decay matrix and an Intra-Inter Consistency Loss ($I^2CL$) utilizing long-term memory units, the CFE model achieves state-of-the-art performance across both standard and complex irregular text benchmarks.

Introduction

Scene Text Recognition (STR) is a fundamental task in computer vision, serving as the backbone for various applications from autonomous driving to document digitization. While modern models perform exceptionally well on clear, horizontal text, they often falter when faced with "challenging" text—instances involving artistic typography, perspective distortions, or curved layouts. The core of this failure lies in the model's inability to distinguish between visually similar characters or recognize the same character across vastly different styles.

The Challenge: LICV and SICV

The authors identify two primary obstacles in robust character recognition:

  1. Large Intra-Class Variance (LICV): A single character category can exhibit extreme visual diversity due to font styles, lighting, or geometric distortions. For example, a cursive 't' may share very few visual features with a bold, blocky 't'.
  2. Small Inter-Class Variance (SICV): Different character categories can appear nearly identical in certain contexts. A common example is the visual similarity between 'h' and a ligature of 'fl', or 'c' and 'g' in stylized scripts.
Figure 1: Comparison between common benchmarks and challenging texts illustrating LICV and SICV.

Standard STR models typically rely on global context to resolve these ambiguities. However, if the context is weak or the distortion is too high, they lose the fine-grained morphological details necessary for correct identification.

The CFE Framework

To overcome these limitations, the Character Features Enriched (CFE) model introduces two innovative components designed to sharpen the model's focus on local character details and global category consistency.

Character-Aware Constraint Encoder (CACE)

Traditional self-attention mechanisms in Transformers treat all visual tokens equally, regardless of their spatial distance. While this captures global context, it can dilute the local features of individual characters. The CACE introduces a decay matrix into the attention mechanism. This matrix applies a penalty to attention scores based on the distance between tokens, effectively forcing the encoder to prioritize nearby visual information. This spatial prior ensures the model captures the specific strokes and curves (morphology) that define a character before integrating global context.

Intra-Inter Consistency Loss ($I^2CL$)

To ensure that the features learned for a character are consistent across the entire dataset, the authors propose the $I^2CL$. Unlike standard batch-wise contrastive learning, $I^2CL$ maintains long-term memory units—prototypical feature representations for every character category. During training, character features are pulled toward their respective category's memory unit (intra-class consistency) and pushed away from the memory units of other categories (inter-class discrimination). This creates a highly robust and discriminative feature space.

Figure 2: The architecture of the CFE framework, showcasing the CACE stages and the consistency loss mechanism.

Experimental Results

The CFE model was evaluated against several state-of-the-art (SOTA) methods using both standard and challenging benchmarks.

  • Common Benchmarks: On a suite of six standard datasets (including IIIT5K and IC15), the CFE model achieved a weighted average accuracy of 94.1%, surpassing previous leaders like MATRN and PARSeq.
  • Union14M-Benchmark: On this more rigorous benchmark designed for irregular and artistic text, CFE reached an average accuracy of 61.6%. It showed particularly strong gains in the "Artistic" and "Curved" subsets, where local morphological detail is most critical.

Despite these performance gains, the CFE-Base model remains efficient with only 23.9M parameters, demonstrating that better character modeling does not necessarily require massive increases in model size.

Conclusion

The CFE model demonstrates that re-introducing spatial priors and enforcing global consistency are key to solving the most difficult problems in scene text recognition. By focusing on the "whole character" through local attention constraints and long-term memory units, the model achieves a new level of robustness against distortion and stylistic variance. Future work will look toward improving performance on multi-oriented and vertical text, where current spatial priors may need further adaptation.

Summary updated

BibTeX
@inproceedings{zhou2024focus,
  author = {Bangbang Zhou and Yadong Qu and Zixiao Wang and Zicheng Li and Boqiang Zhang and Hongtao Xie},
  title = {{Focus on the Whole Character: Discriminative Character Modeling for Scene Text Recognition}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=xO2YUfM8M2},
}
Figure