Sentiment Analysis of Product Reviews Using Fine-Tuned LLaMa-3 Model: Evaluation with Comprehensive Benchmark Metrics

Sentiment analysis, a crucial subfield of natural language processing, enables businesses and policymakers to understand public emotions and opinions, essential for crafting effective strategies across industries like marketing and customer service. As the volume of online reviews grows, automated s...

Full description

Saved in:
Bibliographic Details
Main Author: Wang Yili
Format: Article
Language:English
Published: EDP Sciences 2025-01-01
Series:ITM Web of Conferences
Online Access:https://www.itm-conferences.org/articles/itmconf/pdf/2025/01/itmconf_dai2024_04021.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Description
Summary:Sentiment analysis, a crucial subfield of natural language processing, enables businesses and policymakers to understand public emotions and opinions, essential for crafting effective strategies across industries like marketing and customer service. As the volume of online reviews grows, automated sentiment classification models have become vital for efficiently processing this data. This study explores fine-tuning the LLaMA-8B large language model based on the Amazon Product Reviews dataset from Kaggle, aiming to improve sentiment classification accuracy. Using the LoRA fine-tuning approach combined with the Variant Greedy Search Technique (VGST) and TextBlob for polarity handling, the research addresses dataset size challenges. The model’s fine-tuning process includes one-shot learning and chain-of-thought prompting to better capture nuanced sentiment expressions. Evaluated using comprehensive metrics, LLaMA-8B demonstrates superior precision compared to Qwen2-7B and achieves near LLaVA performance with enhanced speed. Additionally, it outperforms models like Decision Tree, SVM, Multinomial NB, and XLNet in accuracy. This work underscores the potential of large language models for sentiment analysis and sets the stage for future extensions to multimodal input scenarios.
ISSN:2271-2097