Introduction and Problem Statement
Emotion Recognition in Conversation (ERC) is a critical task in natural language processing that involves identifying the emotional state of speakers throughout a dialogue. However, ERC is notoriously difficult because the same linguistic expression can convey vastly different feelings depending on the conversational context. For instance, the phrase "Thanks a lot" might be a genuine expression of gratitude in one scenario but a biting piece of sarcasm in another.
Existing models frequently struggle with two major issues:
- Class Imbalance: Real-world conversations are dominated by "neutral" emotions, while critical emotions like "disgust" or "fear" are rare. Standard supervised contrastive learning (SCL) typically requires massive batch sizes to ensure these minority classes are represented enough for the model to learn them.
- Textual Insufficiency: In text-only ERC, some samples are "extreme" or ambiguous, meaning the text alone lacks the necessary cues (like tone or facial expression) to identify the emotion. Forcing a model to learn from these noisy samples early in training can degrade overall performance.
Methodology
To address these challenges, researchers developed the Supervised Prototypical Contrastive Learning (SPCL) framework, which combines prototypical networks with a curriculum learning strategy.
Supervised Prototypical Contrastive Learning (SPCL)
Rather than relying on the random distribution of emotions within a single training batch, SPCL maintains a representation queue for every emotion category. The model calculates a "prototype" vector—an average representation—for each emotion by sampling from these queues. The SPCL loss function ensures that every sample in a batch is compared against at least one positive prototype (same emotion) and multiple negative prototypes (different emotions). This mechanism provides stable "anchors" in the embedding space and allows the model to learn effectively even with small batch sizes.
Curriculum Learning (CL)
To handle ambiguous or "extreme" samples, the authors introduced a Curriculum Learning strategy. They designed a difficulty measure based on a sample's distance from its own class center relative to other class centers. The model follows an "easy-to-hard" sampling approach, starting training with clear, prototypical examples and gradually introducing more ambiguous samples as its feature extraction capabilities mature.
Prompt-based Context Modeling
The backbone of the model utilizes SimCSE, a pre-trained language model. By using a prompt-based approach (e.g., "[Speaker] feels [MASK]"), the model focuses specifically on the target speaker's emotion while incorporating the preceding turns of the conversation as vital context.
Datasets and Experimental Results
The model was evaluated on three major ERC benchmarks: IEMOCAP, MELD, and EmoryNLP. As shown in the distribution charts below, all three datasets exhibit significant class imbalance, with neutral or common emotions far outnumbering rarer states.
The SPCL-CL-ERC model achieved State-of-the-Art (SOTA) performance across all three benchmarks in weighted-F1 scores:
- IEMOCAP: 69.74%
- MELD: 67.25%
- EmoryNLP: 40.94%
A key finding was the model's robustness to batch size. While standard SCL performance dropped by nearly 7% when the batch size was reduced from 32 to 4, the SPCL model's performance only decreased by 0.82%, proving the effectiveness of the prototypical queue system.
Conclusion and Future Work
The SPCL framework successfully mitigates the issues of class imbalance and textual noise in ERC. By using prototypes as stable anchors and a curriculum strategy to phase in difficult samples, the model achieves superior results and greater training stability. Future research may explore extending this prototypical approach to multimodal settings—incorporating audio and video cues—or automating the tuning of hyperparameters like queue and support set sizes.
Summary updated