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

知识蒸馏转移集及其对下游NLU任务的影响

Knowledge Distillation Transfer Sets and their Impact on Downstream NLU Tasks

Amazon(亚马逊)

Charith Peris, Lizhen Tan, Thomas Gueudre, Turan Gojayev, Pan Wei, Gokmen Oz

摘要:

师生知识蒸馏是一种流行的技术,用于将当今流行的大语言模型压缩成适合低延迟下游应用的可管理的大小。教师和用于蒸馏的转移装置的选择都是培养高质量学生的关键因素。然而,用于预训练教师的通用语料库和与下游目标领域相关联的语料库通常是显著不同的,这就提出了一个自然的问题:学生应该在通用语料库中进行提炼,以便从高质量的教师预测中学习,还是在下游任务语料库中进行微调?我们的研究调查这种权衡使用域分类(DC)和意图分类/命名实体识别(ICNER)作为下游任务。我们从一个较大的多语言LM中提取了几个多语言学生,这些LM具有不同比例的通用和特定任务数据集,并在DC和ICNER上进行微调后报告了他们的表现。当只使用特定于任务的语料库时,我们观察到跨任务和测试集的显着改进。我们还报告了如何将特定于任务的数据添加到传输集的影响与通用和特定于任务的数据之间的相似性相关。我们的研究结果清楚地表明,虽然从一个通用的LM蒸馏下游任务的好处,学生学习更好地使用目标域的数据,即使它是在噪声教师预测的价格。换句话说,目标领域的数据仍然胜过教师的知识。

英文摘要:

Teacher-student knowledge distillation is a popular technique for compressing today's prevailing large language models into manageable sizes that fit low-latency downstream applications. Both the teacher and the choice of transfer set used for distillation are crucial ingredients in creating a high quality student. Yet, the generic corpora used to pretrain the teacher and the corpora associated with the downstream target domain are often significantly different, which raises a natural question: should the student be distilled over the generic corpora, so as to learn from high-quality teacher predictions, or over the downstream task corpora to align with finetuning? Our study investigates this trade-off using Domain Classification (DC) and Intent Classification/Named Entity Recognition (ICNER) as downstream tasks. We distill several multilingual students from a larger multilingual LM with varying proportions of generic and task-specific datasets, and report their performance after finetuning on DC and ICNER. We observe significant improvements across tasks and test sets when only task-specific corpora is used. We also report on how the impact of adding task-specific data to the transfer set correlates with the similarity between generic and task-specific data. Our results clearly indicate that, while distillation from a generic LM benefits downstream tasks, students learn better using target domain data even if it comes at the price of noisier teacher predictions. In other words, target domain data still trumps teacher knowledge.

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

↑