English

LBPE: Long-token-first Tokenization to Improve Large Language Models

Computation and Language 2024-11-11 v1

Abstract

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 reverse ranks 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.

Keywords

Cite

@article{arxiv.2411.05504,
  title  = {LBPE: Long-token-first Tokenization to Improve Large Language Models},
  author = {Haoran Lian and Yizhe Xiong and Zijia Lin and Jianwei Niu and Shasha Mo and Hui Chen and Peng Liu and Guiguang Ding},
  journal= {arXiv preprint arXiv:2411.05504},
  year   = {2024}
}

Comments

arXiv admin note: text overlap with arXiv:2404.17808

R2 v1 2026-06-28T19:52:54.684Z