Examining the Influence of Political Bias on Large Language Model Performance in Stance Classification

Lynnette Hui Xian Ng, Iain Cruickshank, Roy Ka-Wei LeearXiv 2024

Abstract

Large Language Models (LLMs) have demonstrated remarkable capabilities in executing tasks based on natural language queries. However, these models, trained on curated datasets, inherently embody biases ranging from racial to national and gender biases. It remains uncertain whether these biases impact the performance of LLMs for certain tasks. In this study, we investigate the political biases of LLMs within the stance classification task, specifically examining whether these models exhibit a tendency to more accurately classify politically-charged stances. Utilizing three datasets, seven LLMs, and four distinct prompting schemes, we analyze the performance of LLMs on politically oriented statements and targets. Our findings reveal a statistically significant difference in the performance of LLMs across various politically oriented stance classification tasks. Furthermore, we observe that this difference primarily manifests at the dataset level, with models and prompting schemes showing statistically similar performances across different stance classification datasets. Lastly, we observe that when there is greater ambiguity in the target the statement is directed towards, LLMs have poorer stance classification accuracy.

Introduction

Stance detection—the task of determining if a piece of text is "for," "against," or "neutral" toward a specific target—is a cornerstone of social media analysis and public opinion research. However, Large Language Models (LLMs) are trained on massive, human-generated datasets that are inherently saturated with political viewpoints. This study addresses a critical question: Do these ingrained political biases affect how well LLMs perform on objective NLP tasks? If a model is more accurate at identifying stances that align with its training data's dominant ideology, it could lead to skewed results in automated research, content moderation, and sentiment analysis.

Methodology

The researchers evaluated eight models: seven open-source models (including Llama-2, Falcon, and Mistral) and GPT-3.5. These were tested using four distinct prompting strategies:

  1. Task-only: A simple instruction to classify the stance.
  2. Task + Context: Providing the statement and the specific target entity.
  3. Zero-shot Chain-of-Thought (CoT): Asking the model to "think step-by-step" before answering.
  4. Bias CoT: A novel approach where the model is first instructed to reason about potential political bias in the statement before performing the stance classification.

Performance was measured using Micro-F1 scores, calculated separately for left-leaning and right-leaning stances. Statistical t-tests determined the significance of performance differences. The study utilized three manually annotated datasets: BASIL (news articles), SemEval2016 (tweets on controversial topics), and Elections2016 (tweets on the 2016 US election).

Results and Discussion

Performance Disparities and the "Bias CoT" Effect

Every model tested showed a statistically significant difference (p < 0.01) in its ability to classify left-leaning versus right-leaning stances. Interestingly, the "Bias CoT" prompt, intended to mitigate bias, actually resulted in the highest number of non-zero performance differences. Explicitly prompting the model to engage with political concepts appears to trigger internal biases more strongly, exacerbating performance gaps.

Dataset-Level Influence

A key finding is that performance disparities are primarily driven by the dataset rather than the specific model or prompting scheme. As shown in Figure 1, the density of performance differences varies significantly across datasets but remains relatively consistent across different models and prompts.

Density plots of performance differences across Dataset, Model, and Prompt levels.

The direction of bias was often consistent within a dataset: models generally performed better on left-leaning stances in Elections2016 and BASIL, but favored right-leaning stances in SemEval2016. This suggests that the nature of the training data for specific topics is the primary driver of the performance gap.

Comparative Performance

LLMs frequently outperformed traditional supervised baselines. For example, as detailed in Figure 5, the UL2 (Flan-tuned) model achieved an F1 score of 0.72 on the SemEval2016 dataset, significantly higher than the 0.56 baseline set by traditional CNN models.

Micro-F1 scores for various LLMs across three datasets and four prompting schemes.

Sensitivity to Target Phrasing

Ablation studies revealed that LLMs are highly sensitive to target phrasing. "Underspecifying" a target (e.g., using only a last name) significantly degraded performance, while adding formal titles (e.g., "Presidential Candidate") maintained stability. This highlights the impact of ambiguity on model accuracy.

Conclusion

This research demonstrates that LLMs are not neutral observers; their stance classification performance is significantly influenced by political lean. While LLMs show strong overall performance, the persistent gaps between ideological stances—driven largely by dataset characteristics—pose challenges for objective analysis. Future work should focus on developing bias-robust prompting schemes and expanding the geographic and linguistic scope of this research beyond the U.S. political landscape.

Code & Dataset: http://doi.org/10.5281/zenodo.12938478

Summary updated

BibTeX
@misc{ng2024examining,
  author = {Lynnette Hui Xian Ng and Iain Cruickshank and Roy Ka-Wei Lee},
  title = {{Examining the Influence of Political Bias on Large Language Model Performance in Stance Classification}},
  year = {2024},
  eprint = {2407.17688},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.17688},
}
Figure