# Multimodal Fusion Method Based on Self-Attention Mechanism

Authors: Hu Zhu; Ze Wang; Yu Shi; Yingying Hua; Guoxia Xu; Lizhen Deng
Journal: Wireless Communications and Mobile Computing
 (2020)

---

## Abstract

Multimodal fusion is one of the popular research directions of multimodal research, and it is also an emerging research field of artificial intelligence. Multimodal fusion is aimed at taking advantage of the complementarity of heterogeneous data and providing reliable classification for the model. Multimodal data fusion is to transform data from multiple single-mode representations to a compact multimodal representation. In previous multimodal data fusion studies, most of the research in this field used multimodal representations of tensors. As the input is converted into a tensor, the dimensions and computational complexity increase exponentially. In this paper, we propose a low-rank tensor multimodal fusion method with an attention mechanism, which improves efficiency and reduces computational complexity. We evaluate our model through three multimodal fusion tasks, which are based on a public data set: CMU-MOSI, IEMOCAP, and POM. Our model achieves a good performance while flexibly capturing the global and local connections. Compared with other multimodal fusions represented by tensors, experiments show that our model can achieve better results steadily under a series of attention mechanisms.


---

## Body

## 1. Introduction

Multimodal integration has become a popular research direction in the field of artificial intelligence by virtue of its outstanding performance in various applications. Multimodal research has performed well in speech recognition [1], emotion recognition [2, 3], emotion analysis [4], speaker feature analysis [5], and media description [6].Multimodal fusion is an extremely important research direction and core technology in multimodal field research. Multimodal fusion is aimed at utilizing the complementary information present in multimodal data by combining multiple modalities. It is one of the challenges of multimodal fusion to extend fusion to multimodal while keeping the model and calculation complexity reasonable.Previous research methods used feature concatenation to fuse different data. These methods [7, 8] take the feature of the input concatenated as input, and some methods [9] even remove the temporal correlation in the modalities. Although these methods have been integrated at the beginning, it is precisely because of this that the interaction within the modal is suppressed at the beginning, causing the modalities to lose its overall correlation or even temporal dependencies.Some fusion methods [10, 11] use methods such as weighted average or majority voting to fuse modalities together, and these modalities have their own models in later stages. Each of these methods has an inevitable shortcoming. Since each model is modeled separately, the interaction of the modes is lost.At present, the latest methods [12, 13] try to use tensor representation to model the interactions between modes to solve those shortcomings. The extremely high-dimensional tensor representation caused by various forms of outer products puts a lot of pressure on the calculation speed and memory occupation. In [14], Liu et al. proposed to use the low-rank multipeak fusion method, which partially solves the problem of large calculation and complicated parameters due to tensor representation but lacks the consideration of the correlation between multiple unimodal inputs.An attention mechanism has been applied to various fields and has achieved satisfactory results. In [15], Wang et al. proposed “Residual Attention Network,” a convolutional neural network using an attention mechanism which can incorporate with the state-of-art feed forward network architecture in an end-to-end training fashion. Lin et al. proposed a novel structure-attention-based LSTM as a hierarchical structure model, which has an advantage in capturing the potential semantic structure. As for applications, Choi et al. [16] proposed a fine-grained attention mechanism for neural machine translation while Ge et al. [17] proposed a leveraged attention mechanism in video action recognition. Hsiao and Chen [18] proposed to integrate the attention mechanism into deep recurrent neural network models for speech emotion recognition. However, none of these previous works aimed at applying an attention mechanism in multimodal fusion.In this paper, we propose a novel low-rank multipeak fusion model based on a self-attention mechanism, which uses the low-rank weight tensor with an attention mechanism to make multipeak fusion more efficient and more globally relevant. The overall framework of our model is shown in Figure1. We evaluate the performance of our method through experiments on three multimodal fusion tasks on public data sets and also compare our experiments with the latest models. While reducing the complexity and parameters of the model, we are studying how to improve the applicability and stability of our model. To our knowledge, this is the first time that the self-attention mechanism has been applied to the low-rank factor of multimodal fusion. Compared with other tensor-based models, our model performs very well both in terms of efficiency and performance.Figure 1
Overview of our multimodal fusion model based on self-attention mechanism: the unimodal representationszv, za, andzl as input to MF (multimodal fusion), which were obtained by passing the unimodal inputs xv, xa, and xl into three subnetworks fv, fa, and fl, respectively. In MF, zv, za, and zl generate new unimodal representations zv′, za′, and zl′ through self-attention; then, zv′, za′, and zl′ produce an output representation by performing low-rank multimodal fusion with modality-specific factors. The output will be multimodal representation, which can be used for applying classification task.The main contributions of our paper are as follows:(i)
We propose low-rank multimodal fusion based on a self-attention mechanism, which can effectively improve the global correlation(ii)
While maintaining low parameter complexity and high calculation speed, our model has high adaptability and can be applied to various tasks(iii)
We provide the performance of our model on three multimodal tasks evaluated on public data sets compared to other latest models


## 2. Related Work

### 2.1. Tensor Representation Method

The tensor representation method is one of the most successful methods for multimodal fusion. The core of tensor representation is to convert the input representation into a high-dimensional tensor, and then map it to a lower-dimensional output vector space. Tensors are usually formed by multiplying the outer product by the input modality. The input tensorZ is calculated from the unimodal representation:
(1)Z=⊗n=1Nzn,zn∈ℝdn,where ⊗n=1N denotes the tensor outer product over a set of vectors indexed by n, and zn is the input representation.The input tensorZ∈ℝd1×d2×⋯×dN uses a linear layer f∙ to generate a vector representation:
(2)h=fZ;W;b=W·Z+b,h,b∈ℝy,where W denotes the weight of this layer and b represents the bias. Because Z is an N-order tensor, where N is the number of input modes, the weight W should be an N+1-order tensor. The dimension of the weight W is W∈ℝd1×d2×⋯×dN×dh, where the N+1th dimension is equal to the size of the output representation dh. Since W·Z is a dot product, the weight W can be regarded as dhNth order tensor.Due to the high dimension of tensorZ, the computational difficulty and model complexity of tensor fusion method are greatly improved. The dimension of tensor Z increases exponentially with the number of modes. This makes the tensor fusion method fail to perform more tasks at the same time, which reduces the adaptability of the model.


### 2.2. Low-Rank Tensor Representation Method

The low-rank multimodal fusion method is aimed at solving the shortcomings of the multimodal fusion model represented by a tensor with the method of decomposing the weightW into a set of low-rank factors.The method of degrading the weights in the multimodal fusion method represented by the low-rank tensor is to decompose the weightW into N fixed modalities. Because W∈ℝd1×d2×⋯×dN×dh can be regarded as dhNth order tensor, so our weight can be expressed as follows:
(3)Wm~∈ℝd1×d2×⋯×dN,m=1,⋯,dh.A deep understanding of formula (3), so Wm~ has the following exact decomposition of the vector in Equation (5). Each Wm~ contributes to one dimension in the vector h, so we can simplify Equation (2):
(4)hm=Wm~·Z,(5)Wm~=∑i=1R⊗n=1Nwn,mi,wn,mi∈ℝnd,where R is the rank of the tensor, which makes the decomposition most efficient.wn,min=1Ni=1Ris the decomposition factor of the original weight tensor based on rank R.In the above formulawn,min=1Ni=1R, we give the rank R a fixed value r, and the formula wn,min=1Ni=1r can be decomposed by the fixed rank, and the model is parameterized at the same time. We expand the vector wn,mi by m (where =1,⋯,dh) into a set of low-rank factors wni=wn,1i,wn,2i,⋯wn,dhi, so the wnii=1r is its corresponding low-rank factors. Therefore, the weights of the multimodal fusion method represented by tensor can be transformed into low-rank weight tensor:
(6)W=∑i=1r⊗n=1Nwni.Bring Equation (6) into Equation (2) to get the following a simplified low-rank tensor representation:
(7)h=W·Z=∑i=1r⊗n=1Nwni·⊗n=1Nzn=∑i=1r⊗n=1Nwni·⊗n=1Nzn=⋀n=1N∑i=1rwni·zn.We made a series of derivation changes in the above formula and finally turned the model calculated from an exponentially complex model into a linear model, where⋀n=1Nxn denotes the product of elements in the order of tensors: ⋀n=1Nxn=x1∘x2∘⋯∘xN.Compared with the original tensor representation method, the low-rank multimodal fusion method improves the calculation speed and reduces the complexity of the model. However, only a simple outer product operation is performed for each single mode, which largely ignores the correlation between each single mode and loses the global uniformity.


### 2.3. Attention Mechanism

Neural networks equipped with attention have parallelizable computation, lightweight structure, and the ability to capture both long-range and local dependencies. The core of the attention mechanism method is to measure the correlation betweenznand q. A compatibility function gzn,q generates score k, which can reflect the dependency between zn and q. The score is converted into a probability by function softmax, and finally, the probability is used as a weight.
(8)k=gzn,qn=1N,(9)pyz,q=softmaxk,(10)s=∑n=1Npy=nz,q·zn,where k is represented as a vector of n correlation scores. By applying k to the function softmax, we get a probability distribution about attention pyz,q. And s is the output vector for query q.In the attention mechanism, choosing different compatibility functionsgzn,q will have different experimental results. The different compatibility functions also directly lead to various categories of attention mechanisms. In this paper, the attention mechanism of our method uses the dot product attention compatibility function as follows:
(11)gzn,q=wd1zn,wd2q,where wd1, wd2 are learnable parameters, ∙,∙ denotes the inner product.


## 2.1. Tensor Representation Method

The tensor representation method is one of the most successful methods for multimodal fusion. The core of tensor representation is to convert the input representation into a high-dimensional tensor, and then map it to a lower-dimensional output vector space. Tensors are usually formed by multiplying the outer product by the input modality. The input tensorZ is calculated from the unimodal representation:
(1)Z=⊗n=1Nzn,zn∈ℝdn,where ⊗n=1N denotes the tensor outer product over a set of vectors indexed by n, and zn is the input representation.The input tensorZ∈ℝd1×d2×⋯×dN uses a linear layer f∙ to generate a vector representation:
(2)h=fZ;W;b=W·Z+b,h,b∈ℝy,where W denotes the weight of this layer and b represents the bias. Because Z is an N-order tensor, where N is the number of input modes, the weight W should be an N+1-order tensor. The dimension of the weight W is W∈ℝd1×d2×⋯×dN×dh, where the N+1th dimension is equal to the size of the output representation dh. Since W·Z is a dot product, the weight W can be regarded as dhNth order tensor.Due to the high dimension of tensorZ, the computational difficulty and model complexity of tensor fusion method are greatly improved. The dimension of tensor Z increases exponentially with the number of modes. This makes the tensor fusion method fail to perform more tasks at the same time, which reduces the adaptability of the model.


## 2.2. Low-Rank Tensor Representation Method

The low-rank multimodal fusion method is aimed at solving the shortcomings of the multimodal fusion model represented by a tensor with the method of decomposing the weightW into a set of low-rank factors.The method of degrading the weights in the multimodal fusion method represented by the low-rank tensor is to decompose the weightW into N fixed modalities. Because W∈ℝd1×d2×⋯×dN×dh can be regarded as dhNth order tensor, so our weight can be expressed as follows:
(3)Wm~∈ℝd1×d2×⋯×dN,m=1,⋯,dh.A deep understanding of formula (3), so Wm~ has the following exact decomposition of the vector in Equation (5). Each Wm~ contributes to one dimension in the vector h, so we can simplify Equation (2):
(4)hm=Wm~·Z,(5)Wm~=∑i=1R⊗n=1Nwn,mi,wn,mi∈ℝnd,where R is the rank of the tensor, which makes the decomposition most efficient.wn,min=1Ni=1Ris the decomposition factor of the original weight tensor based on rank R.In the above formulawn,min=1Ni=1R, we give the rank R a fixed value r, and the formula wn,min=1Ni=1r can be decomposed by the fixed rank, and the model is parameterized at the same time. We expand the vector wn,mi by m (where =1,⋯,dh) into a set of low-rank factors wni=wn,1i,wn,2i,⋯wn,dhi, so the wnii=1r is its corresponding low-rank factors. Therefore, the weights of the multimodal fusion method represented by tensor can be transformed into low-rank weight tensor:
(6)W=∑i=1r⊗n=1Nwni.Bring Equation (6) into Equation (2) to get the following a simplified low-rank tensor representation:
(7)h=W·Z=∑i=1r⊗n=1Nwni·⊗n=1Nzn=∑i=1r⊗n=1Nwni·⊗n=1Nzn=⋀n=1N∑i=1rwni·zn.We made a series of derivation changes in the above formula and finally turned the model calculated from an exponentially complex model into a linear model, where⋀n=1Nxn denotes the product of elements in the order of tensors: ⋀n=1Nxn=x1∘x2∘⋯∘xN.Compared with the original tensor representation method, the low-rank multimodal fusion method improves the calculation speed and reduces the complexity of the model. However, only a simple outer product operation is performed for each single mode, which largely ignores the correlation between each single mode and loses the global uniformity.


## 2.3. Attention Mechanism

Neural networks equipped with attention have parallelizable computation, lightweight structure, and the ability to capture both long-range and local dependencies. The core of the attention mechanism method is to measure the correlation betweenznand q. A compatibility function gzn,q generates score k, which can reflect the dependency between zn and q. The score is converted into a probability by function softmax, and finally, the probability is used as a weight.
(8)k=gzn,qn=1N,(9)pyz,q=softmaxk,(10)s=∑n=1Npy=nz,q·zn,where k is represented as a vector of n correlation scores. By applying k to the function softmax, we get a probability distribution about attention pyz,q. And s is the output vector for query q.In the attention mechanism, choosing different compatibility functionsgzn,q will have different experimental results. The different compatibility functions also directly lead to various categories of attention mechanisms. In this paper, the attention mechanism of our method uses the dot product attention compatibility function as follows:
(11)gzn,q=wd1zn,wd2q,where wd1, wd2 are learnable parameters, ∙,∙ denotes the inner product.


## 3. Our Methods

### 3.1. Overview

The method proposed in this paper is an improvement to the low-rank multimodal fusion method and an effective improvement to the input modal based on the low-rank multimodal fusion method. We propose a novel self-attention mechanism and apply it between input modalities to improve the correlation and local dependence among various modalities. We pay more attention to the improvement of the self-mode, so we choose to use the self-attention mechanism instead of the traditional attention mechanism model. Since our model does not introduce redundant parameters, our model maintains a low complexity while improving accuracy. In addition, our self-attention module uses parallel computing, which makes the calculation speed greatly improved compared with the traditional attention mechanism model. Compared with the model using traditional attention mechanism, our model has lower complexity and faster running speed.


### 3.2. Network Architecture

The overall framework of our network model is shown in Figure1. Our model network is composed of three parts, namely, the extraction module, fusion module, and classification module. The fusion module is the core part of our model, which is what we will focus on next. The task of the extraction module is to transform the unimodal inputs xv, xa, and xl into unimodal representation s zv, za, and zl through the subnetworks fv, fa, and fl. The unimodal representation obtained by the extraction module is expressed in the form of tensor, which is more convenient for the following calculation. And the fusion module contains a self-attention module for each unimodal representation. The unimodal representation enters the fusion module and generates a unimodal representation with new weights through a self-attention mechanism. Observing our network model, we do not need to directly calculate the input tensor Z, we first decompose zv, za, and z1 in low rank to get zv, za, and z1,then assign the corresponding weights Wv, Wa, W1 to each factor, and finally sum them with the weights, which greatly reduces the complexity of our model and reduces the calculation pressure. Finally, the input tensor passing through the self-attention module generates the output tensor in the fusion module, which is the final output result that can be used for classification.


### 3.3. Self-Attention Module

Since each unimodal has different information, the purpose of multimodal fusion is to make full use of the complementary information of multimodal data. We note that the self-attention module also has the ability to capture the global and local connections, so the most prominent part of our contribution in this article is to propose the introduction of the self-attention module into multimodal fusion. In the self-attention module, we use a different output vector calculation method than the traditional attention mechanism. This new method can perfectly meet the requirements of our simultaneous input of multiple tasks and realize parallel computing. The self-attention model we proposed is a weighted self-attention in proportion, which includes multitask self-attention. Our self-attention model formula is as follows:(12)s=vsoftmaxqTkdqT,s=s1,s2,⋯,sn∈ℝdi×n.The three parametersq,k, and v of Equation (12) all conform to this equation q,k,v=φq,k,vzn, which means that all three input parameters come from the same source, where v∈ℝdi×n,k∈ℝdn×i,q∈ℝdi×n. For the multitask attention mechanism, the input will be projected into multiple subspaces. This parameter uniformly scales the dot product attention to be embedded in each subspace.Sinces=s1,s2,⋯,sn∈ℝdi×n is a series of output vectors of q, k, and v, therefore, s is a series of output vectors of zn, we derive the following equation:
(13)zn′=si,zn′∈ℝdn,where zn′ is the new unimodal representation generated by the self-attention module. In this way, the self-attention between our single modes is completed. Bring Equation (13) into Equation (7) and simplify it as follows:
(14)h=W·Z=∑i=1r⊗n=1Nwni·⊗n=1Nzn′=⋀n=1N∑i=1rwni·zn′.It can be seen from formula (14) that the formula is consistent with the model we have shown. First, superimpose each weighting factor, then do element product between each single module.Since we are merging multiple tasks at the same time, we will show below that whenn=2, our formula will expand to formula (15):
(15)h=⋀n=12∑i=1rw1i⨂w2i·zn′=∑i=1rw1i·z1′∘∑i=1rw2i·z2′.In this way, we can appropriately expand the formula according to the actual situation. It can be seen that the proposed method has high adaptability and can be flexibly applied in various tasks. In our self-attention module, we can see that our new input representation represents multiple tasks applied to multimodal fusion. And our self-attention module uses parallel computing to improve the accuracy of the model while maintaining a high speed of model calculation.


