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

CLIP-Embed-KD:使用嵌入作为教师的高效计算知识蒸馏

CLIP-Embed-KD: Computationally Efficient Knowledge Distillation Using Embeddings as Teachers

Georgia Institute of Technology(佐治亚理工学院)

Lakshmi Nair

AI总结:

本文提出 CLIP-Embed-KD 方法,利用教师模型嵌入进行知识蒸馏,以显著降低计算开销,实验表明其性能超越全规模蒸馏且节省 9 倍内存和 8 倍训练时间。

摘要:

对比语言-图像预训练(CLIP)已被证明能够提升语言和视觉模型的零样本泛化能力。在本文中,我们通过利用嵌入作为教师来扩展 CLIP 以实现高效的知识蒸馏。典型的知识蒸馏框架需要对教师模型执行前向传播,这在教师模型具有数十亿或数万亿参数的情况下通常是不可行的。在这些情况下,仅使用教师模型的嵌入来指导蒸馏可以带来显著的计算节省。我们的初步研究结果表明,基于 CLIP 的嵌入知识蒸馏能够以少 9 倍的内存和少 8 倍的训练时间超越全规模知识蒸馏。代码可在 https://github.com/lnairGT/CLIP-Distillation/ 获取。

英文摘要:

Contrastive Language-Image Pre-training (CLIP) has been shown to improve zero-shot generalization capabilities of language and vision models. In this paper, we extend CLIP for efficient knowledge distillation, by utilizing embeddings as teachers. Typical knowledge distillation frameworks require running forward passes through a teacher model, which is often prohibitive in the case of billion or trillion parameter teachers. In these cases, using only the embeddings of the teacher models to guide the distillation can yield significant computational savings. Our preliminary findings show that CLIP-based knowledge distillation with embeddings can outperform full scale knowledge distillation using $9\times$ less memory and $8\times$ less training time. Code available at: https://github.com/lnairGT/CLIP-Distillation/

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

↑