Abstract
Traditional assessments of political bias in Large Language Models (LLMs) often rely on surface-level text analysis and binary "left-right" classifications. This paper presents a more nuanced framework that utilizes representation engineering to map four distinct political dimensions—Economic, Diplomatic, Civil, and Society—within the hidden layers of LLMs. Our findings indicate that political concepts "crystallize" in the middle-to-late layers of models, allowing for high-accuracy detection and precise steering of internal model "intentions."
Introduction
As LLMs are increasingly integrated into information-seeking workflows, understanding their inherent political biases is crucial. Most existing research treats these models as black boxes, evaluating bias based on generated outputs. However, this approach faces a "misalignment" challenge: a model’s public response may appear neutral while its internal state harbors a specific leaning. Furthermore, the traditional one-dimensional political spectrum is insufficient for capturing the complexity of political thought, often leading to concept confounds where distinct ideologies are conflated.
Methodology: The 4D Framework
To address these limitations, we propose a fine-grained framework consisting of four primary axes:
- Economic: Equality vs. Market
- Diplomatic: Globe vs. Nation
- Civil: Liberty vs. Authority
- Society: Progress vs. Tradition
We employ Representation Engineering (RepE) to identify specific vectors in the model's hidden layers that correspond to these concepts. Our pipeline involves three stages: learning the concept directions, detecting them in new inputs, and intervening to steer model behavior.
Techniques used include Contrastive Activation Addition (CAA), PCA-based RepE to find directions of maximum variance, and linear probing to predict political leanings from internal states.
Data and Evaluation
We constructed a new dataset of approximately 10,000 statements by synthesizing GPT-4o responses to news headlines from AllSides and political definitions from the 8Values project. To ensure the robustness of our learned vectors, we conducted out-of-distribution (OOD) testing using real-world data from the 8Values Questionnaire and Rate Your Bias. This confirms that our probes capture semantic political concepts rather than surface-level linguistic patterns.
Internal Dynamics and Disentanglement
A key discovery of this work is the "layer-wise crystallization" of political concepts. In early layers, internal representations of "left" and "right" are nearly indistinguishable. However, they become sharply differentiated in the middle and late layers.
Our multi-dimensional approach also solves the "Left is Right" confound. For instance, in early layers, "Economic Equality" (Left) and "Civil Authority" (Right) are highly correlated (0.85). By the 28th layer, the model successfully disentangles these concepts (correlation dropped to -0.17), demonstrating that fine-grained analysis is essential for accurate interpretation.
Experimental Results
- Detection Accuracy: Linear probes achieved over 95% accuracy in identifying political leanings across various model families, including Llama3, Gemma, Mistral, and Qwen.
- Generalization: The 4D probes significantly outperformed single-axis baselines on OOD data, proving the framework's superior generalizability.
- Model Steering: We successfully demonstrated the ability to steer model outputs. For example, applying a "Market" vector to a prompt about inheritance tax shifted the model toward supporting wealth accumulation, while the "Equality" vector shifted it toward redistribution.
- Guardrail Behavior: We observed that models sometimes resist steering when pushed into sensitive territory, defaulting to neutral "subjective question" responses, indicating a conflict between injected bias and safety training.
Limitations and Future Work
The current framework is primarily rooted in U.S. political discourse. Future work should incorporate broader national and cultural contexts, as political definitions vary significantly globally. Additionally, we aim to develop more precise metrics to quantify the "honesty" of a model by measuring the gap between its internal state and its generated output.
Summary updated