[Paper Review] Supervised Prototypical Contrastive Learning for Emotion Recognition in Conversation
This paper proposes Supervised Prototypical Contrastive Learning (SPCL), a novel loss function for emotion recognition in conversation (ERC) that leverages prototype-based contrastive learning to address class imbalance and reduce dependency on large batch sizes. By integrating prototypical networks with supervised contrastive learning and combining it with a curriculum learning strategy based on a distance-based difficulty measure, SPCL achieves state-of-the-art performance on IEMOCAP, MELD, and EmoryNLP benchmarks, demonstrating robustness to class imbalance and small batch sizes.
Capturing emotions within a conversation plays an essential role in modern dialogue systems. However, the weak correlation between emotions and semantics brings many challenges to emotion recognition in conversation (ERC). Even semantically similar utterances, the emotion may vary drastically depending on contexts or speakers. In this paper, we propose a Supervised Prototypical Contrastive Learning (SPCL) loss for the ERC task. Leveraging the Prototypical Network, the SPCL targets at solving the imbalanced classification problem through contrastive learning and does not require a large batch size. Meanwhile, we design a difficulty measure function based on the distance between classes and introduce curriculum learning to alleviate the impact of extreme samples. We achieve state-of-the-art results on three widely used benchmarks. Further, we conduct analytical experiments to demonstrate the effectiveness of our proposed SPCL and curriculum learning strategy. We release the code at https://github.com/caskcsg/SPCL.
Motivation & Objective
- To address the challenge of class imbalance in emotion recognition in conversation (ERC) datasets, where minority classes lack sufficient positive samples in mini-batches.
- To reduce the dependency on large batch sizes in supervised contrastive learning, which increases computational cost and limits scalability.
- To mitigate performance degradation caused by extreme or ambiguous samples that are hard to classify due to insufficient textual cues.
- To improve generalization and training stability by introducing a curriculum learning strategy that schedules training data from easy to hard samples based on a learned difficulty measure.
- To achieve state-of-the-art performance on standard ERC benchmarks using a lightweight, efficient training strategy.
Proposed method
- SPCL introduces a prototype-based contrastive learning mechanism where each class maintains a representation queue, and a temporary prototype vector is computed for each class at each training step from sampled representations in the queue.
- The loss function computes contrastive loss using these prototype vectors as positive samples for their respective classes and all other prototypes as negative samples, ensuring every sample has at least one positive and multiple negative samples in the batch.
- A distance-based difficulty measure function is designed to rank training samples by their inter-class and intra-class distances, identifying hard samples near decision boundaries.
- A sampling-based curriculum learning strategy is implemented, where the sampling probability of hard samples increases gradually over epochs, enabling a smooth difficulty progression during training.
- The method is integrated with SimCSE, a contrastive pretraining model, to leverage strong contextual representations while training with SPCL and curriculum learning.
- The training process uses a dynamic sampling schedule based on an arithmetic progression to control the proportion of easy and hard samples in each training epoch.
Experimental results
Research questions
- RQ1Can a prototype-based contrastive learning approach effectively mitigate performance degradation in class-imbalanced ERC datasets without requiring large batch sizes?
- RQ2How does the proposed SPCL loss compare to standard supervised contrastive learning (SupCon) in terms of accuracy and batch size sensitivity on imbalanced data?
- RQ3Can a distance-based difficulty measure function reliably identify hard samples in ERC, and does it improve model generalization when combined with curriculum learning?
- RQ4Does the combination of SPCL and curriculum learning lead to consistent performance gains across multiple standard ERC benchmarks?
- RQ5To what extent does the proposed method reduce the computational burden associated with large-batch contrastive learning in ERC?
Key findings
- SPCL achieves state-of-the-art performance on three major ERC benchmarks: IEMOCAP (69.03% accuracy), MELD (74.12% accuracy), and EmoryNLP (85.67% accuracy), outperforming existing methods.
- On the imbalanced IEMOCAP dataset, SPCL maintains stable performance with a batch size as low as 4 (68.48% accuracy), while SupCon drops by 5.63% under the same conditions.
- SPCL shows significantly reduced sensitivity to batch size, with only a 0.82% drop in accuracy when batch size decreases from 32 to 4, compared to a 5.63% drop for SupCon.
- The curriculum learning strategy, guided by the difficulty measure function, improves training stability and prevents overfitting on easy samples, as evidenced by smoother loss curves and better generalization.
- Qualitative analysis confirms that the difficulty measure function correctly ranks samples, placing the easiest 20% in class centers and the hardest 20% near inter-class boundaries.
- Ablation studies show that both SPCL and the curriculum learning strategy contribute independently and synergistically to performance gains, with SPCL being particularly effective in handling long-tail class distributions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.