Understanding Multimodal Contrastive Learning and Incorporating Unpaired Data

Ryumei Nakada, Halil Ibrahim Gulluk, Zhun Deng, Wenlong Ji, James Zou +1 more
2/13/2023
cs.LGstat.ML

No official code found. Best implementation: nswa17/MMCL (7 stars, MIT, last commit 2023-02-28).

Abstract

Language-supervised vision models have recently attracted great attention in computer vision. A common approach to build such models is to use contrastive learning on paired data across the two modalities, as exemplified by Contrastive Language-Image Pre-Training (CLIP). In this paper, under linear representation settings, (i) we initiate the investigation of a general class of nonlinear loss functions for multimodal contrastive learning (MMCL) including CLIP loss and show its connection to singular value decomposition (SVD). Namely, we show that each step of loss minimization by gradient descent can be seen as performing SVD on a contrastive cross-covariance matrix. Based on this insight, (ii) we analyze the performance of MMCL. We quantitatively show that the feature learning ability of MMCL can be better than that of unimodal contrastive learning applied to each modality even under the presence of wrongly matched pairs. This characterizes the robustness of MMCL to noisy data. Furthermore, when we have access to additional unpaired data, (iii) we propose a new MMCL loss that incorporates additional unpaired datasets. We show that the algorithm can detect the ground-truth pairs and improve performance by fully exploiting unpaired datasets. The performance of the proposed algorithm was verified by numerical experiments.

View on arXivView PDF

Code Implementations(1)

nswa17/MMCLCommunity100%
MIT

Experiments in the paper "Understanding Multimodal Contrastive Learning and Incorporating Unpaired Data"

71Jupyter NotebookFeb 11, 20233 years agoMIT

Similar Papers

Cite this paper

@article{nakada2023understanding,
  title  = {Understanding Multimodal Contrastive Learning and Incorporating Unpaired Data},
  author = {Ryumei Nakada and Halil Ibrahim Gulluk and Zhun Deng and Wenlong Ji and James Zou and Linjun Zhang},
  year   = {2023},
  eprint = {2302.06232},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.06232v3}
}

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/2302.06232.svg)](https://codeofpaper.com/paper/2302.06232)

Discussion