### 3.4. Training Loss

Our model adopts the mean absolute error (MAE) as our loss function. MAE is the average value of absolute error, which can better reflect the actual situation of classification error and can also reflect the classification performance of our model.(16)MAE=∑i=1nhi−hiPn,where hi is the output tensor we got through our model and hiP is the classified value. n represents the total number of our training samples.


## 3.1. Overview

The method proposed in this paper is an improvement to the low-rank multimodal fusion method and an effective improvement to the input modal based on the low-rank multimodal fusion method. We propose a novel self-attention mechanism and apply it between input modalities to improve the correlation and local dependence among various modalities. We pay more attention to the improvement of the self-mode, so we choose to use the self-attention mechanism instead of the traditional attention mechanism model. Since our model does not introduce redundant parameters, our model maintains a low complexity while improving accuracy. In addition, our self-attention module uses parallel computing, which makes the calculation speed greatly improved compared with the traditional attention mechanism model. Compared with the model using traditional attention mechanism, our model has lower complexity and faster running speed.


## 3.2. Network Architecture

The overall framework of our network model is shown in Figure1. Our model network is composed of three parts, namely, the extraction module, fusion module, and classification module. The fusion module is the core part of our model, which is what we will focus on next. The task of the extraction module is to transform the unimodal inputs xv, xa, and xl into unimodal representation s zv, za, and zl through the subnetworks fv, fa, and fl. The unimodal representation obtained by the extraction module is expressed in the form of tensor, which is more convenient for the following calculation. And the fusion module contains a self-attention module for each unimodal representation. The unimodal representation enters the fusion module and generates a unimodal representation with new weights through a self-attention mechanism. Observing our network model, we do not need to directly calculate the input tensor Z, we first decompose zv, za, and z1 in low rank to get zv, za, and z1,then assign the corresponding weights Wv, Wa, W1 to each factor, and finally sum them with the weights, which greatly reduces the complexity of our model and reduces the calculation pressure. Finally, the input tensor passing through the self-attention module generates the output tensor in the fusion module, which is the final output result that can be used for classification.


## 3.3. Self-Attention Module

Since each unimodal has different information, the purpose of multimodal fusion is to make full use of the complementary information of multimodal data. We note that the self-attention module also has the ability to capture the global and local connections, so the most prominent part of our contribution in this article is to propose the introduction of the self-attention module into multimodal fusion. In the self-attention module, we use a different output vector calculation method than the traditional attention mechanism. This new method can perfectly meet the requirements of our simultaneous input of multiple tasks and realize parallel computing. The self-attention model we proposed is a weighted self-attention in proportion, which includes multitask self-attention. Our self-attention model formula is as follows:(12)s=vsoftmaxqTkdqT,s=s1,s2,⋯,sn∈ℝdi×n.The three parametersq,k, and v of Equation (12) all conform to this equation q,k,v=φq,k,vzn, which means that all three input parameters come from the same source, where v∈ℝdi×n,k∈ℝdn×i,q∈ℝdi×n. For the multitask attention mechanism, the input will be projected into multiple subspaces. This parameter uniformly scales the dot product attention to be embedded in each subspace.Sinces=s1,s2,⋯,sn∈ℝdi×n is a series of output vectors of q, k, and v, therefore, s is a series of output vectors of zn, we derive the following equation:
(13)zn′=si,zn′∈ℝdn,where zn′ is the new unimodal representation generated by the self-attention module. In this way, the self-attention between our single modes is completed. Bring Equation (13) into Equation (7) and simplify it as follows:
(14)h=W·Z=∑i=1r⊗n=1Nwni·⊗n=1Nzn′=⋀n=1N∑i=1rwni·zn′.It can be seen from formula (14) that the formula is consistent with the model we have shown. First, superimpose each weighting factor, then do element product between each single module.Since we are merging multiple tasks at the same time, we will show below that whenn=2, our formula will expand to formula (15):
(15)h=⋀n=12∑i=1rw1i⨂w2i·zn′=∑i=1rw1i·z1′∘∑i=1rw2i·z2′.In this way, we can appropriately expand the formula according to the actual situation. It can be seen that the proposed method has high adaptability and can be flexibly applied in various tasks. In our self-attention module, we can see that our new input representation represents multiple tasks applied to multimodal fusion. And our self-attention module uses parallel computing to improve the accuracy of the model while maintaining a high speed of model calculation.


