Skip to main content
QUICK REVIEW

[Paper Review] Evaluating the Moral Beliefs Encoded in LLMs

Nino Scherrer, Claudia Shi|arXiv (Cornell University)|Jul 26, 2023
Topic ModelingComputer Science20 citations
TL;DR

The paper presents a statistical framework to elicit and quantify moral beliefs encoded in LLMs, builds the MoralChoice survey, and analyzes 28 models across 1,367 moral scenarios to study action choice, uncertainty, and question-form sensitivity.

ABSTRACT

This paper presents a case study on the design, administration, post-processing, and evaluation of surveys on large language models (LLMs). It comprises two components: (1) A statistical method for eliciting beliefs encoded in LLMs. We introduce statistical measures and evaluation metrics that quantify the probability of an LLM "making a choice", the associated uncertainty, and the consistency of that choice. (2) We apply this method to study what moral beliefs are encoded in different LLMs, especially in ambiguous cases where the right choice is not obvious. We design a large-scale survey comprising 680 high-ambiguity moral scenarios (e.g., "Should I tell a white lie?") and 687 low-ambiguity moral scenarios (e.g., "Should I stop for a pedestrian on the road?"). Each scenario includes a description, two possible actions, and auxiliary labels indicating violated rules (e.g., "do not kill"). We administer the survey to 28 open- and closed-source LLMs. We find that (a) in unambiguous scenarios, most models "choose" actions that align with commonsense. In ambiguous cases, most models express uncertainty. (b) Some models are uncertain about choosing the commonsense action because their responses are sensitive to the question-wording. (c) Some models reflect clear preferences in ambiguous scenarios. Specifically, closed-source models tend to agree with each other.

Motivation & Objective

  • Develop a statistical methodology to quantify LLMs' encoded moral beliefs via action likelihood and related metrics.
  • Design and deploy the MoralChoice survey with high- and low-ambiguity moral scenarios.
  • Create the MoralChoice dataset and provide analysis of 28 open- and closed-source LLMs.
  • Investigate how ambiguity and question formulation affect model choices and uncertainty.
  • Identify agreement patterns among model groups and notable strong alignments among leading models.

Proposed method

  • Define action likelihood as the probability an LLM prefers one action in a scenario by aggregating token-probability sequences into actions.
  • Introduce marginal action likelihood to account for sensitivity to question forms and define related entropy measures (action entropy, marginal action entropy).
  • Develop QF-C (question-form consistency) using Generalized Jensen-Shannon divergence and QF-E (average question-form-specific action entropy) to diagnose robustness and uncertainty.
  • Estimate these quantities via Monte Carlo sampling of token sequences and a rule-based mapping from sequences to actions, with a simple uniform over prompt forms for Z(x).
  • Construct MoralChoice, a survey dataset with 1,767 scenarios and responses from 28 LLMs (open and closed source).
  • Systematically vary question forms (A/B, Repeat, Compare) and action orderings to mitigate prompt biases, and report invalid/refusal rates.

Experimental results

Research questions

  • RQ1What moral beliefs are encoded in large language models as reflected by action choices in hypothetical scenarios?
  • RQ2How do ambiguity, question wording, and prompt form affect LLMs' expressed preferences and uncertainty?
  • RQ3Do open-source and closed-source models converge or diverge in their moral judgments, and what accounts for these patterns?
  • RQ4Can the proposed metrics (action likelihood, entropy, QF-C, QF-E) reveal sources of uncertainty and inconsistency across models?

Key findings

  • In low-ambiguity scenarios, most LLMs output actions aligning with commonsense.
  • In high-ambiguity scenarios, most LLMs express uncertainty about which action is preferred.
  • Some models show clear preferences in ambiguous scenarios, with strong agreement within open-source and within API-model groups.
  • There is notably strong agreement among gpt-4, claude-v1.3, claude-instant-v1.1, and text-bison-001 (PaLM 2).
  • Certain open-source models remain uncertain yet consistent, while some API models display high certainty with alignment to human-aligned directions.
  • Prompt- and template-induced inconsistencies affect several smaller models, highlighting sensitivity to question forms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.