arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.08028cs.AI
收藏

用更少学习:通过无标签数据从大语言模型进行知识蒸馏

Learning with Less: Knowledge Distillation from Large Language Models via Unlabeled Data

Michigan State University(密歇根州立大学);The Pennsylvania State University(宾夕法尼亚州立大学)

Juanhui Li, Sreyashi Nag, Hui Liu, Xianfeng Tang, Sheikh Sarwar, Limeng Cui, Hansu Gu, Suhang Wang, Qi He, Jiliang Tang

AI总结:

针对大模型计算成本高和小模型标注数据稀缺的问题,提出自适应样本选择方法LLKD,结合教师模型高置信度与学生模型高信息需求进行知识蒸馏,显著提升了数据效率与模型性能。

摘要:

在现实世界的NLP应用中,大语言模型(LLMs)因其在大规模数据集上的广泛训练而提供了有前景的解决方案。然而,LLMs的大规模尺寸和高计算需求限制了其在许多应用中的实用性,尤其是在需要进一步微调时。为了解决这些局限性,通常更倾向于部署较小的模型。然而,它们的训练受到标注数据稀缺的阻碍。相反,无标签数据通常很容易获取,可以通过使用LLMs生成伪标签来训练较小的模型从而加以利用。这使得较小的模型(学生模型)能够从LLMs(教师模型)获取知识,同时降低计算成本。该过程引入了挑战,例如潜在的噪声伪标签。因此,选择高质量且信息丰富的数据对于提升模型性能和提高数据利用效率至关重要。为了解决这一问题,我们提出了LLKD,它能够以更少的计算资源和更少的数据实现从LLMs的知识蒸馏。LLKD是一种自适应样本选择方法,结合了来自教师和学生的信号。具体而言,它优先选择教师在其标注中表现出高置信度的样本(表明标签可靠),以及学生表现出高信息需求的样本(识别需要进一步学习的具有挑战性的样本)。我们的综合实验表明,LLKD在各种数据集上取得了卓越的性能,并具有更高的数据效率。

英文摘要:

In real-world NLP applications, Large Language Models (LLMs) offer promising solutions due to their extensive training on vast datasets. However, the large size and high computation demands of LLMs limit their practicality in many applications, especially when further fine-tuning is required. To address these limitations, smaller models are typically preferred for deployment. However, their training is hindered by the scarcity of labeled data. In contrast, unlabeled data is often readily which can be leveraged by using LLMs to generate pseudo-labels for training smaller models. This enables the smaller models (student) to acquire knowledge from LLMs(teacher) while reducing computational costs. This process introduces challenges, such as potential noisy pseudo-labels. Selecting high-quality and informative data is therefore critical to enhance model performance while improving the efficiency of data utilization. To address this, we propose LLKD that enables Learning with Less computational resources and less data for Knowledge Distillation from LLMs. LLKD is an adaptive sample selection method that incorporates signals from both the teacher and student. Specifically, it prioritizes samples where the teacher demonstrates high confidence in its labeling, indicating reliable labels, and where the student exhibits a high information need, identifying challenging samples that require further learning. Our comprehensive experiments show that LLKD achieves superior performance across various datasets with higher data efficiency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