Multimodal Pathway: Improve Transformers with Irrelevant Data from Other Modalities

Yiyuan Zhang, Xiaohan Ding, Kaixiong Gong, Yixiao Ge, Ying Shan, Xiangyu Yue

Abstract

Recent advances in Transformer architectures have demonstrated a "universal modeling ability" where diverse data modalities are processed as sequences of tokens. This paper introduces Multimodal Pathway (M2PT), a framework that improves a Transformer's performance on a target task by incorporating weights from auxiliary models trained on entirely unrelated modalities. Through a novel cross-modal re-parameterization technique, M2PT achieves significant performance gains—such as a 7.1% boost on ImageNet-1K from scratch—while maintaining zero additional computational overhead during inference.

Introduction

The prevailing paradigm in multimodal learning, exemplified by models like CLIP and Flamingo, relies heavily on paired or interleaved data (e.g., images with matching text descriptions). This approach assumes that cross-modal benefits arise from semantic relevance. However, this research challenges that assumption by asking: Can a model's performance on image classification be improved by a dataset of unrelated audio or point clouds?

The authors hypothesize that while modalities differ in raw structure, the underlying Transformer blocks develop a general ability to transform patterns into abstract representations. This "Ability B" (general sequence modeling) can be transferred even when "Ability A" (domain-specific knowledge) is irrelevant.

Methodology: The Multimodal Pathway Transformer

The M2PT framework consists of three core elements: modality-specific tokenizers, the pathway connection, and cross-modal re-parameterization.

The M2PT architecture and cross-modal re-parameterization trick.

Cross-Modal Re-parameterization

To avoid the computational cost of running multiple models, the authors propose a re-parameterization trick. Every linear layer in the target model is augmented with fixed weights from the corresponding layer of an auxiliary model, scaled by a learnable parameter $\lambda$. The formulation is:

$y = x(W + \lambda W')$

where $W$ are the target weights and $W'$ are the auxiliary weights. After training, these are merged into a single weight matrix $\hat{W} = W + \lambda W'$, ensuring the final model architecture remains identical to a standard Transformer.

Experimental Results

The study evaluated M2PT across four modalities: Image (ImageNet-1K), Video (Kinetics-400), Point Cloud (PartNet), and Audio (AudioSet). Auxiliary models were pretrained using self-supervised methods like Masked Autoencoders (MAE) to prevent label leakage.

Matrix of performance improvements across different modality pairs.

Key findings include:

  • ImageNet-1K: A ViT-Base model saw a 0.7% top-1 accuracy increase when aided by point cloud data in a pretrained setting, and a 7.1% increase when training from scratch.
  • Object Detection (MS COCO): The box AP increased by 5.7% when using point cloud pathways.
  • 3D Point Clouds: Utilizing video data as an auxiliary pathway resulted in a 5.7% mIoU improvement on the PartNet dataset.
  • Efficiency: Due to the re-parameterization trick, all reported gains come with zero increase in inference latency or parameter count in the deployed model.

Discussion and Insights

The success of M2PT suggests that Transformers across different modalities develop a similar hierarchical alignment. Connecting layers in order (e.g., Layer 1 to Layer 1) is crucial; reversing this order leads to performance degradation. This implies that the "hierarchy of abstraction" is a universal property of Transformer-based sequence modeling. Furthermore, even small auxiliary datasets can benefit models trained on massive datasets, suggesting that different modalities provide unique structural perspectives that a single-modality model might overlook.

Conclusion

Multimodal Pathway (M2PT) demonstrates that "irrelevant" data from diverse modalities can significantly enhance Transformer performance. By leveraging the universal sequence modeling capabilities of Transformers and an efficient re-parameterization strategy, M2PT offers a practical way to boost model accuracy without sacrificing inference speed. Future work will explore the theoretical foundations of these cross-modal benefits and the scalability of this approach to larger models.

Summary updated

BibTeX
@inproceedings{zhang2024multimodal,
  author = {Yiyuan Zhang and Xiaohan Ding and Kaixiong Gong and Yixiao Ge and Ying Shan and Xiangyu Yue},
  title = {{Multimodal Pathway: Improve Transformers with Irrelevant Data from Other Modalities}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure