Elamur Research

Multimodal End-to-End Sparse Model for Emotion Recognition

Paper · 2021 · Wenliang Dai, Samuel Cahyawijaya, Zihan Liu et al.

Summary

The words in an utterance give only part of the evidence for an emotion. The speaker’s voice and face can reinforce those words or supply cues of their own. Earlier systems typically converted audio and video into fixed measurements before learning to recognize emotions. Dai and colleagues ask what changes when the prediction task can also shape the features extracted from those signals. Their study addresses a problem shared by research on sentiment and emotion.

The authors build a system that learns from transcripts, audio spectrograms, and video frames. A spectrogram represents how the strength of different sound frequencies changes over time. The system learns audio and visual features jointly with the rest of the classifier. To make that training possible, the authors reconstruct utterance clips from IEMOCAP and CMU-MOSEI and create splits that can be used to compare learned features with fixed ones. On the rebuilt IEMOCAP test split, the dense end-to-end system reaches an average accuracy of 84.5 and an average F1 of 58.8. The strongest baseline scores on those metrics are 78.8 and 56.9, respectively. On the rebuilt CMU-MOSEI test split, the dense system reaches an average weighted accuracy of 67.6 and an average binary F1 of 47.4, ahead of the fixed-feature baselines on both averages.

Learning from less processed inputs makes feature extraction more expensive. The authors therefore introduce a sparse version, MESM, that uses the transcript to help decide which locations in the video and spectrogram feature maps should receive further computation. It keeps locations that together carry a chosen share of the attention and runs sparse convolutions over the resulting maps. At the reported IEMOCAP setting, average accuracy is 84.4 and the feature extraction count is 5.18 versus 8.65 for the dense system, on the paper’s ×10⁹ FLOPs scale. On CMU-MOSEI, the sparse version reaches 66.8 average weighted accuracy with a count of 4.34 on the same scale.

The results show where that trade can work and where it has limits. Removing input streams lowers aggregate performance in the tested configurations, and text is the strongest stream by itself in the dense IEMOCAP comparison. Visualizations show that the sparse system frequently keeps areas around the mouth and eyes, while some examples miss regions associated with the annotated emotion. More aggressive filtering also reduces recognition performance. The demonstrated saving concerns feature extraction work, and the reported scores apply to the authors’ reconstructed test splits.

Deep dive: Multimodal End-to-End Sparse Model for Emotion Recognition

Dai and colleagues train emotion recognition directly on text, audio, and video, then use text to guide where the system spends computation. · about 33 minutes to read

The problem and its context

What the classifier has to learn

The paper treats emotion recognition as a decision about an utterance, a segment of speech with a transcript and a corresponding stretch of audio and video. Its inputs describe the same utterance in different ways. The transcript encodes the words, the acoustic stream carries aspects of how they are spoken, and the images show the speaker’s face. The authors’ starting point is that these sources can supply complementary evidence as well as reinforce one another. A useful classifier must learn a representation of each source and decide how to use them together.

Those jobs can be divided at different points. A system can begin with visual measurements designed to capture facial movements, then learn which measured movements matter for the supplied categories. Alternatively, it can learn the visual measurements while learning the classification task. In the first design, a classification error can change the way a facial measurement is used. In the second design, it can also help change what is measured. The paper investigates the consequences of moving that boundary.

The authors identify several drawbacks to fixing the measurements in advance. A feature extractor chosen before training may leave out cues that the target labels would have made worth preserving. The classifier cannot recover details that its inputs omit. A different target task may also need a different set of hand-selected extraction procedures. Finally, a compact, pre-defined representation can summarize relatively few aspects of the signal. That economy is useful when the selected measurements suffice, but it restricts what evidence the recognition system can discover.

This matters even when the features are sensible. Describing facial muscle movement gives a visual classifier information plausibly connected to expression. Describing the spectrum of the voice similarly gives an acoustic classifier evidence about the way an utterance was delivered. The question is whether those summaries capture everything useful to the particular labels and data. A more flexible fusion stage can discover richer combinations of the information it receives. Giving the extractor access to the training objective changes which information can reach that stage in the first place.

Where earlier fusion methods operated

The paper places its work in a line of research on affective tasks that use multiple inputs, including emotion recognition, sentiment analysis, and personality trait recognition. It describes early fusion and late fusion as common approaches in earlier work. Early fusion brings streams together before the final decisions are formed. Late fusion lets each stream make a more developed contribution, then combines those contributions closer to the output. This distinction says where streams meet. It leaves open how the representation of each stream was obtained.

The paper also describes methods that explicitly construct interactions. Tensor Fusion Network builds combinations by taking a Cartesian product across the modalities. In practical terms, the product makes combinations of feature values available to the learner. Another cited approach uses an attention gate through which visual and acoustic features can alter word representations. The common concern is how one stream should change the way another is used. These techniques work with representations already extracted from the signals. One of the precedents is the Tensor Fusion Network.

Another concern is time. A word sequence, a stream of acoustic measurements, and a sequence of images naturally have different lengths and timesteps. The paper describes a Transformer-based approach that can operate on such streams without requiring their sequence positions to match. It also discusses a multimodal adaptation gate that integrates visual and acoustic cues into a large pretrained text system. These examples show what the authors mean by a powerful downstream learner in a two-phase pipeline. Among the systems discussed are the Multimodal Transformer and Integrating Multimodal Information in Large Pretrained Transformers.

The authors also point to work in other multimodal tasks that had already used end-to-end learning. Their question is specific to the setup they describe for emotion recognition. The established systems they discuss could learn across text, audio, and video once features were available, while their audio and visual representations came from a separate stage. Dai and colleagues move the learning objective into that stage, then ask how much of the resulting feature computation is necessary.

Why learning the features creates a second problem

A trainable visual extractor sees much more than a compact description of facial movements. A trainable audio extractor similarly has access to a spectrogram with many locations per time chunk. Processing everything gives the classifier more opportunity to discover useful patterns, and the authors also identify extra computation, irrelevant information, and possible overfitting as costs of that choice. A feature extractor that has access to a fuller signal still needs a way to concentrate its work.

The sparse proposal exploits a distinction between obtaining a preliminary view of an input and continuing to process every location in that view. An inexpensive decision about where to look can precede more expensive layers. In this paper the transcript helps make that decision for both audio and video. The same text can be used to evaluate a sequence of images or a sequence of time-frequency maps, even though the axes of those maps have different meanings. That design puts the interaction between modalities inside feature extraction, as well as at the eventual decision.

A practical obstacle comes before any of this. The target label belongs to an utterance, and the signals have to be recovered for that utterance before they can train an extractor. A split expressed in terms of anonymous precomputed examples gives the experimenter no reliable way to retrieve the corresponding clips. The authors therefore treat data reconstruction as part of the research. It determines which inputs and labels can train the proposed systems and which examples can be used to compare them with the earlier pipeline.

The method, step by step

Reconstruct the utterances

The first step is to give each training item a transcript, the accompanying audio, the accompanying frames, and the annotation for that segment. The authors refer to this as aligning the modalities. Here that means recovering the same utterance interval across the streams. An image sequence can still have a different length from the text or the acoustic sequence. A matched clip gives the classifier a common example without asking it to interpret a given word, frame, and spectrogram chunk as samples taken at the same instant.

For IEMOCAP, the authors use 151 videos of dyadic English conversations performed by professional actors. The dataset has nine emotion categories, and they retain six because the labels are imbalanced. The retained set covers anger, excitement, frustration, happiness, neutrality, and sadness. The transcription timestamps supply the boundaries for cutting utterance clips, yielding 7,380 samples. A sample includes audio at 16 kHz, the corresponding transcript, and image frames sampled at 30 Hz. The earlier processed examples lack the identifiers the authors need to recover the existing split from the recordings.

The authors respond by allocating IEMOCAP utterance data randomly to training, validation, and testing in shares of 70%, 10%, and 20%. The reconstructed split sets the terms of the comparison. A recognizer that consumes fixed features can still be trained on these utterances by extracting its features anew. A recognizer that needs the frames and sound has access to the same underlying items. Keeping both kinds of system on the rebuilt split is what makes their results directly comparable within the experiment.

CMU-MOSEI begins with 3,837 videos from 1,000 speakers. Its categories cover happiness, sadness, anger, fear, disgust, and surprise, and the corpus has 23,259 annotated utterances. Each input has a transcript, audio sampled at 44.1 kHz, and video frames sampled at 30 Hz. The authors generate clips from the public recordings. They can match the generated utterances to preprocessed data, but find examples whose modalities are misaligned. They also report that the standard split distributed through the CMU MultiModal SDK and the generated data have samples missing in both directions. The original dataset is described in the CMU-MOSEI paper.

The cleaning step leaves 20,477 CMU-MOSEI clips. For those data the authors follow the split used for the dataset’s sentiment classification task when creating the new emotion recognition split. The two reconstruction procedures address different obstacles. IEMOCAP needs a fresh allocation because the earlier example identities cannot be traced back. CMU-MOSEI needs cleaning and a split that can be applied to the recovered utterances. In both cases the annotation and the raw material behind its input features can now be associated reliably enough to run the experiment.

Represent each stream and predict from it

The paper writes the collection of inputs as follows.

X = {(tᵢ, aᵢ, vᵢ) ∣ i = 1, …, I}

Here X is the collection of input utterances. The index i identifies an utterance, and I is the number of examples in the collection. For that example, tᵢ is the sequence of text units, aᵢ is the sequence of acoustic spectrogram chunks, and vᵢ is the sequence of RGB video frames. The braces collect those tuples, and the vertical bar introduces the range of example indices.

Y = {yᵢ ∣ i = 1, …, I}

Y is the collection of annotations. The symbol yᵢ denotes the annotation for utterance i, with I again marking the end of the range. The shared index is the link between an input tuple and its target. It does not impose any correspondence between internal sequence positions across the tuple.

Before the learnable acoustic extractor receives its input, the waveform is turned into a mel-spectrogram. This form of spectrogram arranges frequency information on a mel scale and exposes a grid over time and frequency. The paper uses a 25 ms analysis window with a 12.5 ms stride, the distance between successive windows. It then groups the resulting spectrogram into 400 ms windows. Each chunk can be processed locally, and the succession of chunks lets the acoustic branch represent how the utterance develops.

For visual input, the authors locate faces in the frames with MTCNN before passing those regions to the visual extractor. They give GPU memory use and consistency with face-based baselines as their reasons. Each frame thus contributes a face region to the learnable branch. The operation also establishes the area within which the later sparse attention can choose locations. In particular, the sparse attention starts from a facial representation whose field of view has already been selected.

The text processing differs between the end-to-end systems and the baselines. The baseline uses word tokenization. The end-to-end systems use sub-word tokenization, which lets the text sequence include pieces of words. The training description gives a text limit of 50 tokens. The appendix also lists 100 under maximum text length for some configurations, so the training description and appendix should be read with that difference in view. The form of preprocessing used by the end-to-end branch is subword tokenization.

In the dense system, FE2E, the acoustic and visual branches use a pretrained 11-layer VGG convolutional network. A convolution applies the same learned local operation at different positions, producing maps of responses. Each spectrogram chunk and each video frame is processed by the extractor for its stream. A linear transformation turns the result at that timestep into a vector. Repeating the operation across chunks or frames gives a sequence of vectors on which the later sequence encoder can operate. The convolutional architecture comes from the work on VGG.

The architecture then uses a Transformer to encode the sequences. Positional embeddings supply information about the order of the vectors. The text branch sends its token sequence directly into its Transformer, while the other branches get vectors from their convolutional extractors. The authors use the output at a special CLS position as an utterance representation for each branch. A feed-forward network maps that representation to classification scores. The paper builds this part on the Transformer and attention.

Each stream therefore contributes predictions at the level where the annotation is defined. The authors take a weighted sum of the modality scores to obtain the final score. This is a form of late fusion. The dense design makes it possible to learn features and output decisions jointly while keeping a direct route from each modality to a set of utterance-level scores. The sparse design retains the score combination and introduces another interaction earlier, where text helps decide which acoustic and visual features will be processed.

Use the transcript to reduce the work

The sparse architecture, MESM, first obtains low-level features with an ordinary convolutional layer. It replaces the later dense convolutional layers with N cross-modal sparse blocks. In this architecture description, N is the number of replacement blocks. Each block contains an attention layer followed by two sparse VGG layers and a sparse max-pooling layer. The attention layer selects locations. The convolutional and pooling layers then operate on the selected representation. This separation is what lets importance scores change the amount of feature computation.

How MESM processes an utterance

The steps in order.

How MESM processes an utteranceStep 1: Prepare transcript, face frames, and spectrogram chunks1. Prepare transcript, face frames, and spectrogram chunksStep 2: Encode the transcript and extract low-level nonverbal features2. Encode the transcript and extract low-level nonverbal featuresStep 3: Score feature locations using the text representation3. Score feature locations using the text representationStep 4: Keep locations that reach the chosen attention mass4. Keep locations that reach the chosen attention massStep 5: Apply sparse convolutions and pooling5. Apply sparse convolutions and poolingStep 6: Encode each modality sequence and score the emotions6. Encode each modality sequence and score the emotionsStep 7: Combine the modality scores7. Combine the modality scores

The text representation is the query in this selection mechanism. A query is the information that conditions the assessment of what is relevant. The keys to understanding the operation are the unit being chosen and the scope of the choice. The unit is a position on a feature map. For vision it represents a region on a face feature grid. For audio it represents a location on a spectrogram feature grid. The scope is a map at a particular sequence step. Attention distributes its mass over locations within that map.

The selection is relative to the utterance being processed. Rather than specifying a fixed anatomical region or a fixed patch of the spectrogram, the block computes a score after seeing both the representation at a location and the text query. The same query can be paired with different frames or chunks, whose content changes over time. As a result, locations can be useful in one map and omitted in another, even though the maps come from the same labelled utterance.

Compute the cross-modal attention and mask

The attention layer receives a vector q containing the query and a stack M of feature maps. The query vector has d components. The map stack has C channels at each location, S sequence positions, H spatial rows, and W spatial columns. A channel carries one of the convolutional responses at that location. In the audio branch, the spatial grid refers to the organization of the acoustic feature map. The sequence axis still distinguishes its successive chunks.

M_q = tanh((W_m M + b_m) ⊕ W_q q)

M_q is the intermediate representation used to score locations, and tanh is the elementwise nonlinear activation. W_m projects the C values at each position to an intermediate space of width k, and b_m is the corresponding k-component bias. W_q projects q from width d to width k. The subscript m denotes the map projection, and q in a subscript denotes the query or the intermediate representation conditioned on it. The symbol ⊕ is broadcast addition, which adds the projected query at every map position. The plus sign adds the map bias to each projected map vector. The authors treat k, the common width of the map and query projections, as a setting chosen in advance.

The shared width makes the projected text and map features compatible for addition. The result can express a different response for each location even though the text vector is shared across locations. The map content supplies the variation. The activation is also important to the interaction. With an entirely linear score, adding the same query-dependent contribution at every location would give the spatial softmax a common offset. Applying a nonlinearity to the combined vectors lets the query affect relative scores through its interaction with the local map features.

M_i = softmax(W_i M_q + b_i)

