Knowledge Distillation of Large Language Models

Authors: Yuxian Gu, Li Dong, Furu Wei, Minlie Huang

Submitted to arXiv on 14 Jun. 2023
License: CC BY 4.0
Abstract

Knowledge Distillation (KD) is a promising technique for reducing the high computational demand of large language models (LLMs). However, previous KD methods are primarily applied to white-box classification models or training small models to imitate black-box model APIs like ChatGPT. How to effectively distill the knowledge from white-box generative LLMs is still under-explored, which becomes more and more important with the prosperity of LLMs. In this work, we propose MiniLLM that distills smaller language models from generative larger language models. We first replace the forward Kullback-Leibler divergence (KLD) objective in the standard KD approaches with reverse KLD, which is more suitable for KD on generative language models, to prevent the student model from overestimating the low-probability regions of the teacher distribution. Then, we derive an effective optimization approach to learn this objective. Extensive experiments in the instruction-following setting show that the MiniLLM models generate more precise responses with the higher overall quality, lower exposure bias, better calibration, and higher long-text generation performance. Our method is also scalable for different model families with 120M to 13B parameters. We will release our code and model checkpoints at https://aka.ms/MiniLLM.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Very close Another approach to the problem
    MiniPLM: Knowledge Distillation for Pre-Training Language Models
    Yuxian Gu, Hao Zhou, Fandong Meng et al. · 2024 · Computation and Language · cited 38 times · AI summary available

    MiniPLM distills teacher knowledge during language-model pre-training by refining the training-data distribution, whereas MiniLLM distills generative LLMs using reverse KL divergence.

    Abstract

    Knowledge distillation (KD) is widely used to train small, high-performing student language models (LMs) using large teacher LMs. While effective in fine-tuning, KD during pre-training faces challenges in efficiency, flexibility, and effectiveness. Existing methods either incur high computational costs due to online teacher inference, require tokenization matching between teacher and student LMs, or risk losing the difficulty and diversity of the teacher-generated training data. To address these issues, we propose MiniPLM, a KD framework for pre-training LMs by refining the training data distribution with the teacher's knowledge. For efficiency, MiniPLM performs offline teacher LM inference,…

  2. Very close Review
    Survey on Knowledge Distillation for Large Language Models: Methods, Evaluation, and Application
    Chuanpeng Yang, Wang Lu, Yao Zhu et al. · 2024 · Computation and Language · cited 154 times · AI summary available

    This survey organizes LLM knowledge distillation methods, evaluation, and applications, while MiniLLM proposes a specific reverse-KL distillation method.

    Abstract

    Large Language Models (LLMs) have showcased exceptional capabilities in various domains, attracting significant interest from both academia and industry. Despite their impressive performance, the substantial size and computational demands of LLMs pose considerable challenges for practical deployment, particularly in environments with limited resources. The endeavor to compress language models while maintaining their accuracy has become a focal point of research. Among the various methods, knowledge distillation has emerged as an effective technique to enhance inference speed without greatly compromising performance. This paper presents a thorough survey from three aspects: method, evaluation…

  3. Very close Another approach to the problem
    Pre-training Distillation for Large Language Models: A Design Space Exploration
    Hao Peng, Xin Lv, Yushi Bai et al. · 2024 · Annual Meeting of the Association for Computational Linguistics · cited 31 times · Not summarized yet

    This work explores distillation during LLM pre-training, whereas MiniLLM distills generative LLMs in an instruction-following setting.

    Abstract

    Knowledge distillation (KD) aims to transfer knowledge from a large teacher model to a smaller student model. Previous work applying KD in the field of large language models (LLMs) typically focused on the post-training phase, where the student LLM learns directly from instructions and corresponding responses generated by the teacher model. In this paper, we extend KD to the pre-training phase of LLMs, named pre-training distillation (PD). We first conduct a preliminary experiment using GLM-4-9B as the teacher LLM to distill a 1.9B parameter student LLM, validating the effectiveness of PD. Considering the key impact factors of distillation, we systematically explore the design space of pre-t…

  4. Very close Another approach to the problem
    Being Strong Progressively! Enhancing Knowledge Distillation of Large Language Models through a Curriculum Learning Framework
    Ling-Yuan Liu, Meng-Xiang Zhang · 2025 · arXiv.org · preprint, not peer reviewed · cited 7 times · Not summarized yet

    This work adds progressive curriculum learning to white-box LLM distillation to address distribution shifts, while MiniLLM changes the divergence objective to reverse KL.

    Abstract

    Knowledge Distillation (KD) compresses large language models (LLMs) by transferring the teacher model's capabilities to a smaller student model, reducing inference cost and memory usage while maintaining performance. However, existing KD methods for LLMs often fail to prevent significant shifts in the student model's distribution during training, leading to issues such as catastrophic forgetting, mode collapse, and training-inference mismatch. To address these challenges, we propose a novel, plug-in curriculum learning framework inspired by the strength training principle of"progressive overload"(POCL), which can be seamlessly integrated into existing white-box KD approaches with minimal com…

  5. Very close Another approach to the problem
    Direct Preference Knowledge Distillation for Large Language Models
    Yi-Xing Li, Yu-Xian Gu, Li Dong et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 21 times · Not summarized yet

    DPKD formulates LLM distillation around preference loss and an implicit reward, while MiniLLM uses reverse KL to distill generative distributions.

    Abstract

    In the field of large language models (LLMs), Knowledge Distillation (KD) is a critical technique for transferring capabilities from teacher models to student models. However, existing KD methods face limitations and challenges in distillation of LLMs, including efficiency and insufficient measurement capabilities of traditional KL divergence. It is shown that LLMs can serve as an implicit reward function, which we define as a supplement to KL divergence. In this work, we propose Direct Preference Knowledge Distillation (DPKD) for LLMs. DPKD utilizes distribution divergence to represent the preference loss and implicit reward function. We re-formulate KD of LLMs into two stages: first optimi…

  6. Very close Another approach to the problem
    ADDL: Adaptive Dynamic Distillation for Large Language Models
    Run-Min Zhang, Ke-Qin Zhou, Huan Zhang et al. · 2025 · 2025 5th International Conference on Computer Science and Blockchain (CCSB) · cited 1 time · Not summarized yet

    ADDL targets efficient autoregressive LLM distillation with adaptive dynamic training, while MiniLLM optimizes a reverse-KL objective for generative models.

    Abstract

    Knowledge Distillation (KD) has emerged as a powerful approach for compressing large language models (LLMs) by transferring insights from a high-capacity teacher to a compact student, thus achieving substantial size reduction with minimal performance loss. However, existing KD strategies for auto-regressive sequence models often rely on suboptimal objectives and incur extra computational overhead-particularly when they depend on the student to generate training data online. To address these challenges, we introduce Adaptive Dynamic Distillation for Large Language Models(ADDL), a framework specifically designed for efficient distillation of LLMs. At its core, ADDL employs a novel dynamic dist…

  7. Very close Another approach to the problem
    DistiLLM: Towards Streamlined Distillation for Large Language Models
    Jongwoo Ko, Sungnyun Kim, Tianyi Chen et al. · 2024 · International Conference on Machine Learning · cited 200 times · Not summarized yet

    DistiLLM uses skew KL and student-generated outputs for autoregressive distillation, whereas MiniLLM derives an optimization approach for reverse KL.

    Abstract

    Knowledge distillation (KD) is widely used for compressing a teacher model to a smaller student model, reducing its inference cost and memory footprint while preserving model capabilities. However, current KD methods for auto-regressive sequence models (e.g., large language models) suffer from missing a standardized objective function. Moreover, the recent use of student-generated outputs to address training-inference mismatches has significantly escalated computational costs. To tackle these issues, we introduce DistiLLM, a more effective and efficient KD framework for auto-regressive language models. DistiLLM comprises two components: (1) a novel skew Kullback-Leibler divergence loss, wher…

  8. Very close Groundwork for this paper Cited by this paper
    MixKD: Towards Efficient Distillation of Large-scale Language Models
    Kevin J Liang, Weituo Hao, Dinghan Shen et al. · 2020 · International Conference on Learning Representations · cited 93 times · Not summarized yet

    MixKD proposes efficient distillation of large-scale language models and is cited by MiniLLM, which instead focuses on reverse-KL distillation of generative LLMs.

    Abstract

    Large-scale language models have recently demonstrated impressive empirical performance. Nevertheless, the improved results are attained at the price of bigger models, more power consumption, and slower inference, which hinder their applicability to low-resource (memory and computation) platforms. Knowledge distillation (KD) has been demonstrated as an effective framework for compressing such big models. However, large-scale neural network systems are prone to memorize training instances, and thus tend to make inconsistent predictions when the data distribution is altered slightly. Moreover, the student model has few opportunities to request useful information from the teacher model when the…

