Training Transitive and Commutative Multimodal Transformers with LoReTTa

Manuel Tran, Yashin Dicente Cid, Amal Lahiani, Fabian J Theis, Tingying Peng, Eldad Klaiman

Introduction

LoReTTa is a novel pre-training strategy that empowers multimodal transformers to learn from disjoint datasets. For instance, researchers might have access to (Image, Text) and (Text, Audio) pairs, but lack any (Image, Audio) samples. By enforcing the mathematical rules of transitivity and commutativity during self-supervised training, LoReTTa creates a unified representation space capable of handling any combination of modalities at inference time—even those never seen together during training.

The Challenge of Data Poverty

In the realm of multimodal AI, "data poverty" remains a significant hurdle. While massive datasets pairing images with text (like LAION) are common, finding datasets that simultaneously align three or more modalities (e.g., Image, Text, Audio, and Video) is exceedingly rare.

Different scenarios of multimodal dataset availability, highlighting the challenge of entirely missing modality combinations.

This limitation is especially critical in specialized fields such as healthcare. A researcher might possess one dataset linking genetic sequences to clinical notes, and another linking clinical notes to medical images. However, a single, unified dataset containing all three modalities for the same patients is often unavailable. Most current multimodal models (like CLIP) or "missing modality" frameworks still require at least a small subset of "complete" samples where all modalities are present to properly align their latent spaces. LoReTTa tackles the "worst-case scenario": training a universal model when certain modality combinations are entirely missing from the training data.

The LoReTTa Framework

LoReTTa (Linking mOdalities with a tRansitive and commutativE pre-Training sTrAtegy) utilizes a standard transformer decoder architecture but introduces three specific training rules to bridge disjoint data:

Overview of the LoReTTa pre-training strategy, including commutative, causal masked, and transitive modeling.
  1. Commutative Modeling: Standard autoregressive models are sensitive to sequence order. LoReTTa randomly swaps the order of modalities in the input sequence (e.g., [Image; Text] vs. [Text; Image]). This forces the model to learn that the relationship between modalities is symmetric.
  2. Causal Masked Modeling: To provide the model with bidirectional context (the ability to look both "forward" and "backward"), the authors employ a hybrid approach. They mask random spans of tokens and move them to the end of the sequence, compelling the model to use the remaining context to fill in the gaps.
  3. Transitive Modeling (The Core Innovation): If the model sees pairs $(A, B)$ and $(B, C)$, it uses the shared modality $B$ as a bridge. During training, it uses $B$ to predict a "pseudo-sample" of the missing modality $C$. It then attempts to reconstruct the original modality $A$ from this predicted $C$. This $A \to B \to C \to A$ chain ensures that $A$ and $C$ become aligned in the latent space, despite never appearing in the same training sample.

Experimental Setup and Datasets

The authors evaluated LoReTTa across three diverse domains to prove its versatility:

  • SVL-MNIST (Synthetic): A custom dataset combining Audio (spectrograms), Vision (MNIST digits), and Language (text descriptions), linked by digit labels.
  • TCGA-OMICS (Medical): Real-world cancer data featuring three types of "omics" data (mRNA, miRNA, and RPPA protein expression). This simulates a high-stakes clinical environment with disjoint data.
  • MUGEN-GAME (Reinforcement Learning/Video): A large-scale dataset of video, audio, and text from a platformer game, used to test cross-modal generation (e.g., zero-shot audio captioning).

Key Insights and Results

LoReTTa demonstrates that you do not need a "master dataset" containing every modality. As long as there is a "chain" of alignment (a spanning tree in graph terms), the transformer can implicitly learn the joint probability distribution of all modalities. By training the model to reconstruct $A$ from a predicted $C$, it effectively learns to "hallucinate" missing data in a mathematically consistent way.

Surprisingly, LoReTTa sometimes outperformed "upper bound" models trained on complete triplets. The authors suggest that training on disjoint pairs might reduce "modality competition," where a dominant modality (like vision) prevents the model from learning useful features from a weaker one (like audio).

Empirical results highlight LoReTTa's strong performance:

  • Lower Perplexity on Unseen Pairs: On the SVL-MNIST dataset, for the never-seen (Image, Audio) pair, LoReTTa achieved a perplexity of 3.13, vastly outperforming the non-transitive baseline (104.27).
  • Superior Survival Prediction: In the TCGA-OMICS medical task, LoReTTa achieved the highest c-index (a measure of prediction accuracy) in 6 out of 7 test scenarios, proving it can extract biologically relevant features from disjoint omics data.
  • Zero-Shot Audio Captioning: On the MUGEN dataset, LoReTTa was trained on (Video, Audio) and (Video, Text) but never (Audio, Text). At inference, it successfully generated text captions for audio clips, outperforming GPT-based baselines in BLEU4 and METEOR scores.

Limitations and Future Work

While powerful, LoReTTa has limitations. It strictly requires at least one "bridge" modality; if two datasets $(A, B)$ and $(C, D)$ have no overlapping modalities, the transitive chain breaks, and alignment fails. Additionally, the transitive training step involves autoregressive decoding to generate pseudo-samples, which introduces computational overhead compared to standard forward passes. Finally, while the paper demonstrates success with three modalities, real-world systems might involve dozens. Future work will need to investigate whether transitive errors compound as the linking chain grows longer (e.g., $A \to B \to C \to D \to E$).

Summary updated

BibTeX
@inproceedings{tran2023training,
  author = {Manuel Tran and Yashin Dicente Cid and Amal Lahiani and Fabian J Theis and Tingying Peng and Eldad Klaiman},
  title = {{Training Transitive and Commutative Multimodal Transformers with LoReTTa}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=nArzDm353Y},
}
Figure