Low Rank Fusion based Transformers for Multimodal Sequences

07/04/2020 ∙ by Saurav Sahay, et al. ∙ 0

Our senses individually work in a coordinated fashion to express our emotional intentions. In this work, we experiment with modeling modality-specific sensory signals to attend to our latent multimodal emotional intentions and vice versa expressed via low-rank multimodal fusion and multimodal transformers. The low-rank factorization of multimodal fusion amongst the modalities helps represent approximate multiplicative latent signal interactions. Motivated by the work of <cit.> and <cit.>, we present our transformer-based cross-fusion architecture without any over-parameterization of the model. The low-rank fusion helps represent the latent signal interactions while the modality-specific attention helps focus on relevant parts of the signal. We present two methods for the Multimodal Sentiment and Emotion Recognition results on CMU-MOSEI, CMU-MOSI, and IEMOCAP datasets and show that our models have lesser parameters, train faster and perform comparably to many larger fusion-based architectures.



There are no comments yet.


page 1

page 2

page 3

page 4

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

The field of Emotion Understanding involves computational study of subjective elements such as sentiments, opinions, attitudes, and emotions towards other objects or persons. Subjectivity is an inherent part of emotion understanding that comes from the contextual nature of the natural phenomenon. Defining the metrics and disentangling the objective assessment of the metrics from the subjective signal makes the field quite challenging and exciting. Sentiments and Emotions are attached to the language, audio and visual modalities at different rates of expression and granularity and are useful in deriving social, psychological and behavioral insights about various entities such as movies, products, people or organizations. Emotions are defined as brief organically synchronized evaluations of major events whereas sentiments are considered as more enduring beliefs and dispositions towards objects or persons Scherer (1984). The field of Emotion Understanding has rich literature with many interesting models of understanding Plutchik (2001); Ekman (2009); Posner et al. (2005)

. Recent studies on tensor-based multimodal fusion explore regularizing tensor representations  

Liang et al. (2019) and polynomial tensor pooling Hou et al. (2019).

Figure 1: Modality-specific Fused Attention

In this work, we combine ideas from Tsai et al. (2019) and Liu et al. (2018) and explore the use of Transformer Vaswani et al. (2017) based models for both aligned and unaligned signals without extensive over-parameterization of the models by using multiple modality-specific transformers. We utilize Low Rank Matrix Factorization (LMF) based fusion method for representing multimodal fusion of the modality-specific information. Our main contributions can be summarized as follows:

  • Recently proposed Multimodal Transformer (MulT) architecture Tsai et al. (2019) uses at least 9 Transformer based models for cross-modal representation of language, audio and visual modalities (3 parallel modality-specific standard Transformers with self-attention and 6 parallel bimodal Transformers with cross-modal attention). These models utilize several parallel unimodal and bimodal transformers and do not capture the full trimodal signal interplay in any single transformer model in the architecture. In contrast, our method uses fewer Transformer based models and fewer parallel models for the same multimodal representation.

  • We look at two methods for leveraging the multimodal fusion into the transformer architecture. In one method (LMF-MulT), the fused multimodal signal is reinforced using attention from the 3 modalities. In the other method (Fusion-Based-CM-Attn), the individual modalities are reinforced in parallel via the fused signal.

The ability to use unaligned sequences for modeling is advantageous since we rely on learning based methods instead of using methods that force the signal synchronization (requiring extra timing information) to mimic the coordinated nature of human multimodal language expression. The LMF method aims to capture all unimodal, bimodal and trimodal interactions amongst the modalities via approximate Tensor Fusion method.

We develop and test our approaches on the CMU-MOSI, CMU-MOSEI, and IEMOCAP datasets as reported in Tsai et al. (2019). CMU Multimodal Opinion Sentiment and Emotion Intensity (CMU-MOSEI) Zadeh et al. (2018)

is a large dataset of multimodal sentiment analysis and emotion recognition on YouTube video segments. The dataset contains more than 23,500 sentence utterance videos from more than 1000 online YouTube speakers. The dataset has several interesting properties such as being gender balanced, containing various topics and monologue videos from people with different personality traits. The videos are manually transcribed and properly punctuated. Since the dataset comprises of natural audio-visual opinionated expressions of the speakers, it provides an excellent test-bed for research in emotion and sentiment understanding. The videos are cut into continuous segments and the segments are annotated with 7 point scale sentiment labels and 4 point scale emotion categories corresponding to the Ekman’s 6 basic emotion classes 

Ekman (2002). The opinionated expressions in the segments contain visual cues, audio variations in signal as well as textual expressions showing various subtle and non-obvious interactions across the modalities for both sentiment and emotion classification. CMU-MOSI Zadeh et al. (2016) is a smaller dataset (2199 clips) of YouTube videos with sentiment annotations. IEMOCAP Busso et al. (2008) dataset consists of 10K videos with sentiment and emotion labels. We use the same setup as Tsai et al. (2019) with 4 emotions (happy, sad, angry, neutral).