M_i contains the spatial importance scores. The subscript i here labels the importance stage of the attention calculation, and the utterance index from the input definition plays no role in this formula. W_i has k components and reduces a k-component intermediate vector to a scalar at each location. The symbol b_i is a scalar bias added to that score. Softmax normalizes over the H rows and W columns separately for each of the S sequence positions. The resulting M_i therefore carries a spatial distribution at each step of the audio or video sequence.

That normalization controls what locations compete. The scores across one frame’s map can determine which positions survive in that map. Another frame has its own distribution. The same holds for spectrogram chunks. The attention stage consequently allocates work within each feature map. It does not rank every frame and every chunk against one another in a single distribution that could simply drop an entire modality or utterance segment.

M_ns = Nucleus Sampling(M_i)

M_ns is the binary mask returned by Nucleus Sampling, with ns identifying the selection operation. M_i is the spatial probability tensor from the previous step. The procedure takes the highest-scoring locations that together reach the chosen probability mass p on each map. Locations it keeps receive a mask value of 1, and the rest receive 0. The paper defines the allowed range of p as greater than 0 and up to and including 1. It adapts the method from The Curious Case of Neural Text Degeneration.

The mass threshold can produce a different number of retained locations on different maps. If a few locations account for most of the attention, they can suffice. If the attention is spread out, reaching the same mass can require a larger set. This is why a top-p setting describes a share of the attention distribution and does not specify a share of the grid. It also explains why the authors measure feature extraction work for the chosen settings empirically.

M_o = M_ns ⊗ M

M_o is the output feature tensor, with o denoting the output. M_ns is the mask, M is the input map stack, and ⊗ denotes pointwise multiplication with broadcasting across channels. Each spatial mask entry applies to the whole feature vector at that sequence position and location. A selected location retains its feature values. An excluded location becomes zero across the channels. Downstream sparse layers can use this difference to restrict computation to the active representation.

A conventional use of attention might pass a weighted mixture of the features forward. Here the probability distribution serves chiefly to make a keep-or-remove decision. The retained feature vector continues with its original channel values, and the probability that caused it to be retained need not describe the magnitude of the resulting activation. This distinction matters for the interpretation of the case studies. The displayed regions show where further feature computation is allowed.

Process the selected sites with sparse convolution

Setting a feature map entry to zero is a selection step. The computation saving comes from pairing that step with a convolution that can skip work at inactive locations. The authors use submanifold sparse convolution. The role of the sparse operator is to process active positions and avoid treating the discarded grid as a set of ordinary dense activations. Later blocks can apply attention again to the representations they receive, so the initial selection need not be the only filtering decision.

The paper gives the following cost expression for a dense convolution at a single location.

FLOPs_dense = z²mn

FLOPs_dense denotes the count of floating-point operations in the paper’s dense cost expression for that location. The symbol z is the kernel size along a spatial dimension, and z² is the number of positions in the square kernel. The input and output channel counts are m and n, respectively. Adjacent symbols indicate multiplication. The channel factor captures the work of combining input channels into output channels at the positions the kernel covers.

FLOPs_sparse = amn

FLOPs_sparse denotes the corresponding count in the paper’s sparse expression. Here a is the number of active points contributing at the location under consideration. The symbols m and n again denote the input and output channel counts. The expression replaces the full spatial contribution with the work associated with active points. Across locations and layers, the savings depend on how much the attention masks remove and where the remaining activations occur.

The attention mechanism and the sparse operator therefore answer different questions. The former estimates which positions are worth carrying forward for the utterance. The latter turns that decision into fewer convolution operations. The max-pooling layer in the sparse block also acts on the representation passed through the block. The reported aggregate compute figures summarize this feature extraction design as configured, while the per-location formula explains why sparsity can reduce work in its convolutions.

Train for the emotion labels

The authors use binary cross-entropy because the datasets have several emotion categories and the task is formulated with multiple labels. Binary cross-entropy compares the predicted score for the presence of a category with the target for that category. It can supply learning signals for several categories on an utterance. The question for a category is whether that category is present, and the loss can register the answer separately from the other categories.

The paper reweights the contribution of positive examples using the positive and negative sample counts to address imbalance. The purpose is to keep scarce positive cases from being overwhelmed by negative cases when the training objective is accumulated. This intervention concerns the loss during learning. The weighted accuracy used for CMU-MOSEI is a separate choice made when evaluating the resulting predictions. The choice of loss and the choice of metric both respond to imbalance, at different stages.

All the systems are trained with Adam. The authors report a hyper-parameter search for each system. Across the end-to-end settings listed in the appendix, the batch size is 8, the learning rate is 5e-5, the representation dimension is 64, and the sequence encoders are listed with 4 attention heads and 4 layers. The appendix lists N as 3 for the sparse block count in the entries that specify it. The experiments use an Nvidia 1080Ti GPU, and the implementation uses v1.6.0 of PyTorch. The authors also release the implementation in the Multimodal-End2end-Sparse repository.

Experiments and results

Compare on the reconstructed test splits

The experiment asks how much the shift to learned feature extraction changes recognition, and how much of that improvement survives when the extraction is sparse. The authors train the dense and sparse systems on their reconstructed data and compare them with systems that receive fixed features. The two datasets use different category inventories and different versions of accuracy. Happiness and sadness occur in both, while categories such as frustration and neutrality belong to the IEMOCAP experiment and fear and surprise belong to the CMU-MOSEI experiment. Each test result should be read against the other systems on its own split.

