Large Language Models (LLMs) have transformed the field of natural language processing (NLP), achieving state-of-the-art performance across a wide range of linguistic tasks, including sentiment analysis. Unlike traditional machine learning methods that rely on manual feature engineering and task-specific datasets, LLMs such as ChatGPT (based on the GPT architecture; OpenAI, 2023), LLaMA (Meta’s Large Language Model; Touvron et al., 2023), and BERT (Bidirectional Encoder Representations from Transformers; Devlin et al., 2019) are pretrained on vast textual corpora and can capture nuanced semantic and contextual relationships across domains. This makes them particularly well-suited for extracting sentiment signals from informal, noisy, and unstructured data, such as user-generated content on social media platforms. In this study, we investigate the sentiment detection capabilities of three leading LLMs by comparing the sentiment signals they generate from content posted on Twitter (now X) related to two automotive brands: Toyota Camry and FIAT 500 (L500). For the Toyota Camry, we analyse a dataset comprising approximately 163,000 tweets, posted between June 2009 and December 2020. For the FIAT 500, we examine 20,387 tweets collected over a period spanning from August 1, 2012, to December 31, 2018. Our goal is to systematically evaluate and compare the sentiment classifications produced by ChatGPT, LLaMA, and BERT across these corpora. Beyond assessing each model’s ability to capture sentiment polarity, granularity, and alignment with human intuition, we aim to explore the relationships and patterns emerging from the sentiment signals. This includes analysing how these signals vary across brands, periods, and contextual factors. Our focus is on the effectiveness of each model in capturing sentiment dynamics within real-world, domain-specific opinion data. The findings are intended to contribute to a deeper understanding of the comparative strengths and limitations of generative and transformer-based models in sentiment-oriented tasks and to inform future applications in social media monitoring, brand perception, and consumer behaviour analysis.
University of Rome Tor Vergata, Italy - ORCID: 0000-0001-8041-2846
University of Rome Tor Vergata, Italy - ORCID: 0000-0003-4335-0388
Titolo del capitolo
The role of large language models in generating sentiment signals: A comparative and effectiveness-based study
Autori
Domenica Fioredistella Iezzi, Roberto Monte
Lingua
Inglese
DOI
10.36253/979-12-215-1062-1.41
Opera sottoposta a peer review
Anno di pubblicazione
2026
Copyright
© 2026 Author(s)
Licenza d'uso
Licenza dei metadati
Titolo del libro
Data, Statistics and AI for Well-Being of People and Organisations
Curatori
Luigi Fabbris, Alberto Franci, Pietro Renzi
Opera sottoposta a peer review
Numero di pagine
420
Anno di pubblicazione
2026
Copyright
© 2026 Author(s)
Licenza d'uso
Licenza dei metadati
Editore
Firenze University Press
DOI
10.36253/979-12-215-1062-1
ISBN Print
979-12-215-1061-4
eISBN (pdf)
979-12-215-1062-1
eISBN (xml)
979-12-215-1063-8
Collana
Applied Statistics Series