CLDec 19, 2024

Multi-Level Optimal Transport for Universal Cross-Tokenizer Knowledge Distillation on Language Models

arXiv:2412.14528v235 citationsh-index: 67Has CodeAAAI
Originality Incremental advance
AI Analysis

This addresses a bottleneck in compressing large language models for broader deployment, though it is an incremental improvement over existing cross-tokenizer methods.

The paper tackles the problem of knowledge distillation being limited by identical tokenizer requirements between teacher and student language models, and introduces Multi-Level Optimal Transport to enable cross-tokenizer distillation, achieving state-of-the-art performance on tasks like QA and summarization.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes