BPE Gets Picky: Efficient Vocabulary Refinement During Tokenizer Training
Chizhov, Pavel, Arnett, Catherine, Korotkova, Elizaveta, Yamshchikov, Ivan P.
–arXiv.org Artificial Intelligence
Language models can largely benefit from efficient tokenization. However, they still mostly utilize the classical BPE algorithm, a simple and reliable method. This has been shown to cause such issues as under-trained tokens and sub-optimal compression that may affect the downstream performance. We introduce Picky BPE, a modified BPE algorithm that carries Figure 1: An example of a series of merges to produce a out vocabulary refinement during tokenizer token Kentucky. The pre-merge token frequencies are training. Our method improves vocabulary efficiency, demonstrated in corresponding circles. In the vanilla eliminates under-trained tokens, and BPE algorithm, entucky should also be stored in the does not compromise text compression. Our vocabulary, whereas it is redundant after the merge. In experiments show that our method does not this example, the IoS metric effectively captures the reduce the downstream performance, and in intermediate token, as IoS(entucky) T = 0.9.
arXiv.org Artificial Intelligence
Sep-6-2024
- Country:
- South America > Colombia
- Meta Department > Villavicencio (0.04)
- Oceania > Australia
- North America
- United States
- Kentucky (0.24)
- Pennsylvania (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Illinois > Cook County
- Chicago (0.04)
- California > San Diego County
- San Diego (0.04)
- Mexico > Mexico City
- Mexico City (0.04)
- Canada > Ontario
- Toronto (0.04)
- United States
- Europe
- Spain (0.04)
- Italy > Tuscany
- Florence (0.04)
- Germany
- Berlin (0.04)
- Bavaria
- Middle Franconia > Nuremberg (0.04)
- Lower Franconia > Würzburg (0.04)
- Denmark > Capital Region
- Copenhagen (0.04)
- United Kingdom > England
- South Yorkshire > Sheffield (0.04)
- Croatia > Dubrovnik-Neretva County
- Dubrovnik (0.04)
- France > Île-de-France
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Belgium > Brussels-Capital Region
- Brussels (0.04)
- Estonia > Tartu County
- Tartu (0.04)
- Asia
- Africa > Middle East
- Egypt > Cairo Governorate > Cairo (0.04)
- South America > Colombia
- Genre:
- Research Report > New Finding (0.46)
- Technology: