Towards Cross-Tokenizer Distillation: the Universal Logit Distillation Loss for LLMs

Nicolas Boizard, Kevin El Haddad, Céline Hudelot, Pierre Colombo
2/19/2024
cs.CL

No official code found. Best implementation: Nicolas-BZRD/llm-recipes (33 stars, last commit 2024-03-13).

Abstract

Deploying large language models (LLMs) of several billion parameters can be impractical in most industrial use cases due to constraints such as cost, latency limitations, and hardware accessibility. Knowledge distillation (KD) offers a solution by compressing knowledge from resource-intensive large models to smaller ones. Various strategies exist, some relying on the text generated by the teacher model and optionally utilizing his logits to enhance learning. However, these methods based on logits often require both teacher and student models to share the same tokenizer, limiting their applicability across different LLM families. In this paper, we introduce Universal Logit Distillation (ULD) loss, grounded in optimal transport, to address this limitation. Our experimental results demonstrate the effectiveness of ULD loss in enabling distillation across models with different architectures and tokenizers, paving the way to a more widespread use of distillation techniques.

View on arXivView PDF

Code Implementations(1)

338PythonNov 2, 20232 years ago

Similar Papers

Cite this paper

@article{boizard2024towards,
  title  = {Towards Cross-Tokenizer Distillation: the Universal Logit Distillation Loss for LLMs},
  author = {Nicolas Boizard and Kevin El Haddad and Céline Hudelot and Pierre Colombo},
  year   = {2024},
  eprint = {2402.12030},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.12030v3}
}

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/2402.12030.svg)](https://codeofpaper.com/paper/2402.12030)

Discussion