Mitigating the Impact of Glitch Tokens via Targeted Retokenization

Muhammad Alif Al Hakim, Dmitrii Kuzmin, Carlos Javier Galán Zavala, Tatsuya Hiraoka, Munachiso Samuel Nwadike, Ayana Niwa, Marco Cognetta, David Pohl, Kentaro Inui


Abstract
This paper examines whether avoiding undertrained or “glitch” tokens and maximizing tokenization quality during inference can improve downstream task performance without retraining the model. We evaluate this question using a retokenization method that selects the highest-quality tokenization based on the trainedness of tokens, which is defined through the norm or entropy of token embeddings. We compare the performance difference between the tokenization that includes undertrained tokens and the one that avoids such tokens on multiple benchmarks. Our findings reveal a key nuance: undertrained tokens degrade performance primarily when they occupy semantically salient positions that are critical for solving the task. Consequently, retokenization preserves performance on ordinary inputs, while yielding consistent performance improvements when such tokens appear in high-importance contexts.
Anthology ID:
2026.aacl-short.13
Volume:
Proceedings of the 15th International Joint Conference on Natural Language Processing and the 5th Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics (Volume 2: Short Papers)
Month:
November
Year:
2026
Address:
Hengqin, China
Editors:
Yue Zhang, Ruifeng Xu, Ayu Purwarianti, Tong Rong, Jun Suzuki
Venues:
AACL | IJCNLP
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
155–169
Language:
URL:
https://aclanthology.org/2026.aacl-short.13/
DOI:
Bibkey:
Cite (ACL):
Muhammad Alif Al Hakim, Dmitrii Kuzmin, Carlos Javier Galán Zavala, Tatsuya Hiraoka, Munachiso Samuel Nwadike, Ayana Niwa, Marco Cognetta, David Pohl, and Kentaro Inui. 2026. Mitigating the Impact of Glitch Tokens via Targeted Retokenization. In Proceedings of the 15th International Joint Conference on Natural Language Processing and the 5th Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics (Volume 2: Short Papers), pages 155–169, Hengqin, China. Association for Computational Linguistics.
Cite (Informal):
Mitigating the Impact of Glitch Tokens via Targeted Retokenization (Al Hakim et al., AACL-IJCNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.aacl-short.13.pdf