Wasserstein Modality Alignment Makes Your Multimodal Transformer More Robust

Zhuo Zhi, Yuxuan Sun, Qiangqiang Wu, Ziquan Liu, Miguel R. D. Rodrigues

Introduction

In multimodal machine learning, the prevailing assumption is that integrating diverse data streams—such as images and text—necessarily results in a more capable model. However, researchers have identified a persistent issue: multimodal transformers (MTs) often exhibit "lazy" behavior. They frequently succumb to shortcut learning, over-relying on a single dominant modality while neglecting others. This imbalance renders models fragile when the primary modality is noisy or absent.

A recent study published in Transactions on Machine Learning Research (01/2025) introduces Wasserstein Modality Alignment (WMA). By leveraging optimal transport theory to regularize the distance between different data distributions, the authors demonstrate a method to enforce modality balance and enhance robustness without introducing additional trainable parameters.

The Challenge: Shortcut Learning in Transformers

Standard multimodal transformers utilize self-attention mechanisms to fuse inputs like video, audio, and text. While powerful, self-attention does not inherently ensure modality alignment. During fine-tuning, models often discover that one modality provides a sufficient path to minimize training loss, leading them to ignore complementary signals from "weaker" modalities.

For instance, in tasks like "Hateful Memes" detection, a model might rely exclusively on text. If that text contains typos or is missing at inference, performance collapses because the model never learned to extract meaningful features from the associated images. Existing remedies often involve complex adapter modules or forcing modalities to be identical, which can inadvertently strip away the unique, non-redundant information each modality provides.

Wasserstein Modality Alignment (WMA)

The proposed WMA method is an implicit regularization technique that guides the model toward a more balanced representation.

  1. Optimal Transport (OT): WMA calculates the Wasserstein distance—a metric representing the "cost" of transforming one distribution into another—between feature tokens of different modalities within the transformer.
  2. Targeted Alignment: Unlike traditional methods that strive for zero distance (forced alignment), WMA introduces a task-dependent target distance. The model is regularized to maintain a specific "gap" between modalities, preserving their unique characteristics.
  3. Loss Formulation: The regularization is integrated into the standard cross-entropy loss: $$\mathcal{L}_{total} = \mathcal{L}_{task} + \alpha(D_{OT} - \beta \bar{D}_{initial})^2$$ Here, $\alpha$ dictates regularization strength, and $\beta$ adjusts the target gap based on the initial distance at the start of training.

  4. Parameter-Free: WMA is a "plug-and-play" loss term. It requires no additional trainable weights, making it more efficient than parametric "adapter" or "bottleneck" approaches.

Comparison of standard fine-tuning (a) and fine-tuning with WMA regularization (b), showing performance gains across multiple datasets.

Experimental Evaluation

The researchers evaluated WMA across five diverse datasets:

  • Hateful Memes: Image + Text binary classification.
  • MM-IMDb: Image + Text multi-label movie genre tagging.
  • UR-FUNNY & MOSEI: Text + Video + Audio for humor and sentiment analysis.
  • MedFuse-I: EHR data + X-rays for medical mortality prediction.

Key Insights: Balancing Attribution

A critical finding of the study is that "forced alignment" (minimizing OT distance to zero) often degrades performance. Modalities are inherently heterogeneous; WMA succeeds by identifying the optimal degree of separation.

To understand this mechanism, the authors employed Integrated Gradients to visualize model attribution. In standard models, the decision-making process is heavily skewed toward one modality. With WMA, the attribution becomes more Gaussian and balanced, indicating that the model is actively utilizing information from all available sources.

Histograms and statistics of integrated gradient values for text and image tokens, illustrating how WMA balances modality attribution.

Results and Robustness

WMA consistently outperformed standard transformers and baselines like RegBN and MIB:

  • Performance: WMA achieved an average improvement of 1.4% in early fusion and 1.9% in late fusion paradigms.
  • Resilience to Noise: The model maintained higher accuracy when faced with Gaussian noise in images or textual typos.
  • Missing Modalities: In the Hateful Memes task, WMA significantly improved AUROC when one modality was entirely removed, demonstrating superior cross-modal robustness.
  • Efficiency: WMA is computationally lighter and faster to train than parametric alternatives, as it avoids the overhead of updating extra adapter weights.

Conclusion

Wasserstein Modality Alignment offers a simple yet effective way to mitigate shortcut learning in multimodal transformers. By regularizing the distance between modality distributions rather than forcing them to merge, WMA creates models that are both more accurate and significantly more robust to real-world data imperfections. Future work may involve extending WMA to generative Multimodal Large Language Models (MLLMs) to improve their reliability in complex reasoning tasks.

Summary updated

BibTeX
@article{zhi2025wasserstein,
  author = {Zhuo Zhi and Yuxuan Sun and Qiangqiang Wu and Ziquan Liu and Miguel R. D. Rodrigues},
  title = {{Wasserstein Modality Alignment Makes Your Multimodal Transformer More Robust}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure