Contrastive learning pulls positive samples (similar examples) closer and pushes negative samples (dissimilar examples) away to learn a meaningful mapping from inputs to outputs. It is found in a broad range of applications in computer vision that range from image classification to object detection to video processing and has a similarly broad impact and relevance in natural language processing, audio and speech, graphs, recommendation systems, and multimodal learning. Although contrastive learning done right typically achieves state-of-the-art results, there are major limitations with traditional methods because they rely on arbitrary definitions of positive and negative samples and are not decomposable in minibatch optimization. Thus, they require large batchsizes to effectively manage a tradeoff between positive and negative terms. This approach wastes significant computational resources on negative samples that may have minimal learning signals. To address these limitations, we propose a novel method that reformulates contrastive learning as a matrix approximation problem using I-divergence, a non-normalized variant of Kullback-Leibler divergence. Our objective function is decomposable across instance pairs, enabling efficient stochastic approximation algorithms that perform well with fewer negative samples by leveraging neighbor embeddings. Additionally, we generalize the scaling factor beyond standard normalization to adaptively emphasize positive samples with higher learning potential, reducing computational waste from negative samples. Our ambition is to demonstrate that even with a low batchsize and as few as one negative term per image, our method outperforms existing contrastive learning approaches and is competitive in overall performance to other state-of-the-art approaches on ImageNet which use a higher batchsize.
Olsson et al. (Fri,) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: