Is Cross-Attention Preferable to Self-Attention for Multi-Modal Emotion Recognition?

Vandana Rajan, Alessio Brutti, Andrea Cavallaro
2/18/2022
cs.LGcs.MM
transformer-attention

Official code: smartcameras/SelfCrossAttn (66 stars, Python, last commit 2025-03-29).

Abstract

Humans express their emotions via facial expressions, voice intonation and word choices. To infer the nature of the underlying emotion, recognition models may use a single modality, such as vision, audio, and text, or a combination of modalities.

Show full abstract

Generally, models that fuse complementary information from multiple modalities outperform their uni-modal counterparts. However, a successful model that fuses modalities requires components that can effectively aggregate task-relevant information from each modality. As cross-modal attention is seen as an effective mechanism for multi-modal fusion, in this paper we quantify the gain that such a mechanism brings compared to the corresponding self-attention mechanism. To this end, we implement and compare a cross-attention and a self-attention model. In addition to attention, each model uses convolutional layers for local feature extraction and recurrent layers for global sequential modelling. We compare the models using different modality combinations for a 7-class emotion classification task using the IEMOCAP dataset. Experimental results indicate that albeit both models improve upon the state-of-the-art in terms of weighted and unweighted accuracy for tri- and bi-modal configurations, their performance is generally statistically comparable. The code to replicate the experiments is available at https://github.com/smartcameras/SelfCrossAttn

View on arXivView PDF

Code Implementations(1)

PyTorch implementation of the models described in the IEEE ICASSP 2022 paper "Is cross-attention preferable to self-attention for multi-modal emotion recognition?"

668Python, ShellFeb 17, 20221 years ago

Similar Papers

Cite this paper

@article{rajan2022crossattention,
  title  = {Is Cross-Attention Preferable to Self-Attention for Multi-Modal Emotion Recognition?},
  author = {Vandana Rajan and Alessio Brutti and Andrea Cavallaro},
  year   = {2022},
  eprint = {2202.09263},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.09263}
}

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

Discussion