Fine-Tuning Gemma-7B for Enhanced Sentiment Analysis of Financial News Headlines

Kangtong Mo, Wenyan Liu, Xuanzhen Xu, Chang Yu, Yuelin Zou +1 more
6/19/2024
cs.CLcs.AI

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

In this study, we explore the application of sentiment analysis on financial news headlines to understand investor sentiment. By leveraging Natural Language Processing (NLP) and Large Language Models (LLM), we analyze sentiment from the perspective of retail investors. The FinancialPhraseBank dataset, which contains categorized sentiments of financial news headlines, serves as the basis for our analysis. We fine-tuned several models, including distilbert-base-uncased, Llama, and gemma-7b, to evaluate their effectiveness in sentiment classification. Our experiments demonstrate that the fine-tuned gemma-7b model outperforms others, achieving the highest precision, recall, and F1 score. Specifically, the gemma-7b model showed significant improvements in accuracy after fine-tuning, indicating its robustness in capturing the nuances of financial sentiment. This model can be instrumental in providing market insights, risk management, and aiding investment decisions by accurately predicting the sentiment of financial news. The results highlight the potential of advanced LLMs in transforming how we analyze and interpret financial information, offering a powerful tool for stakeholders in the financial industry.

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. 5 weaker matches are hidden by default — 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{mo2024finetuning,
  title  = {Fine-Tuning Gemma-7B for Enhanced Sentiment Analysis of Financial News Headlines},
  author = {Kangtong Mo and Wenyan Liu and Xuanzhen Xu and Chang Yu and Yuelin Zou and Fangqing Xia},
  year   = {2024},
  eprint = {2406.13626},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.13626v1}
}

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

Discussion