Seq-UPS: Sequential Uncertainty-aware Pseudo-label Selection for Semi-Supervised Text Recognition

Gaurav Patel, Jan P. Allebach, Qiang Qiu

Abstract

This paper looks at semi-supervised learning (SSL) for image-based text recognition. One of the most popular SSL approaches is pseudo-labeling (PL). PL approaches assign labels to unlabeled data before re-training the model with a combination of labeled and pseudo-labeled data. However, PL methods are severely degraded by noise and are prone to over-fitting to noisy labels, due to the inclusion of erroneous high confidence pseudo-labels generated from poorly calibrated models, thus, rendering threshold-based selection ineffective. Moreover, the combinatorial complexity of the hypothesis space and the error accumulation due to multiple incorrect autoregressive steps posit pseudo-labeling challenging for sequence models. To this end, we propose a pseudo-label generation and an uncertainty-based data selection framework for semi-supervised text recognition. We first use Beam-Search inference to yield highly probable hypotheses to assign pseudo-labels to the unlabelled examples. Then we adopt an ensemble of models, sampled by applying dropout, to obtain a robust estimate of the uncertainty associated with the prediction, considering both the character-level and word-level predictive distribution to select good quality pseudo-labels. Extensive experiments on several benchmark handwriting and scene-text datasets show that our method outperforms the baseline approaches and the previous state-of- the-art semi-supervised text-recognition methods.

Introduction

Training deep learning models for text recognition, such as handwriting or scene-text analysis, typically requires extensive manually labeled datasets. Semi-supervised learning (SSL) offers a solution by leveraging small amounts of labeled data to generate "pseudo-labels" for larger unlabeled sets. However, standard pseudo-labeling often fails because models can be "confident but wrong," leading to a self-reinforcing cycle of errors. This is particularly problematic in text recognition, where a single character error invalidates the entire word sequence.

Seq-UPS (Sequential Uncertainty-aware Pseudo-label Selection) addresses this by introducing a robust framework that intelligently selects high-quality pseudo-labels. By combining Beam-Search with Monte-Carlo (MC) Dropout ensembles, the method filters out noisy labels using a sophisticated uncertainty metric that evaluates both character-level and word-level predictive distributions.

Methodology

The Seq-UPS framework operates in three distinct stages to ensure the reliability of selected samples.

The Seq-UPS framework overview, illustrating the pipeline from unlabeled data to pseudo-label selection and supervised training.
  1. Hypothesis Generation via Beam Search: Instead of relying on a single greedy prediction, the model utilizes Beam Search to identify the top-$B$ most probable word candidates for each unlabeled image.
  2. Uncertainty Estimation with MC-Dropout: To quantify prediction certainty, the framework employs an ensemble approach. The image is processed multiple times through the model with different neurons randomly deactivated via MC-Dropout. A key innovation is the use of teacher-forcing during this stage: the ensemble is forced to evaluate the specific word candidates generated in the first step, ensuring consistency across the ensemble's internal logic.
  3. Selection Mechanism: An information-theoretic uncertainty score (entropy) is calculated based on the fluctuations in the ensemble's predictions. If the uncertainty falls below a predefined threshold ($\tau$), the image and its corresponding best-guess label are incorporated into the training set for the subsequent iteration.

Experimental Setup

The researchers evaluated Seq-UPS across two primary domains:

  • Handwriting Recognition: Utilizing the IAM and CVL word-level datasets.
  • Scene-Text Recognition: Benchmarked against six standard datasets: IIIT5k, SVT, IC13, IC15, SVTP, and CUTE.

Experiments focused on "low-resource" scenarios, where only 5% or 10% of the data was initially labeled, to test the framework's efficacy in data-scarce environments.

Results and Discussion

The results demonstrate that Seq-UPS significantly outperforms baseline supervised methods and previous state-of-the-art SSL techniques.

Prediction Rejection Curves comparing uncertainty-based selection against confidence-based and random selection across IAM, CVL, and STR datasets.

Performance Gains

On the IAM handwriting dataset with only 5% labels, Seq-UPS achieved an accuracy of 69.37%, compared to the supervised baseline of 49.63%. In scene-text benchmarks, combining Seq-UPS with self-supervised pre-training (SeqCLR) resulted in a total accuracy of 74.56% using only 5% labels.

Metric Reliability

A core finding is that raw confidence scores are poor indicators of accuracy. The proposed uncertainty measure correlates much more strongly with the actual Word Error Rate (WER). As shown in the Prediction Rejection Curves, the uncertainty-based selection consistently stays closer to the "Oracle" (optimal) curve than standard confidence-based filtering, proving its superior ability to identify and reject incorrect predictions.

Conclusion and Future Work

Seq-UPS provides a sequence-aware approach to pseudo-labeling that acknowledges text recognition as a structured prediction task. While highly effective, the framework currently assumes a shared character set between labeled and unlabeled data and requires Dropout layers in the model architecture. Future research may explore adaptive thresholding or curriculum learning strategies to further refine the selection process as the model matures during training.

Summary updated

BibTeX
@inproceedings{patel2023seq,
  author = {Gaurav Patel and Jan P. Allebach and Qiang Qiu},
  title = {{Seq-UPS: Sequential Uncertainty-aware Pseudo-label Selection for Semi-Supervised Text Recognition}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=NCxOuFMGKx-},
}
Figure