The split statistics help explain the attention paid to imbalance. In IEMOCAP, the training partition contains 398 happiness examples and 1298 frustration examples. The IEMOCAP test partition contains 135 happiness examples and 371 frustration examples. The CMU-MOSEI training statistics list 1263 cases for fear and 7587 for happiness, and the corresponding test counts are 371 and 2220. These are counts by category. The training objective and reported metrics operate on the associated category labels, which is why the relative frequencies matter directly to the interpretation of the scores.

Build the fixed-feature comparisons

The first stage of the baseline pipeline extracts visual, acoustic, and textual representations separately. The visual representation uses 35 facial action units obtained with OpenFace. Action units describe facial muscle movements, so the input already expresses a particular view of what is relevant about the image. Every downstream baseline receives those measurements in place of the richer image features a jointly trained convolutional extractor could learn to retain.

The acoustic baseline uses 142 features in each 400 ms interval. The components are 12 bark band energy features, 22 mel-frequency cepstral coefficient features, and 108 statistics drawn from 18 phonological classes. These summarize aspects of energy, spectral shape, and speech structure. The features are obtained with DisVoice. The end-to-end acoustic system also works with 400 ms chunks, but the chunks in that case are spectrogram inputs to the learned convolutional branch. The input to the baseline text branch is the pretrained glove.840B.300d set of GloVe vectors.

The authors compare LF-LSTM, LF-TRANS, EmoEmbs, and MulT. The first is a late-fusion system with recurrent sequence processing, and the second uses Transformers in a late-fusion design. EmoEmbs is the emotion embeddings approach. MulT uses cross-modal processing designed for unaligned sequences. Together, they vary the downstream learner while operating within the same two-phase feature regime. The inclusion of late-fusion baselines is particularly relevant because end-to-end FE2E also combines scores near the output.

The paper restricts this comparison to systems that can process streams without a shared sequence length. It reruns EmoEmbs and MulT on the rebuilt data. For IEMOCAP the authors use two more categories than in the settings they are revisiting, and the split differs. For CMU-MOSEI the split differs and the sequences are unaligned along their length. Keeping those conditions visible makes the comparison more informative than matching headline numbers taken from separate experiments with different labels or inputs.

Read the metrics

For IEMOCAP the authors report accuracy and F1 for each recognition category and averages across the reported categories. Accuracy measures the frequency of correct decisions. F1 reflects both precision, the reliability of predicted positives, and recall, the share of actual positives that are recovered. On a category with many negative cases, a classifier can make many correct decisions by rejecting examples and still do poorly at identifying the emotion. Reading both columns helps distinguish those behaviors.

On CMU-MOSEI the authors use ordinary binary F1 for each emotion, and a weighted accuracy in place of ordinary accuracy. They motivate that replacement by the large number of negative examples per category. With ordinary accuracy, a classifier that predicts every item to be negative can benefit from that prevalence. Weighted accuracy changes the contribution of correctly classified positive cases relative to correctly classified negative cases. The paper follows precedents that include Multi-task Learning for Multi-modal Emotion Recognition and Sentiment Analysis.

WAcc = (TP × N/P + TN) / (2N)

WAcc denotes weighted accuracy for the emotion under evaluation. P and N are the total numbers of positive and negative examples, respectively. TP counts the positives identified correctly, and TN counts the negatives identified correctly. The multiplication sign applies the weight N/P to the true positive count. The plus sign adds the true negative count, and the slash before the final parentheses divides the resulting total by 2N. Here N is a count of negative examples, distinct from the block count denoted by N in the architecture description. The weighting gives each side equal potential influence on the result.

The aggregate CMU-MOSEI columns average the category results reported under those definitions. Binary F1 and weighted accuracy answer related questions through different parts of the prediction counts. A configuration that improves recall at the cost of precision may change F1 differently from weighted accuracy. Category comparisons are consequently most useful when the metric stays fixed and the reader can also see whether the other metric points in the same direction.

IEMOCAP

The dense end-to-end system leads the IEMOCAP comparison on the reported averages. Its average accuracy is 84.5, compared with 78.8 for LF-TRANS, the strongest baseline on that metric. The sparse setting at p = 0.7 is nearly level with the dense system on average accuracy. The four baseline rows also show that improvements to the learner after fixed feature extraction matter. The comparison with FE2E then asks what is gained when feature extraction can also adapt to the task.

Average accuracy on the reconstructed IEMOCAP test split

Both end-to-end systems lead the fixed-feature baselines, with the dense and sparse settings close together.

Average accuracy on the reconstructed IEMOCAP test splitLF-LSTM: 71.8LF-LSTM71.8LF-TRANS: 78.8LF-TRANS78.8EmoEmbs: 72.0EmoEmbs72.0MulT: 77.6MulT77.6FE2E (this paper): 84.5FE2E (this paper)84.5MESM: 84.4MESM84.4
The numbers
System or settingaccuracy %
LF-LSTM71.8
LF-TRANS78.8
EmoEmbs72.0
MulT77.6
FE2E (this paper)84.5
MESM84.4