In Fig 1, we illustrate our ideas by showing the fused signal representation attending to different parts of the unimodal sequences. There’s no need to align the signals since the attention computation to different parts of the modalities acts as proxy to the multimodal sequence alignment. The fused signal is computed via Low Rank Matrix Factorization (LMF). The other model we propose uses a swapped configuration where the individual modalities attend to the fused signal in parallel.

2 Model Description

In this section, we describe our models and methods for Low Rank Fusion of the modalities for use with Multimodal Transformers with cross-modal attention.

Figure 2: Low Rank Matrix Factorization
Figure 3: Fused Cross-modal Transformer

2.1 Low Rank Fusion

LMF is a Tensor Fusion method that models the unimodal, bimodal and trimodal interactions without using an expensive 3-fold Cartesian product Zadeh et al. (2017) from modality-specific embeddings. Instead, the method leverages unimodal features and weights directly to approximate the full multi-tensor outer product operation. This low-rank matrix factorization operation easily extends to problems where the interaction space (feature space or number of modalities) is very large. We utilize the method as described in Liu et al. (2018). Similar to the prior work, we compress the time-series information of the individual modalities using an LSTM Hochreiter and Schmidhuber (1997)

and extract the hidden state context vector for modality-specific fusion. We depict the LMF method in Fig 

2 similar to the illustration in Liu et al. (2018). This shows how the unimodal tensor sequences are appended with 1s before taking the outer product to be equivalent to the tensor representation that captures the unimodal and multimodal interaction information explicitly (top right of Fig 2). As shown, the compressed representation (h) is computed using batch matrix multiplications of the low-rank modality-specific factors and the appended modality representations. All the low-rank products are further multiplied together to get the fused vector.

Figure 4: Low Rank Fusion Transformer
Metric Acc Acc F1 MAE Corr
(Aligned) CMU-MOSI Sentiment
LF-LSTM (pub) 35.3 76.8 76.7 1.015 0.625
MulT Tsai et al. (2019) (pub) 40.0 83.0 82.8 0.871 0.698
MulT Tsai et al. (2019) (our run) 33.1 78.5 78.4 0.991 0.676
Fusion-Based-CM-Attn-MulT (ours) 32.9 77.0 76.9 1.017 0.636
LMF-MulT (ours) 32.4 77.9 77.9 1.016 0.647
(Unaligned) CMU-MOSI Sentiment
LF-LSTM (pub) 33.7 77.6 77.8 0.988 0.624
MulT Tsai et al. (2019) (pub) 39.1 81.1 81.0 0.889 0.686
MulT Tsai et al. (2019) (our run) 34.3 80.3 80.4 1.008 0.645
Fusion-Based-CM-Attn-MulT (ours) 34.4 76.8 76.8 1.003 0.640
LMF-MulT (ours) 34.0 78.5 78.5 0.957 0.681
Table 1: Performance Results for Multimodal Sentiment Analysis on CMU-MOSI dataset with aligned and unaligned multimodal sequences.
Metric Acc Acc F1 MAE Corr
(Aligned) CMU-MOSEI Sentiment
LF-LSTM (pub) 48.8 80.6 80.6 0.619 0.659
MulT Tsai et al. (2019) (pub) 51.8 82.5 82.3 0.580 0.703
MulT Tsai et al. (2019) (our run) 49.3 80.5 81.1 0.625 0.663
Fusion-Based-CM-Attn-MulT (ours) 49.6 79.9 80.7 0.616 0.673
LMF-MulT (ours) 50.2 80.3 80.3 0.616 0.662
(Unaligned) CMU-MOSEI Sentiment
LF-LSTM (pub) 48.8 77.5 78.2 0.624 0.656
MulT Tsai et al. (2019) (pub) 50.7 81.6 81.6 0.591 0.694
MulT Tsai et al. (2019) (our run) 50.4 80.7 80.6 0.617 0.677
Fusion-Based-CM-Attn-MulT (ours) 49.3 79.4 79.2 0.613 0.674
LMF-MulT (ours) 49.3 80.8 81.3 0.620 0.668
Table 2: Performance Results for Multimodal Sentiment Analysis on larger-scale CMU-MOSEI dataset with aligned and unaligned multimodal sequences.

2.2 Multimodal Transformer

