TL;DR
This paper investigates how Large Language Models (LLMs) represent moral concepts, moving beyond surface-level judgments to understand their internal "moral compass." By using Moral Foundations Theory (MFT) and advanced interpretability techniques like Sparse Autoencoders (SAEs) and causal steering, the researchers found that LLMs develop structured, multi-dimensional representations of morality that emerge during pretraining and are selectively refined by post-training. This suggests that LLMs can develop a form of "moral geometry" from language alone, offering a new lens for understanding both AI behavior and human moral cognition.
What Problem Does This Paper Address?
As LLMs become more integrated into sensitive domains, it's crucial to understand if their moral judgments stem from genuine internal structures or mere "moral mimicry" – superficial pattern matching without underlying understanding. Current evaluations often focus on LLM outputs, treating the models as black boxes. This paper aims to bridge this gap by investigating the internal representations of moral concepts within LLMs, specifically using Moral Foundations Theory (MFT) as a framework. The core question is whether LLMs develop a structured, multi-dimensional internal representation of morality, akin to human moral cognition, or if their moral outputs are simply a consequence of statistical regularities in their training data.
Methods
The researchers employed a multi-level mechanistic framework:
- Concept Vector Construction: They created "concept vectors" representing each of the five MFT foundations (Care, Fairness, Loyalty, Authority, Sanctity) by analyzing LLM activations on moral vignettes. These vectors capture how the model internally separates each foundation from a "Social Norm" baseline.
- Topological Alignment: They validated these concept vectors by projecting them onto human-labeled Reddit posts to see if the LLM's internal representations aligned with how people express morality in natural language.
- Mechanistic Decomposition (SAEs): Sparse Autoencoders (SAEs) were used to break down the dense concept vectors into smaller, more interpretable "atomic features." This helps identify specific internal mechanisms responsible for representing moral concepts.
- Causal Intervention (Steering): They performed "macro-steering" (intervening with the dense concept vectors) and "micro-steering" (intervening with individual SAE features) during inference. By observing how these interventions shifted LLM outputs on moral questionnaires, they established a causal link between internal representations and moral behavior.
Datasets
- Moral Foundations Vignettes (MFV-130) and expansions: Used to construct concept vectors representing moral foundations.
- Reddit Moral Foundations Corpus: Human-labeled Reddit posts used for validating concept vector alignment with natural language expressions of morality.
- FineWeb dataset: A large-scale general-domain web corpus used for semantic validation of SAE features.
- Moral Foundations Questionnaire-2 (MFQ-2): Used as an in-domain readout for evaluating behavioral effects of steering.
- Schwartz Portrait Values Questionnaire (PVQ-21) and Political Ideology Item: Used as cross-framework readouts to test for theoretically aligned shifts on related psychological constructs.
- MMLU (Massive Multitask Language Understanding): Used to assess general capability preservation after steering interventions.
Key Insights and Ideas
- Moral Geometry Emerges from Pretraining: LLMs naturally develop distinct geometric representations for moral foundations during pretraining, aligning with human moral perceptions. This suggests that the structure of morality can emerge from statistical patterns in language alone, without explicit moral instruction.
- Post-Training Selectively Rewires, Doesn't Create: Instruction tuning (post-training) refines these pre-existing moral structures but doesn't introduce them from scratch. The effects are family-specific, with some models amplifying certain foundations while others compress them.
- Moral Foundations are Composed of Atomic Features: SAEs reveal that broad moral foundations are not monolithic but are built from granular, interpretable features. These features show semantic links to specific moral concepts, suggesting partially disentangled mechanisms within LLM representations.
- Causal Control of Moral Behavior: Steering LLM activations with concept vectors or specific SAE features can predictably shift moral judgments and related behaviors, demonstrating that these internal representations are not just correlates but causal drivers of LLM outputs.
- Pluralistic Morality in LLMs: The findings support a pluralistic view of morality, where distinct foundations are represented separately, rather than a single harm-based dimension.
Key Results
- Robust Separability: All 7 base models tested showed significant linear separability for all five MFT foundations from a Social Norm baseline, with standardized Wasserstein distances (W₁) ranging from 0.16 to 0.71.
- Layer-wise Crystallization: Moral concepts are not uniformly distributed; they tend to "crystallize" at specific layers, with Llama models showing a mid-network peak and Qwen models exhibiting a U-shaped or late-layer peak.
- Sanctity as an Anchor: Sanctity was consistently geometrically isolated from other foundations in 12 out of 14 models.
- Fairness-Authority Proximity: Fairness was geometrically closer to Authority than to Care in most models, deviating from the canonical MFT clustering.
- Loyalty-Authority Collapse: Loyalty and Authority formed a near-collapsed pair in all models, suggesting they are not well-separated directions.
- Causal Steering Effectiveness: Macro-steering and micro-steering interventions reliably shifted MFQ-2 scores, with micro-steering (using SAE features) often recovering causal control on foundations that were less responsive to macro-steering.
- Cross-Construct Transfer: Steering also produced theoretically aligned shifts on unrelated measures like political ideology and Schwartz values, indicating a shared internal representational structure.
- Capability Preservation: Steering interventions within a reasonable range (|p| ≤ 0.20) generally preserved general model capabilities (MMLU scores) within acceptable degradation limits.
Limitations and Future Work
- SAE Layer Stride: The use of SAEs with a fixed layer stride means the identified features are a sparse decomposition, not an exhaustive map of feature evolution. Future work could use all-layer SAEs for a more comprehensive analysis.
- English-Centric Corpora: The analysis is anchored in English-centric corpora and MFT. It's unclear how these findings would translate to multilingual contexts or alternative moral frameworks.
- Encoding vs. Reasoning: The study primarily evaluates encoding-phase representations, not generation-phase reasoning. Future work could investigate how explicit reasoning processes influence moral representations.
- Deployment-Relevant Side Effects: The study did not comprehensively measure potential side effects of steering, such as changes in refusal behavior, bias, or toxicity. Future work should rigorously assess these for safe deployment.
- Automated Annotation: The use of LLMs for semantic validation of SAE features can introduce interpretation errors and biases. Human validation is crucial, but the process itself relies on LLM capabilities.
Summary updated