CLFeb 19, 2024

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

arXiv:2402.12030v351 citationsh-index: 10Trans. Mach. Learn. Res.
Originality Incremental advance
AI Analysis

This addresses a bottleneck in deploying compressed LLMs for industrial use by allowing distillation across diverse model families, though it is incremental as it builds on existing logit-based methods.

The paper tackles the problem of knowledge distillation across large language models with different tokenizers by introducing a Universal Logit Distillation loss based on optimal transport, enabling effective cross-tokenizer distillation and broadening the applicability of distillation techniques.

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.

Code Implementations3 repos
Foundations

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

Your Notes