UnihanLM: Coarse-to-Fine Chinese-Japanese Language Model Pretraining with the Unihan Database

Canwen Xu, Tao Ge, Chenliang Li, Furu WeiAACL/IJCNLP 2020 · OpenReview

TL;DR

This paper introduces UnihanLM, a novel language model pre-training approach for Chinese and Japanese that leverages the Unihan database to better handle shared characters. By employing a two-stage "coarse-to-fine" training strategy, UnihanLM effectively merges similar characters into clusters for initial training and then refines individual character representations, leading to improved performance on various NLP tasks.

What Problem Does This Paper Address?

Chinese and Japanese languages share a significant number of characters, often with similar visual forms and meanings, due to their common historical origins. However, existing multilingual language models often struggle to fully exploit this shared linguistic heritage. Standard tokenization methods can lead to inefficiencies, and automatically learned sub-word representations may not adequately capture the nuances of these shared characters. This can result in suboptimal performance, especially in cross-lingual tasks where accurate representation of shared semantics is crucial. The paper aims to bridge this gap by developing a pre-training method that explicitly leverages the structural and semantic similarities between Chinese and Japanese characters.

Methods

The core innovation of UnihanLM lies in its two-stage coarse-to-fine pre-training approach and its utilization of the Unihan database.

  • Unihan Database Integration: The Unihan database, a curated collection of CJK Unified Ideographs, provides variant information for characters across different writing systems (Traditional Chinese, Simplified Chinese, Japanese Kanji). This database is used to identify characters with similar meanings but potentially different Unicode representations.
  • Character Merging: Using the Unihan database, the authors group characters with identical or overlapping meanings into "clusters." This process effectively reduces the vocabulary size and creates a more unified representation for semantically similar characters.
  • Coarse-grained Cluster-level Pretraining: In the first stage, the model is trained using these character clusters. Instead of using individual character IDs, cluster IDs are used as tokens. This forces the model to learn representations for groups of characters that share meaning, maximizing the exploitation of shared lexical information.
  • Fine-grained Character-level Pretraining: After the coarse-grained pretraining, the model transitions to a fine-grained stage. Here, the clusters are "unmerged," and the model learns to distinguish between individual characters within a cluster. The embeddings learned during the cluster-level stage are used to initialize the character embeddings, allowing the model to refine its understanding of specific character nuances and disambiguate between them. This stage is crucial for tasks requiring precise character-level understanding, such as machine translation.

The model architecture itself is a standard Transformer-based Masked Language Model (MLM), similar to BERT, with the addition of language embeddings to distinguish between Chinese and Japanese.

Datasets

  • Unihan Database: Used for character merging and creating clusters.
  • Chinese and Japanese Wikipedia: Used as the primary corpus for unsupervised pre-training.
  • Downstream Task Datasets:
    • Word Segmentation: PKU (Chinese), KWDLC (Japanese).
  • Unsupervised Machine Translation: ASPEC-JC (Chinese-Japanese).
  • Text Classification: PAWS-X (Cross-lingual Paraphrase Adversaries from Word Scrambling).

Key Insights and Ideas

  • Leveraging Human Knowledge: The Unihan database represents expert-curated linguistic knowledge. By incorporating this database, UnihanLM moves beyond purely data-driven approaches to incorporate valuable human linguistic insights into the pre-training process.
  • Coarse-to-Fine Strategy: The two-stage pre-training is a key innovation. It mimics a curriculum learning approach, first focusing on broad semantic similarities (clusters) and then refining to capture specific character nuances. This strategy is more effective than a single-stage approach.
  • Bridging the Gap for East Asian Languages: The paper highlights that traditional sub-word tokenization methods (like BPE) are less effective for languages like Chinese and Japanese, where characters are often the atomic semantic units. UnihanLM offers a more suitable approach by directly addressing character-level similarities.
  • Improved Cross-Lingual Transfer: By explicitly modeling shared characters, UnihanLM demonstrates significantly better zero-shot transfer capabilities between Chinese and Japanese compared to existing multilingual models.

Key Results

  • Word Segmentation: UnihanLM outperforms mBERT and monolingual BERT on both Chinese and Japanese word segmentation tasks. It shows a substantial improvement in cross-lingual zero-shot transfer, outperforming mBERT by 3.7 on CWS and 11.0 on JWS.
  • Unsupervised Machine Translation: UnihanLM achieves state-of-the-art results on Chinese-Japanese unsupervised machine translation, even outperforming supervised baselines in some configurations.
  • Text Classification: UnihanLM demonstrates strong performance on the PAWS-X cross-lingual text classification dataset, outperforming baselines like mBERT and XLM.
  • Parameter Efficiency: UnihanLM has a comparable number of parameters to mBERT, suggesting that its improved performance is due to its novel pre-training strategy rather than simply a larger model.

Limitations and Future Work

  • Handling of Non-Chinese Characters: The paper acknowledges that English loanwords (Gairaigo) are prevalent in Japanese and are often written in Kana, making them difficult to share with Chinese characters using the current approach. The model also treats English words appearing in Chinese/Japanese texts as regular characters, which might not be optimal.
  • Generalization to Other Asian Languages: The authors suggest extending the approach to other East Asian languages like Korean and Vietnamese, which also share historical linguistic connections with Chinese characters but have evolved their own writing systems (Hangul, Vietnamese alphabet).
  • Involving English in Cross-Lingual Modeling: The paper proposes that incorporating English into the cross-lingual modeling of Asian languages could be beneficial, especially for handling loanwords and a wider range of text.

Summary updated

BibTeX
@inproceedings{xu2020unihanlm,
  author = {Canwen Xu and Tao Ge and Chenliang Li and Furu Wei},
  title = {{UnihanLM: Coarse-to-Fine Chinese-Japanese Language Model Pretraining with the Unihan Database}},
  booktitle = {AACL/IJCNLP},
  year = {2020},
  url = {https://openreview.net/forum?id=GilWyxFwwYN},
}
Figure