LICHEE: Improving Language Model Pre-training with Multi-grained Tokenization

Weidong Guo, Mingjun Zhao, Lusheng Zhang, Di Niu, Jinwen Luo, Zhenhua Liu, Zhenyang Li, Jianbo Tang

Introduction

Most modern Pre-trained Language Models (PLMs), such as BERT and GPT, utilize single-grained tokenization. In English, this typically involves sub-words, while in Chinese, it relies on individual characters. While fine-grained tokens effectively minimize "out-of-vocabulary" (OOV) issues and data sparsity, they often struggle to capture the precise boundaries and semantic nuances of larger units, such as complex words or idiomatic phrases.

Previous attempts to incorporate multi-grained information, like AMBERT, employed a "dual-encoder" approach that processed fine and coarse tokens separately. However, this method doubles the computational cost during inference, making it impractical for large-scale industrial use. LICHEE (Language model pre-training with multi-grained tokenization) addresses this by fusing granularities at the embedding level, capturing the semantic richness of words alongside the robustness of characters without increasing computational overhead.

Multi-grained Embedding Fusion

The core innovation of LICHEE is its efficient fusion mechanism. The pipeline operates in four distinct stages:

  1. Dual Tokenization: Input text is processed by two tokenizers simultaneously—one fine-grained (e.g., characters) and one coarse-grained (e.g., words/phrases).
  2. Parallel Embeddings: Fine-grained tokens ($t^f_i$) and their corresponding coarse-grained spans ($t^c_{j-k}$) are passed through respective embedding layers.
  3. Max-Pooling Fusion: For every fine-grained position, the model performs a max-pooling operation between the fine-grained embedding and the coarse-grained embedding it belongs to. This creates a unified "multi-grained" vector for the Transformer encoder.
  4. Leakage Prevention: To ensure effective learning during pre-training, the authors modified the Masked Language Modeling (MLM) task. If a fine-grained token is masked, its corresponding coarse-grained span is also masked to prevent the model from "cheating" by accessing the coarse-grained embedding.
The LICHEE architecture featuring multi-grained tokenization and embedding fusion.

Because fusion occurs entirely at the input layer, the standard Transformer architecture remains unchanged, allowing LICHEE to maintain the same inference speed as base models.

Key Results and Efficiency

LICHEE was evaluated across two major benchmarks: CLUE (Chinese) and SuperGLUE (English). The framework demonstrated significant performance gains across different architectures, including BERT, ALBERT, and GPT.

  • Performance: BERT-LICHEE improved the average CLUE score by 2.80 points over the standard BERT baseline. An ensemble version of the model achieved the #1 spot on the CLUE leaderboard in early 2021.
  • Sample Efficiency: The model showed particularly strong improvements on tasks with small training sets (e.g., the CB dataset in SuperGLUE), suggesting that multi-grained information acts as a helpful semantic prior.
  • Computational Parity: Unlike previous multi-grained approaches that increased depth or width, LICHEE maintains a 1.0x speedup relative to BERT.
Computational efficiency comparison between BERT, AMBERT, and LICHEE.

As shown in the efficiency analysis, LICHEE matches the FLOPs and inference speed of standard BERT, whereas the dual-encoder AMBERT model is twice as computationally expensive.

Conclusion

LICHEE demonstrates that the embedding level is the "sweet spot" for incorporating multi-grained information. By using max-pooling to dynamically select salient features from both character and word levels, the model achieves state-of-the-art results on NLU benchmarks while remaining highly efficient for real-world deployment. Future work may involve dynamic segmentation to further reduce dependency on external word segmenters.

Summary updated

BibTeX
@inproceedings{guo2021lichee,
  author = {Weidong Guo and Mingjun Zhao and Lusheng Zhang and Di Niu and Jinwen Luo and Zhenhua Liu and Zhenyang Li and Jianbo Tang},
  title = {{LICHEE: Improving Language Model Pre-training with Multi-grained Tokenization}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.119},
}
Figure