When to Make Exceptions: Exploring Language Models as Accounts of Human Moral Judgment

Zhijing Jin, Sydney Levine, Fernando Gonzalez Adauto, Ojasv Kamal, Maarten Sap, Mrinmaya Sachan, Rada Mihalcea, Joshua B. Tenenbaum, Bernhard Schölkopf

TL;DR

To safely integrate AI into society, models must understand human moral judgments—including the flexibility to know when breaking a rule is actually the right thing to do. This paper introduces MoralExceptQA, a novel benchmark for testing moral exceptions, and proposes MoralCoT, a cognitively-inspired chain-of-thought prompting strategy that significantly improves an LLM's ability to navigate complex, novel moral dilemmas by mimicking human reasoning.

What Problem Does This Paper Address?

A core challenge in AI safety is aligning models with human values. While current Large Language Models (LLMs) can learn basic moral rules (e.g., "don't cut in line" or "don't damage property"), human morality is highly flexible. We intuitively understand that rules have exceptions: cutting in line is perfectly acceptable if you are having a medical emergency.

Existing LLMs struggle with this flexibility. When faced with novel situations, they tend to either be overly dogmatic (rigidly applying the rule regardless of context) or fail to weigh the competing factors appropriately. The authors tackle the question: How can we evaluate and improve an LLM's ability to recognize permissible moral exceptions in unfamiliar scenarios?

Methods

Instead of simply fine-tuning a model on a massive dataset of moral judgments, the authors look to cognitive science. They base their approach on contractualist moral psychology, which suggests humans judge rule-breaking by evaluating the underlying function of the rule and the utility (costs and benefits) of breaking it.

To implement this, they developed MoralCoT (Moral Chain of Thought). Using InstructGPT, they prompt the model to answer a series of sub-questions before making a final judgment:

  1. Violation: Does the action violate the rule?
  2. Purpose: What is the underlying purpose of the rule?
  3. Utility: Who is harmed or benefited by breaking the rule, and by how much?
MoralCoT Prompting Strategy

The LLM generates answers to these sub-questions in a "scratchpad" format. Finally, the model is fed the original scenario plus its own generated reasoning and asked: "Taking all these into account, is it OK for that person to break the rule in this case?"

Datasets

The authors introduce a new challenge set called MoralExceptQA.

Examples from the MoralExceptQA Dataset
  • How it differs from existing datasets: Standard moral datasets (like the Commonsense Norm Bank used to train Delphi) cover thousands of different rules shallowly. MoralExceptQA takes the opposite approach. It focuses on just three rules but parametrically manipulates the scenarios to test the exact boundaries of those rules.
  • The Rules:
  • No cutting in line (a socially constructed norm).
  • No interfering with someone else's property (a globally shared norm).
  • No cannonballing into the pool (a completely novel, context-specific rule invented for the study to test zero-shot reasoning).
  • The dataset contains 148 highly specific vignettes, paired with human response data from moral psychology studies.

Key Insights and Ideas

  • LLMs are overly dogmatic: The researchers measured a "conservativity score" (how often a model defaults to "not permissible"). Most baseline models were highly polarized, often scoring near 100% (never allowing a rule to be broken, even for emergencies). MoralCoT helped the model achieve a much healthier, human-like balance.
  • Cognitive science is a powerful blueprint for prompt engineering: By forcing the LLM to explicitly reason about a rule's purpose and the utility of breaking it—just as humans do—the model's zero-shot performance improved dramatically without needing millions of new training examples.
  • LLMs struggle to calculate human "utility": Error analysis revealed that LLMs are bad at estimating subjective human costs. For example, while an LLM can estimate the financial cost of painting a door, it struggles to quantify the sentimental cost of destroying a mural painted by a neighbor's daughter.
  • Literal vs. Semantic understanding: When asked to explain their reasoning, standard LLMs often just quote the literal rule back to the user, ignoring the specific, nuanced conditions of the prompt that might justify an exception.

Key Results

  • State-of-the-Art Performance: MoralCoT achieved an F1 score of 64.47%, outperforming all baseline models.
  • Massive Prompting Boost: MoralCoT improved upon its base model (InstructGPT) by a massive 10.53% F1.
  • Beating Fine-Tuned Models: MoralCoT outperformed Delphi++ (a model explicitly fine-tuned on 1.9 million ethical judgments) by 6.2% F1, proving that structured reasoning can beat brute-force data memorization on edge cases.
  • Reduced Dogmatism: InstructGPT had a rigid conservativity score of 98.52%. MoralCoT brought this down to a much more flexible 66.96% (closer to the ideal balanced baseline of 50%).

Limitations and Future Work

  • Small Dataset Size: MoralExceptQA contains only 148 vignettes. While highly curated, a larger dataset would allow for more robust testing and the creation of a dedicated validation set for prompt tuning.
  • Demographic Bias: The human baseline data was collected exclusively from U.S. residents. Moral judgments vary wildly across cultures, and future work must incorporate broader geographic, sociocultural, and ideological backgrounds.
  • Theoretical Scope: MoralCoT relies heavily on one specific theory of moral psychology (contractualism). Future research could explore prompts inspired by other moral frameworks (e.g., virtue ethics or pure utilitarianism) to see how they affect AI reasoning.

Summary updated

BibTeX
@inproceedings{jin2022when,
  author = {Zhijing Jin and Sydney Levine and Fernando Gonzalez Adauto and Ojasv Kamal and Maarten Sap and Mrinmaya Sachan and Rada Mihalcea and Joshua B. Tenenbaum and Bernhard Schölkopf},
  title = {{When to Make Exceptions: Exploring Language Models as Accounts of Human Moral Judgment}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=uP9RiC4uVcR},
}
Figure