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

Lakshmi Nair
4/9/2024
cs.LGcs.AI

Official code: lnairGT/CLIP-Distillation (20 stars, MIT, last commit 2024-09-06).

Abstract

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/

View on arXivView PDF

Code Implementations(1)

MIT

Knowledge Distillation using Contrastive Language-Image Pretraining (CLIP) without a teacher model.

201Shell, PythonApr 9, 20242 years agoMIT

Similar Papers

Cite this paper

@article{nair2024clipembedkd,
  title  = {CLIP-Embed-KD: Computationally Efficient Knowledge Distillation Using Embeddings as Teachers},
  author = {Lakshmi Nair},
  year   = {2024},
  eprint = {2404.06170},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.06170v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.06170.svg)](https://codeofpaper.com/paper/2404.06170)

Discussion