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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autor principal: Nair, Lakshmi
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910583522066432
author Nair, Lakshmi
author_facet Nair, Lakshmi
contents 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/
format Preprint
id arxiv_https___arxiv_org_abs_2404_06170
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle CLIP-Embed-KD: Computationally Efficient Knowledge Distillation Using Embeddings as Teachers
Nair, Lakshmi
Machine Learning
Artificial Intelligence
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/
title CLIP-Embed-KD: Computationally Efficient Knowledge Distillation Using Embeddings as Teachers
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2404.06170