[Paper Review] Tracing Moral Foundations in Large Language Models
The paper analyzes how Moral Foundations Theory concepts are encoded in two instruction-tuned LLMs using layer-wise representations, sparse autoencoders, and causal steering to show multi-dimensional, partly disentangled moral structures that causally influence outputs.
Large language models (LLMs) often produce human-like moral judgments, but it is unclear whether this reflects an internal conceptual structure or superficial ``moral mimicry.'' Using Moral Foundations Theory (MFT) as an analytic framework, we study how moral foundations are encoded, organized, and expressed within two instruction-tuned LLMs: Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct. We employ a multi-level approach combining (i) layer-wise analysis of MFT concept representations and their alignment with human moral perceptions, (ii) pretrained sparse autoencoders (SAEs) over the residual stream to identify sparse features that support moral concepts, and (iii) causal steering interventions using dense MFT vectors and sparse SAE features. We find that both models represent and distinguish moral foundations in a structured, layer-dependent way that aligns with human judgments. At a finer scale, SAE features show clear semantic links to specific foundations, suggesting partially disentangled mechanisms within shared representations. Finally, steering along either dense vectors or sparse features produces predictable shifts in foundation-relevant behavior, demonstrating a causal connection between internal representations and moral outputs. Together, our results provide mechanistic evidence that moral concepts in LLMs are distributed, layered, and partly disentangled, suggesting that pluralistic moral structure can emerge as a latent pattern from the statistical regularities of language alone.
Motivation & Objective
- Investigate whether LLMs internally organize moral concepts in a structured, human-aligned geometry beyond surface text imitation.
- Examine layer-wise representations of Moral Foundations Theory foundations in two instruction-tuned LLMs.
- Decompose dense moral directions into interpretable sparse features using sparse autoencoders (SAEs).
- Establish causal relevance by steering model activations along both macro (foundation vectors) and micro (SAE features) directions.
- Assess cross-cultural variability by comparing an English-centric model (LLaMA) and a Chinese-centric model (Qwen).
Proposed method
- Construct foundation-specific concept vectors from MFV-130-based vignettes by layerwise contrast (last-token residuals).
- Project Reddit Moral Foundations Corpus posts into model activations to assess alignment via projection scores and Signed Wasserstein Distance (SW1).
- Decompose dense directions with pretrained SAEs to identify Top-K features aligned with each foundation.
- Ground SAE feature semantics by sampling top-activating contexts from a large web corpus and human/LLM-assisted interpretation.
- Perform inference-time steering by adding a scaled control vector to the residual stream for macro (foundation vector) and micro (SAE feature) interventions.
- Evaluate steering efficacy via changes in MFQ-2 scores and monitor general capability (MMLU) under steering.
Experimental results
Research questions
- RQ1Do LLMs encode moral foundations as separable geometric directions that align with human moral judgments?
- RQ2Are moral foundations decomposable into interpretable sparse features within LLM representations?
- RQ3Do causal steering interventions along these directions modulate the model’s moral outputs, and are effects layer- and model-dependent?
- RQ4How does cross-cultural (WEIRD vs non-WEIRD) variation affect the separability and steering of moral foundations in LLMs?
Key findings
- Found strong alignment between model representations and human moral perceptions, strongest for Care and Sanctity, with final layers showing strongest separability.
- SAE features reveal interpretable, atomic mechanisms that correspond to foundations, e.g., Care decomposing into ‘physical suffering’ and ‘emotional distress’ clusters.
- Macro-steering shows asymmetric steerability across foundations, with Care, Sanctity, and Fairness more responsive than Loyalty and Authority in LLaMA and similarly in Qwen.
- Micro-steering via Top-K SAE features can rescue or enhance steerability for bases where macro directions are entangled with Social Norms, sometimes yielding 5.7x gains in sensitivity for Authority/Loyalty in LLaMA.
- In Qwen, foundation separability is cleaner and macro steering often suffices, whereas LLaMA exhibits alignment inertia that micro-steering can mitigate.
- Results support a multi-dimensional, partly disentangled moral structure in LLMs and demonstrate causal links between internal representations and moral outputs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.