A Soft Contrastive Learning-based Prompt Model for Few-shot Sentiment Analysis

Jingyi Zhou, Jie Zhou, Jiabao Zhao, Siyin Wang, Haijun Shan +3 more
12/16/2023
cs.CL

No confident code implementation found for this paper.

Abstract

Few-shot text classification has attracted great interest in both academia and industry due to the lack of labeled data in many fields. Different from general text classification (e.g., topic classification), few-shot sentiment classification is more challenging because the semantic distances among the classes are more subtle. For instance, the semantic distances between the sentiment labels in a positive or negative polarity (e.g., ``love" and ``joy", ``remorse" and ``sadness") are close, while the distances are large for the sentiment labels in two opposite polarities (e.g., ``love" and ``sadness"). To address this problem, we propose a Soft Contrastive learning-based Prompt (\texttt{SCP}) model for few-shot sentiment analysis. First, we design a sentiment-aware chain of thought prompt module to guide the model to predict the sentiment from coarse grain to fine grain via a series of intermediate reasoning steps. Then, we propose a soft contrastive learning algorithm to take the correlation of the labels into account. A series of experiments on several sentiment analysis datasets show the great advantages of \texttt{SCP} by comparing it with SOTA baselines (e.g., ChatGPT).

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhou2023soft,
  title  = {A Soft Contrastive Learning-based Prompt Model for Few-shot Sentiment Analysis},
  author = {Jingyi Zhou and Jie Zhou and Jiabao Zhao and Siyin Wang and Haijun Shan and Gui Tao and Qi Zhang and Xuanjing Huang},
  year   = {2023},
  eprint = {2312.10479},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.10479v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.10479.svg)](https://codeofpaper.com/paper/2312.10479)

Discussion