基于张量分解增强知识蒸馏的过参数化学生模型
Over-parameterized Student Model via Tensor Decomposition Boosted Knowledge Distillation
AI总结:
提出通过张量分解在训练时过参数化学生模型,不增推理延迟,并用张量约束损失对齐师生模型,显著提升视觉与NLP知识蒸馏性能。
摘要:
增加训练参数使得大型预训练模型在各种下游任务中表现出色。然而,这些模型所需的巨大计算资源阻碍了它们在社区中的广泛应用。我们聚焦于知识蒸馏(KD),其中训练一个紧凑的学生模型来模仿较大的教师模型,从而促进大型模型知识的迁移。与以往许多工作不同,我们在训练过程中扩大学生模型的参数规模,以从过参数化中获益,同时不增加推理延迟。具体而言,我们提出了一种张量分解策略,通过将学生模型的参数矩阵高效且近乎无损地分解为更高维度的张量,从而有效地对相对较小的学生模型进行过参数化。为确保效率,我们进一步引入了一种张量约束损失,以对齐学生模型与教师模型之间的高维张量。综合实验验证了我们的方法在各种KD任务中的显著性能提升,涵盖计算机视觉和自然语言处理领域。我们的代码可在 https://github.com/intell-sci-comput/OPDF 获取。
英文摘要:
Increased training parameters have enabled large pre-trained models to excel in various downstream tasks. Nevertheless, the extensive computational requirements associated with these models hinder their widespread adoption within the community. We focus on Knowledge Distillation (KD), where a compact student model is trained to mimic a larger teacher model, facilitating the transfer of knowledge of large models. In contrast to much of the previous work, we scale up the parameters of the student model during training, to benefit from overparameterization without increasing the inference latency. In particular, we propose a tensor decomposition strategy that effectively over-parameterizes the relatively small student model through an efficient and nearly lossless decomposition of its parameter matrices into higher-dimensional tensors. To ensure efficiency, we further introduce a tensor constraint loss to align the high-dimensional tensors between the student and teacher models. Comprehensive experiments validate the significant performance enhancement by our approach in various KD tasks, covering computer vision and natural language processing areas. Our code is available at https://github.com/intell-sci-comput/OPDF.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。