## 3.4. Training Loss

Our model adopts the mean absolute error (MAE) as our loss function. MAE is the average value of absolute error, which can better reflect the actual situation of classification error and can also reflect the classification performance of our model.(16)MAE=∑i=1nhi−hiPn,where hi is the output tensor we got through our model and hiP is the classified value. n represents the total number of our training samples.


## 4. Experiment

### 4.1. Experimental Environment

Our tensor representation method is generally based on a tensor fusion network, but the biggest difference from this network is that our method uses a self-attention mechanism in the MF module. In the experiment, we compared our method with some of the latest multimodal fusion methods. Our experiment environment is 2080Ti∗2 Graphic Processing Unit (GPU), 32 G memory, 12 Intel(R) Xeon(R) W-2133 CPU @ 3.60 GHz. Our model training and testing are completed on CONDA 4.8.3, python3.7.7, and pytorch 1.5.0.


### 4.2. Data sets

We conduct our experiments on multimodal data sets; they are CMU-MOSI [19], IEMOCAP [20], and POM [6]. These data sets provide data for sentiment analysis, speaker feature recognition, and emotion recognition. The goal of our experiment is to identify the speaker’s emotions through these verbal or nonverbal behaviors.


#### 4.2.1. IEMOCAP

This IEMOCAP data set is a collection of 151 recorded dialogue videos; each dialogue video has two speakers, so the entire data set has a total of 302 videos. Each video is marked with 9 emotions (angry, excited, fear, sad, surprised, frustrated, happy, disappointed, and neutral).


#### 4.2.2. POM

The POM data set consists of 903 movie review videos, and the speakers of each video are marked with confidence, enthusiasm, and other characteristics.


#### 4.2.3. CMU-MOSI

93 movie review videos on YouTube make up the data set CMU-MOSI. Each video contains multiple opinion segments, and each segment has tags about the opinion on sentiment.


### 4.3. Comparisons

We compare the results of our method with the following baselines and state-of-the-art models: support vector machines (SVM) [21], deep fusion model (DF) [11], bidirectional contextual LSTM (BC-LSTM) [13], multiview LSTM (MVLSTM) [22], low-rank multimodal fusion network (LMF) [23], and hierarchical polynomial fusion network (HPFN) [24]. We report mean absolute error (MAE) and accuracy of classification, F1 score, and Pearson’s correlation (Corr).


### 4.4. Evaluation Metrics

We report four evaluation metrics as used by our multiple task: F1-emotion, accuracy Acc-k where k is the number of classes, mean absolute error (MAE), and Pearson’s correlation (Corr). Among those metrics, F1-emotion is the score of the model under different emotions; as a statistical measure of the accuracy of a binary classification model, it can be viewed as a weighted average of the model accuracy and recall with a maximum of 1and a minimum of 0. Accuracy (Acc) is defined as the percentage of the total sample that classifies the correct result. Mean absolute error (MAE) reflects the classification performance as we reported before. Pearson’s correlation (Corr) considers the degree of correlation among variables.


### 4.5. Implementation Details

We use the CANDECOMP/PARAFAC(CP) decomposition format as the tensor networks in our experiments as we mentioned in Equation (6). Following LMF, we choose the candidate CP ranks {1, 4, 8, 16}.The result in different ranks are reported in Figure 2.Figure 2
Results for recognition in different rank on IEMPCAP, POM, and CMU-MOSI.


### 4.6. Experimental Data Analysis

We compare our method’s performance on the three tasks of sentiment analysis, speaker feature recognition, and sentiment recognition with the previous models with excellent performance. The results are shown in Table1. In all data sets, our approach can produce competitive and consistent results across metrics such as F1, Corr, Acc, and MAE.Table 1
Results for emotion recognition on IEMPCAP, personality trait recognition on POM, and sentiment analysis on CMU-MOSI.
Data setIEMOCAPPOMCMU-MOSIMetricF1-happyF1-sadF1-angryF1-neutralMAECorrAccMAECorrAcc-2F1Acc-7SVM81.578.882.464.90.88710.433.91.8640.05750.250.117.5DF81.081.265.444.00.86914.434.11.1430.51872.372.126.8BC-LSTM81.781.784.264.10.84027.834.81.0790.58173.973.928.7MV-LSTM81.374.084.366.70.89127.034.61.0190.60173.974.033.2LMF85.285.887.471.70.83732.336.81.0710.57173.373.330.0HPFN85.786.287.871.90.84035.636.70.9750.60173.073.135.1Our methods85.786.387.671.90.83452.336.71.0320.61074.173.030.5Best results are italicized.On the emotion recognition task, our model got the highest score on three emotions scored by F1. The results verify that our method outperforms other traditional method and is close to the state-of-the-art approaches.On the multimodal personality trait recognition task, our model also achieved competitive results. Although LMF achieved a high score on the ACC indicator, our score is only 0.1 less than the LMF score.On the multimodal sentiment analysis task, our model performs very well on performance indicators Corr and Acc-2. Nonetheless, our method scored only 0.057 less than the highest on MAE. All in all, our method perfectly completes the multimodal sentiment regression task.


