# Tracing Moral Foundations in Large Language Models

*Chenxiao Yu, Bowen Yi, Farzan K Malekabadi, Suhaib Abdurahman, Jinyi Ye, Shrikanth Narayanan, Yue Zhao, Morteza Dehghani*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155125) · [Open on the map](../papers.html#p155125)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [LLM Cognitive and Value Evaluation](../pgroup/389.md) · Type: empirical study · Keywords: moral foundations, large language models, interpretability, representation analysis, causal steering

Areas: [LLM Reasoning](../areas/reasoning.md) › Reasoning Mechanisms › Mechanistic Interpretability; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › LLM Internal Representations; [Interpretability](../areas/interpretability.md) › Mechanistic Interpretability › Cognitive Concept Interpretation

## Summary
The paper reveals that large language models encode moral foundations in distributed, layered, and partially disentangled representations, providing mechanistic evidence that moral concepts emerge from language statistics.

## Explained to a 5-year-old
Big computer programs called language models can talk about right and wrong like people do. We wanted to know if they really understand morals or just copy what they heard. We looked inside the programs to see how they store ideas about good and bad. We found they have hidden ways to think about different moral ideas, and we can change their answers by tweaking those hidden ideas. This tells us that even computer brains can develop their own sense of morality from reading lots of text.

## Explained to a 5-year-old, longer
Big computer programs called language models can talk about right and wrong like people do. We were curious whether they truly understand moral ideas or just copy the words they see. To find out, we looked inside the programs at different layers to see how they store thoughts about good and bad. We also used special tools that find hidden patterns in the program's thinking. These tools helped us see that the programs have separate pieces for different moral concepts. We discovered that the moral ideas are spread out through the program and can be changed by adjusting those pieces. By steering the hidden ideas, we could make the program give different moral answers. This shows that the program's internal structure influences its moral judgments. The study suggests that even machines can develop a kind of moral sense just from reading lots of text. It also shows that we can peek inside and guide their moral thinking. Understanding how this works helps us build more trustworthy AI.

## For a technical reader
The authors investigated whether large language models truly understand moral concepts or merely mimic moral language. They analyzed model internals across layers, using sparse autoencoders to uncover hidden features related to moral foundations. By applying causal steering with dense moral vectors and sparse features, they showed that altering these internal representations predictably changes moral outputs. Their results reveal that moral knowledge is distributed, layered, and partially disentangled within the models. This provides a mechanistic view of how statistical patterns in training data can give rise to complex moral reasoning.

## Problem
It is unclear whether large language models' moral judgments stem from an internal conceptual structure or from superficial mimicry of moral language.

## Method
The study uses a multi-level analysis combining layer-wise examination of moral concept representations, pretrained sparse autoencoders to discover sparse features, and causal steering interventions with dense moral foundation vectors and sparse features.

## Contributions
We provide mechanistic evidence that moral concepts in LLMs are distributed, layered, and partly disentangled, and that pluralistic moral structure can emerge as a latent pattern from the statistical regularities of language alone.

## Research questions this paper is counted under

- [Do large language models develop genuine internal representations of human-like cognitive constructs, or do they merely mimic surface patterns?](../q/43.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155125)
