Is the GPT model suitable for sentiment analysis? Testing for geographical, political and gender bias

Read full text
Authors: Agnieszka Choczyńska
Cited by: 0
References: 12

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.

Fields of Study & Subjects

Sentiment Analysis and Opinion Mining Ethics and Social Impacts of AI Topic Modeling

Publication details

Journal / source
Statistics in Transition New Series
Volume
27
Issue
1
Pages
187–204
Publication date
11 March 2026
Language
EN