Work

A Comparative Analysis of Transformer Models for Aspect-Based Sentiment Analysis in Financial News

Year: 2025
Type: dissertation
Abstract: Natural Language Processing (NLP) plays an increasingly central role in the analysis of large volumes of unstructured textual information within the financial sector. This thesis examines the potential of various large language models (LLMs) for aspect-based sentiment analysis (ABSA) in financial news while focusing on applying advanced models for ABSA in financial contexts, a topic that has not been extensively investigated using the latest models. The methods used in this study include data collection, processing, analysis, fine-tuning and few-shot prompting, with transformer models are applied to the task. Furthermore, the methodological approaches include entity and aspect extraction, model selection, model training optimisation, and evaluation, applying models such as RoBERTa, T5-Large, and Llama 3.2 1B to assess sentiment and aspect classification performance. The results of the sentiment analysis within financial news articles show that fine-tuned models, particularly RoBERTa and Llama 3.2 1B, significantly outperform their base counterparts in both aspect and sentiment classification tasks. In aspect classification, fine-tuned RoBERTa achieved the highest accuracy of 0.55, an F1 macro score of 0.52, and a PR AUC of 0.53. In sentiment classification, both fine-tuned Llama 3.2 1B and RoBERTa excelled with accuracies of 0.85, F1 macro scores of 0.81 and 0.83, respectively, and PR AUC values of 0.89 and 0.86, highlighting their effectiveness at capturing sentiment in financial contexts. The findings illustrate that while fine-tuned LLMs, particularly RoBERTa, show considerable potential in financial sentiment and aspect classification tasks, challenges persist due to dataset limitations and nuanced financial language. Despite outperforming previous models in multi-class sentiment analysis, issues such as misclassifications, dataset imbalance, and the difficulty of interpreting complex financial contexts remain, highlighting the need for continued model refinement and domain-specific adaptations. In conclusion, this thesis demonstrates that the fine-tuned LLMs such as RoBERTa and Llama 3.2 1B show potential for ABSA in the financial domain, although further research is needed to address challenges related to data imbalance, model interpretability, and the refinement of fine-tuning techniques for improved granularity in real-world applications.
Author: Holmberg, Jonatan
Language: English
Open Access status: green
OpenAlex ID: W7115318883
Cites: 110
Cited by: 1
Related to: 10