Prior work it builds on

  1. Very close Groundwork for this paper
    LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale Instructions
    Minghao Wu, Abdul Waheed, Chiyu Zhang et al. · 2023 · Conference of the European Chapter of the Association for Computational Linguistics · cited 180 times · Not summarized yet

    LaMini-LM distills instruction-tuned LLMs using a diverse instruction collection, and MiniLLM cites it while proposing reverse-KL training for generative models.

    Abstract

    Large language models (LLMs) with instruction fine-tuning demonstrate superior generative capabilities. However, these models are resource-intensive. To alleviate this issue, we explore distilling knowledge from instruction-tuned LLMs into much smaller ones. While other similar works have been done, they are often conducted on a limited set of (usually still large) models and are not accompanied by proper evaluations. To this end, we carefully develop a large set of 2.58M instructions based on both existing and newly-generated instructions. In addition to being sizable, we design our instructions to cover a broad set of topics to ensure diversity. Extensive analysis of our instruction datase…

  2. Very close Groundwork for this paper
    f-Divergence Minimization for Sequence-Level Knowledge Distillation
    Yu-Qiao Wen, Zichao Li, Wenyu Du et al. · 2023 · Annual Meeting of the Association for Computational Linguistics · cited 156 times · Not summarized yet

    FDISTILL formulates sequence-level distillation through generalized f-divergences, and MiniLLM cites it while developing reverse-KL distillation for generative LLMs.

    Abstract

    Knowledge distillation (KD) is the process of transferring knowledge from a large model to a small one.It has gained increasing attention in the natural language processing community, driven by the demands of compressing ever-growing language models. In this work, we propose an FDISTILL framework, which formulates sequence-level knowledge distillation as minimizing a generalized f-divergence function. We propose four distilling variants under our framework and show that existing SeqKD and ENGINE approaches are approximations of our FDISTILL methods. We further derive step-wise decomposition for our FDISTILL, reducing intractable sequence-level divergence to word-level losses that can be comp…

  3. Close Review
    Knowledge Distillation: A Survey
    Jianping Gou, Baosheng Yu, Stephen John Maybank et al. · 2020 · Machine Learning · cited 4,861 times · Not summarized yet

    This survey reviews neural-network compression methods including knowledge distillation, while MiniLLM studies distillation of generative LLMs.

    Abstract

    In recent years, deep neural networks have been very successful in the fields of both industry and academia, especially for the applications of visual recognition and neural language processing. The great success of deep learning mainly owes to its great scalabilities to both large-scale data samples and billions of model parameters. However, it also poses a great challenge for the deployment of these cumbersome deep models on devices with limited resources, e.g., mobile phones and embedded devices, not only because of the great computational complexity but also the storage. To this end, a variety of model compression and acceleration techniques have been developed, such as pruning, quantiza…

  4. Close Same method, another problem
    Self-Knowledge Distillation via Dropout
    Hyoje Lee, Yeachan Park, Hyun Seo et al. · 2022 · Computer Vision and Image Understanding · cited 32 times · Not summarized yet

    SD-Dropout distills posterior distributions among dropout-sampled versions of one model, whereas MiniLLM distills a large generative LLM into a smaller student.

    Abstract

    To boost the performance, deep neural networks require deeper or wider network structures that involve massive computational and memory costs. To alleviate this issue, the self-knowledge distillation method regularizes the model by distilling the internal knowledge of the model itself. Conventional self-knowledge distillation methods require additional trainable parameters or are dependent on the data. In this paper, we propose a simple and effective self-knowledge distillation method using a dropout (SD-Dropout). SD-Dropout distills the posterior distributions of multiple models through a dropout sampling. Our method does not require any additional trainable modules, does not rely on data, …

  5. Close Groundwork for this paper
    TinyBERT: Distilling BERT for Natural Language Understanding
    Xiaoqi Jiao, Yi-Chun Yin, Li-Feng Shang et al. · 2019 · Findings · cited 2,630 times · Not summarized yet

    TinyBERT develops Transformer distillation for BERT-based language understanding, an earlier model-compression approach cited by MiniLLM.

    Abstract

    Language model pre-training, such as BERT, has significantly improved the performances of many natural language processing tasks. However, pre-trained language models are usually computationally expensive, so it is difficult to efficiently execute them on resource-restricted devices. To accelerate inference and reduce model size while maintaining accuracy, we first propose a novel Transformer distillation method that is specially designed for knowledge distillation (KD) of the Transformer-based models. By leveraging this new KD method, the plenty of knowledge encoded in a large “teacher” BERT can be effectively transferred to a small “student” TinyBERT. Then, we introduce a new two-stage lea…

