Revisiting Knowledge Distillation for Autoregressive Language Models

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Zhong, Qihuang, Ding, Liang, Shen, Li, Liu, Juhua, Du, Bo, Tao, Dacheng
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929387713069056
author Zhong, Qihuang
Ding, Liang
Shen, Li
Liu, Juhua
Du, Bo
Tao, Dacheng
author_facet Zhong, Qihuang
Ding, Liang
Shen, Li
Liu, Juhua
Du, Bo
Tao, Dacheng
contents Knowledge distillation (KD) is a common approach to compress a teacher model to reduce its inference cost and memory footprint, by training a smaller student model. However, in the context of autoregressive language models (LMs), we empirically find that larger teacher LMs might dramatically result in a poorer student. In response to this problem, we conduct a series of analyses and reveal that different tokens have different teaching modes, neglecting which will lead to performance degradation. Motivated by this, we propose a simple yet effective adaptive teaching approach (ATKD) to improve the KD. The core of ATKD is to reduce rote learning and make teaching more diverse and flexible. Extensive experiments on 8 LM tasks show that, with the help of ATKD, various baseline KD methods can achieve consistent and significant performance gains (up to +3.04% average score) across all model types and sizes. More encouragingly, ATKD can improve the student model generalization effectively.
format Preprint
id arxiv_https___arxiv_org_abs_2402_11890
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Revisiting Knowledge Distillation for Autoregressive Language Models
Zhong, Qihuang
Ding, Liang
Shen, Li
Liu, Juhua
Du, Bo
Tao, Dacheng
Computation and Language
Knowledge distillation (KD) is a common approach to compress a teacher model to reduce its inference cost and memory footprint, by training a smaller student model. However, in the context of autoregressive language models (LMs), we empirically find that larger teacher LMs might dramatically result in a poorer student. In response to this problem, we conduct a series of analyses and reveal that different tokens have different teaching modes, neglecting which will lead to performance degradation. Motivated by this, we propose a simple yet effective adaptive teaching approach (ATKD) to improve the KD. The core of ATKD is to reduce rote learning and make teaching more diverse and flexible. Extensive experiments on 8 LM tasks show that, with the help of ATKD, various baseline KD methods can achieve consistent and significant performance gains (up to +3.04% average score) across all model types and sizes. More encouragingly, ATKD can improve the student model generalization effectively.
title Revisiting Knowledge Distillation for Autoregressive Language Models
topic Computation and Language
url https://arxiv.org/abs/2402.11890