Saved in:
Bibliographic Details
Main Authors: Cui, Xiao, Zhu, Mo, Qin, Yulei, Xie, Liang, Zhou, Wengang, Li, Houqiang
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2412.14528
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915109430886400
author Cui, Xiao
Zhu, Mo
Qin, Yulei
Xie, Liang
Zhou, Wengang
Li, Houqiang
author_facet Cui, Xiao
Zhu, Mo
Qin, Yulei
Xie, Liang
Zhou, Wengang
Li, Houqiang
contents Knowledge distillation (KD) has become a prevalent technique for compressing large language models (LLMs). Existing KD methods are constrained by the need for identical tokenizers (i.e., vocabularies) between teacher and student models, limiting their versatility in handling LLMs of different architecture families. In this paper, we introduce the Multi-Level Optimal Transport (MultiLevelOT), a novel approach that advances the optimal transport for universal cross-tokenizer knowledge distillation. Our method aligns the logit distributions of the teacher and the student at both token and sequence levels using diverse cost matrices, eliminating the need for dimensional or token-by-token correspondence. At the token level, MultiLevelOT integrates both global and local information by jointly optimizing all tokens within a sequence to enhance robustness. At the sequence level, we efficiently capture complex distribution structures of logits via the Sinkhorn distance, which approximates the Wasserstein distance for divergence measures. Extensive experiments on tasks such as extractive QA, generative QA, and summarization demonstrate that the MultiLevelOT outperforms state-of-the-art cross-tokenizer KD methods under various settings. Our approach is robust to different student and teacher models across model families, architectures, and parameter sizes. Codes and models are available at https://github.com/2018cx/Multi-Level-OT.
format Preprint
id arxiv_https___arxiv_org_abs_2412_14528
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Multi-Level Optimal Transport for Universal Cross-Tokenizer Knowledge Distillation on Language Models
Cui, Xiao
Zhu, Mo
Qin, Yulei
Xie, Liang
Zhou, Wengang
Li, Houqiang
Computation and Language
Knowledge distillation (KD) has become a prevalent technique for compressing large language models (LLMs). Existing KD methods are constrained by the need for identical tokenizers (i.e., vocabularies) between teacher and student models, limiting their versatility in handling LLMs of different architecture families. In this paper, we introduce the Multi-Level Optimal Transport (MultiLevelOT), a novel approach that advances the optimal transport for universal cross-tokenizer knowledge distillation. Our method aligns the logit distributions of the teacher and the student at both token and sequence levels using diverse cost matrices, eliminating the need for dimensional or token-by-token correspondence. At the token level, MultiLevelOT integrates both global and local information by jointly optimizing all tokens within a sequence to enhance robustness. At the sequence level, we efficiently capture complex distribution structures of logits via the Sinkhorn distance, which approximates the Wasserstein distance for divergence measures. Extensive experiments on tasks such as extractive QA, generative QA, and summarization demonstrate that the MultiLevelOT outperforms state-of-the-art cross-tokenizer KD methods under various settings. Our approach is robust to different student and teacher models across model families, architectures, and parameter sizes. Codes and models are available at https://github.com/2018cx/Multi-Level-OT.
title Multi-Level Optimal Transport for Universal Cross-Tokenizer Knowledge Distillation on Language Models
topic Computation and Language
url https://arxiv.org/abs/2412.14528