Is the GPT model suitable for sentiment analysis? Testing for geographical, political and gender bias
Is the GPT model suitable for sentiment analysis? Testing for geographical, political and gender bias
Author(s): Agnieszka ChoczyńskaSubject(s): Social Sciences, Economy
Published by: Główny Urząd Statystyczny
Keywords: large language models; geographical bias; gender bias; political bias; sentiment analysis;
Summary/Abstract: The new generation of Large Language Models, based on Generative Pre-trained Transformers (GPT) can be useful for automatic text annotation and sentiment analysis. However, they tend to learn the bias from training data, which can lead to distorted results. In this paper, the GPT-4o-mini model by OpenAI is tested for the presence of geographical, political and gender bias in the case of Polish economic news headlines. It has been found that the model consistently differs in sentiment scores for the same sentence, depending on the country mentioned. A remedy to this problem is proposed, which masks the references to countries and nationalities using the GPT model. Some differences in sentiment scores resulting from explicit references to gender or political parties are also identified, although these types of bias are considerably weaker than geographical bias.
Journal: Statistics in Transition. New Series
- Issue Year: 27/2026
- Issue No: 1
- Page Range: 187-204
- Page Count: 17
- Language: English
