MSA$^2$: 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$^2$, a novel multi-task framework for open-set Chinese Text Recognition (CTR) that mimics human perception by jointly leveraging linguistic structure and visual glyph information. By introducing Structure-Aware Component Encoding (SACE) and Style-Adaptive Glyph Embedding (SAGE), MSA$^2$ achieves state-of-the-art performance on both closed-set and open-set CTR tasks, significantly outperforming existing methods.

What Problem Does This Paper Address?

Chinese Text Recognition (CTR) is challenging due to the vast and ever-expanding vocabulary, leading to "open-set" recognition problems where the system must identify characters it hasn't been explicitly trained on. Traditional CTR methods often treat this as a single-task problem, either focusing on linguistic components (like strokes and radicals) or visual glyphs. However, humans naturally integrate both linguistic knowledge and visual cues to recognize characters, even those with variations in style or minor errors. Existing methods fail to fully exploit this multi-perspective approach, leading to suboptimal performance, especially when encountering unseen characters or diverse font styles.

Methods

MSA$^2$ tackles this by proposing a multi-task framework that combines two novel strategies:

  • Structure-Aware Component Encoding (SACE): This method focuses on the linguistic structure of Chinese characters. It organizes character components (structures and radicals) into a binary tree, dynamically assigning representation space based on their importance. Crucially, SACE prioritizes "primary structures" (more impactful for recognition) by giving them longer codes and more representation space, while less significant components get shorter codes in deeper layers. This mimics how humans focus on core structural elements.
  • Style-Adaptive Glyph Embedding (SAGE): This component addresses the visual aspect. It uses a glyph-centric contrastive learning (GCCL) framework to learn robust glyph representations that are adaptable to various font styles. By training on glyphs rendered in multiple styles and using contrastive learning, SAGE encourages the model to minimize intra-class distances and maximize inter-class distances, making glyph representations more discriminative and resilient to style variations.

The framework then uses a multi-task decoding and similarity searching approach to predict both linguistic and glyph representations, fusing them for the final recognition result.

Datasets

The paper evaluates MSA$^2$ on several standard Chinese text recognition benchmarks:

  • ICDAR2013: Used for open-set scenario evaluation.
  • CASIA-HWDB (2.0-2.2 for text lines, 1.0-1.2 for characters): Used for training.
  • BCTR: A comprehensive benchmark with four subsets (Scene, Web, Document, Handwriting) used for both closed-set and open-set evaluation.
  • CTW: Used for character-level evaluation, featuring scene text.

Key Insights and Ideas

  • Human-like Perception is Key: The core insight is that mimicking human perception, which integrates linguistic structure and visual glyphs, is crucial for robust open-set CTR.
  • Structure Hierarchy Matters: Not all linguistic components are equally important. Prioritizing primary structures (SACE) significantly improves recognition, especially for complex characters.
  • Glyph Robustness is Essential: Adapting to diverse font styles is critical for real-world applications. SAGE's contrastive learning approach effectively addresses this.
  • Multi-task Learning Synergy: Combining linguistic and glyph-based representations in a multi-task framework leads to synergistic improvements, outperforming single-task approaches.

Key Results

MSA$^2$ demonstrates significant performance gains:

  • Closed-set CTR: Achieved an average improvement of 1.3% accuracy on the BCTR dataset compared to state-of-the-art methods.
  • Open-set CTR: Showed an average improvement of 6.0% accuracy on the BCTR dataset.
  • Character Recognition: Outperformed HierCode by substantial margins on both handwritten and scene character datasets in open-set settings.
  • Non-Chinese Characters: MSA$^2$ showed notable improvements for recognizing Latin characters, numbers, and symbols, attributed to the glyph incorporation.

Limitations and Future Work

  • Linguistic/Glyph Dependency: MSA$^2$ relies on both linguistic components and glyphs. It may struggle with ancient texts lacking clear linguistic information or characters with highly ambiguous glyphs.
  • Structure Importance: The paper acknowledges that connections among same-type structures with varying importance during encoding were not fully considered and suggests this as a direction for future work.

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 = {{MSA$^2$: 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