Evaluating the Moral Beliefs Encoded in LLMs

Nino Scherrer, Claudia Shi, Amir Feder, David M. Blei

This paper, titled "Evaluating the Moral Beliefs Encoded in LLMs," provides a rigorous look at the "moral compass" of modern AI. As Large Language Models (LLMs) are increasingly used as advisors and assistants, understanding the ethical priors baked into them—whether by accident during pre-training or by design during alignment—is a critical safety concern.

TL;DR

Researchers developed a statistical framework to treat LLMs as survey respondents, measuring not just what they choose in moral dilemmas, but how certain and consistent those choices are. The study reveals that while most models follow "commonsense" morality in simple cases, highly "aligned" models (like GPT-4 and Claude) have converged on a surprisingly similar set of preferences for even the most ambiguous moral scenarios.

What Problem Does This Paper Address?

Evaluating the "beliefs" of an LLM is notoriously difficult for two reasons. First, LLMs don't provide discrete "choices"; they output a distribution of tokens. Mapping a paragraph of text to a specific "Action A" or "Action B" requires a robust semantic mapping.

Second, LLMs are famously sensitive to "prompt engineering." If you change the wording of a question or the order of the options, the model might change its answer. This makes it hard to tell if a model has a stable moral belief or if it’s just reacting to the syntax of the prompt. The authors aim to cut through this noise to find the underlying moral preferences encoded in 28 different open- and closed-source models.

Methods

The authors introduce a statistical toolkit to quantify model behavior:

  • Action Likelihood: A method using rule-based functions to map token sequences back to specific actions.
  • Marginal Action Likelihood: To solve the "wording sensitivity" problem, they present the same scenario using multiple prompt templates (e.g., "A or B," "Repeat the choice," "Compare these actions") and average the results.
  • Uncertainty Metrics: They define Action Entropy (how "unsure" the model is about a choice) and Question-Form Consistency (QF-C) (how much the model’s choice fluctuates based on wording).
  • Hierarchical Clustering: They used Pearson correlation to group models based on their moral "agreement," allowing them to see which companies or model families share the same ethical outlook.

Datasets

The authors introduced a new benchmark called MoralChoice, consisting of 1,767 scenarios:

  • Low-Ambiguity (687 scenarios): Cases with a clear "commonsense" right answer (e.g., "Should I stop for a pedestrian?").
  • High-Ambiguity (680 scenarios): Cases where there is no clear consensus (e.g., "Should I tell a white lie to spare someone's feelings?").
  • Framework: Scenarios were grounded in philosopher Bernard Gert’s "Common Morality" framework, which focuses on ten rules like "Do not kill," "Do not deceive," and "Do not cheat."

Key Insights and Ideas

  • The "Alignment Convergence": Perhaps the most striking finding is that closed-source, RLHF-aligned models (GPT-4, Claude, PaLM 2) tend to agree with each other on ambiguous scenarios far more than they agree with open-source models. This suggests that current "alignment" techniques are pushing different AI systems toward a singular, shared moral viewpoint.
  • Wording vs. Wisdom: Some models appear "uncertain" in their answers, but the metrics show this isn't because the moral choice is hard. Instead, they have low Question-Form Consistency, meaning they are simply confused by the way the question is phrased.
  • Size and Stability: Smaller models (under 1B parameters) are significantly more erratic and sensitive to prompt variations, making them unreliable "moral respondents" compared to their larger counterparts.

Key Results

  • Commonsense Alignment: In low-ambiguity cases, almost all models correctly identified the "favorable" action, showing that basic moral norms are well-represented in training data.
  • High-Ambiguity Divergence: In difficult cases, most models correctly expressed high entropy (uncertainty). However, a specific "commercial cluster" (Sub-cluster A: GPT-4, Claude-v1.3, Claude-instant, and PaLM 2) showed a high correlation ($\ge 0.75$) in their preferences, even when there was no "correct" answer.
  • Open-Source Neutrality: Open-source models (like BLOOMZ or OPT) generally showed higher uncertainty and fewer "strong opinions" in ambiguous cases, likely because they haven't undergone the same intensive human-preference alignment as the commercial models.

Limitations and Future Work

The authors acknowledge several constraints:

  • Linguistic Narrowness: The study was conducted entirely in English, potentially missing cultural nuances in moral reasoning.
  • Prompt Diversity: Only three prompt templates were used; a more automated, diverse pipeline for prompt perturbation could yield deeper insights.
  • Contextual Isolation: The survey resets the model's context for every question. In the real world, moral advice happens in multi-turn conversations where previous statements might bias future ethical stances.
  • Scope of Scenarios: The dataset focused on rule-breaking (Gert’s rules) but didn't touch on professional ethics, complex legal dilemmas, or "trolley problem" style trade-offs.

Summary updated

BibTeX
@inproceedings{scherrer2023evaluating,
  author = {Nino Scherrer and Claudia Shi and Amir Feder and David M. Blei},
  title = {{Evaluating the Moral Beliefs Encoded in LLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=O06z2G18me},
}
Figure