[Paper Review] Training Multilingual Pre-trained Language Model with Byte-level Subwords
This paper proposes training multilingual pre-trained language models using Byte-Level BPE (BBPE) for subword tokenization, which improves vocabulary efficiency and reduces out-of-vocabulary tokens by operating on UTF-8 byte sequences. Experiments show NEZHA models with BBPE outperform multilingual BERT and standard NEZHA across multiple multilingual NLU tasks, especially on low-resource languages.
The pre-trained language models have achieved great successes in various natural language understanding (NLU) tasks due to its capacity to capture the deep contextualized information in text by pre-training on large-scale corpora. One of the fundamental components in pre-trained language models is the vocabulary, especially for training multilingual models on many different languages. In the technical report, we present our practices on training multilingual pre-trained language models with BBPE: Byte-Level BPE (i.e., Byte Pair Encoding). In the experiment, we adopted the architecture of NEZHA as the underlying pre-trained language model and the results show that NEZHA trained with byte-level subwords consistently outperforms Google multilingual BERT and vanilla NEZHA by a notable margin in several multilingual NLU tasks. We release the source code of our byte-level vocabulary building tools and the multilingual pre-trained language models.
Motivation & Objective
- To address the limitations of character-level vocabularies in multilingual BERT, such as high proportions of rare subwords and persistent unknown token ([UNK]) issues.
- To explore byte-level subword tokenization as a more robust and efficient alternative for multilingual pre-trained language models.
- To improve model performance on low-resource languages by enhancing subword sharing and representation learning across languages.
- To demonstrate that byte-level BPE (BBPE) yields higher-frequency subwords and eliminates [UNK] tokens by encoding all 256 bytes in the vocabulary.
Proposed method
- The method employs Byte-Level BPE (BBPE), which first converts text into UTF-8 byte sequences before applying BPE to build a subword vocabulary.
- The vocabulary is constructed on UTF-8 encoded sequences, ensuring all 256 possible bytes are included, thus eliminating [UNK] tokens.
- The approach includes explicit subword type modeling via special tokens (e.g., '##' for trailing subwords) and trainable subword type embeddings to distinguish leading, trailing, and whole-word subwords.
- The model architecture uses NEZHA as the backbone, fine-tuned on multilingual NLU benchmarks including XNLI, MLQA, and XNLI with 14 languages.
- The training process includes data balancing via upsampling for low-resource languages and evaluation on both 11- and 14-language setups to assess scalability.
- The method compares variants: with/without word boundary handling, with/without subword type embeddings, and with/without explicit subword type modeling.
Experimental results
Research questions
- RQ1Does byte-level subword tokenization reduce the number of rare subwords and eliminate [UNK] tokens compared to character-level vocabularies?
- RQ2How does BBPE-based tokenization affect multilingual model performance across diverse languages, especially low-resource ones?
- RQ3What is the impact of explicit subword type modeling (e.g., '##' prefix or trainable embeddings) on downstream NLU task accuracy?
- RQ4How does the performance of BBPE-trained models compare to mBERT and vanilla NEZHA on multilingual benchmarks?
Key findings
- NEZHA models trained with BBPE outperform Google’s multilingual BERT by 1.6 points on average across 8 languages in the XNLI benchmark (77.1 vs. 75.5).
- The BBPE model achieves a 2.0-point improvement over vanilla NEZHA on the 14-language XNLI task (77.1 vs. 77.5), with notable gains in German, Thai, and Chinese.
- The BBPE vocabulary contains no subwords with frequency below 10,000 across 14 languages, whereas mBERT’s vocabulary includes ~30% of subwords with frequency <100.
- Removing word boundary handling (WBL) leads to a 4.0-point drop in average performance (74.21 vs. 77.1), indicating that explicit subword structure modeling is crucial.
- The BBPE model reduces redundant subwords in high-resource languages (e.g., English, Russian) while increasing token coverage for low-resource languages like Arabic, Malay, and Thai.
- The variant without subword type embeddings (STE) still outperforms WBL-only, showing that explicit modeling of subword types enhances representation learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.