Improving In-Context Learning with Prediction Feedback for Sentiment Analysis

Hongling Xu, Qianlong Wang, Yice Zhang, Min Yang, Xi Zeng +2 more
6/5/2024
cs.CL

No official code found. Best implementation: HITSZ-HLT/Feedback-ICL (8 stars, last commit 2024-06-21).

Abstract

Large language models (LLMs) have achieved promising results in sentiment analysis through the in-context learning (ICL) paradigm. However, their ability to distinguish subtle sentiments still remains a challenge. Inspired by the human ability to adjust understanding via feedback, this paper enhances ICL by incorporating prior predictions and feedback, aiming to rectify sentiment misinterpretation of LLMs. Specifically, the proposed framework consists of three steps: (1) acquiring prior predictions of LLMs, (2) devising predictive feedback based on correctness, and (3) leveraging a feedback-driven prompt to refine sentiment understanding. Experimental results across nine sentiment analysis datasets demonstrate the superiority of our framework over conventional ICL methods, with an average F1 improvement of 5.95%.

View on arXivView PDF

Code Implementations(1)

80Shell, PythonJun 3, 20242 years ago

Cite this paper

@article{xu2024improving,
  title  = {Improving In-Context Learning with Prediction Feedback for Sentiment Analysis},
  author = {Hongling Xu and Qianlong Wang and Yice Zhang and Min Yang and Xi Zeng and Bing Qin and Ruifeng Xu},
  year   = {2024},
  eprint = {2406.02911},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.02911v1}
}

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/2406.02911.svg)](https://codeofpaper.com/paper/2406.02911)

Discussion