Teaching Old Tokenizers New Words: Efficient Tokenizer Adaptation for Pre-trained Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Purason, Taido, Chizhov, Pavel, Yamshchikov, Ivan P., Fishel, Mark
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910064384671744
author Purason, Taido
Chizhov, Pavel
Yamshchikov, Ivan P.
Fishel, Mark
author_facet Purason, Taido
Chizhov, Pavel
Yamshchikov, Ivan P.
Fishel, Mark
contents Tokenizer adaptation plays an important role in adapting pre-trained language models to new domains or languages. In this work, we address two complementary aspects of this process: vocabulary extension and pruning. The common approach to extension trains a new tokenizer on domain-specific text and appends the tokens that do not overlap with the existing vocabulary, which often results in many tokens that are unreachable or never used. We propose continued BPE training that extends a pre-trained tokenizer by continuing the BPE merge learning process on new data. Experiments across multiple languages and model families show that this approach improves tokenization efficiency and leads to better utilization of added vocabulary. We also introduce leaf-based vocabulary pruning, which removes redundant tokens while preserving model quality. Together, these methods provide practical tools for controlled vocabulary modification, which we release as an open-source toolkit.
format Preprint
id arxiv_https___arxiv_org_abs_2512_03989
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Teaching Old Tokenizers New Words: Efficient Tokenizer Adaptation for Pre-trained Models
Purason, Taido
Chizhov, Pavel
Yamshchikov, Ivan P.
Fishel, Mark
Computation and Language
Tokenizer adaptation plays an important role in adapting pre-trained language models to new domains or languages. In this work, we address two complementary aspects of this process: vocabulary extension and pruning. The common approach to extension trains a new tokenizer on domain-specific text and appends the tokens that do not overlap with the existing vocabulary, which often results in many tokens that are unreachable or never used. We propose continued BPE training that extends a pre-trained tokenizer by continuing the BPE merge learning process on new data. Experiments across multiple languages and model families show that this approach improves tokenization efficiency and leads to better utilization of added vocabulary. We also introduce leaf-based vocabulary pruning, which removes redundant tokens while preserving model quality. Together, these methods provide practical tools for controlled vocabulary modification, which we release as an open-source toolkit.
title Teaching Old Tokenizers New Words: Efficient Tokenizer Adaptation for Pre-trained Models
topic Computation and Language
url https://arxiv.org/abs/2512.03989