WASD: Wasserstein-based Knowledge Distillation for Large Language Models
cs.LG, cs.AI
Submitted: 2026-10-06
Updated: 2026-10-06
Comments: Accepted at NeurIPS 2026
Code: https://github.com/aailab-kaist/WASD
Project page: http://skylion007.github.io/OpenWebTextCorpus
License: http://creativecommons.org/licenses/by/4.0/
The gist: Autoregressive large language models (LLMs) have rapidly advanced in capability, but their increasing scale comes with substantial computational and memory costs at inference time.
Terminology
Abstract
Autoregressive large language models (LLMs) have rapidly advanced in capability, but their increasing scale comes with substantial computational and memory costs at inference time. Knowledge distillation (KD) offers a practical solution by transferring knowledge from a large teacher model to a smaller student model via alignment of discrete probability distributions. However, existing KD methods for LLMs primarily rely on divergences that evaluate discrepancies through probability values at each vocabulary index, without explicitly leveraging token-level semantic information. We propose Wasserstein-based knowledge distillation (WASD) for LLMs, which incorporates token-level semantic information via the Wasserstein-based distance with a cost matrix derived from token embeddings. To ensure computational tractability, we adopt the Sinkhorn divergence and derive a gradient-equivalent objective that can be efficiently optimized without introducing additional networks. Experiments across multiple LLM families and scales show that WASD consistently improves distillation performance on diverse tasks, including instruction following, mathematical reasoning, and code generation. Our results highlight the importance of semantic information encoded in the token space for effective distribution alignment in LLM distillation. The implementation is publicly available at https://github.com/aailab-kaist/WASD.
Sources
- Program Synthesis with Large Language Models
- Qwen Technical Report
- Evaluating Large Language Models Trained on Code
- Training Verifiers to Solve Math Word Problems
- No Language Left Behind: Scaling Human-Centered Machine Translation
- Distilling the Knowledge in a Neural Network
- Qwen2.5-Coder Technical Report
- GPT-4o System Card
- Scaling Laws for Neural Language Models
- WizardCoder: Empowering Code Large Language Models with Evol-Instruct
- Gemma: Open Models Based on Gemini Research and Technology
- Llama 2: Open Foundation and Fine-Tuned Chat Models
- A Dual-Space Framework for General Knowledge Distillation of Large Language Models
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks