Contrasting with Symile: Simple Model-Agnostic Representation Learning for Unlimited Modalities

Adriel Saporta, Aahlad Puli, Mark Goldstein, Rajesh Ranganath
11/1/2024
cs.LGcs.AIcs.CL

Official code: rajesh-lab/symile (53 stars, MIT, last commit 2025-03-25).

Abstract

Contrastive learning methods, such as CLIP, leverage naturally paired data-for example, images and their corresponding text captions-to learn general representations that transfer efficiently to downstream tasks. While such approaches are generally applied to two modalities, domains such as robotics, healthcare, and video need to support many types of data at once. We show that the pairwise application of CLIP fails to capture joint information between modalities, thereby limiting the quality of the learned representations. To address this issue, we present Symile, a simple contrastive learning approach that captures higher-order information between any number of modalities. Symile provides a flexible, architecture-agnostic objective for learning modality-specific representations. To develop Symile's objective, we derive a lower bound on total correlation, and show that Symile representations for any set of modalities form a sufficient statistic for predicting the remaining modalities. Symile outperforms pairwise CLIP, even with modalities missing in the data, on cross-modal classification and retrieval across several experiments including on an original multilingual dataset of 33M image, text and audio samples and a clinical dataset of chest X-rays, electrocardiograms, and laboratory measurements. All datasets and code used in this work are publicly available at https://github.com/rajesh-lab/symile.

View on arXivView PDF

Code Implementations(1)

rajesh-lab/symileOfficial100%
MIT

Symile is a flexible, architecture-agnostic contrastive loss that enables training modality-specific representations for any number of modalities.

537PythonJun 19, 20231 years agoMIT

Similar Papers

Cite this paper

@article{saporta2024contrasting,
  title  = {Contrasting with Symile: Simple Model-Agnostic Representation Learning for Unlimited Modalities},
  author = {Adriel Saporta and Aahlad Puli and Mark Goldstein and Rajesh Ranganath},
  year   = {2024},
  eprint = {2411.01053},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2411.01053},
  url    = {http://arxiv.org/abs/2411.01053v1},
  journal = {NEURIPS 2024 2024}
}

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

Discussion