Enhancing Sentiment Analysis Accuracy and Evaluating Task Affinity Using Large Language Models

Sentiment analysis is a crucial natural language processing task that involves extracting emotions and opinions from text data, with applications spanning marketing, social media analysis, and enhancing user experience. Traditional approaches to sentiment analysis, such as dictionary-based and machine learning-based methods, have been predominant; however, these methods have limitations in handling complex emotional expressions and contextual dependencies. Recently, the advent of Large Language Models (LLMs) has raised expectations for improving sentiment analysis accuracy, and research exploring this potential is ongoing. In this study, we employed the Llama 2-7B model, an LLM, to thoroughly evaluate the effects of Supervised Fine-Tuning (SFT) and Few-shot Learning on various sentiment analysis subtasks. Specifically, we focused on tasks such as Sentiment Classification (SC), Aspect-Based Sentiment Analysis (ABSA), and Multifaceted Analysis of Subjective Text (MAST) to assess the affinity of LLMs for these tasks. The experimental results demonstrated that Few-shot Learning significantly improved accuracy across many tasks, with the 2-shot setting proving particularly effective. On the other hand, SFT led to a decrease in accuracy for certain tasks, suggesting the need for careful design in LLM training methods. Additionally, it was revealed that prompt design considering contextual information contributes to performance improvements in tasks such as irony and offensive language detection. These findings provide valuable insights into the design and training methods for specializing LLMs in sentiment analysis, offering important guidance for future research and practical applications.

Authors

Institutions

Publication Details

Published
2025-08-07
DOI
https://doi.org/10.1109/icoailo66760.2025.11155956
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhancing Sentiment Analysis Accuracy and Evaluating Task Affinity Using Large Language Models

Keito Inoshita
Sentiment Analysis and Opinion Mining
article

Enhancing Sentiment Analysis Accuracy and Evaluating Task Affinity Using Large Language Models

Keito Inoshita
article en

Abstract

Sentiment analysis is a crucial natural language processing task that involves extracting emotions and opinions from text data, with applications spanning marketing, social media analysis, and enhancing user experience. Traditional approaches to sentiment analysis, such as dictionary-based and machine learning-based methods, have been predominant; however, these methods have limitations in handling complex emotional expressions and contextual dependencies. Recently, the advent of Large Language Models (LLMs) has raised expectations for improving sentiment analysis accuracy, and research exploring this potential is ongoing. In this study, we employed the Llama 2-7B model, an LLM, to thoroughly evaluate the effects of Supervised Fine-Tuning (SFT) and Few-shot Learning on various sentiment analysis subtasks. Specifically, we focused on tasks such as Sentiment Classification (SC), Aspect-Based Sentiment Analysis (ABSA), and Multifaceted Analysis of Subjective Text (MAST) to assess the affinity of LLMs for these tasks. The experimental results demonstrated that Few-shot Learning significantly improved accuracy across many tasks, with the 2-shot setting proving particularly effective. On the other hand, SFT led to a decrease in accuracy for certain tasks, suggesting the need for careful design in LLM training methods. Additionally, it was revealed that prompt design considering contextual information contributes to performance improvements in tasks such as irony and offensive language detection. These findings provide valuable insights into the design and training methods for specializing LLMs in sentiment analysis, offering important guidance for future research and practical applications.

Kansai University (JP)
Openalex Percentile: Top 87%
Sentiment Analysis and Opinion Mining
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.