Hybrid Contrastive Learning of Tri-Modal Representation for Multimodal Sentiment Analysis

Sijie Mai, Ying Zeng, Shuangjia Zheng, Haifeng Hu

TL;DR

This paper introduces HyCon, a novel hybrid contrastive learning framework for tri-modal sentiment analysis. HyCon effectively bridges the "modality gap" by simultaneously learning intra- and inter-modal dynamics, while also crucially incorporating inter-class relationships, leading to state-of-the-art performance on challenging datasets.

What Problem Does This Paper Address?

Multimodal sentiment analysis (MSA) aims to understand human emotions from various data sources like text, audio, and video. While combining these modalities promises richer insights, a significant challenge is the "modality gap" – the inherent differences in how information is represented across these sources. Existing methods often struggle to effectively align these modalities and learn meaningful interactions. Furthermore, many approaches focus on learning within a single sample (intra-sample) but neglect the crucial relationships between different samples and classes. This oversight, coupled with the limited size of many public datasets, hinders the generalization ability of these models.

Methods

HyCon tackles these challenges by employing a "hybrid contrastive learning" strategy. At its core, it leverages contrastive learning, a technique that learns representations by pulling similar data points closer and pushing dissimilar ones apart in an embedding space. HyCon introduces three novel contrastive learning components:

  • Semi-Contrastive Learning (SCL): This unsupervised component focuses on minimizing the modality gap by learning interactions within a single sample across different modalities. It only considers positive pairs (different modalities from the same sample).
  • Intra-modal Contrastive Learning (IAMCL): This supervised component learns dynamics within a single modality across different samples. It considers positive pairs (same modality, same class) and negative pairs (same modality, different classes), thereby learning inter-class relationships.
  • Inter-modal Contrastive Learning (IEMCL): Similar to IAMCL, this supervised component learns dynamics between different modalities across different samples. It also considers positive pairs (different modalities, same class) and negative pairs (different modalities, different classes), further reinforcing inter-class relationships.

To enhance learning, HyCon also incorporates a refinement term to prevent models from falling into sub-optimal solutions and a modality margin to retain modality-specific information. The framework uses standard unimodal feature extractors (Transformer for audio/visual, BERT for language) and a simple fusion mechanism for the final prediction.

Datasets

The paper evaluates HyCon on two widely-used multimodal sentiment analysis datasets:

  • CMU-MOSI: A dataset of opinion video utterances with sentiment intensity scores.
  • CMU-MOSEI: A larger dataset of multimodal sentiment analysis and emotion recognition, also providing sentiment labels.

The authors follow standard data splits for training, validation, and testing for both datasets.

Key Insights and Ideas

  • Inter-class relationships are crucial: The paper strongly emphasizes that neglecting relationships between different sentiment classes is a major limitation of prior work. HyCon's success hinges on explicitly modeling these inter-class dynamics.
  • Hybrid contrastive learning is powerful: Combining supervised and unsupervised contrastive learning strategies (SCL, IAMCL, IEMCL) allows HyCon to simultaneously address the modality gap, learn intra-/inter-modal dynamics, and capture inter-class relationships.
  • Simplicity can be effective: Despite the complexity of multimodal fusion, HyCon achieves state-of-the-art results with simple fusion methods (like element-wise addition), suggesting that the learned representations are already highly discriminative.
  • Refinement and modality margins matter: The introduced refinement term and modality margin are shown to be important for improving the learning of positive pairs and managing the modality gap, respectively.

Key Results

HyCon consistently outperforms existing state-of-the-art methods on both CMU-MOSI and CMU-MOSEI datasets across various metrics, including Acc7, Acc2, F1 score, MAE, and Corr. For instance, on CMU-MOSI, HyCon achieves the best results on all metrics, outperforming MAG-BERT (a strong baseline) by a significant margin. Ablation studies confirm the effectiveness of each component of HyCon, with the removal of contrastive learning leading to a substantial performance drop.

Limitations and Future Work

The authors acknowledge that while the refinement term helps, the model can still fall into sub-optimal solutions, especially when negative pairs are insufficient. They also note that the modality margin is important for retaining modality-specific information, suggesting that finding the optimal balance is key. Future work could explore more sophisticated fusion strategies or investigate how HyCon's learned representations can be applied to other multimodal tasks. The paper also hints at the potential for further research into identifying and weighting informative positive and negative pairs.

Summary updated

BibTeX
@article{mai2022hybrid,
  author = {Sijie Mai and Ying Zeng and Shuangjia Zheng and Haifeng Hu},
  title = {{Hybrid Contrastive Learning of Tri-Modal Representation for Multimodal Sentiment Analysis}},
  journal = {IEEE Transactions on Affective Computing},
  year = {2022},
  doi = {10.1109/taffc.2022.3172360},
}
Figure