MutualFormer: Multi-Modality Representation Learning via Cross-Diffusion Attention

Xixi Wang, Xiao Wang, Bo Jiang, Jin Tang, Bin Luo
12/2/2021
cs.CV
transformer-attention

Official code: SissiW/MutualFormer (11 stars, Python, last commit 2024-05-15).

Abstract

Aggregating multi-modality data to obtain reliable data representation attracts more and more attention. Recent studies demonstrate that Transformer models usually work well for multi-modality tasks.

Show full abstract

Existing Transformers generally either adopt the Cross-Attention (CA) mechanism or simple concatenation to achieve the information interaction among different modalities which generally ignore the issue of modality gap. In this work, we re-think Transformer and extend it to MutualFormer for multi-modality data representation. Rather than CA in Transformer, MutualFormer employs our new design of Cross-Diffusion Attention (CDA) to conduct the information communication among different modalities. Comparing with CA, the main advantages of the proposed CDA are three aspects. First, the crossaffinities in CDA are defined based on the individual modality affinities in the metric space which thus can naturally avoid the issue of modality/domain gap in feature based CA definition. Second, CDA provides a general scheme which can either be used for multimodality representation or serve as the post-optimization for existing CA models. Third, CDA is implemented efficiently. We successfully apply the MutualFormer on different multi-modality learning tasks (i.e., RGB-Depth SOD, RGB-NIR object ReID). Extensive experiments demonstrate the effectiveness of the proposed MutualFormer.

View on arXivView PDF

Code Implementations(1)

112PythonDec 18, 20212 years ago

Similar Papers

Cite this paper

@article{wang2021mutualformer,
  title  = {MutualFormer: Multi-Modality Representation Learning via Cross-Diffusion Attention},
  author = {Xixi Wang and Xiao Wang and Bo Jiang and Jin Tang and Bin Luo},
  year   = {2021},
  eprint = {2112.01177},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.01177}
}

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/2112.01177.svg)](https://codeofpaper.com/paper/2112.01177)

Discussion