On average F1, FE2E scores 58.8, MESM scores 57.4, and MulT leads the fixed-feature comparison at 56.9. The baseline with the highest F1 is thus different from the one with the highest accuracy. This difference is also visible within the categories. For happiness, FE2E records 90.0 accuracy and 44.8 F1, while MulT posts 80.0 accuracy and 46.8 F1. MESM reaches 89.5 accuracy and 47.3 F1 on that category. The aggregate lead leaves room for category results where a different system gives a stronger F1.

The sparse configuration changes the pattern of scores within the end-to-end comparison. For frustration, MESM records 74.9 accuracy and 58.4 F1, compared with 71.2 and 57.8 for FE2E. For neutrality, FE2E records 79.1 accuracy and 58.4 F1, and MESM reaches 77.0 and 52.0. Sadness gives another example of why an average needs context. FE2E reaches 65.7 F1 and MESM reaches 62.2, while MulT reaches 65.4. The sparse system’s average performance can track the dense system closely while particular categories move more visibly.

The corresponding IEMOCAP compute numbers are 8.65 for FE2E and 5.18 for MESM at p = 0.7, on the ×10⁹ FLOPs scale. These measurements concern feature extraction. Combined with the score columns, they show that substantial costs can be removed from convolution while the aggregate recognition scores remain close. The category results show the scope of that characterization. Preserving an average does not guarantee that the same cues or the same examples survive the mask.

CMU-MOSEI

The broad comparison repeats on CMU-MOSEI. FE2E reaches 67.6 average weighted accuracy, and MESM at p = 0.5 reaches 66.8. MulT gives the strongest fixed-feature reference at 65.4. The dense and sparse methods also lead the baselines on average F1. The reconstructed split and class-weighted metric define this comparison, so the lower values than the IEMOCAP accuracy scores do not indicate a corresponding loss of capability across datasets.

Average binary F1 on the reconstructed CMU-MOSEI test split

The dense system has the highest average F1, and the sparse system remains ahead of the fixed-feature baselines.

Average binary F1 on the reconstructed CMU-MOSEI test splitLF-LSTM: 43.3LF-LSTM43.3LF-TRANS: 44.4LF-TRANS44.4EmoEmbs: 44.2EmoEmbs44.2MulT: 45.2MulT45.2FE2E (this paper): 47.4FE2E (this paper)47.4MESM: 46.8MESM46.8
The numbers
System or settingF1
LF-LSTM43.3
LF-TRANS44.4
EmoEmbs44.2
MulT45.2
FE2E (this paper)47.4
MESM46.8

Disgust and surprise illustrate the gains over the fixed-feature comparisons. On disgust, FE2E gives 77.7 weighted accuracy and 57.1 F1. MESM gives 75.6 and 56.4, while the strongest fixed-feature entry on both measures is LF-TRANS at 74.4 and 51.9. On surprise, FE2E gives 66.7 weighted accuracy and 29.1 F1. MESM gives 65.7 and 27.2, while MulT gives 61.4 and 25.6. EmoEmbs records a higher surprise weighted accuracy than MulT at 63.3, which again illustrates why the two metrics should be kept separate.

Other categories show the advantages of particular configurations. MulT scores 67.2 weighted accuracy and 75.4 F1 for happiness, ahead of both end-to-end systems on that category. For fear, MESM scores 65.8 weighted accuracy and 28.9 F1, compared with 63.8 and 26.8 for FE2E. EmoEmbs matches the dense weighted accuracy of 63.8 on fear but records 23.4 F1. These comparisons show that the overall ranking is an aggregate result. Sparse selection sometimes coincides with a gain, and some tasks within the benchmark remain better served by a baseline.

The CMU-MOSEI setting is the main example of feature extraction at roughly half the dense computation. The table gives 8.65 for FE2E and 4.34 for MESM at p = 0.5, on the ×10⁹ FLOPs scale. The recognition scores that accompany those counts are the averages on the same reconstructed CMU-MOSEI test split.

Feature extraction computation for the CMU-MOSEI settings

The sparse setting uses about half the feature extraction operations of the dense system.

Feature extraction computation for the CMU-MOSEI settingsFE2E: 8.65FE2E8.65MESM (this paper): 4.34MESM (this paper)4.34
The numbers
System or settingFLOPs ×10⁹
FE2E8.65
MESM (this paper)4.34

The tables give feature extraction compute for FE2E and MESM. Their baseline rows carry no numerical compute counts, so the clearest efficiency comparison is between those two end-to-end designs. The recognition comparison covers the fixed-feature systems as well. These are complementary parts of the experiment. One asks whether jointly learning the features improves the tested outcomes. The other asks whether much of that improvement can survive a smaller feature extraction workload.

What the ablations show

What each modality contributes

The modality ablation varies which streams are available on IEMOCAP. The dense FE2E system is evaluated with all modalities, each pair, and each stream by itself. For MESM the table reports all modalities and the text–audio and text–video pairs. In each sparse pair, text can still guide the computation in the remaining nonverbal stream. This detail matters because the reported sparse ablation preserves the mechanism that conditions feature selection on the transcript.

Within this ablation table, FE2E with all streams reaches 84.5 average accuracy and 58.5 average F1. Text with audio reaches 83.7 and 54.0, text with video reaches 82.8 and 55.7, and video with audio reaches 81.2 and 54.4. The overall ordering favors all streams on both measures. Among the pairs, text with audio has the highest accuracy, and text with video has the highest F1. The choice of metric therefore changes which pair looks more effective when the full set of signals is unavailable.

