LBPE: Long-token-first Tokenization to Improve Large Language Models
The prevalent use of Byte Pair Encoding (BPE) in Large Language Models (LLMs) facilitates robust handling of subword units and avoids issues of out-of-vocabulary words. Despite its success, a critical challenge persists: long tokens, rich in semantic information, have fewer occurrences in tokenized datasets compared to short tokens, which can result in imbalanced learning issue across different tokens. To address that, we propose LBPE, which prioritizes long tokens during the encoding process. LBPE generates tokens according to their descending order of token length rather than their ranks in the vocabulary, granting longer tokens higher priority during the encoding process. Consequently, LBPE smooths the frequency differences between short and long tokens, and thus mitigates the learning imbalance. Extensive experiments across diverse language modeling tasks demonstrate that LBPE consistently outperforms the original BPE, well demonstrating its effectiveness.
Authors
- Jianwei Niu (ORCID: https://orcid.org/0000-0003-3946-5107)
- Guiguang Ding (ORCID: https://orcid.org/0000-0003-0137-9975)
- Haoran Lian
- Zijia Lin (ORCID: https://orcid.org/0000-0002-1390-7424)
- Shasha Mo
- Peng Liu (ORCID: https://orcid.org/0000-0001-7518-1713)
- Yizhe Xiong
- Hui Chen (ORCID: https://orcid.org/0000-0001-6647-1137)
Institutions
- Beijing Institute of Technology (CN)
- Beihang University (CN)
- Tsinghua University (CN)
Publication Details
- Published
- 2025-03-12
- DOI
- https://doi.org/10.1109/icassp49660.2025.10889733
- Citations
- 1
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 2.48
Funders
- National Natural Science Foundation of China