Whose Side Are You On? Investigating the Political Stance of Large Language Models

Pagnarasmey Pit, Xingjun Ma, Mike Conway, Qingyu Chen, James Bailey, Henry Pit, Putrasmey Keo, Watey Diep, Yu-Gang JiangarXiv 2024

Abstract

Large Language Models (LLMs) have gained significant popularity for their application in various everyday tasks such as text generation, summarization, and information retrieval. As the widespread adoption of LLMs continues to surge, it becomes increasingly crucial to ensure that these models yield responses that are politically impartial, with the aim of preventing information bubbles, upholding fairness in representation, and mitigating confirmation bias. In this paper, we propose a quantitative framework and pipeline designed to systematically investigate the political orientation of LLMs. Our investigation delves into the political alignment of LLMs across a spectrum of eight polarizing topics, spanning from abortion to LGBTQ issues. Across topics, the results indicate that LLMs exhibit a tendency to provide responses that closely align with liberal or left-leaning perspectives rather than conservative or right-leaning ones when user queries include details pertaining to occupation, race, or political affiliation. The findings presented in this study not only reaffirm earlier observations regarding the left-leaning characteristics of LLMs but also surface particular attributes, such as occupation, that are particularly susceptible to such inclinations even when directly steered towards conservatism. As a recommendation to avoid these models providing politicised responses, users should be mindful when crafting queries, and exercise caution in selecting neutral prompt language.

Introduction

As Large Language Models (LLMs) transition from novelty tools to primary sources for information retrieval and decision support, their neutrality becomes a matter of public importance. If a model consistently favors one political ideology, it risks creating "information bubbles," reinforcing confirmation bias, and marginalizing diverse viewpoints. Previous studies often relied on small datasets or used other potentially biased LLMs to judge political stance. This research seeks to provide a more rigorous, human-validated pipeline to systematically investigate whether LLMs produce politically impartial responses across polarizing topics like abortion, gun control, and LGBTQ+ rights.

Methodology

The researchers developed an automated pipeline to evaluate five foundational models: GPT-4, Llama-2-7B-Chat, Falcon-7B, MPT-7B, and Flan-UL2. The methodology hinges on three key components:

  1. PoliPrompts: A dataset of questions on controversial topics derived from the PEW Research Center and American National Election Studies (ANES), expanded via data augmentation to create 1,000 queries.
  2. Persona Steering: Models were tested under indirect bias (neutral questions) and direct bias (explicitly prompted to adopt a political persona, e.g., "You are a Republican Politician").
  3. BERTPOL: A custom classification model based on BERT, fine-tuned on 1,000 human-labeled question-response pairs. BERTPOL serves as the primary evaluator, categorizing outputs as Liberal, Conservative, or Neutral.
The quantitative framework and pipeline for investigating LLM political orientation.

Results and Analysis

The investigation revealed several critical insights into the inherent biases of modern LLMs.

Baseline Alignment and the "Liberal Lean"

A striking finding is the models' resistance to conservative steering. While models excelled at providing liberal responses when prompted to act like a Democrat, they often defaulted to left-leaning or neutral responses when tasked with representing a Republican persona, particularly on social issues. Most models align with the "Stressed Sideliners" segment of the U.S. population—a group that typically leans center-left.

Baseline political alignment of various LLMs within the U.S. political typology spectrum.

Occupational Stereotypes and Self-Awareness

The models exhibit baked-in political perceptions of professions. For instance, healthcare and education roles are predominantly associated with liberal leanings. Interestingly, while Llama-2 and GPT-4 viewed "University Professors" as neutral, they labeled "Parents" and "School Administrators" as left-leaning. Furthermore, a "self-awareness gap" was observed: while GPT-4 and Llama-2 could identify their own biased responses with 85% and 75% accuracy respectively, smaller models like MPT often perceived their biased outputs as neutral.

Topic-Specific Variance

Bias is not uniform across all subjects. Models were most consistently liberal on LGBTQ+ issues but showed more variance on topics like Abortion—where Flan-UL2 leaned conservative—and Economic Inequality.

Discussion and Limitations

The BERTPOL classifier achieved 95% accuracy, significantly outperforming GPT-4 as a judge. However, the study acknowledges several limitations. The human feedback used to train BERTPOL came from a specific demographic (political science students aged 18-24), which may influence the definition of neutrality. Additionally, while the dataset was augmented, a larger set of linguistically diverse queries would enhance robustness. Future work will focus on quantifying the actual influence of these biased responses on users and diversifying the panel of human labelers.

Conclusion

This study reaffirms the left-leaning characteristics of major LLMs and highlights how specific attributes like occupation can trigger these inclinations even under direct conservative steering. Users are advised to exercise caution and use neutral prompt language to mitigate the risk of receiving politicized responses.

Summary updated

BibTeX
@misc{pit2024whose,
  author = {Pagnarasmey Pit and Xingjun Ma and Mike Conway and Qingyu Chen and James Bailey and Henry Pit and Putrasmey Keo and Watey Diep and Yu-Gang Jiang},
  title = {{Whose Side Are You On? Investigating the Political Stance of Large Language Models}},
  year = {2024},
  eprint = {2403.13840},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.13840},
}
Figure