Abstract
Connectionist Temporal Classification (CTC) is a popular objective function in sequence recognition, which provides supervision for unsegmented sequence data through aligning sequence and its corresponding labeling iteratively. The blank class of CTC plays a crucial role in the alignment process and is often considered responsible for the peaky behavior of CTC. In this study, we propose an objective function named RadialCTC that constrains sequence features on a hypersphere while retaining the iterative alignment mechanism of CTC. The learned features of each non-blank class are distributed on a radial arc from the center of the blank class, which provides a clear geometric interpretation and makes the alignment process more efficient. Besides, RadialCTC can control the peaky behavior by simply modifying the logit of the blank class. Experimental results of recognition and localization demonstrate the effectiveness of RadialCTC on two sequence recognition applications.
Introduction: The Challenge of Weak Supervision
In sequence recognition tasks like sign language or scene text recognition, models often operate under "weak supervision." While the order of words or characters is known, their precise temporal or spatial boundaries are not. Connectionist Temporal Classification (CTC) is the standard tool for this, iteratively aligning sequences with their labels.
However, CTC suffers from a notorious "peaky behavior" problem: the model tends to predict a sharp spike for a character and then output "blank" labels for almost every other frame. While efficient for decoding, this behavior ignores visual continuity and makes accurate event localization—determining exactly when a sign or character starts and ends—nearly impossible.
Methods: Reimagining the Feature Space
RadialCTC addresses these issues by redefining the geometry of the feature space. Instead of an unconstrained space, RadialCTC maps features and class weights onto a hypersphere.
1. Hyperspherical Embedding and Radial Structure
The core innovation is the positioning of the "blank" class. In RadialCTC, the blank class acts as a geometric center or origin. Non-blank classes are distributed along radial arcs extending from this center. This provides a clear geometric interpretation: the further a feature is from the blank center along an arc, the more confident the model is in that specific class.
2. Controlling Peakiness via Angular Perturbation
To mitigate peaky behavior, the authors introduce a sequence-dependent angular margin ($m$). By applying an angular perturbation to the blank class during training, the model is forced to classify more frames as non-blank. This effectively "widens" the prediction spikes, preserving visual continuity.
3. Regularization Suite
Two key regularization terms are employed to refine the embedding:
- Angle Regularization: Ensures that non-blank classes are sufficiently separated from the blank class center.
- Center Regularization: Pulls the most representative "keyframes" of a class toward their respective class centers, minimizing intra-class variance.
Datasets and Evaluation
The researchers evaluated RadialCTC across three distinct domains:
- Seq-MNIST: A simulated dataset of fading MNIST digits used to visualize feature trajectories and test localization accuracy (mAP).
- RWTH-PHOENIX-Weather 2014 (Phoenix14): A benchmark for Continuous Sign Language Recognition (CSLR).
- Scene Text Benchmarks: Standard OCR datasets including IIIT5k, SVT, IC03, and IC13.
Key Insights: The Blank Class as a Geometric Origin
The most significant conceptual shift in RadialCTC is treating the "blank" class as a "neutral" point rather than just another label. This allows for a clear geometric interpretation of the alignment process.
By adjusting a single hyperparameter ($\eta$, the non-blank ratio), researchers can manually control the width of prediction spikes. This flexibility allows the same model to be optimized for either high-speed recognition or high-precision localization, depending on the application's needs.
Key Results
- Continuous Sign Language Recognition: On the Phoenix14 dataset, RadialCTC achieved a Word Error Rate (WER) of 19.4% (Dev) and 20.2% (Test), setting a new state-of-the-art for CTC-based methods.
- Scene Text Recognition: The method consistently outperformed the CRNN baseline, reaching 92.3% accuracy on IC03 and 90.7% on IC13.
- Localization Precision: In Seq-MNIST experiments, increasing the non-blank ratio ($\eta$) improved localization mAP from 22.7% (vanilla CTC) to 87.9%, demonstrating a vastly superior ability to identify event boundaries.
Limitations and Future Work
RadialCTC may struggle with highly unbalanced datasets, where frequent classes might cause the feature space to collapse prematurely due to center regularization. Future research could explore adaptive learning of the non-blank ratio ($\eta$) or extending radial embeddings to other sequence tasks like speech recognition.
Summary updated