Token Distillation: Attention-aware Input Embeddings For New Tokens

Konstantin Dobler, Desmond Elliott, Gerard de Melo
5/26/2025
cs.CLcs.LG

No official code found. Best implementation: konstantinjdobler/token-distillation (10 stars, MIT, last commit 2026-03-11).

Abstract

Current language models rely on static vocabularies determined at pretraining time, which can lead to decreased performance and increased computational cost for domains underrepresented in the original vocabulary. New tokens can be added to solve this problem, when coupled with a good initialization for their new embeddings. However, existing embedding initialization methods require expensive further training or pretraining of additional modules. In this paper, we propose Token Distillation and show that by distilling representations obtained using the original tokenization, we can quickly learn high-quality input embeddings for new tokens. Experimental results with a wide range of open-weight models show that Token Distillation outperforms even strong baselines.

View on arXivView PDF

Code Implementations(1)

MIT

Official Code for "Token Distillation: Attention-aware Input Embeddings for New Tokens"

101PythonSep 30, 20257 months agoMIT

Similar Papers

Cite this paper

@article{dobler2025token,
  title  = {Token Distillation: Attention-aware Input Embeddings For New Tokens},
  author = {Konstantin Dobler and Desmond Elliott and Gerard de Melo},
  year   = {2025},
  eprint = {2505.20133},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.20133v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.20133.svg)](https://codeofpaper.com/paper/2505.20133)

Discussion