### 4.7. Influence of Rank Setting

In the experiment, the parameters changed by the actual situation often have a great influence on the experimental results. The different rank settings in our model will indeed affect the experimental results. In order to prove that our model can stand out in various tasks and has a high adaptability, we propose a new experiment, in which, we constantly set different values for rank to observe the effect of changes in rank on the experimental results.In the experiment of the influence of rank on the experimental results, our other parameters are set as follows: the dropout of audio and video are both set to 0.2, and the text dropout is set to 0.5. For some other parameters, the learning rate is set to 0.001, batch size is set to 32, and the weight decay is set to 0.01.To evaluate the impact of different level settings on our model, we measured the performance change of MAE in the CMU-MOSI data set while changing the number of levels. The results are shown in Figure3. We have observed that although the rank value is constantly increasing, our training results have remained stable. Therefore, it can be seen that our model is not sensitive to rank, no matter what the rank is, the performance of our model can always remain stable. In some cases where the rank value is high, our model can still be adapted and used.Figure 3
The effect of different level settings on the model performance: as the level increases, the results do not change significantly.


## 4.1. Experimental Environment

Our tensor representation method is generally based on a tensor fusion network, but the biggest difference from this network is that our method uses a self-attention mechanism in the MF module. In the experiment, we compared our method with some of the latest multimodal fusion methods. Our experiment environment is 2080Ti∗2 Graphic Processing Unit (GPU), 32 G memory, 12 Intel(R) Xeon(R) W-2133 CPU @ 3.60 GHz. Our model training and testing are completed on CONDA 4.8.3, python3.7.7, and pytorch 1.5.0.


## 4.2. Data sets

We conduct our experiments on multimodal data sets; they are CMU-MOSI [19], IEMOCAP [20], and POM [6]. These data sets provide data for sentiment analysis, speaker feature recognition, and emotion recognition. The goal of our experiment is to identify the speaker’s emotions through these verbal or nonverbal behaviors.


### 4.2.1. IEMOCAP

This IEMOCAP data set is a collection of 151 recorded dialogue videos; each dialogue video has two speakers, so the entire data set has a total of 302 videos. Each video is marked with 9 emotions (angry, excited, fear, sad, surprised, frustrated, happy, disappointed, and neutral).


### 4.2.2. POM

The POM data set consists of 903 movie review videos, and the speakers of each video are marked with confidence, enthusiasm, and other characteristics.


### 4.2.3. CMU-MOSI

93 movie review videos on YouTube make up the data set CMU-MOSI. Each video contains multiple opinion segments, and each segment has tags about the opinion on sentiment.


## 4.2.1. IEMOCAP

This IEMOCAP data set is a collection of 151 recorded dialogue videos; each dialogue video has two speakers, so the entire data set has a total of 302 videos. Each video is marked with 9 emotions (angry, excited, fear, sad, surprised, frustrated, happy, disappointed, and neutral).


## 4.2.2. POM

The POM data set consists of 903 movie review videos, and the speakers of each video are marked with confidence, enthusiasm, and other characteristics.


## 4.2.3. CMU-MOSI

93 movie review videos on YouTube make up the data set CMU-MOSI. Each video contains multiple opinion segments, and each segment has tags about the opinion on sentiment.


## 4.3. Comparisons

We compare the results of our method with the following baselines and state-of-the-art models: support vector machines (SVM) [21], deep fusion model (DF) [11], bidirectional contextual LSTM (BC-LSTM) [13], multiview LSTM (MVLSTM) [22], low-rank multimodal fusion network (LMF) [23], and hierarchical polynomial fusion network (HPFN) [24]. We report mean absolute error (MAE) and accuracy of classification, F1 score, and Pearson’s correlation (Corr).


## 4.4. Evaluation Metrics

