Analyzing Political Bias in LLMs via Target-Oriented Sentiment Classification
Akram Elbouanani, Evan Dufraisse, Adrian Popescu
TL;DR
The paper develops a scalable framework to analyze political bias in large language models by treating target-oriented sentiment classification as the testbed and measuring prediction inconsistency across entity substitutions with an entropy-based metric. It constructs a large, multilingual dataset (450 sentences, 1319 politicians across six languages) and evaluates seven models to reveal systematic biases that favor left/center-left alignments and disfavor right/far-right alignments, with bias intensity increasing for larger models and varying across languages. A key contribution is showing that LLMs encode internal representations of entities and exhibit cross-language bias patterns, along with a mitigation strategy—replacing politician names with fictional counterparts—that reduces inconsistencies and improves robustness. The work highlights implications for deploying LLMs in socially sensitive tasks and provides a practical, model-agnostic approach for bias assessment and mitigation, while acknowledging limitations in data representativeness and evolving political contexts.
Abstract
Political biases encoded by LLMs might have detrimental effects on downstream applications. Existing bias analysis methods rely on small-size intermediate tasks (questionnaire answering or political content generation) and rely on the LLMs themselves for analysis, thus propagating bias. We propose a new approach leveraging the observation that LLM sentiment predictions vary with the target entity in the same sentence. We define an entropy-based inconsistency metric to encode this prediction variability. We insert 1319 demographically and politically diverse politician names in 450 political sentences and predict target-oriented sentiment using seven models in six widely spoken languages. We observe inconsistencies in all tested combinations and aggregate them in a statistically robust analysis at different granularity levels. We observe positive and negative bias toward left and far-right politicians and positive correlations between politicians with similar alignment. Bias intensity is higher for Western languages than for others. Larger models exhibit stronger and more consistent biases and reduce discrepancies between similar languages. We partially mitigate LLM unreliability in target-oriented sentiment classification (TSC) by replacing politician names with fictional but plausible counterparts.
