Lune

EMNLP2023Top-tier venue

Retrofitting Light-weight Language Models for Emotions using Supervised Contrastive Learning

Sapan Shah, Sreedhar Reddy, Pushpak Bhattacharyya

Abstract

We present a novel retrofitting method to induce emotion aspects into pre-trained language models (PLMs) such as BERT and RoBERTa. Our method updates pre-trained network weights using contrastive learning so that the text fragments exhibiting similar emotions are encoded nearby in the representation space, and the fragments with different emotion content are pushed apart. While doing so, it also ensures that the linguistic knowledge already present in PLMs is not inadvertently perturbed. The language models retrofitted by our method, i.e., BERTEmo and RoBERTaEmo, produce emotion-aware text representations, as evaluated through different clustering and retrieval metrics. For the downstream tasks on sentiment analysis and sarcasm detection, they perform better than their pre-trained counterparts (about 1% improvement in F1-score) and other existing approaches. Additionally, a more significant boost in performance is observed for the retrofitted models over pre-trained ones in few-shot learning setting.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • CLEP: A Novel Contrastive Learning Method for Evolutionary Reentrancy Vulnerability Detection cites Supervised Contrastive Learning
  • Supervised Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • SimCSE: Simple Contrastive Learning of Sentence Embeddings cites A Simple Framework for Contrastive Learning of Visual Representations
  • Learning Transferable Visual Models From Natural Language Supervision cites A Simple Framework for Contrastive Learning of Visual Representations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Emotions Where Art Thou: Understanding and Characterizing the Emotional Latent Space of Large Language ModelsBenjamin Z. Reichman, Adar Avsian, Larry HeckICLR 2026 · 14 citations
  2. CLEP: A Novel Contrastive Learning Method for Evolutionary Reentrancy Vulnerability DetectionJie Chen, Liangmin Wang, Huijuan Zhu, Victor S. ShengAAAI 2025 · 2 citations
  3. Assessing effective de-escalation of crisis conversations using transformer-based models and trend statisticsIgnacio J. Tripodi, Greg Buda, Margaret Meagher, Elizabeth A. OlsonEMNLP 2025

Builds on11

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  3. Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
  4. SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
  5. SentiBERT: A Transferable Transformer-Based Architecture for Compositional Sentiment SemanticsDa Yin, Tao Meng, Kai-Wei ChangACL 2020 · 127 citations

Related papers

  1. Not All Negatives are Equal: Label-Aware Contrastive Loss for Fine-grained Text ClassificationVarsha Suresh, Desmond C. OngEMNLP 2021 · 71 citations
  2. Sentiment-Aware Word and Sentence Level Pre-training for Sentiment AnalysisShuai Fan, Chen Lin, Haonan Li, Zhenghao Lin et al.EMNLP 2022 · 20 citations
  3. Synergistic Anchored Contrastive Pre-training for Few-Shot Relation ExtractionDa Luo, Yanglei Gan, Rui Hou, Run Lin et al.AAAI 2024 · 12 citations
  4. Imputing Out-of-Vocabulary Embeddings with LOVE Makes LanguageModels Robust with Little CostLihu Chen, Gaël Varoquaux, Fabian M. SuchanekACL 2022
  5. Solving Aspect Category Sentiment Analysis as a Text Generation TaskJian Liu, Zhiyang Teng, Leyang Cui, Hanmeng Liu et al.EMNLP 2021 · 62 citations
Dusk over the sea between two cliffs drawn in fine vertical lines