We build up on the Transformers Vaswani et al. (2017) based sequence encoding and utilize the ideas from Tsai et al. (2019) for multiple cross-modal attention blocks followed by self-attention for encoding multimodal sequences for classification. While the earlier work focuses on latent adaptation of one modality to another, we focus on adaptation of the latent multimodal signal itself using single-head cross-modal attention to individual modalities. This helps us reduce the excessive parameterization of the models by using all combinations of modality to modality cross-modal attention for each modality. Instead, we only utilize a linear number of cross-modal attention for each modality and the fused signal representation. We add Temporal Convolutions after the LMF operation to ensure that the input sequences have a sufficient awareness of the neighboring elements. We show the overall architecture of our two proposed models in Fig 3 and Fig 4. In Fig 3, we show the fused multimodal signal representation after a temporal convolution to enrich the individual modalities via cross-modal transformer attention. In Fig 4, we show the architecture with the least number of Transformer layers where the individual modalities attend to the fused convoluted multimodal signal.

Emotion Happy Sad Angry Neutral
Metric Acc F1 Acc F1 Acc F1 Acc F1
(Aligned) IEMOCAP Emotions
LF-LSTM (pub) 85.1 86.3 78.9 81.7 84.7 83.0 67.1 67.6
MulT Tsai et al. (2019) (pub) 90.7 88.6 86.7 86.0 87.4 87.0 72.4 70.7
MulT Tsai et al. (2019) (our run) 86.4 82.9 82.3 82.4 85.3 85.8 71.2 70.0
Fusion-Based-CM-Attn-MulT (ours) 85.6 83.7 83.6 83.7 84.6 85.0 70.4 69.9
LMF-MulT (ours) 85.3 84.1 84.1 83.4 85.7 86.2 71.2 70.8
(Unaligned) IEMOCAP Emotions
LF-LSTM (pub) 72.5 71.8 72.9 70.4 68.6 67.9 59.6 56.2
MulT Tsai et al. (2019) (pub) 84.8 81.9 77.7 74.1 73.9 70.2 62.5 59.7
MulT Tsai et al. (2019) (our run) 85.6 79.0 79.4 70.3 75.8 65.4 59.2 44.0
Fusion-Based-CM-Attn-MulT (ours) 85.6 79.0 79.4 70.3 75.8 65.4 59.3 44.2
LMF-MulT (ours) 85.6 79.0 79.4 70.3 75.8 65.4 59.2 44.0
Table 3: Performance Results for Multimodal Emotion Recognition on IEMOCAP dataset with aligned and unaligned multimodal sequences.
Model Aligned Unaligned Aligned Unaligned Aligned Unaligned
MulT Tsai et al. (2019) 18.87 19.25 191.40 216.32 36.20 37.93
Fusion-Based-CM-Attn (ours) 14.53 15.80 140.95 175.68 26.10 29.16
LMF-MulT (ours) 11.01 12.03 106.15 137.35 20.57 23.53
Table 4:

Average Time/Epoch (sec)

MulT Tsai et al. (2019) 1071211 1073731 1074998
Fusion-Based-CM-Attn (ours) 512121 531441 532078
LMF-MulT (ours) 836121 855441 856078
Table 5: Number of Model Parameters

3 Experiments

We present our early experiments to evaluate the performance of proposed models on the standard multimodal datasets used by Tsai et al. (2019)111We have built this work up on the code-base released for MulT Tsai et al. (2019) at https://github.com/yaohungt/Multimodal-Transformer. We run our models on CMU-MOSI, CMU-MOSEI, and IEMOCAP datasets and present the results for the proposed LMF-MulT and Fusion-Based-CM-Attn-MulT models. Late Fusion (LF) LSTM is a common baseline for all datasets with reported results (pub) together with MulT in Tsai et al. (2019). We include the results we obtain (our run) for the MulT model for a direct comparison222In this work, we have not focused on the further hyper-parameter tuning of our models.. Table 1, Table 2, and Table 3 show the performance of various models on the sentiment analysis and emotion classification datasets. We do not observe any trend suggesting that our methods can achieve better accuracies or F1-scores than the original MulT method Tsai et al. (2019). However, we do note that on some occasions, our methods can achieve higher results than the MulT model, in both aligned (see LMF-MulT results for IEMOCAP in Table 3) and unaligned (see LMF-MulT results for CMU-MOSEI in Table 2

) case. We plan to do an exhaustive grid search over the hyper-parameters to understand if our methods can learn to classify the multimodal signal better than the original competitive method. Although the results are comparable, below are the advantages of using our methods:

  • Our LMF-MulT model does not use multiple parallel self-attention transformers for the different modalities and it uses least number of transformers compared to the other two models. Given the same training infrastructure and resources, we observe a consistent speedup in training with this method. See Table 4 for average time per epoch in seconds measured with fixed batch sizes for all three models.

  • As summarized in Table  5, we observe that our models use lesser number of trainable parameters compared to the MulT model, and yet achieve similar performance.

