On the Importance of Contrastive Loss in Multimodal Learning

Yunwei Ren, Yuanzhi Li
4/7/2023
cs.LGcs.CLcs.CV

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Recently, contrastive learning approaches (e.g., CLIP (Radford et al., 2021)) have received huge success in multimodal learning, where the model tries to minimize the distance between the representations of different views (e.g., image and its caption) of the same data point while keeping the representations of different data points away from each other. However, from a theoretical perspective, it is unclear how contrastive learning can learn the representations from different views efficiently, especially when the data is not isotropic. In this work, we analyze the training dynamics of a simple multimodal contrastive learning model and show that contrastive pairs are important for the model to efficiently balance the learned representations. In particular, we show that the positive pairs will drive the model to align the representations at the cost of increasing the condition number, while the negative pairs will reduce the condition number, keeping the learned representations balanced.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ren2023importance,
  title  = {On the Importance of Contrastive Loss in Multimodal Learning},
  author = {Yunwei Ren and Yuanzhi Li},
  year   = {2023},
  eprint = {2304.03717},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.03717v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.03717.svg)](https://codeofpaper.com/paper/2304.03717)

Discussion