NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Exploring the Usage of Chinese Pinyin in Pretraining

Baojun Wang, Kun Xu, Lifeng ShangarXiv 2023

Abstract

Unlike alphabetic languages, Chinese spelling and pronunciation are distinct. Both characters and pinyin take an important role in Chinese language understanding. In Chinese NLP tasks, we almost adopt characters or words as model input, and few works study how to use pinyin. However, pinyin is essential in many scenarios, such as error correction and fault tolerance for ASR-introduced errors. Most of these errors are caused by the same or similar pronunciation words (SSP errors). In this work, we explore various ways of using pinyin in pretraining models and propose a new pretraining method called PmBERT. Our method uses characters and pinyin in parallel for pretraining. Through delicate pretraining tasks, the characters and pinyin representation are fused, which can enhance the error tolerance for SSP errors. The experimental results on both the constructed noise-added dataset and the public error-correction dataset demonstrate that our model is more robust compared to SOTA models.

Introduction: The Challenge of Phonetic Ambiguity

In alphabetic languages like English, spelling and pronunciation are closely linked. In Chinese, they are distinct: thousands of different characters share a limited pool of roughly 400 pronunciations (Pinyin). This leads to SSP (Same or Similar Pronunciation) errors.

For example, the character "拨" (bō, to dial) and "播" (bō, to play) sound identical. If an Automatic Speech Recognition (ASR) system mishears a user's intent, a smart assistant might try to play a song instead of making a phone call. Most current Chinese NLP models rely solely on characters or words, making them "phonetically blind" and fragile when faced with these common ASR-induced typos.

Methodology: The PmBERT Architecture

To address these challenges, researchers from Huawei introduced PmBERT (Pinyin mixed BERT), a pretraining method that processes Chinese characters and their phonetic Pinyin representations in parallel. The model builds on the standard BERT architecture but introduces significant modifications to the input layer and training objectives:

  1. Parallel Embeddings: Instead of just character embeddings, the model uses a dual-stream input. Each Chinese character is converted into its Pinyin equivalent using a dictionary. The final input representation is a fusion of character, pinyin, position, and segment embeddings.
  2. Novel Masking Strategy: PmBERT expands standard masking to bridge the gap between semantics and phonetics using three sub-tasks: Joint Masking (80% of masked tokens), Character-only Masking (10%), and Pinyin-only Masking (10%). This forces the model to learn the complex mapping between visual symbols and their sounds.
Comparison of pretraining architectures: Standard BERT, MLM-phonetic, and the proposed PmBERT with parallel character and pinyin streams.

Key Insights: Optimizing Phonetic Learning

The study revealed several critical factors for building a robust phonetic-enhanced model:

  • Higher Masking Rates: While 15% is the "magic number" for standard BERT, the authors found that for phonetic-enhanced models, a higher masking rate (between 40% and 50%) is necessary to force the model to truly learn the relationship between characters and sounds. As shown in the experimental data, performance across multiple datasets improves significantly as the masking rate increases toward 0.5.
  • The Advantage of Tone-Free Pinyin: Surprisingly, Pinyin without tone information performed better for robustness than Pinyin with tones. By making the phonetic representation slightly more "blurry," the model learns to group homophones together more effectively, making it more resilient to slight pronunciation shifts.
  • Parallel vs. Mixed Approaches: The study compared "mixed" approaches (replacing characters with Pinyin) vs. "parallel" approaches (using both at once). Parallel processing proved superior because it maintains the full semantic integrity of the text while providing phonetic "hints."
The effect of varying masking rates on F1 performance across Weibo, MSRA, SMP2017, and TouTiao datasets.

Experimental Results

The model was pretrained on a 12GB corpus consisting of Chinese Wikipedia and People’s Daily. Evaluation focused on robustness against ASR-induced noise and standard benchmarks:

  • Superior Robustness: On datasets with 20% phonetic noise, PmBERT achieved an average F1 score of 79.62, an 11.08 percentage point improvement over standard BERT (68.74).
  • State-of-the-Art Correction: On the SIGHAN15 spell-check benchmark, PmBERT reached an F1 of 78.92, surpassing previous specialized models like PLOME and ChineseBERT.
  • Clean Data Performance: Importantly, PmBERT maintains performance comparable to standard BERT on clean, error-free text, meaning there is no trade-off for adding this robustness.

Conclusion

PmBERT demonstrates that integrating phonetic information in a parallel architecture significantly enhances the robustness of Chinese language models against common speech recognition errors. By teaching models to associate how a word looks with how it sounds through high-rate masking and joint embeddings, researchers can create NLP systems that are far more resilient to real-world noise without sacrificing performance on clean data.

Summary updated

BibTeX
@misc{wang2023exploring,
  author = {Baojun Wang and Kun Xu and Lifeng Shang},
  title = {{Exploring the Usage of Chinese Pinyin in Pretraining}},
  year = {2023},
  eprint = {2310.04960},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.04960},
}

Loading related content...

Figure