Multimodal Pathway: Improve Transformers with Irrelevant Data from Other Modalities

Yiyuan Zhang, Xiaohan Ding, Kaixiong Gong, Yixiao Ge, Ying Shan +1 more
1/25/2024
cs.CVcs.AIcs.LG

Official code: AILab-CVC/M2PT (103 stars, Apache-2.0, last commit 2024-03-13). 1 more implementation below.

Abstract

We propose to improve transformers of a specific modality with irrelevant data from other modalities, e.g., improve an ImageNet model with audio or point cloud datasets. We would like to highlight that the data samples of the target modality are irrelevant to the other modalities, which distinguishes our method from other works utilizing paired (e.g., CLIP) or interleaved data of different modalities. We propose a methodology named Multimodal Pathway - given a target modality and a transformer designed for it, we use an auxiliary transformer trained with data of another modality and construct pathways to connect components of the two models so that data of the target modality can be processed by both models. In this way, we utilize the universal sequence-to-sequence modeling abilities of transformers obtained from two modalities. As a concrete implementation, we use a modality-specific tokenizer and task-specific head as usual but utilize the transformer blocks of the auxiliary model via a proposed method named Cross-Modal Re-parameterization, which exploits the auxiliary weights without any inference costs. On the image, point cloud, video, and audio recognition tasks, we observe significant and consistent performance improvements with irrelevant data from other modalities. The code and models are available at https://github.com/AILab-CVC/M2PT.

View on arXivView PDF

Code Implementations(2)

AILab-CVC/M2PTOfficial100%
Apache-2.0

[CVPR 2024] Multimodal Pathway: Improve Transformers with Irrelevant Data from Other Modalities

1035Shell, PythonNov 20, 20232 years agoApache-2.0
artificial-intelligencedeep-learningmultimodaltransformers
kyegomez/M2PTCommunity65%
MIT

Implementation of M2PT in PyTorch from the paper: "Multimodal Pathway: Improve Transformers with Irrelevant Data from Other Modalities"

141Shell, PythonJan 26, 20242 years agoMIT
aiattentionattention-is-all-you-needgpt4gpt5+5 more

Cite this paper

@article{zhang2024multimodal,
  title  = {Multimodal Pathway: Improve Transformers with Irrelevant Data from Other Modalities},
  author = {Yiyuan Zhang and Xiaohan Ding and Kaixiong Gong and Yixiao Ge and Ying Shan and Xiangyu Yue},
  year   = {2024},
  eprint = {2401.14405},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.14405v2},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.14405.svg)](https://codeofpaper.com/paper/2401.14405)

Discussion