4 Conclusion

In this paper, we present our early investigations towards utilizing Low Rank representations of the multimodal sequences for usage in multimodal transformers with cross-modal attention to the fused signal or the modalities. Our methods build up on the Tsai et al. (2019) work and apply transformers to fused multimodal signal that aim to capture all inter-modal signals via the Low Rank Matrix Factorization Liu et al. (2018). This method is applicable to both aligned and unaligned sequences. Our methods train faster and use fewer parameters to learn classifiers with similar SOTA performance. We are exploring methods to compress the temporal sequences without using the hidden state context vectors from LSTMs that lose the temporal information. We recover the temporal information with a Convolution layer. We believe these models can be deployed in low resource settings with further optimizations. We are also interested in using richer features for the audio, text, and the vision pipeline for other use-cases where we can utilize more resources.


  • C. Busso, M. Bulut, C. Lee, A. Kazemzadeh, E. Mower, S. Kim, J. N. Chang, S. Lee, and S. S. Narayanan (2008) IEMOCAP: interactive emotional dyadic motion capture database. Language Resources and Evaluation 42 (4), pp. 335. External Links: Document, ISBN 1574-0218, Link Cited by: §1.
  • P. Ekman (2002) Facial action coding system (facs). A Human Face (), pp. . External Links: ISSN , Link, Document Cited by: §1.
  • P. Ekman (2009) Telling lies: clues to deceit in the marketplace, politics, and marriage (revised edition). WW Norton & Company. Cited by: §1.
  • S. Hochreiter and J. Schmidhuber (1997) Long short-term memory. Neural Computation 9 (8), pp. 1735–1780. External Links: Document, Link, https://doi.org/10.1162/neco.1997.9.8.1735 Cited by: §2.1.
  • M. Hou, J. Tang, J. Zhang, W. Kong, and Q. Zhao (2019) Deep multimodal multilinear fusion with high-order polynomial pooling. In Advances in Neural Information Processing Systems 32, pp. 12136–12145. External Links: Link Cited by: §1.
  • P. P. Liang, Z. Liu, Y. H. Tsai, Q. Zhao, R. Salakhutdinov, and L. Morency (2019) Learning representations from imperfect time series data via tensor rank regularization. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy, pp. 1569–1576. External Links: Link, Document Cited by: §1.
  • Z. Liu, Y. Shen, V. B. Lakshminarasimhan, P. P. Liang, A. Bagher Zadeh, and L. Morency (2018) Efficient low-rank multimodal fusion with modality-specific factors. Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). External Links: Link, Document Cited by: Low Rank Fusion based Transformers for Multimodal Sequences, §1, §2.1, §4.
  • R. Plutchik (2001) The nature of emotions human emotions have deep evolutionary roots, a fact that may explain their complexity and provide tools for clinical practice. American Scientist. Cited by: §1.
  • J. Posner, J. A. Russell, and B. S. Peterson (2005) The circumplex model of affect: an integrative approach to affective neuroscience, cognitive development, and psychopathology. Development and psychopathology 17 (03), pp. 715–734. Cited by: §1.
  • K. R. Scherer (1984) Emotion as a multicomponent process: a model and some cross-cultural data.. Review of Personality & Social Psychology. Cited by: §1.
  • Y. H. Tsai, S. Bai, P. P. Liang, J. Z. Kolter, L. Morency, and R. Salakhutdinov (2019) Multimodal transformer for unaligned multimodal language sequences. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Florence, Italy. Cited by: Low Rank Fusion based Transformers for Multimodal Sequences, 1st item, §1, §1, §2.2, Table 1, Table 2, Table 3, Table 4, Table 5, §3, §4, footnote 1.
  • A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin (2017) Attention is all you need. In Advances in Neural Information Processing Systems 30, I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett (Eds.), pp. 5998–6008. External Links: Link Cited by: §1, §2.2.
  • A. Zadeh, M. Chen, S. Poria, E. Cambria, and L. Morency (2017) Tensor fusion network for multimodal sentiment analysis. CoRR abs/1707.07250. External Links: Link, 1707.07250 Cited by: §2.1.
  • A. Zadeh, P. P. Liang, J. Vanbriesen, S. Poria, E. Cambria, M. Chen, and L. Morency (2018) Multimodal language analysis in the wild: cmu-mosei dataset and interpretable dynamic fusion graph. In Association for Computational Linguistics (ACL), Cited by: §1.
  • A. Zadeh, R. Zellers, E. Pincus, and L. Morency (2016) Multimodal sentiment intensity analysis in videos: facial gestures and verbal messages. IEEE Intelligent Systems 31 (6), pp. 82–88. Cited by: §1.