arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2303.15343cs.CVcs.AI
收藏

用于语言-图像预训练的 Sigmoid 损失

Sigmoid Loss for Language Image Pre-Training

Google DeepMind(谷歌DeepMind)

Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, Lucas Beyer

AI总结:

本文提出 SigLIP 成对 Sigmoid 损失,解除对比损失对全局批量归一化的依赖,提升小批量表现并支持大批量扩展,仅用四块 TPUv4 两天训练出 ImageNet 零样本准确率 84.5% 的 SigLiT 模型。

摘要:

我们提出了一种用于语言-图像预训练(Language-Image Pre-training,SigLIP)的简单成对 Sigmoid 损失。与采用 softmax 归一化的标准对比学习不同,该 sigmoid 损失仅作用于图像-文本对,不需要全局查看所有成对相似度来进行归一化。这种 sigmoid 损失同时支持进一步扩大批量大小,并且在较小批量下也有更好表现。结合 Locked-image Tuning,我们仅使用四块 TPUv4 芯片,在两天内训练出一个 SigLiT 模型,在 ImageNet 零样本准确率上达到 84.5%。损失与批量大小的解耦还使我们能够研究样本与样本对、以及负正样本比例的影响。最后,我们将批量大小推至最高一百万的极端规模,发现增大批量带来的收益会迅速递减,32k 这一更合理的批量大小已经足够。我们在 https://github.com/google-research/big_vision 发布模型,并希望本研究能推动进一步探索,以提升语言-图像预训练的质量和效率。

英文摘要:

We propose a simple pairwise Sigmoid loss for Language-Image Pre-training (SigLIP). Unlike standard contrastive learning with softmax normalization, the sigmoid loss operates solely on image-text pairs and does not require a global view of the pairwise similarities for normalization. The sigmoid loss simultaneously allows further scaling up the batch size, while also performing better at smaller batch sizes. Combined with Locked-image Tuning, with only four TPUv4 chips, we train a SigLiT model that achieves 84.5% ImageNet zero-shot accuracy in two days. The disentanglement of the batch size from the loss further allows us to study the impact of examples vs pairs and negative to positive ratio. Finally, we push the batch size to the extreme, up to one million, and find that the benefits of growing batch size quickly diminish, with a more reasonable batch size of 32k being sufficient. We release our models at https://github.com/google-research/big_vision and hope our research motivates further explorations in improving the quality and efficiency of language-image pre-training.

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

↑