Publication
Streamlining LLMs: Adaptive Knowledge Distillation for Tailored Language Models
Prajvi Saxena; Sabine Janzen; Wolfgang Maaß
In: 2025 Annual Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics. NAACL-HLT Student Research Workshop (NAACL-SRW-2025), 2025 Annual Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics, located at NAACL-2025, April 29 - May 4, Albuquerque, New Mexico, USA, Association for Computational Linguistics, 5/2025.
Abstract
Large language models (LLMs) like GPT-4 and LLaMA-3 offer transformative potential across industries, e.g., enhancing customer service, revolutionizing medical diagnostics, or identifying crises in news articles. However, deploying LLMs faces challenges such as limited training data, high computational costs, and issues with transparency and explainability. Our research focuses on distilling compact, parameter-efficient tailored language models (TLMs) from LLMs for domain-specific tasks with comparable performance. Current approaches like knowledge distillation, fine-tuning, and model parallelism address computational efficiency but lack hybrid strategies to balance efficiency, adaptability, and accuracy. We present ANON - an adaptive knowledge distillation framework integrating knowledge distillation with adapters to generate computationally efficient TLMs without relying on labeled datasets. ANON uses cross-entropy loss to transfer knowledge from the teacher's outputs and internal representations while employing adaptive prompt engineering and a progressive distillation strategy for phased knowledge transfer. We evaluated ANON's performance in the crisis domain, where accuracy is critical and labeled data is scarce. Experiments showed that ANON outperforms recent approaches of knowledge distillation, both in terms of the resulting TLM performance and in reducing the computational costs for training and maintaining accuracy compared to LLMs for domain-specific applications..