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

为什么你可以放下头?调查BERT磁头如何转移

Why Can You Lay Off Heads? Investigating How BERT Heads Transfer

National Taiwan University(台湾大学)

Ting-Rui Chiang, Yun-Nung Chen

摘要:

广泛使用的BERT系列模型的巨大规模导致了最近关于模型蒸馏的努力。蒸馏的主要目标是创建一个与任务无关的预训练模型,该模型可以在下游任务上进行微调,而无需对其全尺寸版本进行微调。尽管蒸馏的进展,在何种程度上,以及出于何种原因,可以从蒸馏创建一个任务不可知模型还没有得到很好的研究。此外,这些BERT模型的迁移学习背后的机制也没有得到很好的研究。因此,本工作着重于分析蒸馏时可接受的扣除,以指导未来的蒸馏程序。具体来说,我们首先使用Michel等人(2019)提出的头部重要性估计来检查RoBERTa和ALBERT中Transformer头部的可修剪性,然后检查预训练任务和下游任务之间重要头部的一致性。因此,在提取模型时,可以从结果中得出预训练任务的可接受性能推断,并且我们进一步比较了微调前后修剪模型的行为。我们的研究为BERT族模型蒸馏的未来发展方向提供了指导。

英文摘要:

The huge size of the widely used BERT family models has led to recent efforts about model distillation. The main goal of distillation is to create a task-agnostic pre-trained model that can be fine-tuned on downstream tasks without fine-tuning its full-sized version. Despite the progress of distillation, to what degree and for what reason a task-agnostic model can be created from distillation has not been well studied. Also, the mechanisms behind transfer learning of those BERT models are not well investigated either. Therefore, this work focuses on analyzing the acceptable deduction when distillation for guiding the future distillation procedure. Specifically, we first inspect the prunability of the Transformer heads in RoBERTa and ALBERT using their head importance estimation proposed by Michel et al. (2019), and then check the coherence of the important heads between the pre-trained task and downstream tasks. Hence, the acceptable deduction of performance on the pre-trained task when distilling a model can be derived from the results, and we further compare the behavior of the pruned model before and after fine-tuning. Our studies provide guidance for future directions about BERT family model distillation.

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

↑