Linear Representations of Political Perspective Emerge in Large Language Models

Junsol Kim, James Evans, Aaron Schein

Introduction

As Large Language Models (LLMs) become increasingly integrated into information ecosystems, understanding their internal representations of subjective social concepts is critical. While it is well-documented that LLMs exhibit implicit political biases, the structural nature of these biases remains an open question. This research investigates the "Linear Representation Hypothesis"—the theory that neural networks encode high-level concepts as linear directions (vectors) in their activation space—applied to the complex domain of American political ideology. By identifying these internal "compasses," researchers can monitor and causally steer a model's perspective without modifying prompts or fine-tuning weights.

Methodology

The study utilizes a combination of mechanistic interpretability and activation engineering across three open-source 7B parameter models: Llama-2-7b-chat, Mistral-7b-instruct, and Vicuna-7b. The researchers employed a multi-stage approach:

  1. Linear Probing: The models were prompted to simulate the personas of 552 U.S. lawmakers from the 116th Congress. Internal activations from every attention head across all layers were recorded.
  2. Regression Analysis: Simple ridge regression models (linear probes) were trained to predict the lawmakers' ideological scores (from the DW-NOMINATE dataset) based on these activations.
  3. Generalization Testing: To ensure the probes captured a generalized concept of ideology rather than mere memorization, the researchers tested the probes on a separate dataset of 400 U.S. news outlets (Ad Fontes Media).
  4. Activation Steering: The learned "ideology vectors" were added to or subtracted from the model's activations during inference to observe causal shifts in generated content.

The Geometry of Ideology

Linear Representation and Accuracy

The study found strong evidence for the Linear Representation Hypothesis. Linear probes achieved high Spearman rank correlations—approximately 0.85 for the best single attention heads and 0.87–0.88 when ensembling the top 32 heads. Notably, non-linear probes (Multi-Layer Perceptrons) did not significantly outperform linear ones, suggesting that the model's internal representation of political ideology is inherently geometric and straight-lined.

The Middle-Layer Phenomenon

The most predictive features were consistently found in the middle layers (layers 10–20 of 32). This supports the prevailing view in interpretability research that early layers focus on syntax and low-level patterns, while late layers focus on output formatting. The middle layers appear to be the primary site for processing high-level, abstract semantics such as political perspective.

Cross-Domain Generalization

A pivotal finding was the ability of probes trained on politician data to accurately predict the political slant of news organizations, with correlations ranging from 0.72 to 0.80. This generalization indicates that the LLM has developed a unified, abstract "liberal-conservative" axis that transcends specific personas and applies to broader media contexts.

Causal Steering and Real-Time Auditing

By intervening in the model's internal state, the researchers demonstrated the ability to shift the political slant of generated text. By adding the ideology vector (multiplied by a factor $\alpha$) to the top-performing attention heads, the model could be forced to generate more conservative or liberal essays on divisive topics like immigration or healthcare. This shift was validated by both human annotators and GPT-4o.

Furthermore, the linearity of these representations allows for "token-by-token auditing." By applying the probe to each token as it is generated, researchers can visualize how the model's internal state fluctuates. For example, the probe can detect the shift in ideological "charge" when a model chooses the phrase "pro-choice" versus "unborn child," providing a high-resolution view of implicit bias in real-time.

Discussion and Limitations

While the results are robust for the U.S. political context, the study notes that the 1D linear model is less effective for multi-party systems in other countries, as explored in the Manifesto Project dataset. This suggests that while simple binaries are represented linearly, more complex political landscapes may require higher-dimensional representations.

Additionally, the study highlights significant ethical risks. While these techniques offer powerful tools for auditing and bias mitigation, they also present a "dual-use" risk. Malicious actors could use activation engineering to bypass safety filters or automate the production of subtly biased propaganda. As models scale beyond the 7B parameter range, further research is required to ensure these internal representations remain accessible and controllable for safety purposes.

Summary updated

BibTeX
@inproceedings{kim2025linear,
  author = {Junsol Kim and James Evans and Aaron Schein},
  title = {{Linear Representations of Political Perspective Emerge in Large Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=rwqShzb9li},
}
Figure