TL;DR
Pre-trained vision models excel at recognizing objects and scenes but struggle with human emotions due to a misalignment known as the "affective gap." This paper introduces Partitioned Adaptive Contrastive Learning (PACL), a method that borrows sentiment-rich knowledge from pre-trained text models to enhance the emotional intelligence of vision backbones. By dynamically adapting to the inherent noise in social media image-text pairs, PACL consistently boosts performance across multiple visual emotion recognition benchmarks.
What Problem Does This Paper Address?
While deep learning has revolutionized computer vision, Visual Emotion Recognition (VER) remains a notoriously difficult task. Emotions are highly subjective, and emotional cues in images are often sparse and spread across different scales and regions.
Current state-of-the-art vision models are typically pre-trained on factual tasks (like classifying objects on ImageNet or matching text-image descriptions in CLIP). This creates an "affective gap": the models learn to identify factual features (e.g., "blue sky," "track," "roller coaster") but lack an intermediate representation to map these features to emotional categories (e.g., "joy" or "thrill").
Conversely, language naturally expresses emotions explicitly through specific sentiment-laden words ("thrills," "perfect," "amusement"). The authors propose a clever workaround: instead of training massive visual models from scratch on expensive, human-annotated emotion datasets, why not borrow emotional knowledge directly from pre-trained textual sentiment models?
Methods
The authors present Partitioned Adaptive Contrastive Learning (PACL). The core idea is to use a frozen, sentiment-enhanced text encoder (SKEP) to guide a target visual encoder (such as ResNet or ViT) using a large dataset of uncurated image-text pairs from social media.
Because social media data is incredibly noisy—users often post text that doesn't match the image factually, emotionally, or both—a standard contrastive learning approach (like CLIP's) would fail. PACL solves this via a three-stage pipeline:
- Dataset Partition: Each image-text pair is quantitatively evaluated for factual alignment (using standard CLIP) and emotional alignment (using DeepSentiBank and BERTweet). The dataset is then split into four distinct quadrants: Strong-coupled (both match), Factual-matched/Emotional-mismatched, Factual-mismatched/Emotional-matched, and Weak-coupled (neither match).
- Unimodal Sample Clustering: The model performs $k$-means clustering on the visual and textual feature spaces independently to generate factual pseudo-labels for images and emotional pseudo-labels for texts.
- Adaptive Contrastive Learning: Instead of treating every original image-text pair as a positive pair, PACL customizes its loss function for each quadrant. For noisy or mismatched pairs, it dynamically filters out false negatives and searches the batch for the most factually or emotionally similar alternative samples to construct accurate positive pairs.
Training follows a progressive curriculum: the model learns from the cleanest data (Strong-coupled) first, before gradually incorporating the more complex, noisy partitions.
Datasets
- Pre-training/Knowledge Transfer: TumEmo, a dataset containing 200,000 noisy image-text pairs crawled from social media. Crucially, PACL ignores the dataset's emotional labels during training, relying solely on the raw image-text relationships.
- Downstream Evaluation: The enhanced vision models were tested on six diverse VER benchmarks:
- FI & Emotion-6: Single-label emotion classification datasets.
- UnbiasedEmo: A benchmark designed to minimize dataset bias.
- WebEmo: A large-scale dataset featuring a three-level hierarchical emotion model.
- Emotic: A dataset for multi-label emotion prediction and continuous VAD (Valence-Arousal-Dominance) regression.
- IAPS: A psychological dataset scored using continuous VAD scales.
Key Insights and Ideas
- Language as an Emotional Bridge: Text models already possess the structured emotional representations that vision models lack. By aligning a vision model's latent space with a sentiment-trained text model, the vision model naturally inherits an understanding of abstract emotional concepts.
- Embracing Social Media Noise: Rather than discarding mismatched or "noisy" image-text pairs, PACL demonstrates that these pairs contain valuable, decoupled information. A photo with an unrelated but highly emotional caption can still be used to learn emotional features if the contrastive strategy adapts to the mismatch.
- Progressive Curriculum Matters: Attempting to learn from weak-coupled, highly noisy pairs at the start of training disrupts the visual model's pre-existing semantic knowledge. Training must scale from clean to noisy data progressively.
Key Results
The authors evaluated PACL across four distinct vision backbones (ResNet-50, ViT-base, Swin-base, and ViT-clip) under both linear evaluation (frozen backbone) and full fine-tuning protocols.
- Universal Performance Boosts: PACL consistently improved the performance of all backbones across all downstream tasks. For instance, under linear evaluation on the FI dataset, PACL boosted standard ResNet-50 accuracy from 57.72% to 59.50%, and ViT-base from 62.08% to 64.77%.
- State-of-the-Art Synergy: When PACL-enhanced models were combined with existing SOTA visual attention mechanisms (like PDANet), they set new performance records. On the FI dataset, the combined model achieved a state-of-the-art accuracy of 80.83%.
- Zero-Shot Capabilities: Because PACL aligns images with an emotional text space, the enhanced models can perform zero-shot emotion classification. An enhanced ResNet-50 trained via PACL significantly outperformed standard CLIP on zero-shot tasks, despite being exposed to far fewer image-text pairs during training.
Limitations and Future Work
While PACL elegantly handles noisy data, it relies heavily on the accuracy of its "grounding evaluators" (like CLIP and DeepSentiBank) to partition the dataset in Stage 1. If these initial heuristic models suffer from severe blind spots or biases, those errors could propagate into the partitioning phase.
The authors suggest that future work could explore scaling this method up to even larger, uncurated multi-modal social media streams, or adapting the framework to video-based emotion recognition where temporal context adds another layer of complexity.
Summary updated