Papers that cite it

  1. Very close Builds on this paper Uses this paper in depth
    On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes
    Rishabh Agarwal, Nino Vieillard, Yongchao Zhou et al. · 2023 · International Conference on Learning Representations · cited 1,267 times · Not summarized yet

    GKD trains students on self-generated outputs with teacher feedback to address distribution mismatch, extending the LLM distillation line that includes MiniLLM.

    Abstract

    Knowledge distillation (KD) is widely used for compressing a teacher model to reduce its inference cost and memory footprint, by training a smaller student model. However, current KD methods for auto-regressive sequence models suffer from distribution mismatch between output sequences seen during training and those generated by the student during inference. To address this issue, we introduce Generalized Knowledge Distillation (GKD). Instead of solely relying on a fixed set of output sequences, GKD trains the student on its self-generated output sequences by leveraging feedback from the teacher on such sequences. Unlike supervised KD approaches, GKD also offers the flexibility to employ alte…

  2. Very close Builds on this paper Uses this paper in depth
    Rethinking Large Language Model Distillation: A Constrained Markov Decision Process Perspective
    Matthieu Zimmer, Xiao-Tong Ji, Tu Nguyen et al. · 2025 · arXiv.org · preprint, not peer reviewed · cited 2 times · Not summarized yet

    This work casts LLM distillation as constrained reinforcement learning with task rewards and teacher-divergence limits, citing MiniLLM as prior distillation research.

    Abstract

    We introduce a novel approach to large language model (LLM) distillation by formulating it as a constrained reinforcement learning problem. While recent work has begun exploring the integration of task-specific rewards into distillation processes, existing methods typically rely on ad-hoc reward weighting. We propose a principled optimization framework that maximizes task-specific rewards while constraining the divergence from the teacher model to remain below a specified threshold. Our approach adapts constrained state augmented reinforcement learning to the distillation setting, introducing a modified reward function that maintains theoretical guarantees of constraint satisfaction without …

  3. Very close Same method, another problem
    LLAVADI: What Matters For Multimodal Large Language Models Distillation
    Shilin Xu, Xiang-Tai Li, Haobo Yuan et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 29 times · Not summarized yet

    LLAVADI studies training strategies and model choices for distilling multimodal LLMs, applying knowledge distillation to a multimodal object rather than MiniLLM's generative LLMs.

    Abstract

    The recent surge in Multimodal Large Language Models (MLLMs) has showcased their remarkable potential for achieving generalized intelligence by integrating visual understanding into Large Language Models.Nevertheless, the sheer model size of MLLMs leads to substantial memory and computational demands that hinder their widespread deployment. In this work, we do not propose a new efficient model structure or train small-scale MLLMs from scratch. Instead, we focus on what matters for training small-scale MLLMs through knowledge distillation, which is the first step from the multimodal distillation perspective. Our extensive studies involve training strategies, model choices, and distillation al…

  4. Very close Broader context
    Towards the Law of Capacity Gap in Distilling Language Models
    Chen Zhang, Dawei Song, Zheyu Ye et al. · 2023 · Computation and Language · cited 61 times · AI summary available

    This work studies how teacher-student capacity gaps affect language-model distillation, a scaling concern adjacent to MiniLLM's LLM compression method.

    Abstract

    Language model (LM) distillation is a trending area that aims to distil the knowledge resided in a large teacher LM to a small student one. While various methods have been proposed to push the distillation to its limits, it is still a pain distilling LMs when a large capacity gap is exhibited between the teacher and the student LMs. The pain is mainly resulted by the curse of capacity gap, which describes that a larger teacher LM cannot always lead to a better student LM than one distilled from a smaller teacher LM due to the affect of capacity gap increment. That is, there is likely an optimal point yielding the best student LM along the scaling course of the teacher LM. Even worse, the cur…

  5. Close Broader context
    Knowledge Fusion of Large Language Models
    Fanqi Wan, Xinting Huang, Deng Cai et al. · 2024 · Computation and Language · cited 151 times · AI summary available

    Knowledge Fusion transfers capabilities from several pretrained LLMs into one model using their generative distributions, rather than compressing a teacher into a smaller student.

    Abstract

    While training large language models (LLMs) from scratch can generate models with distinct functionalities and strengths, it comes at significant costs and may result in redundant capabilities. Alternatively, a cost-effective and compelling approach is to merge existing pre-trained LLMs into a more potent model. However, due to the varying architectures of these LLMs, directly blending their weights is impractical. In this paper, we introduce the notion of knowledge fusion for LLMs, aimed at combining the capabilities of existing LLMs and transferring them into a single LLM. By leveraging the generative distributions of source LLMs, we externalize their collective knowledge and unique streng…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 5 November 2026.

The illustrated guide to the papers around a paper