TL;DR
By treating Chinese characters as unique "faces" rather than fixed categories, researchers have developed a highly efficient OCR method capable of recognizing over 74,000 characters. Using face recognition architectures like MobileFaceNetV3 and ArcFace loss, the system maps characters into a searchable 64-dimensional feature space, achieving over 90% accuracy across various fonts.
The Challenge of Scaling Chinese OCR
Optical Character Recognition (OCR) for languages with alphabetic scripts is relatively straightforward due to a small, static character set. Chinese, however, presents a massive scaling problem: there are over 100,000 characters in Unicode. While a typical person uses only about 4,000 characters daily, cultural researchers frequently encounter Rarely Used Characters (RUCs) in historical texts.
Traditional OCR methods usually rely on classification (assigning an image to one of $N$ buckets) or regression. When $N$ exceeds 74,000, these models become computationally heavy, difficult to train, and inflexible. Crucially, if a new character needs to be added, the entire model often requires retraining. The authors sought a way to handle this "long tail" of characters without the overhead of massive classification layers.
Methods: Treating Characters Like Faces
The authors propose a paradigm shift: treat characters like human faces.
In modern face recognition, a model doesn't "classify" a person; instead, it learns to map a face into a high-dimensional embedding space where images of the same person cluster together. The authors applied this "metric learning" approach to Chinese characters.
The system relies on three core components:
- Backbone: They utilized MobileFaceNetV3, a lightweight convolutional neural network (CNN) designed for mobile face recognition. It processes a character image and outputs a compact 64-dimensional feature vector.
- Loss Function: To ensure the model clusters similar characters tightly and pushes different characters apart, they employed ArcFace loss. This state-of-the-art loss function optimizes the "geodesic distance" on a hypersphere.
- The Workflow:
- Training: The model is trained on a small subset of characters with data augmentation (noise, random color, blurring) to learn general structural features.
- Building the Database: They rendered over 74,000 Unicode characters using various fonts and ran them through the trained model to create a comprehensive feature vector database.
- Recognition: To identify an unknown character, the system generates its 64D vector and performs a simple search in the database for the entry with the minimal $\ell_2$ norm (the closest match).
Datasets and Key Insights
The researchers generated their own data by rendering Chinese characters using 30 widely-used computer fonts. They used a training set of just 500 characters to help the model learn generalizable features, and an evaluation set of 5,000 characters tested across different font styles. The final database covers over 74,000 Chinese characters.
This approach yields several key advantages:
- Structural Similarity: Characters and faces share a similar hierarchical structure. Just as faces have eyes, noses, and mouths in specific arrangements, Chinese characters have radicals and strokes. A model trained to distinguish faces is surprisingly adept at distinguishing complex glyphs.
- Open-Set Flexibility: Traditional OCR is "closed-set" (it only knows what it was trained on). This face-recognition approach is "open-set." You can add a brand-new character to the database simply by calculating its feature vector once—no neural network retraining required.
- Efficiency: By compressing a complex character image into just 64 numbers, searching through 74,000 possibilities becomes extremely fast and memory-efficient.
Key Results
The method proved highly effective across various digital fonts, consistently achieving high accuracy on the 5,000-character test sets.
As shown in the results, the model maintained an accuracy rate above 90% across all tested datasets. It achieved near-perfect accuracy on fonts like SimSong (99.38%) and KaiXinSong-2.1 (99.98%), the latter of which contains many RUCs. The lowest accuracy was observed with STKAITI (91.82%), likely due to its more calligraphic, brush-like style which deviates from standard printed structures.
Limitations and Future Work
The primary limitation of the current system is its performance on handwriting. Because the model was trained and built using clean, computer-generated fonts, it struggles with the variability and "noise" of human handwriting. Furthermore, the authors noted that aggressive data augmentation, such as heavy blurring, can make complex, high-stroke-count characters indistinguishable, suggesting a need for finer-tuned augmentation strategies.
Future work will focus on incorporating handwritten samples into the training phase to improve generalization. Despite current limitations with handwriting, this tool provides a significant leap forward for researchers needing to digitize rare historical texts that standard OCR engines ignore.
Summary updated