对比语言-图像学习的可复现缩放定律
Reproducible scaling laws for contrastive language-image learning
AI总结:
该研究基于公开LAION数据集和开源OpenCLIP库开展CLIP大规模实验,验证了多下游任务的幂律缩放关系,发现训练分布影响缩放行为,开源相关资源以保障可复现性。
摘要:
神经网络规模的扩大已在广泛任务中带来了显著的性能提升。此外,性能通常遵循可靠的缩放定律,与训练集规模、模型规模和计算量相关,在大规模实验成本日益高昂的当下,这一定律提供了宝贵的指导。然而,此前关于缩放定律的研究主要使用私有数据与模型,或聚焦于单模态的语言或视觉学习。\n为解决这些局限,我们基于公开的LAION数据集和开源的OpenCLIP代码库,研究对比语言-图像预训练(CLIP)的缩放定律。我们的大规模实验涉及在多达20亿个图像-文本对上训练的模型,并确定了零样本分类、检索、线性探测和端到端微调等多个下游任务的幂律缩放关系。我们发现训练分布在缩放定律中起着关键作用:尽管模型架构相同、训练流程相似,OpenAI和OpenCLIP模型仍表现出不同的缩放行为。我们开源了评估流程和所有模型,包括规模最大的公开CLIP模型,以确保可复现性并降低缩放定律研究的参与门槛。复现本研究的源代码和说明将发布于https://github.com/LAION-AI/scaling-laws-openclip。
英文摘要:
Scaling up neural networks has led to remarkable performance across a wide range of tasks. Moreover, performance often follows reliable scaling laws as a function of training set size, model size, and compute, which offers valuable guidance as large-scale experiments are becoming increasingly expensive. However, previous work on scaling laws has primarily used private data \& models or focused on uni-modal language or vision learning. To address these limitations, we investigate scaling laws for contrastive language-image pre-training (CLIP) with the public LAION dataset and the open-source OpenCLIP repository. Our large-scale experiments involve models trained on up to two billion image-text pairs and identify power law scaling for multiple downstream tasks including zero-shot classification, retrieval, linear probing, and end-to-end fine-tuning. We find that the training distribution plays a key role in scaling laws as the OpenAI and OpenCLIP models exhibit different scaling behavior despite identical model architectures and similar training recipes. We open-source our evaluation workflow and all models, including the largest public CLIP models, to ensure reproducibility and make scaling laws research more accessible. Source code and instructions to reproduce this study will be available at https://github.com/LAION-AI/scaling-laws-openclip
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。