Among the single streams, text reaches 80.8 accuracy and 50.0 F1. Video reaches 78.2 and 49.8, and audio reaches 73.3 and 44.9. Text’s lead provides support for using it as the query. It already conveys information about the label, and the attention mechanism uses that information to condition the treatment of the other inputs. The comparison also shows that predictive strength by itself and usefulness in combination are different properties. Audio is the weakest single stream here, yet the text–audio pair is the strongest dense pair by accuracy.

For MESM the all-stream setting gives 84.4 average accuracy and 57.3 average F1 in the ablation table. Text with audio gives 83.6 and 56.7, and text with video gives 82.1 and 56.0. With either pair, sparse accuracy is close to the matching dense result. Sparse F1 exceeds the matching dense value in both pairs, with the more visible difference in the text–audio comparison, where the dense pair scored 54.0. With all streams, the dense system has the higher F1 in this table.

The modality ablation table prints 58.5 and 57.3 for the all-stream dense and sparse F1 scores, respectively. The main IEMOCAP table prints 58.8 and 57.4 for those rows. The comparison within the ablation table is the relevant one for reading the effect of removing modalities. Both tables show a similar ordering between the full dense and sparse configurations, and the paper gives no reason for the difference between their printed values.

These tests answer what happens to the evaluated configurations as streams are removed. They also help locate the performance that remains when the text-guided mechanism has only one nonverbal stream to work with. A different experiment would be needed to decide whether text is the best possible controller for sparsity. Strong single-stream performance makes text a reasonable choice, and the paper’s tested sparse settings give it that role throughout.

How much filtering is tolerable

The threshold experiment varies the probability mass the sparse attention retains. The authors describe the sweep as extending from 0 to 1 in steps of 0.1, and the plotted settings begin at 0.1. As p falls, the feature extraction count falls as well. The pattern follows the mechanism. A lower mass target generally permits the attention layer to retain fewer points, and the sparse layers then have fewer active positions to process.

The performance curve has a flatter portion and a declining portion. The paper describes the change from 0.9 to 0.5 as having little effect on its performance measure. As p moves from 0.5 toward 0.1, the reported performance deteriorates more clearly. The authors interpret this as the point at which the mask is increasingly likely to remove evidence needed for classification. Up to the flatter region, many locations can be discarded with relatively little change in the aggregate. Below it, thresholding increasingly changes what evidence survives.

The authors call attention to the bend in the trend as a way to choose p. A high p can keep weakly attended positions that add computation. A low p can discard features on which a class decision depends. A useful setting lies near the transition between those regimes on the measured curve. In the main tables, the selected settings are p = 0.7 on IEMOCAP and p = 0.5 on CMU-MOSEI. The fact that the paper reports different settings on the two datasets is consistent with treating p as a value to evaluate for a setup.

A threshold sweep measures the system’s response to the amount of attention mass it retains. It leaves a different question about ranking quality open. If two masks retained the same number of sites, the one whose positions better matched the relevant cues could perform better at similar sparse convolution cost. The paper’s curve shows how its own ranking and mask react to a range of thresholds. Its visual case studies provide a separate look at what that ranking selects.

Where the attention sends computation

The visual case study uses p = 0.6 and displays selected positions through successive attention layers on face images. The authors compare the regions that remain active with areas associated with expressions in the Facial Action Coding System. FACS provides a way to describe visible facial movements. The examples let the reader ask whether the selection falls in plausible regions for the labelled expression, using an account of facial movement independent of the sparse mask.

For happiness and sadness, the authors discuss the corners of the lips and, for sadness, movement of the eyelids. For anger they consider the lips and the gap around the eyes. Surprise directs attention to an open mouth and raised areas around the eyes, and the reference descriptions for fear also involve the eyebrows and eyelids as well as the mouth. In disgust the paper points to changes near the nose and upper lip. Those comparisons give a concrete meaning to a mask that would otherwise be a set of colored positions on a feature map.

The system often retains regions the authors expected to see, and its omissions are informative. On anger examples it finds the lip region more reliably than the gap between the eyes. For surprise, the illustrations can retain the mouth and eyelids while missing the eyebrows. Such examples show how sparsity can preserve some plausible cues and remove others associated with the same label. The analysis is qualitative, so these are observations of the illustrated behavior.

The acoustic case study also uses p = 0.6. To display the spectrograms, the figure shows only the highest 10% of the mel-spectrogram values in each image. That display choice is separate from the attention threshold. The authors observe that early attention often selects regions of higher spectral magnitude, while later stages filter more locations. They find the resulting visualizations harder to connect to particular emotions than the face examples. The appendix illustrates more examples of the acoustic masks. The images make the progress of selection visible, while the measured classification and compute comparisons establish its practical effects in the tested systems.

Limitations

Limits and open questions noted by the authors

The authors identify computation as a cost of learning directly from richer inputs. Their sparse proposal addresses the feature extraction component, where much of the additional work occurs. The retained maps still depend on initial feature computation, attention, and processing of the modality sequences. The empirical conclusion is framed around comparable recognition scores and reduced feature extraction operations. The paper describes exhaustive processing as potentially prone to overfitting, but its compute comparisons and threshold sweep chiefly establish the work saved and the score behavior.

