MSA2: Multi-task Framework with Structure-aware and Style-adaptive Character Representation for Open-set Chinese Text Recognition

Yangfu Li, Hongjian Zhan, Qi Liu, Li Sun, Yu-Jie Xiong, Yue Lu

TL;DR

This paper introduces MSA², a novel multi-task framework for Chinese Text Recognition (CTR) that tackles the challenge of recognizing unseen characters (open-set). By mimicking human recognition strategies, MSA² leverages both structural linguistic components and visual glyph information, achieving state-of-the-art performance on both closed-set and open-set CTR tasks.

What Problem Does This Paper Address?

Chinese Text Recognition (CTR) is a challenging computer vision task, especially due to the ever-expanding Chinese vocabulary. Traditional CTR methods often struggle with "open-set" recognition, meaning they can't identify characters not present in their training data without costly retraining. This is akin to asking a system to recognize new words it's never encountered before. Existing approaches typically focus on either linguistic decomposition or visual glyph matching, but fail to effectively combine these two crucial aspects of human character recognition. Humans, for instance, use both the underlying structure of characters (like radicals and their arrangement) and their visual appearance to understand them, and importantly, they prioritize primary structural elements over secondary ones. This paper aims to bridge this gap by developing a framework that integrates these human-like recognition strategies.

Methods

The core of MSA² lies in its two novel components:

  • Structure-Aware Component Encoding (SACE): This module decomposes Chinese characters into their fundamental linguistic components (structures and radicals). It organizes these components in a binary tree, prioritizing more significant "primary" structures by assigning them larger representation spaces. This mirrors how humans focus on core structural elements for recognition. The final linguistic representation is a concatenation of these structure and radical codes.
  • Style-Adaptive Glyph Embedding (SAGE): This component focuses on learning robust visual representations of characters that can adapt to various font styles. It employs a glyph-centric contrastive learning (GCCL) framework. This involves initializing a glyph encoder and then fine-tuning it using contrastive learning to minimize intra-class distances (making embeddings of the same character from different styles similar) and maximize inter-class distances (making embeddings of different characters dissimilar). This helps the model generalize to unseen fonts and styles.

These two modules feed into a multi-task recognition paradigm. This paradigm uses a backbone and sequence model to extract features, then employs separate linguistic and glyph decoders to generate predictions. These predictions are then combined (element-wise summation) to produce the final recognition result. The loss function is a similarity-based recognition loss, encouraging accurate predictions for both linguistic and glyph branches.

Datasets

The paper evaluates MSA² on several standard datasets:

  • BCTR: A comprehensive benchmark for Chinese text images, including subsets for Scene, Web, Document, and Handwriting.
  • ICDAR2013: A handwritten Chinese competition database with subsets for text line and isolated character data.
  • CASIA-HWDB: A large-scale Chinese handwritten database used for training.
  • CTW: A dataset of Chinese character instances collected from street views.

Key Insights and Ideas

  • Human-like Prioritization: The idea that humans prioritize primary structural components over secondary ones is a key insight that drives the SACE module. This hierarchical encoding of linguistic information is crucial for effective recognition.
  • Bridging Linguistic and Visual Gaps: The paper successfully demonstrates that combining linguistic structure and visual glyph information in a multi-task framework leads to significant improvements, especially in challenging open-set scenarios.
  • Robustness to Style Variations: SAGE's glyph-centric contrastive learning is shown to be highly effective in making the model robust to diverse font styles, a common challenge in real-world CTR.
  • Open-Set Generalization: The framework's ability to generalize to unseen characters and styles without explicit retraining is a major advancement for practical CTR applications.

Key Results

MSA² achieves state-of-the-art performance on both closed-set and open-set CTR tasks.

  • Closed-set CTR: On the BCTR dataset, MSA² achieved average improvements of 1.3% and 6.0% in accuracy under closed-set and open-set settings, respectively, outperforming previous methods. Specifically, it surpassed SOTA methods by 1.5%, 2.4%, 0.9%, and 1.2% in accuracy on Scene, Web, Doc, and Handw subsets of BCTR.
  • Open-set CTR: In open-set scenarios, MSA² consistently outperformed the vanilla one-hot baseline and HierCode by a significant margin across all four BCTR subsets, with average accuracy improvements of 4.6%, 8.9%, 6.6%, and 3.7% on Scene, Web, Doc, and Handw, respectively.
  • Character Recognition: MSA² also showed strong performance in character-level evaluations, demonstrating significant improvements over HierCode on handwritten and scene characters in open-set settings.

Limitations and Future Work

The authors acknowledge a few limitations:

  • Limited Linguistic Information: MSA² might struggle with samples that lack linguistic information (e.g., ancient texts) or are difficult to render with specific glyph forms (e.g., alien characters).
  • Inter-Structure Relationships: The current approach does not explicitly consider the connections among same-type structures with varying importance during encoding.

Future work could address these limitations by exploring more sophisticated ways to handle diverse character representations and by incorporating a deeper understanding of structural relationships within characters.

Summary updated

BibTeX
@inproceedings{li2025msa,
  author = {Yangfu Li and Hongjian Zhan and Qi Liu and Li Sun and Yu-Jie Xiong and Yue Lu},
  title = {{MSA2: Multi-task Framework with Structure-aware and Style-adaptive Character Representation for Open-set Chinese Text Recognition}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure