Relative Margin for Contrastive Learning
Its authors withdrew this paper, so there is no full text to read or summarize.
Abstract
Contrastive image-text pretraining plays an integral part behind the breakthroughs in multimodal understanding and generation in recent years. Conceptually, the contrastive loss encourages the alignment of actual image-text pairs to stand out against wrong pairs, essentially creating a separation between them. During our exploration of contrastive learning, however, we identified a practical issue that the gradients of image-text pairs drop off quickly once the separation is created, resulting in little contribution to the optimization from the large volume of higher-separation pairs. To address it, we propose to apply margins to the higherseparation training pairs to re-balance the gradient strength. We define Relative Alignment Score as the separation indicator, and incorporate a margin function that is linear to the Relative Alignment Score to adaptively increase a pair’s contribution to the optimization. We name this method Relative Margin, and observe significant performance improvements after applying it on zero-shot image-text retrieval and image classification benchmarks. Specifically, we train CoCa models with and without our proposed Relative Margin on the open LAION-2B dataset. We observe +2.4 for ViT-B and +2.6 for ViT-L on MSCOCO image-to-text retrieval recall, and +2.0 for both ViT-B and ViT-L on zero-shot ImageNet top-1 accuracy. Notably, ViT-L with Relative Margin achieves 82.4% zero-shot ImageNet top-1 accuracy when trained with open DataComp-1B dataset, outperforming previous state-of-the-arts that use larger models. Consistent improvements are also observed in few-shot linear probes of the ViT in CoCa with Relative Margin.
BibTeX
@misc{qiao2024relative,
author = {Siyuan Qiao and Chenxi Liu and Yonghui Wu and Jiahui Yu},
title = {{Relative Margin for Contrastive Learning}},
year = {2024},
url = {https://openreview.net/forum?id=Fr87G8v7PL},
howpublished = {OpenReview},
note = {Submitted to ICLR 2024},
}Ask Althea to put this paper to the test.
Loading related content...