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

Zhijing Jin, Sydney Levine, Fernando Gonzalez, Ojasv Kamal, Maarten Sap +4 more
10/4/2022
cs.CLcs.AIcs.CY

Official code: feradauto/MoralCoT (41 stars, Python, last commit 2023-06-05).

Abstract

AI systems are becoming increasingly intertwined with human life. In order to effectively collaborate with humans and ensure safety, AI systems need to be able to understand, interpret and predict human moral judgments and decisions.

Show full abstract

Human moral judgments are often guided by rules, but not always. A central challenge for AI safety is capturing the flexibility of the human moral mind -- the ability to determine when a rule should be broken, especially in novel or unusual situations. In this paper, we present a novel challenge set consisting of rule-breaking question answering (RBQA) of cases that involve potentially permissible rule-breaking -- inspired by recent moral psychology studies. Using a state-of-the-art large language model (LLM) as a basis, we propose a novel moral chain of thought (MORALCOT) prompting strategy that combines the strengths of LLMs with theories of moral reasoning developed in cognitive science to predict human moral judgments. MORALCOT outperforms seven existing LLMs by 6.2% F1, suggesting that modeling human reasoning might be necessary to capture the flexibility of the human moral mind. We also conduct a detailed error analysis to suggest directions for future work to improve AI safety using RBQA. Our data is open-sourced at https://huggingface.co/datasets/feradauto/MoralExceptQA and code at https://github.com/feradauto/MoralCoT

View on arXivView PDF

Code Implementations(1)

feradauto/MoralCoTOfficial100%

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

413Python, ShellMay 31, 20223 years ago

Similar Papers

Cite this paper

@article{jin2022when,
  title  = {When to Make Exceptions: Exploring Language Models as Accounts of Human Moral Judgment},
  author = {Zhijing Jin and Sydney Levine and Fernando Gonzalez and Ojasv Kamal and Maarten Sap and Mrinmaya Sachan and Rada Mihalcea and Josh Tenenbaum and Bernhard Schölkopf},
  year   = {2022},
  eprint = {2210.01478},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.01478}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.01478.svg)](https://codeofpaper.com/paper/2210.01478)

Discussion