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

面向零样本迁移学习的组合扩展方法

Combined Scaling for Zero-shot Transfer Learning

Google(谷歌);MIT(麻省理工学院)

Hieu Pham, Zihang Dai, Golnaz Ghiasi, Kenji Kawaguchi, Hanxiao Liu, Adams Wei Yu, Jiahui Yu, Yi-Ting Chen, Minh-Thang Luong, Yonghui Wu, Mingxing Tan, Quoc V. Le

AI总结:

本文提出 BASIC 组合扩展方法,通过同时扩展数据规模、模型规模和批量大小,在零样本 ImageNet 分类上达到 85.7% top-1 准确率,并给出理论分析证明大对比批量可缩小泛化差距。

摘要:

我们提出了一种名为 BASIC 的组合扩展方法,该方法在 ImageNet ILSVRC-2012 验证集上达到了 85.7% 的 top-1 准确率,且没有从任何带标签的 ImageNet 样本中学习。这一准确率比已发表的最佳同类模型 CLIP 和 ALIGN 高出 9.3%。我们的 BASIC 模型在鲁棒性基准上也表现出显著提升。例如,在 ImageNet-{A,R,V2,Sketch} 和 ObjectNet 这 5 个具有自然分布偏移的测试集上,我们的模型取得了 84.3% 的 top-1 平均准确率,与其原始 ImageNet 准确率相比仅有小幅下降。为取得这些结果,我们在三个维度上扩展了 CLIP 和 ALIGN 的对比学习框架:数据规模、模型规模和批量大小。我们的数据集包含 6.6B 个带噪声的图像-文本对,比 ALIGN 大 4 倍,比 CLIP 大 16 倍。我们最大的模型具有 3B 个权重,参数量比 ALIGN 和 CLIP 大 3.75 倍,FLOPs 大 8 倍。最后,我们的批量大小为 65536,比 CLIP 多 2 倍,比 ALIGN 多 4 倍。我们在 BASIC 的扩展规则上遇到了两个主要挑战。首先,实现 BASIC 组合扩展规则的主要挑战是 GPU 和 TPU 等加速器的内存有限。为克服内存限制,我们提出了两种利用梯度检查点和模型并行性的简单方法。其次,虽然增加数据集规模和模型规模一直是提升 BASIC 等深度学习模型性能的事实标准方法,但大对比批量大小对此类对比训练的图文模型的影响尚未被充分理解。为阐明大对比批量大小的益处,我们开发了一个理论框架,表明更大的对比批量大小会为 BASIC 等图文模型带来更小的泛化差距。

英文摘要:

We present a combined scaling method - named BASIC - that achieves 85.7% top-1 accuracy on the ImageNet ILSVRC-2012 validation set without learning from any labeled ImageNet example. This accuracy surpasses best published similar models - CLIP and ALIGN - by 9.3%. Our BASIC model also shows significant improvements in robustness benchmarks. For instance, on 5 test sets with natural distribution shifts such as ImageNet-{A,R,V2,Sketch} and ObjectNet, our model achieves 84.3% top-1 average accuracy, only a small drop from its original ImageNet accuracy. To achieve these results, we scale up the contrastive learning framework of CLIP and ALIGN in three dimensions: data size, model size, and batch size. Our dataset has 6.6B noisy image-text pairs, which is 4x larger than ALIGN, and 16x larger than CLIP. Our largest model has 3B weights, which is 3.75x larger in parameters and 8x larger in FLOPs than ALIGN and CLIP. Finally, our batch size is 65536 which is 2x more than CLIP and 4x more than ALIGN. We encountered two main challenges with the scaling rules of BASIC. First, the main challenge with implementing the combined scaling rules of BASIC is the limited memory of accelerators, such as GPUs and TPUs. To overcome the memory limit, we propose two simple methods which make use of gradient checkpointing and model parallelism. Second, while increasing the dataset size and the model size has been the defacto method to improve the performance of deep learning models like BASIC, the effect of a large contrastive batch size on such contrastive-trained image-text models is not well-understood. To shed light on the benefits of large contrastive batch sizes, we develop a theoretical framework which shows that larger contrastive batch sizes lead to smaller generalization gaps for image-text models such as BASIC.

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

↑