Knowledge Distillation of Large Language Models
Auteurs : Yuxian Gu, Li Dong, Furu Wei, Minlie Huang
Résumé scientifique
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.
Les articles autour de lui, par date et par proximité
Plus haut, c’est plus proche de cet article ; à gauche, c’est plus ancien. Les traits relient les articles proches entre eux : les groupes de traits sont des sous-thèmes. Sélectionnez un point pour voir pourquoi il est là. Retour au résumé de cet article
Les articles autour de celui-ci
Classés selon la proximité de leur titre et de leur résumé avec ceux de cet article. Sélectionnez-en pour les lire ensemble.
Les articles les plus proches
-
MiniPLM: Knowledge Distillation for Pre-Training Language ModelsYuxian Gu, Hao Zhou, Fandong Meng et al. · 2024 · Computation and Language · cité 38 fois · Résumé IA disponible
Résumé scientifique
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,…
-
Survey on Knowledge Distillation for Large Language Models: Methods, Evaluation, and ApplicationChuanpeng Yang, Wang Lu, Yao Zhu et al. · 2024 · Computation and Language · cité 154 fois · Résumé IA disponible
Résumé scientifique
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…
-
Pre-training Distillation for Large Language Models: A Design Space ExplorationHao Peng, Xin Lv, Yushi Bai et al. · 2024 · Annual Meeting of the Association for Computational Linguistics · cité 31 fois · Pas encore résumé
Résumé scientifique
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…
-
Being Strong Progressively! Enhancing Knowledge Distillation of Large Language Models through a Curriculum Learning FrameworkLing-Yuan Liu, Meng-Xiang Zhang · 2025 · arXiv.org · preprint, non relu par les pairs · cité 7 fois · Pas encore résumé
Résumé scientifique
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…
-
Direct Preference Knowledge Distillation for Large Language ModelsYi-Xing Li, Yu-Xian Gu, Li Dong et al. · 2024 · arXiv.org · preprint, non relu par les pairs · cité 21 fois · Pas encore résumé
Résumé scientifique
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…
-
ADDL: Adaptive Dynamic Distillation for Large Language ModelsRun-Min Zhang, Ke-Qin Zhou, Huan Zhang et al. · 2025 · 2025 5th International Conference on Computer Science and Blockchain (CCSB) · cité 1 fois · Pas encore résumé
Résumé scientifique
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…
-
DistiLLM: Towards Streamlined Distillation for Large Language ModelsJongwoo Ko, Sungnyun Kim, Tianyi Chen et al. · 2024 · International Conference on Machine Learning · cité 200 fois · Pas encore résumé
Résumé scientifique
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…
-
MixKD: Towards Efficient Distillation of Large-scale Language ModelsKevin J Liang, Weituo Hao, Dinghan Shen et al. · 2020 · International Conference on Learning Representations · cité 93 fois · Pas encore résumé
Résumé scientifique
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…
Les travaux antérieurs sur lesquels il s’appuie
-
LaMini-LM: A Diverse Herd of Distilled Models from Large-Scale InstructionsMinghao Wu, Abdul Waheed, Chiyu Zhang et al. · 2023 · Conference of the European Chapter of the Association for Computational Linguistics · cité 180 fois · Pas encore résumé
Résumé scientifique
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…
-
f-Divergence Minimization for Sequence-Level Knowledge DistillationYu-Qiao Wen, Zichao Li, Wenyu Du et al. · 2023 · Annual Meeting of the Association for Computational Linguistics · cité 156 fois · Pas encore résumé
Résumé scientifique
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…
-
Knowledge Distillation: A SurveyJianping Gou, Baosheng Yu, Stephen John Maybank et al. · 2020 · Machine Learning · cité 4 861 fois · Pas encore résumé
Résumé scientifique
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…
-
Self-Knowledge Distillation via DropoutHyoje Lee, Yeachan Park, Hyun Seo et al. · 2022 · Computer Vision and Image Understanding · cité 32 fois · Pas encore résumé
Résumé scientifique
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, …
-
TinyBERT: Distilling BERT for Natural Language UnderstandingXiaoqi Jiao, Yi-Chun Yin, Li-Feng Shang et al. · 2019 · Findings · cité 2 630 fois · Pas encore résumé
Résumé scientifique
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…
Les articles qui le citent
-
On-Policy Distillation of Language Models: Learning from Self-Generated MistakesRishabh Agarwal, Nino Vieillard, Yongchao Zhou et al. · 2023 · International Conference on Learning Representations · cité 1 267 fois · Pas encore résumé
Résumé scientifique
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…
-
Rethinking Large Language Model Distillation: A Constrained Markov Decision Process PerspectiveMatthieu Zimmer, Xiao-Tong Ji, Tu Nguyen et al. · 2025 · arXiv.org · preprint, non relu par les pairs · cité 2 fois · Pas encore résumé
Résumé scientifique
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 …
-
LLAVADI: What Matters For Multimodal Large Language Models DistillationShilin Xu, Xiang-Tai Li, Haobo Yuan et al. · 2024 · arXiv.org · preprint, non relu par les pairs · cité 29 fois · Pas encore résumé
Résumé scientifique
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…
-
Towards the Law of Capacity Gap in Distilling Language ModelsChen Zhang, Dawei Song, Zheyu Ye et al. · 2023 · Computation and Language · cité 61 fois · Résumé IA disponible
Résumé scientifique
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…
-
Knowledge Fusion of Large Language ModelsFanqi Wan, Xinting Huang, Deng Cai et al. · 2024 · Computation and Language · cité 151 fois · Résumé IA disponible
Résumé scientifique
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…
Aller plus loin
Comment ces articles sont-ils trouvés ?
Nous comparons le titre et le résumé de cet article avec ceux de tous les articles résumés sur ce site, et avec les articles que Semantic Scholar recommande, ceux qu’il cite et ceux qui le citent (pour un article très cité, ses citations les plus récentes et, depuis OpenAlex, les plus citées). Parmi les travaux antérieurs et les suites, les articles qui s’utilisent en profondeur, une méthode qu’il utilise et les suites très citées remontent un peu. Les niveaux (très proche, proche, apparenté) viennent de la similarité des textes, pas d’un jugement de qualité ; * signale un article sans résumé, comparé par son titre. La phrase sous un article est écrite par une IA à partir des deux résumés : vérifiez-la dans les articles. Un article jugé hors sujet par trois lecteurs quitte la liste.
Mis à jour le 5 novembre 2026.