MobileCLIP:通过多模态强化训练实现快速图像-文本模型
MobileCLIP: Fast Image-Text Models through Multi-Modal Reinforced Training
AI总结:
MobileCLIP 提出多模态强化训练方法,通过图像描述模型和强 CLIP 编码器集成进行知识迁移,在保持高精度的同时显著提升移动端图像-文本模型的推理速度与学习效率。
摘要:
图像-文本基础模型(如 CLIP)的对比预训练展示了出色的零样本性能,并在广泛的下游任务上提高了鲁棒性。然而,这些模型使用基于大型 transformer 的编码器,具有显著的内存和延迟开销,这给在移动设备上的部署带来了挑战。在这项工作中,我们引入了 MobileCLIP——一个新的高效图像-文本模型家族,针对运行时性能进行了优化,并提出了一种新颖且高效的训练方法,即多模态强化训练。所提出的训练方法利用来自图像描述模型的知识迁移以及一组强 CLIP 编码器的集成来提高高效模型的准确性。我们的方法通过将额外知识存储在强化数据集中,避免了训练时的计算开销。MobileCLIP 在多个数据集上的零样本分类和检索任务中树立了新的最先进的延迟-准确性权衡。我们的 MobileCLIP-S2 变体比之前基于 ViT-B/16 的最佳 CLIP 模型快 2.3$\ imes$,同时更准确。我们进一步通过训练一个基于 ViT-B/16 图像骨干的 CLIP 模型来证明我们多模态强化训练的有效性,在 38 个评估基准上相比之前最佳结果取得了 +2.9% 的平均性能提升。此外,我们表明,与非强化 CLIP 训练相比,所提出的方法实现了 10$\ imes$-1000$\ imes$ 的学习效率提升。代码和模型可在 https://github.com/apple/ml-mobileclip 获取。
英文摘要:
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 .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。