arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.11689cs.CV
收藏

通过语言引导知识蒸馏进行轻量级模型预训练

Lightweight Model Pre-training via Language Guided Knowledge Distillation

School of Information Science and Technology, Fudan University(复旦大学信息科学与技术学院);Tencent GY-Laboratory(腾讯GY实验室);Academy for Engineering and Technology, Fudan University(复旦大学工程技术研究院)

Mingsheng Li, Lin Zhang, Mingzhen Zhu, Zilong Huang, Gang Yu, Jiayuan Fan, Tao Chen

AI总结:

针对小模型预训练难以迁移类别判别知识的问题,本文提出 LGD,借助类别名称构建 TSB 与 VSB 并引导师生相似度分布对齐,在分类、检测和分割任务上达到最先进性能。

摘要:

本文研究了小模型的预训练问题,这对许多移动设备至关重要。当前该问题上的最先进方法采用自监督蒸馏,将大型网络(作为教师)的表征知识迁移到较小模型(作为学生)中,从而提升小模型在下游任务上的性能。然而,现有方法在蒸馏过程中,难以充分提取对辨别下游任务类别有用的关键知识。本文首次将语言引导引入蒸馏过程,并提出了一种名为 Language-Guided Distillation(LGD,语言引导蒸馏)系统的新方法,该系统利用目标下游任务的类别名称来帮助精炼教师与学生之间迁移的知识。为此,我们利用预训练文本编码器从语言中提取语义嵌入,并构建一个称为 Textual Semantics Bank(TSB,文本语义库)的文本语义空间。此外,我们设计了 Language-Guided Knowledge Aggregation(LGKA,语言引导知识聚合)模块来构建视觉语义空间,也称为 Visual Semantics Bank(VSB,视觉语义库)。通过驱动学生编码器模仿教师在 TSB 和 VSB 上推断出的相似度分数分布,任务相关知识得以迁移。实验结果表明,与通过 ImageNet 预训练或自监督蒸馏获得的其他小模型相比,使用所提出的 LGD 方法蒸馏出的轻量级模型展现出最先进的性能,并在分类、检测和分割等多种下游任务上得到验证。我们已在 https://github.com/mZhenz/LGD 公开代码。

英文摘要:

This paper studies the problem of pre-training for small models, which is essential for many mobile devices. Current state-of-the-art methods on this problem transfer the representational knowledge of a large network (as a Teacher) into a smaller model (as a Student) using self-supervised distillation, improving the performance of the small model on downstream tasks. However, existing approaches are insufficient in extracting the crucial knowledge that is useful for discerning categories in downstream tasks during the distillation process. In this paper, for the first time, we introduce language guidance to the distillation process and propose a new method named Language-Guided Distillation (LGD) system, which uses category names of the target downstream task to help refine the knowledge transferred between the teacher and student. To this end, we utilize a pre-trained text encoder to extract semantic embeddings from language and construct a textual semantic space called Textual Semantics Bank (TSB). Furthermore, we design a Language-Guided Knowledge Aggregation (LGKA) module to construct the visual semantic space, also named Visual Semantics Bank (VSB). The task-related knowledge is transferred by driving a student encoder to mimic the similarity score distribution inferred by a teacher over TSB and VSB. Compared with other small models obtained by either ImageNet pre-training or self-supervised distillation, experiment results show that the distilled lightweight model using the proposed LGD method presents state-of-the-art performance and is validated on various downstream tasks, including classification, detection, and segmentation. We have made the code available at https://github.com/mZhenz/LGD.

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

↑