WASD: Wasserstein-based Knowledge Distillation for Large Language Models

Byeonghu Na, Donghyeok Shin, Yeongmin Kim, Mina Kang, Il-Chul Moon
10/6/2026
cs.LGcs.AI
distillation

Official code: aailab-kaist/WASD (5 stars, Python, Apache-2.0, last commit 2026-10-08).

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.

Show full abstract

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 .

View on arXivView PDF

Code Implementations(1)

aailab-kaist/WASDOfficial100%
Apache-2.0

Official implementation for Wasserstein-based Knowledge Distillation (WASD) in NeurIPS 2026.

52Python, ShellSep 30, 20261 months agoApache-2.0

Similar Papers

Cite this paper

@article{na2026wasd,
  title  = {WASD: Wasserstein-based Knowledge Distillation for Large Language Models},
  author = {Byeonghu Na and Donghyeok Shin and Yeongmin Kim and Mina Kang and Il-Chul Moon},
  year   = {2026},
  eprint = {2610.07706},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.07706v1}
}

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

Discussion