Comparative analysis of transformer models for sentiment classification of UK CBDC discourse on X

Abstract Sentiment analysis is critical in understanding public perceptions of evolving currencies such as central bank digital currencies (CBDCs). This study compares three transformer-based models—DistilBERT, RoBERTa, and XLM-RoBERTa—for sentiment classification of UK CBDC-related tweets. Models were fine-tuned on a domain-specific, English-only dataset and evaluated using accuracy, precision, recall, F1-score, training and validation loss across 3 and 5 training epochs. RoBERTa consistently outperformed DistilBERT and XLM-RoBERTa, achieving the highest accuracy and F1-scores. However, extended training epochs in RoBERTa_5 indicated signs of overfitting, making the model fine-tuned for 3 epochs (RoBERTa_3) a suitable model for classifying sentiments on unseen data. These findings provide practical guidance for selecting optimal transformer models for sentiment analysis in specialised financial domains like CBDCs, emphasising the importance of balancing training duration with generalisation capabilities.

Authors

Institutions

Publication Details

Journal
Discover Analytics
Published
2025-06-30
DOI
https://doi.org/10.1007/s44257-025-00035-4
Citations
4
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
9.92

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparative analysis of transformer models for sentiment classification of UK CBDC discourse on X

Andrea Bracciali, Guneet Kaur, Saemundur Haraldsson
4 citations
Discover Analytics
Sentiment Analysis and Opinion Mining
9.92
article

Comparative analysis of transformer models for sentiment classification of UK CBDC discourse on X

Andrea Bracciali, Guneet Kaur, Saemundur Haraldsson
article en
4 citations

Abstract

Abstract Sentiment analysis is critical in understanding public perceptions of evolving currencies such as central bank digital currencies (CBDCs). This study compares three transformer-based models—DistilBERT, RoBERTa, and XLM-RoBERTa—for sentiment classification of UK CBDC-related tweets. Models were fine-tuned on a domain-specific, English-only dataset and evaluated using accuracy, precision, recall, F1-score, training and validation loss across 3 and 5 training epochs. RoBERTa consistently outperformed DistilBERT and XLM-RoBERTa, achieving the highest accuracy and F1-scores. However, extended training epochs in RoBERTa_5 indicated signs of overfitting, making the model fine-tuned for 3 epochs (RoBERTa_3) a suitable model for classifying sentiments on unseen data. These findings provide practical guidance for selecting optimal transformer models for sentiment analysis in specialised financial domains like CBDCs, emphasising the importance of balancing training duration with generalisation capabilities.

Discover AnalyticsVol. 3(1)
University of Stirling (GB), University of Turin (IT)
University of Stirling
Openalex Percentile: Top 2%
Sentiment Analysis and Opinion Mining
9.92
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.