GOLD: Generalized Knowledge Distillation via Out-of-Distribution-Guided Language Data Generation

Mohsen Gholami, Mohammad Akbari, Cindy Hu, Vaden Masrani, Z. Jane Wang +1 more
3/28/2024
cs.CL

No official code found. Best implementation: vbdi/gold (2 stars, last commit 2025-09-12).

Abstract

Knowledge distillation from LLMs is essential for the efficient deployment of language models. Prior works have proposed data generation using LLMs for preparing distilled models. We argue that generating data with LLMs is prone to sampling mainly from the center of original content distribution. This limitation hinders the distilled model from learning the true underlying data distribution and to forget the tails of the distributions (samples with lower probability). To this end, we propose GOLD, a task-agnostic data generation and knowledge distillation framework, which employs an iterative out-of-distribution-guided feedback mechanism for the LLM. As a result, the generated data improves the generalizability of distilled models. An energy-based OOD evaluation approach is also introduced to deal with noisy generated data. Our extensive experiments on 10 different classification and sequence-to-sequence tasks in NLP show that GOLD respectively outperforms prior arts and the LLM with an average improvement of 5% and 14%. We will also show that the proposed method is applicable to less explored and novel tasks. The code is available.

View on arXivView PDF

Code Implementations(1)

vbdi/goldCommunity68%

[NAACL 2024] GOLD: Generalized Knowledge Distillation via Out-of-Distribution-Guided Language Data Generation

20PythonJan 31, 20251 years ago

Similar Papers

Cite this paper

@article{gholami2024gold,
  title  = {GOLD: Generalized Knowledge Distillation via Out-of-Distribution-Guided Language Data Generation},
  author = {Mohsen Gholami and Mohammad Akbari and Cindy Hu and Vaden Masrani and Z. Jane Wang and Yong Zhang},
  year   = {2024},
  eprint = {2403.19754},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.19754v1}
}

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

Discussion