HomoDistil:预训练Transformers的同伦任务无关蒸馏
HomoDistil: Homotopic Task-Agnostic Distillation of Pre-trained Transformers
摘要:
知识蒸馏已被证明是一种强大的模型压缩方法,以促进在实践中部署预训练的语言模型。本文主要研究任务不可知的蒸馏。它产生一个紧凑的预训练模型,可以很容易地在各种任务上进行微调,计算成本和内存占用都很小。尽管有实际的好处,任务不可知的蒸馏是具有挑战性的。由于教师模型具有比学生模型大得多的容量和更强的表示能力,因此学生很难在大量的开放域训练数据上产生与教师相匹配的预测。如此大的预测差异往往会削弱知识蒸馏的好处。为了解决这一挑战,我们提出了同伦蒸馏(HomoDistil),一种新的任务不可知的蒸馏方法,配备了迭代修剪。具体来说,我们从教师模型初始化学生模型,并迭代地修剪学生的神经元,直到达到目标宽度。这种方法在整个提炼过程中保持了教师和学生预测之间的微小差异,这确保了知识转移的有效性。大量的实验表明,HomoDistil在现有的基线上实现了显着的改进。
英文摘要:
Knowledge distillation has been shown to be a powerful model compression approach to facilitate the deployment of pre-trained language models in practice. This paper focuses on task-agnostic distillation. It produces a compact pre-trained model that can be easily fine-tuned on various tasks with small computational costs and memory footprints. Despite the practical benefits, task-agnostic distillation is challenging. Since the teacher model has a significantly larger capacity and stronger representation power than the student model, it is very difficult for the student to produce predictions that match the teacher's over a massive amount of open-domain training data. Such a large prediction discrepancy often diminishes the benefits of knowledge distillation. To address this challenge, we propose Homotopic Distillation (HomoDistil), a novel task-agnostic distillation approach equipped with iterative pruning. Specifically, we initialize the student model from the teacher model, and iteratively prune the student's neurons until the target width is reached. Such an approach maintains a small discrepancy between the teacher's and student's predictions throughout the distillation process, which ensures the effectiveness of knowledge transfer. Extensive experiments demonstrate that HomoDistil achieves significant improvements on existing baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。