LLMs and Generative AI for Financial Sentiment Classification: An Explainable Domain-Adaptive Framework
Open Access
Abstract
This study aims to investigate the integration of generative artificial intelligence (GAI) and advanced large language models (LLMs) in financial sentiment research, focusing on improving the accuracy and robustness of financial sentiment classification from investor-generated textual data. The research employs advanced large language models, including XLNet, FinBERT, T5, Gemma-7B, Llama-2, and Llama-3, specifically fine-tuned to address the intricacies of financial language. We utilize generative AI models, such as GPT-4, GPT-3.5, and GPT-2, for data augmentation to mitigate scarcity. The fine-tuned Gemma-7b model proved to be the most successful, with a greater Success Rate (S-rate). The Gemma-7b model showed significant enhancements in performance after fine-tuning, highlighting its capacity to grasp the intricacies of financial emotion. This methodology provides a robust framework for financial sentiment classification and supports the extraction of meaningful sentiment signals from financial text. The results demonstrate the effectiveness of advanced LLMs for financial sentiment analysis and highlight their potential for supporting future research and analytical applications in financial text mining.Keywords
This publication has 85 references indexed in Scilit:
- Retrieval-augmented generation for natural language processing: a surveyArtificial Intelligence Review, 2026
- Improving emotion classification in e-commerce customer review analysis using GPT and meta‑ensemble deep learning technique for multilingual systemMultimedia Tools and Applications, 2024
- Can ChatGPT assist in picking stocks?Finance Research Letters, 2023
- A Comprehensive Analysis of Consumers Sentiments Using an Ensemble Based Approach for Effective Marketing Decision-Making2023
- LSTM based Sentiment Analysis of Financial NewsSN Computer Science, 2023
- A multi-source entity-level sentiment corpus for the financial domain: the FinLin corpusLanguage Resources and Evaluation, 2021
- Sentiment analysis using deep learning architectures: a reviewArtificial Intelligence Review, 2019
- Word2vec2018
- Word Embedding for Understanding Natural Language: A Survey2017
- Sentiment Analysis and Opinion Mining2012