Connecting Multi-modal Contrastive Representations

Zehan Wang, Yang Zhao, Xize Cheng, Haifeng Huang, Jiageng Liu, Li Tang, Linjun Li, Yongqi Wang, Aoxiong Yin, Ziang Zhang, Zhou Zhao

This paper, presented at NeurIPS 2023, introduces Connecting Multi-modal Contrastive Representations (C-MCR), a framework that allows researchers to align two different multi-modal models (like CLIP and CLAP) without needing any direct paired data between their primary modalities.

TL;DR

C-MCR bridges separate multi-modal representation spaces by using an overlapping modality as a semantic anchor, enabling zero-shot tasks between non-overlapping modalities (e.g., audio-to-image retrieval) without direct paired training data. By training only two lightweight projectors, it achieves state-of-the-art performance on audio-visual and 3D-language tasks while remaining highly training-efficient.

What Problem Does This Paper Address?

Multi-modal Contrastive Representation (MCR) learning, exemplified by models like CLIP, has revolutionized how we map different data types (like images and text) into a shared semantic space. However, these models are data-hungry. While image-text pairs are abundant on the web, other pairs—like audio-visual or 3D-language—are either scarce, expensive to annotate, or inherently noisy.

The authors identify a missed opportunity: we often have high-quality models for $(A, B)$ and $(B, C)$, where $B$ is a common "bridge" modality (usually text or images). The challenge is how to connect modality $A$ to modality $C$ effectively without direct $(A, C)$ pairs, while overcoming the "modality gap"—the tendency for different modalities to cluster in separate regions of the same representation space.

Methods

The core idea of C-MCR is to project two existing MCR spaces into a new, unified space. For example, to connect CLIP (Image-Text) and CLAP (Audio-Text), the authors use Text as the overlapping bridge.

Figure 1: The pipeline of connecting CLIP and CLAP using our C-MCR. During training, we take text as input and encode it with frozen CLAP and CLIP text encoders, respectively. Audio(image) memory is generated by encoding lots of unimodal audio(image) data by pre-trained audio(image) encoder. Semantic enhancement enriches the semantic consistency and completion of embeddings. Then two projectors map embeddings to a new shared representation space where inter- and intra- MCR alignment establishes and maintains a stable connection between CLAP and CLIP. During inference, the audio and image are inputted to the corresponding encoder and projector.

The method relies on three key technical components:

  1. Semantic Enhancement: To make the alignment robust, the authors don't just use raw text embeddings. They use "memories" (large collections of unimodal data like ImageNet or AudioSet) to generate semantically consistent embeddings via soft-clustering. They also inject Gaussian noise and re-normalize embeddings to the unit hypersphere to improve generalization.
  2. Inter-MCR Alignment: This establishes the connection across models. It uses a contrastive loss to ensure that the representation of the bridge modality (e.g., text) from Model 1 is close to its representation from Model 2 in the new projected space.
  3. Intra-MCR Alignment: To combat the "modality gap," the authors introduce a "pull-only" loss. Unlike standard contrastive loss which pushes negatives away, this loss only pulls semantically similar embeddings (like an image and its corresponding text) closer together within the same MCR, ensuring the bridge learned via text actually works for images and audio.

Datasets

The authors evaluated C-MCR across two major domains:

  • Audio-Visual: Connected CLIP and CLAP using a massive text dataset (2.33M descriptions from COCO, CC3M, MSRVTT, etc.). They used AudioSet for audio memory and ImageNet1K for image memory. Evaluation was performed on AVE, Flickr-SoundNet, VGGSS, and MUSIC.
  • 3D-Language: Connected CLIP and ULIP (a 3D-image model) using images as the bridge. They used Objaverse for 3D memory and evaluated on ModelNet40.

Key Insights and Ideas

  • The Overlapping Modality as a Rosetta Stone: The paper proves that you don't need direct supervision to align disparate modalities if you have a strong intermediate anchor. The overlapping modality acts as a "different view" of the same underlying semantic concept.
  • Fixing the Modality Gap: One of the most interesting findings is that standard contrastive learning actually preserves a gap between modalities. By removing the "push" (repulsive) term in their intra-MCR loss, the authors successfully closed this gap, which was crucial for the bridge to transfer from text to audio/visual inputs.
  • Extreme Efficiency: Because the heavy unimodal encoders (ViT, ResNet, etc.) are frozen, C-MCR only trains two simple MLP projectors. This makes it orders of magnitude cheaper than training a multi-modal model from scratch.

Key Results

C-MCR achieved remarkable results without seeing a single audio-image pair during training:

  • Audio-Image Retrieval: On the AVE dataset, C-MCR achieved a 4.11 mAP, significantly outperforming AudioCLIP (0.98 mAP) and WAV2CLIP (2.80 mAP), despite those models being trained on direct audio-visual pairs.
Table 1: Zero-shot audio-image retrieval results on AVE and Flickr-SoundNet. A-V pairs stands for whether training on paired audio-visual data; Tr. Param for Trainable parameters number.
  • Qualitative Success: The model demonstrates a strong ability to retrieve relevant images for complex sounds like "dog barking" or "sizzling food," showing that the semantic bridge is highly effective.
Figure 2: Visualization of audio-to-image retrieval on AVE and Flickr-SoundNet.
  • 3D Classification: For 3D-language tasks, C-MCR reached 64.9% zero-shot accuracy on ModelNet40, surpassing several models that were explicitly trained on 3D-text data.

Limitations and Future Work

  • Dependency on the Bridge: The method's success is tethered to the quality of the overlapping modality. If the bridge modality cannot capture the nuances of the target modalities, the alignment will be weak.
  • Data Bias: While C-MCR reduces the need for paired data, it still requires large unimodal "memories." The authors note that if these unimodal datasets contain harmful or unsuitable data, those biases could be inherited by the aligned space.
  • Future Directions: The authors suggest exploring ways to reduce the unimodal data requirements even further and testing the framework on a broader variety of modality combinations beyond audio, visual, and 3D.

Summary updated

BibTeX
@inproceedings{wang2023connecting,
  author = {Zehan Wang and Yang Zhao and Xize Cheng and Haifeng Huang and Jiageng Liu and Li Tang and Linjun Li and Yongqi Wang and Aoxiong Yin and Ziang Zhang and Zhou Zhao},
  title = {{Connecting Multi-modal Contrastive Representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=IGTbT9P1ti},
}
Figure