On the Comparison between Multi-modal and Single-modal Contrastive Learning

Wei Huang, Andi Han, Yongqiang Chen, Yuan Cao, Zhiqiang Xu, Taiji Suzuki

TL;DR

This paper provides the first unified theoretical framework explaining why multi-modal contrastive learning (like CLIP) fundamentally outperforms single-modal contrastive learning. By analyzing the optimization trajectories of ReLU networks, the authors demonstrate that multi-modal learning allows different modalities to cooperate, boosting the effective signal-to-noise ratio (SNR) and preventing the model from merely memorizing training noise.

What Problem Does This Paper Address?

While multi-modal contrastive learning models like CLIP have achieved massive empirical success—demonstrating remarkable zero-shot capabilities and robustness to distribution shifts—our theoretical understanding of why they outperform single-modal counterparts has lagged behind.

Prior theoretical works typically analyzed either single-modal or multi-modal settings in isolation. This paper bridges the gap by addressing a fundamental question: What is the exact mechanism that gives multi-modal contrastive learning a generalization advantage over single-modal contrastive learning under a unified optimization framework?

Methods

The authors establish a feature learning theory framework using:

  1. A Signal-Noise Data Model: Data from each modality is split into a task-relevant signal vector ($\mu$) and a task-irrelevant Gaussian noise vector ($\xi$).
  2. Neural Network Architecture: A single-layer ReLU neural network encoder trained via gradient descent.
  3. Objective Function: The InfoMax contrastive loss objective function (with a stop-gradient operation).
  4. Trajectory-Based Analysis: The core mathematical heavy-lifting involves tracking the exact optimization trajectories of two competing forces during training: signal learning (coefficients tracking how well the model learns true features) and noise memorization (coefficients tracking how much the model overfits to noise).

Datasets

The theoretical findings are validated using two types of datasets:

  • Synthetic Datasets: High-dimensional data ($d = 2000$) generated precisely according to the paper's mathematical signal-noise model to track exact optimization variables over 200 epochs.
  • ColoredMNIST: A real-world image-text variation of the standard MNIST dataset designed to evaluate out-of-distribution (OOD) generalization. It introduces spurious correlations (e.g., specific digits colored a certain way during training, but reversed during testing) and 10% label noise.

Key Insights and Ideas

  • The Power of Cooperation: In multi-modal learning, the two modalities synchronize their feature learning patterns. If one modality has a higher Signal-to-Noise Ratio (SNR), it acts as a guide, accelerating and lifting the feature learning process of the other modality.
  • Single-Modal Trapped in Noise: In single-modal contrastive learning, data augmentation typically maintains the same SNR as the original data. Without a second modality to anchor the true signal, the network quickly defaults to memorizing the noise to minimize training loss, leading to poor downstream generalization.
  • Two-Stage Training Dynamics: Training consists of two distinct phases. In the first stage, noise or signal grows exponentially. In the second stage, the model converges to near-zero training loss, locking in the scale differences established in the first stage. Whether the model generalizes well depends entirely on which force won the race in stage one.

Key Results

The paper proves mathematically and empirically that both methods can drive training error to near zero, but their downstream performance diverges drastically:

  • Theoretical Guarantees:
  • Single-Modal (Theorem 4.2): Downstream test error remains large ($\Theta(1)$).
  • Multi-Modal (Theorem 4.3): Downstream test error approaches zero ($o(1)$).
  • Synthetic Experiments: Multi-modal OOD test accuracy successfully converged to nearly 1.0, while single-modal accuracy stagnated around 0.5 due to severe noise memorization.
  • ColoredMNIST Results: Under severe distribution shifts, multi-modal learning achieved an OOD test accuracy of 82.13%, completely crushing single-modal learning, which scored a dismal 12.68%.
Model Train Accuracy Test Accuracy (OOD)
Single-modal 88.43% 12.68%
Multi-modal 87.77% 82.13%

Limitations and Future Work

While the framework provides excellent foundational clarity, the authors note a few limitations that pave the way for future research:

  • Simplified Data Model: The data generation model relies on a linear combination of signal and Gaussian noise, which is simpler than real-world data distributions.
  • Shallow Architectures: The analysis is performed on a single-layer ReLU network. Extending this trajectory-based optimization analysis to deeper architectures, such as multi-layer ResNets or Transformers, remains an open challenge.

Summary updated

BibTeX
@inproceedings{huang2024comparison,
  author = {Wei Huang and Andi Han and Yongqiang Chen and Yuan Cao and Zhiqiang Xu and Taiji Suzuki},
  title = {{On the Comparison between Multi-modal and Single-modal Contrastive Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=O2UwxfhY1P},
}
Figure