We report four evaluation metrics as used by our multiple task: F1-emotion, accuracy Acc-k where k is the number of classes, mean absolute error (MAE), and Pearson’s correlation (Corr). Among those metrics, F1-emotion is the score of the model under different emotions; as a statistical measure of the accuracy of a binary classification model, it can be viewed as a weighted average of the model accuracy and recall with a maximum of 1and a minimum of 0. Accuracy (Acc) is defined as the percentage of the total sample that classifies the correct result. Mean absolute error (MAE) reflects the classification performance as we reported before. Pearson’s correlation (Corr) considers the degree of correlation among variables.


## 4.5. Implementation Details

We use the CANDECOMP/PARAFAC(CP) decomposition format as the tensor networks in our experiments as we mentioned in Equation (6). Following LMF, we choose the candidate CP ranks {1, 4, 8, 16}.The result in different ranks are reported in Figure 2.Figure 2
Results for recognition in different rank on IEMPCAP, POM, and CMU-MOSI.


## 4.6. Experimental Data Analysis

We compare our method’s performance on the three tasks of sentiment analysis, speaker feature recognition, and sentiment recognition with the previous models with excellent performance. The results are shown in Table1. In all data sets, our approach can produce competitive and consistent results across metrics such as F1, Corr, Acc, and MAE.Table 1
Results for emotion recognition on IEMPCAP, personality trait recognition on POM, and sentiment analysis on CMU-MOSI.
Data setIEMOCAPPOMCMU-MOSIMetricF1-happyF1-sadF1-angryF1-neutralMAECorrAccMAECorrAcc-2F1Acc-7SVM81.578.882.464.90.88710.433.91.8640.05750.250.117.5DF81.081.265.444.00.86914.434.11.1430.51872.372.126.8BC-LSTM81.781.784.264.10.84027.834.81.0790.58173.973.928.7MV-LSTM81.374.084.366.70.89127.034.61.0190.60173.974.033.2LMF85.285.887.471.70.83732.336.81.0710.57173.373.330.0HPFN85.786.287.871.90.84035.636.70.9750.60173.073.135.1Our methods85.786.387.671.90.83452.336.71.0320.61074.173.030.5Best results are italicized.On the emotion recognition task, our model got the highest score on three emotions scored by F1. The results verify that our method outperforms other traditional method and is close to the state-of-the-art approaches.On the multimodal personality trait recognition task, our model also achieved competitive results. Although LMF achieved a high score on the ACC indicator, our score is only 0.1 less than the LMF score.On the multimodal sentiment analysis task, our model performs very well on performance indicators Corr and Acc-2. Nonetheless, our method scored only 0.057 less than the highest on MAE. All in all, our method perfectly completes the multimodal sentiment regression task.


## 4.7. Influence of Rank Setting

In the experiment, the parameters changed by the actual situation often have a great influence on the experimental results. The different rank settings in our model will indeed affect the experimental results. In order to prove that our model can stand out in various tasks and has a high adaptability, we propose a new experiment, in which, we constantly set different values for rank to observe the effect of changes in rank on the experimental results.In the experiment of the influence of rank on the experimental results, our other parameters are set as follows: the dropout of audio and video are both set to 0.2, and the text dropout is set to 0.5. For some other parameters, the learning rate is set to 0.001, batch size is set to 32, and the weight decay is set to 0.01.To evaluate the impact of different level settings on our model, we measured the performance change of MAE in the CMU-MOSI data set while changing the number of levels. The results are shown in Figure3. We have observed that although the rank value is constantly increasing, our training results have remained stable. Therefore, it can be seen that our model is not sensitive to rank, no matter what the rank is, the performance of our model can always remain stable. In some cases where the rank value is high, our model can still be adapted and used.Figure 3
The effect of different level settings on the model performance: as the level increases, the results do not change significantly.


## 5. Conclusion

In this paper, we propose a multipeak fusion method based on a self-attention mechanism. This method uses a low-rank tensor representation, and the attention mechanism is used in tensor representation to improve the correlation between multiple representations. Our method achieves competitive results in different multimodal fusion tasks in different data sets. Our method reduces the complexity of the parameters while also reducing the measurement complexity. It is a novel attempt to apply the attention mechanism to multimodal fusion, and it shows higher efficiency and better performance on different downstream tasks. The application of the attention mechanism makes our model have higher classified ability under the premise of few parameters and high efficiency. In the experiment, our method performs better than the multimodal fusion method represented only by low-rank tensor.



---

*Source: 8843186-2020-09-23.xml*