TokAlign: Efficient Vocabulary Adaptation via Token Alignment

Tokenization serves as a foundational step for Large Language Models (LLMs) to process text.In new domains or languages, the inefficiency of the tokenizer will slow down the training and generation of LLM.The mismatch in vocabulary also hinders deep knowledge transfer between LLMs like token-level distillation.To mitigate this gap, we propose an efficient method named TokAlign to replace the vocabulary of LLM from the token co-occurrences view, and further transfer the token-level knowledge between models.It first aligns the source vocabulary to the target one by learning a oneto-one mapping matrix for token IDs.Model parameters, including embeddings, are rearranged and progressively fine-tuned for the new vocabulary.Our method significantly improves multilingual text compression rates and vocabulary initialization for LLMs, decreasing the perplexity from 3.4e 2 of strong baseline methods to 1.2e 2 after initialization.Experimental results on models across multiple parameter scales demonstrate the effectiveness and generalization of TokAlign, which costs as few as 5k steps to restore the performance of the vanilla model.After unifying vocabularies between LLMs, token-level distillation can remarkably boost (+4.4% than sentence-level distillation) the base model, costing only 235M tokens.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-long.207
Citations
1
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
2.48

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

TokAlign: Efficient Vocabulary Adaptation via Token Alignment

Chengqing Zong, C.‐J. LI, Jiajun Zhang
1 citations
Natural Language Processing Techniques
2.48
article

TokAlign: Efficient Vocabulary Adaptation via Token Alignment

Chengqing Zong, C.‐J. LI, Jiajun Zhang
article en
1 citations

Abstract

Tokenization serves as a foundational step for Large Language Models (LLMs) to process text.In new domains or languages, the inefficiency of the tokenizer will slow down the training and generation of LLM.The mismatch in vocabulary also hinders deep knowledge transfer between LLMs like token-level distillation.To mitigate this gap, we propose an efficient method named TokAlign to replace the vocabulary of LLM from the token co-occurrences view, and further transfer the token-level knowledge between models.It first aligns the source vocabulary to the target one by learning a oneto-one mapping matrix for token IDs.Model parameters, including embeddings, are rearranged and progressively fine-tuned for the new vocabulary.Our method significantly improves multilingual text compression rates and vocabulary initialization for LLMs, decreasing the perplexity from 3.4e 2 of strong baseline methods to 1.2e 2 after initialization.Experimental results on models across multiple parameter scales demonstrate the effectiveness and generalization of TokAlign, which costs as few as 5k steps to restore the performance of the vanilla model.After unifying vocabularies between LLMs, token-level distillation can remarkably boost (+4.4% than sentence-level distillation) the base model, costing only 235M tokens.

Chinese Academy of Sciences
Quality Education
Openalex Percentile: Top 9%
Natural Language Processing Techniques
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.