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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Lian, Haoran, Xiong, Yizhe, Lin, Zijia, Niu, Jianwei, Mo, Shasha, Chen, Hui, Liu, Peng, Ding, Guiguang
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909380613505024
author Lian, Haoran
Xiong, Yizhe
Lin, Zijia
Niu, Jianwei
Mo, Shasha
Chen, Hui
Liu, Peng
Ding, Guiguang
author_facet Lian, Haoran
Xiong, Yizhe
Lin, Zijia
Niu, Jianwei
Mo, Shasha
Chen, Hui
Liu, Peng
Ding, Guiguang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2411_05504
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LBPE: Long-token-first Tokenization to Improve Large Language Models
Lian, Haoran
Xiong, Yizhe
Lin, Zijia
Niu, Jianwei
Mo, Shasha
Chen, Hui
Liu, Peng
Ding, Guiguang
Computation and Language
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.
title LBPE: Long-token-first Tokenization to Improve Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2411.05504