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

Sequential visual and semantic consistency for semi-supervised text recognition

Mingkun Yang, Biao Yang, Minghui Liao, Yingying Zhu, Xiang Bai

TL;DR

This paper introduces a novel semi-supervised learning framework for Scene Text Recognition (STR) that moves beyond simple character-matching to enforce word-level consistency. By combining dynamic programming for visual alignment and reinforcement learning for semantic similarity, the model effectively leverages unlabeled real-world images to outperform existing methods, especially on challenging, occluded, or distorted text.

What Problem Does This Paper Address?

Scene Text Recognition (STR)—reading text in the "wild"—is notoriously difficult due to diverse fonts, lighting, and complex backgrounds. While deep learning models excel at this, they require massive amounts of labeled data. Most researchers rely on synthetic data (like Synth90k), but there is a significant "domain gap" between computer-generated text and messy real-world photos.

Semi-supervised learning (SSL) aims to bridge this gap by using a small amount of labeled data alongside a large pool of unlabeled real images. Current state-of-the-art SSL methods for STR use Character-level Consistency Regularization (CCR). In this setup, a "teacher" model predicts characters for an unlabeled image, and a "student" model tries to match them. However, if the teacher makes a mistake, the one-to-one character matching breaks down, leading to "misalignment" that confuses the student. Furthermore, these methods often ignore the broader semantic meaning of the word.

Methods

The authors propose a Mean-Teacher architecture with two new "word-level" consistency modules:

  1. Word-level Visual Consistency (WVCR): Instead of forcing a strict one-to-one character match, the authors use Dynamic Programming to find the "shortest path" of alignment between the visual features (glimpse vectors) of two different views of the same image. This allows the model to remain robust even if the teacher and student predict sequences of different lengths or if the teacher's prediction is slightly off.

  2. Word-level Semantic Consistency (WSCR): Visual features alone can be ambiguous (e.g., is that a '0' or an 'o'?). To fix this, the authors use fastText embeddings to project predicted words into a semantic space. Since the process of picking a discrete character is non-differentiable (you can't backpropagate through a "choice"), they employ Self-Critical Sequence Training (SCST)—a form of Reinforcement Learning. The model receives a "reward" based on how semantically close the student's predicted word is to the teacher's "pseudo-label."

The Architecture: The underlying model uses a modern ConvNextv2 encoder and a Transformer decoder, providing a strong baseline even before the SSL components are added.

Datasets

  • Training (Labeled): Synthetic datasets Synth90k (8M images) and SynthText (9M images).
  • Training (Unlabeled): CC-OCR, containing 15.77M unlabeled real-world text images cropped from the Conceptual Captions dataset.
  • Evaluation:
    • Regular: IIIT5K, SVT, IC13.
  • Irregular/Challenging: IC15, SVTP, CUTE80, COCO-Text, CTW, Total-Text (TT).
  • Occluded: WOST and HOST (specifically designed to test robustness against occlusions).

Key Insights and Ideas

  • The "Teacher Forcing" Trap: Standard SSL relies on the teacher being right. By using dynamic programming for visual alignment, the authors decouple the student's learning from the teacher's specific character-level errors, focusing instead on the overall sequence flow.
  • Semantics as a Tie-Breaker: Visually similar characters (like '1', 'l', and 'i') often have identical visual features in blurry images. By rewarding the model for producing a semantically valid word (e.g., "apple" vs "app1e"), the model learns more discriminative representations.
  • Differentiable Sequences: Using the ST-Gumbel operator allows the model to generate differentiable sequences during training, making the greedy decoding process compatible with standard gradient descent.

Key Results

  • State-of-the-Art Performance: The proposed method achieved an average improvement of 7.2% over the baseline and outperformed the previous leading SSL method (TRBA-cr) by nearly 3.0% across 11 benchmarks.
  • Robustness to Occlusion: The gains were most dramatic on difficult datasets. On the heavily occluded HOST dataset, the model improved from a baseline of 69.0% to 79.4%.
  • Efficiency: Despite the added complexity of DP and RL during training, the model maintains a relatively small parameter count (25M), making it more efficient than many supervised-only SOTA models like ABINet (37M) or PARSeq (24M).

Limitations and Future Work

  • Language Model Integration: While the model uses semantic embeddings (fastText), it does not yet integrate a full-scale pre-trained Large Language Model (LLM). The authors suggest that leveraging massive amounts of unlabeled text data (not just images) through an LLM is a promising future direction.
  • Computational Overhead: Although not explicitly detailed as a failure, the use of Reinforcement Learning and Dynamic Programming typically increases training time and complexity compared to standard cross-entropy loss.
  • Domain Specificity: The current rewards are based on general-purpose word embeddings; performance might vary in highly specialized domains (like medical or technical text) where standard embeddings don't capture the nuances of the vocabulary.

Summary updated

BibTeX
@article{yang2024sequential,
  author = {Mingkun Yang and Biao Yang and Minghui Liao and Yingying Zhu and Xiang Bai},
  title = {{Sequential visual and semantic consistency for semi-supervised text recognition}},
  journal = {Pattern Recognition Letters},
  year = {2024},
  url = {https://openreview.net/forum?id=5J5UdXxr8w},
}
Figure