SWITCH: Studying with Teacher for Knowledge Distillation of Large Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Koo, Jahyun, Hwang, Yerin, Kim, Yongil, Kang, Taegwan, Bae, Hyunkyung, Jung, Kyomin
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908330635558912
author Koo, Jahyun
Hwang, Yerin
Kim, Yongil
Kang, Taegwan
Bae, Hyunkyung
Jung, Kyomin
author_facet Koo, Jahyun
Hwang, Yerin
Kim, Yongil
Kang, Taegwan
Bae, Hyunkyung
Jung, Kyomin
contents Despite the success of Large Language Models (LLMs), they still face challenges related to high inference costs and memory requirements. To address these issues, Knowledge Distillation (KD) has emerged as a popular method for model compression, with student-generated outputs (SGOs) as training data being particularly notable for reducing the mismatch between training and inference. However, SGOs often produce noisy and biased sequences, which can lead to misguidance from the teacher model, especially in long sequences. To mitigate these challenges, we propose SWITCH (Studying WIth TeaCHer for Knowledge Distillation), a novel approach that strategically incorporates the teacher model during the student's sequence generation. SWITCH identifies discrepancies between the token probabilities of the teacher and student models, allowing the teacher to intervene selectively, particularly in long sequences that are more prone to teacher misguidance. Extensive experimental results across three model families and five instruction-following datasets show that SWITCH surpasses traditional KD methods, particularly excelling in the generation of long sequential data.
format Preprint
id arxiv_https___arxiv_org_abs_2410_19503
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SWITCH: Studying with Teacher for Knowledge Distillation of Large Language Models
Koo, Jahyun
Hwang, Yerin
Kim, Yongil
Kang, Taegwan
Bae, Hyunkyung
Jung, Kyomin
Computation and Language
Despite the success of Large Language Models (LLMs), they still face challenges related to high inference costs and memory requirements. To address these issues, Knowledge Distillation (KD) has emerged as a popular method for model compression, with student-generated outputs (SGOs) as training data being particularly notable for reducing the mismatch between training and inference. However, SGOs often produce noisy and biased sequences, which can lead to misguidance from the teacher model, especially in long sequences. To mitigate these challenges, we propose SWITCH (Studying WIth TeaCHer for Knowledge Distillation), a novel approach that strategically incorporates the teacher model during the student's sequence generation. SWITCH identifies discrepancies between the token probabilities of the teacher and student models, allowing the teacher to intervene selectively, particularly in long sequences that are more prone to teacher misguidance. Extensive experimental results across three model families and five instruction-following datasets show that SWITCH surpasses traditional KD methods, particularly excelling in the generation of long sequential data.
title SWITCH: Studying with Teacher for Knowledge Distillation of Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2410.19503