The authors also point out limits on the interpretation of their masks. Their visual examples sometimes omit areas highlighted in the expression descriptions. In audio, they find it difficult to translate particular selections into category-specific evidence. Their suggestion for future research is to incorporate more modalities into the sparse attention mechanism. The motivation is that a selection decision informed by more than the transcript might be more robust. The paper evaluates text as the conditioning signal and leaves that proposed extension open.

The source data impose a boundary on the comparisons. The authors explain that existing processed splits could not simply be reused for raw-input training. The rebuilt splits make joint training possible and let all included systems see the appropriate inputs. They also restrict which older systems can serve as baselines, since the usable inputs retain different sequence lengths across streams. The paper’s comparison therefore concerns the selected fixed-feature systems under the reconstructed conditions.

Limits visible in the experimental setup

The evaluation is within dataset. IEMOCAP is randomly split at the level of utterance samples in the described procedure. This does not establish that the partitions are disjoint by speaker or recording. Where neighboring utterances or familiar voices share properties, an utterance split and a speaker-held-out split can test different kinds of generalization. The CMU-MOSEI experiment follows a reconstructed split after cleaning. The reported results establish performance on those test sets, with generalization to unseen recording conditions, speaker populations, or datasets left undetermined.

The inputs also define the scope of “end-to-end.” The authors train the feature extraction and emotion prediction components jointly. Their input pipeline still cuts utterances from timestamps, receives text transcripts, transforms the waveform into spectrograms, and uses an external face detector to locate image regions. Text-guided attention can operate only on evidence that passes through those stages. This matters when considering continuous recordings, missing transcripts, or face detection failures, none of which is evaluated by the reported test protocol.

The comparison between the fixed and learned feature pipelines changes several things together. The acoustic and visual inputs change, trainable convolutional extractors enter the pipeline, and text processing switches from word to sub-word units. The downstream architecture also differs from some baselines. The hybrid result is informative as an assessment of complete systems. It leaves open how much gain to attribute to joint optimization of each individual extractor, what the same architectures would do with otherwise matched text processing, and whether an alternative fixed feature set would close part of the gap.

Within the end-to-end comparison, the sparse configuration changes both how points are selected and how convolution is carried out. The threshold sweep varies how much of the attention distribution can pass, and the modality ablation varies the inputs. Neither isolates the contribution of the text query against a selection mechanism that keeps a comparable number of sites using only the audio or only the video. A fixed region or differently ranked mask at the same operation count would answer another question about the particular benefits of cross-modal selection. The experiments establish the tradeoff for the authors’ combined design.

Feature extraction operation counts also have a narrower meaning than elapsed time. The paper does not give a measured end-to-end latency improvement corresponding to its headline reduction. Sparse execution can depend on the arrangement of the active locations and on the cost of forming and handling their representation. The initial convolution, later sequence encoders, and preprocessing also contribute to the total system workload. The FLOPs comparison is evidence about arithmetic in the feature extraction component. It does not quantify the savings a particular deployment would see.

The qualitative attention images indicate where the sparse system permits further computation. They do not measure how frequently a selected area matches a reference expression across the dataset, and they do not establish that the area caused a particular emotion decision. A site can survive the mask and later have little influence on the score. Conversely, cues represented by a convolutional activation can come from its local neighborhood, so an active site is best read as a feature-map location instead of a precise human description of the evidence.

The reported metric values are point estimates. The tables give no uncertainty intervals or repeated-run variability, so small gaps between dense and sparse configurations should be read as descriptive of the reported experiments. The printed all-stream F1 values also differ between the main IEMOCAP comparison and the ablation table, and the general text length in the training description differs from some entries in the appendix. Those reporting details limit exact reconstruction of some settings. The main findings are clearest when compared within their own tables and under the compute accounting the authors specify.

Finally, the target of recognition is the annotation attached to an utterance. The experiments show how well each system predicts those categories given the prepared inputs. The face case studies offer a way to inspect whether selected areas resemble cues described for an expression. The setup does not establish access to a speaker’s internal emotional state, performance across broader settings, or the reliability of decisions about individuals outside these annotated corpora.

What came after

The authors close by proposing that sparse attention could draw on additional modalities when deciding which feature locations to keep. That proposal follows directly from the role assigned to text in MESM. A transcript can guide attention over the audio and face, but the decision about whether an acoustic or visual location looks useful could itself benefit from other signals. The paper leaves that possibility as future work. There are no later studies available to document a tested extension of the approach.

Cite

Cite as Wenliang Dai, Samuel Cahyawijaya, Zihan Liu and Pascale Fung. 2021. Multimodal End-to-End Sparse Model for Emotion Recognition. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.naacl-main.417

@inproceedings{dai2021multimodal,
  title = {{Multimodal End-to-End Sparse Model for Emotion Recognition}},
  author = {Wenliang Dai, Samuel Cahyawijaya, Zihan Liu and Pascale Fung},
  booktitle = {Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.417},
  url = {https://doi.org/10.18653/v1/2021.naacl-main.417}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/dai-2021-multimodal-end-end-sparse-model/