Open-Set Text Recognition

Xu-Cheng Yin, Chun Yang, Chang LiuSpringerBriefs 2024 · OpenAlex

Traditional Optical Character Recognition (OCR) systems are typically constrained by a "closed-set" assumption, limiting their effectiveness when encountering novel or rare characters. This work introduces a formal framework for Open-Set Text Recognition (OSTR), enabling models to identify and adapt to characters not seen during training. By decoupling visual features from linguistic context and employing prototype-based representations, the proposed OSTR framework moves beyond fixed-vocabulary limitations to provide a more robust and flexible approach to text recognition.

The Challenge of Closed-Set OCR

Traditional OCR systems operate under the assumption that all characters encountered during inference will belong to a fixed list of categories seen during training (e.g., a standard Latin alphabet). When these models encounter an "out-of-set" character—such as a specialized scientific symbol, a character from a rare dialect, or a new emoji—they typically "force" it into one of the known categories, leading to recognition errors.

In real-world applications, data is dynamic. A robust system must be capable of detecting these novelties and adapting incrementally. The OSTR task addresses this by requiring models to not only recognize known characters but also accurately reject or identify "out-of-set" samples.

The OSTR Framework

The proposed OSTR framework is built upon three fundamental modules designed to facilitate open-set capabilities:

  1. Label-to-Representation Mapping: Unlike traditional one-hot encoding, this module maps character labels to a high-dimensional representation space. By incorporating "side-information" such as glyph images or templates, the model learns the inherent visual characteristics of each character.
  2. Sample-to-Representation Mapping: This module extracts features from input images and maps them into the same high-dimensional space as the labels, ensuring a common ground for comparison.
  3. Open-set Predictor: Serving as the decision engine, this module compares the representation of an input sample against known prototypes. If the distance exceeds a certain threshold, the system can reject the sample as "out-of-set" or utilize a new template for recognition without requiring a full retraining of the network.

Key Implementations

The research highlights two specific implementations of this framework:

  • OSOCR (Open-Set Optical Character Recognition): Utilizes a Topology-Preserving Transformation Network to manage visual distortions and maintain feature integrity.
  • OpenCCD (Open-set Character-Context Decoupling): Separates visual character features from their surrounding linguistic context. This prevents the model from "over-relying" on language patterns, which can be misleading when encountering unfamiliar characters.

Evaluation and Key Insights

The authors establish rigorous evaluation protocols for OSTR, emphasizing cross-language generalization and "seen vs. unseen" character splits. By withholding a portion of the character set during training, they test the model's ability to detect open-set samples and perform zero-shot recognition.

Several key insights emerge from this work:

  • The Power of Prototypes: Treating characters as points in a visual representation space allows for "visual intuition." If provided with a new character template (a glyph), the model can immediately begin recognizing that character in the wild.
  • Importance of Decoupling: Decoupling visual recognition from linguistic context is crucial. While context helps with standard text, it can hinder the recognition of novel characters. OpenCCD allows the model to be more "honest" about what it visually perceives.
  • Rejection as a Core Metric: A key component of intelligence is knowing what you don't know. The framework formalizes the rejection of out-of-set samples as a core performance metric, moving away from the "always guess" approach of traditional models.

Future Directions

While OSTR provides a theoretical and algorithmic foundation for the next generation of text recognition, several challenges remain for future exploration:

  • Integration with MLLMs: Leveraging Multimodal Large Language Models (like GPT-4V) could significantly improve the "reasoning" capabilities of open-set recognition.
  • Incremental Learning: Developing methods to seamlessly integrate new characters into a model's permanent knowledge without "catastrophic forgetting" of old characters remains a priority.
  • Efficiency: Prototype-based matching can be computationally expensive. Future work will focus on more efficient search algorithms for large-scale character sets.

Summary updated

BibTeX
@inproceedings{yin2024open,
  author = {Xu-Cheng Yin and Chun Yang and Chang Liu},
  title = {{Open-Set Text Recognition}},
  booktitle = {SpringerBriefs},
  year = {2024},
  doi = {10.1007/978-981-97-0361-6},
}
Figure