SoftMCL: Soft Momentum Contrastive Learning for Fine-grained Sentiment-aware Pre-training
Jin Wang, Liang-Chih Yu, Xuejie Zhang
TL;DR
SoftMCL tackles the challenge of encoding fine-grained sentiment information into pre-trained language models by replacing hard sentiment labels with continuous valence ratings as supervision. It integrates a momentum queue to enlarge the pool of negatives and performs both word- and sentence-level contrastive learning, guided by valence-aware similarities. The approach yields improvements across multiple sentiment-related tasks over strong baselines, supported by thorough ablation and parameter analyses. This method offers a practical path to richer affective representations with scalable training, and points toward extending sentiment-awareness into generative decoding models.
Abstract
The pre-training for language models captures general language understanding but fails to distinguish the affective impact of a particular context to a specific word. Recent works have sought to introduce contrastive learning (CL) for sentiment-aware pre-training in acquiring affective information. Nevertheless, these methods present two significant limitations. First, the compatibility of the GPU memory often limits the number of negative samples, hindering the opportunities to learn good representations. In addition, using only a few sentiment polarities as hard labels, e.g., positive, neutral, and negative, to supervise CL will force all representations to converge to a few points, leading to the issue of latent space collapse. This study proposes a soft momentum contrastive learning (SoftMCL) for fine-grained sentiment-aware pre-training. Instead of hard labels, we introduce valence ratings as soft-label supervision for CL to fine-grained measure the sentiment similarities between samples. The proposed SoftMCL is conducted on both the word- and sentence-level to enhance the model's ability to learn affective information. A momentum queue was introduced to expand the contrastive samples, allowing storing and involving more negatives to overcome the limitations of hardware platforms. Extensive experiments were conducted on four different sentiment-related tasks, which demonstrates the effectiveness of the proposed SoftMCL method. The code and data of the proposed SoftMCL is available at: https://www.github.com/wangjin0818/SoftMCL/.
