MobileCLIP: Fast Image-Text Models through Multi-Modal Reinforced Training

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Vasu, Pavan Kumar Anasosalu, Pouransari, Hadi, Faghri, Fartash, Vemulapalli, Raviteja, Tuzel, Oncel
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911821384908800
author Vasu, Pavan Kumar Anasosalu
Pouransari, Hadi
Faghri, Fartash
Vemulapalli, Raviteja
Tuzel, Oncel
author_facet Vasu, Pavan Kumar Anasosalu
Pouransari, Hadi
Faghri, Fartash
Vemulapalli, Raviteja
Tuzel, Oncel
contents Contrastive pretraining of image-text foundation models, such as CLIP, demonstrated excellent zero-shot performance and improved robustness on a wide range of downstream tasks. However, these models utilize large transformer-based encoders with significant memory and latency overhead which pose challenges for deployment on mobile devices. In this work, we introduce MobileCLIP -- a new family of efficient image-text models optimized for runtime performance along with a novel and efficient training approach, namely multi-modal reinforced training. The proposed training approach leverages knowledge transfer from an image captioning model and an ensemble of strong CLIP encoders to improve the accuracy of efficient models. Our approach avoids train-time compute overhead by storing the additional knowledge in a reinforced dataset. MobileCLIP sets a new state-of-the-art latency-accuracy tradeoff for zero-shot classification and retrieval tasks on several datasets. Our MobileCLIP-S2 variant is 2.3$\times$ faster while more accurate compared to previous best CLIP model based on ViT-B/16. We further demonstrate the effectiveness of our multi-modal reinforced training by training a CLIP model based on ViT-B/16 image backbone and achieving +2.9% average performance improvement on 38 evaluation benchmarks compared to the previous best. Moreover, we show that the proposed approach achieves 10$\times$-1000$\times$ improved learning efficiency when compared with non-reinforced CLIP training. Code and models are available at https://github.com/apple/ml-mobileclip .
format Preprint
id arxiv_https___arxiv_org_abs_2311_17049
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle MobileCLIP: Fast Image-Text Models through Multi-Modal Reinforced Training
Vasu, Pavan Kumar Anasosalu
Pouransari, Hadi
Faghri, Fartash
Vemulapalli, Raviteja
Tuzel, Oncel
Computer Vision and Pattern Recognition
Computation and Language
Machine Learning
Contrastive pretraining of image-text foundation models, such as CLIP, demonstrated excellent zero-shot performance and improved robustness on a wide range of downstream tasks. However, these models utilize large transformer-based encoders with significant memory and latency overhead which pose challenges for deployment on mobile devices. In this work, we introduce MobileCLIP -- a new family of efficient image-text models optimized for runtime performance along with a novel and efficient training approach, namely multi-modal reinforced training. The proposed training approach leverages knowledge transfer from an image captioning model and an ensemble of strong CLIP encoders to improve the accuracy of efficient models. Our approach avoids train-time compute overhead by storing the additional knowledge in a reinforced dataset. MobileCLIP sets a new state-of-the-art latency-accuracy tradeoff for zero-shot classification and retrieval tasks on several datasets. Our MobileCLIP-S2 variant is 2.3$\times$ faster while more accurate compared to previous best CLIP model based on ViT-B/16. We further demonstrate the effectiveness of our multi-modal reinforced training by training a CLIP model based on ViT-B/16 image backbone and achieving +2.9% average performance improvement on 38 evaluation benchmarks compared to the previous best. Moreover, we show that the proposed approach achieves 10$\times$-1000$\times$ improved learning efficiency when compared with non-reinforced CLIP training. Code and models are available at https://github.com/apple/ml-mobileclip .
title MobileCLIP: Fast Image-Text Models through Multi-Modal Reinforced Training
topic Computer Vision and Pattern Recognition
Computation and Language
Machine Learning
url https://arxiv.org/abs/2311.17049