arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.08197cs.CV
收藏

缩减 CLIP 的规模:对数据、架构和训练策略的综合分析

Scaling (Down) CLIP: A Comprehensive Analysis of Data, Architecture, and Training Strategies

Google Deepmind(谷歌DeepMind);University of California, Santa Cruz(加州大学圣克鲁兹分校)

Zichao Li, Cihang Xie, Ekin Dogus Cubuk

AI总结:

本文系统分析有限计算预算下 CLIP 的数据质量与规模、CNN/ViT 架构选择及四种训练策略,发现高质量小数据和 CLIP+Data Augmentation 可在减半数据时保持性能。

摘要:

本文研究了对比语言-图像预训练(Contrastive Language-Image Pre-training,CLIP)在缩减至有限计算预算时的性能。我们沿三个维度探索 CLIP:数据、架构和训练策略。关于数据,我们证明了高质量训练数据的重要性,并表明由高质量数据构成的较小数据集可以优于质量较低的较大数据集。我们还考察了模型性能如何随不同数据集规模而变化,结果表明较小的 ViT 模型更适合较小的数据集,而在计算量固定时,较大模型在较大数据集上表现更好。此外,我们就何时在 CLIP 训练中选择基于 CNN 的架构或基于 ViT 的架构提供了指导。我们比较了四种 CLIP 训练策略——SLIP、FLIP、CLIP 和 CLIP+Data Augmentation——并表明训练策略的选择取决于可用的计算资源。我们的分析揭示,CLIP+Data Augmentation 仅使用一半训练数据即可达到与 CLIP 相当的性能。本工作为如何有效训练和部署 CLIP 模型提供了实用洞见,使其在各类应用的实际使用中更易获得且成本更低。

英文摘要:

This paper investigates the performance of the Contrastive Language-Image Pre-training (CLIP) when scaled down to limited computation budgets. We explore CLIP along three dimensions: data, architecture, and training strategies. With regards to data, we demonstrate the significance of high-quality training data and show that a smaller dataset of high-quality data can outperform a larger dataset with lower quality. We also examine how model performance varies with different dataset sizes, suggesting that smaller ViT models are better suited for smaller datasets, while larger models perform better on larger datasets with fixed compute. Additionally, we provide guidance on when to choose a CNN-based architecture or a ViT-based architecture for CLIP training. We compare four CLIP training strategies - SLIP, FLIP, CLIP, and CLIP+Data Augmentation - and show that the choice of training strategy depends on the available compute resource. Our analysis reveals that CLIP+Data Augmentation can achieve comparable performance to CLIP using only half of the training data. This work provides practical insights into how to effectively train and deploy CLIP models, making them more accessible and affordable for practical use in various applications.

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

↑