Model-Aware Tokenizer Transfer
Mykola Haltiuk, Aleksander Smywiński-Pohl
TL;DR
This paper tackles the tokenizer bottleneck in multilingual LLM adaptation by introducing Model-Aware Tokenizer Transfer (MATT), which leverages an Attention Influence Modeling (AIM) objective to distill inter-token attention patterns from a source model to a target model with a new tokenizer. By aligning attention dynamics rather than relying solely on embedding similarity, MATT provides an efficient warm-up that substantially recovers the original model’s performance across generative and discriminative tasks, often with only a few GPU hours. The approach is validated on multiple languages and model families, notably achieving strong results for Ukrainian with Gemma 3, and demonstrating favorable efficiency-complexity trade-offs via layer-wise AIM application and optional AIM* variants. These findings suggest that incorporating model-level signals into tokenizer transfer offers a practical path for robust multilingual adaptation without full re-training.
Abstract
Large Language Models (LLMs) are trained to support an increasing number of languages, yet their predefined tokenizers remain a bottleneck for adapting models to lower-resource or distinct-script languages. Existing tokenizer transfer methods typically rely on semantic heuristics to initialize new embeddings, ignoring higher-layer model dynamics and limiting transfer quality. We propose Model-Aware Tokenizer Transfer (MATT), a method that incorporates model internals into the tokenizer transfer process. MATT introduces an Attention Influence Modeling (AIM) objective that distills inter-token communication patterns from a source model into a target model with a new tokenizer, providing an efficient warm-up before standard language modeling. Unlike approaches that focus solely on embedding similarity, MATT leverages attention behavior to guide embedding initialization and adaptation. Experiments across diverse linguistic settings show that MATT recovers a large fraction of the original model's performance within a few GPU hours, outperforming heuristic baselines. These results demonstrate that incorporating model-level signals offers a practical and effective path toward robust tokenizer transfer in multilingual LLMs.
