What Would Jiminy Cricket Do? Towards Agents That Behave Morally

Dan Hendrycks, Mantas Mazeika, Andy Zou, Sahil Patel, Christine Zhu +4 more
10/25/2021
cs.LGcs.AIcs.CL

Official code: hendrycks/jiminy-cricket (25 stars, ZAP, MIT, last commit 2022-02-12).

Abstract

When making everyday decisions, people are guided by their conscience, an internal sense of right and wrong. By contrast, artificial agents are currently not endowed with a moral sense.

Show full abstract

As a consequence, they may learn to behave immorally when trained on environments that ignore moral concerns, such as violent video games. With the advent of generally capable agents that pretrain on many environments, it will become necessary to mitigate inherited biases from environments that teach immoral behavior. To facilitate the development of agents that avoid causing wanton harm, we introduce Jiminy Cricket, an environment suite of 25 text-based adventure games with thousands of diverse, morally salient scenarios. By annotating every possible game state, the Jiminy Cricket environments robustly evaluate whether agents can act morally while maximizing reward. Using models with commonsense moral knowledge, we create an elementary artificial conscience that assesses and guides agents. In extensive experiments, we find that the artificial conscience approach can steer agents towards moral behavior without sacrificing performance.

View on arXivView PDF

Code Implementations(1)

MIT

Jiminy Cricket Environment (NeurIPS 2021)

256ZAP, ZILAug 28, 20214 years agoMIT
machine-ethicsml-safety

Similar Papers

Cite this paper

@article{hendrycks2021what,
  title  = {What Would Jiminy Cricket Do? Towards Agents That Behave Morally},
  author = {Dan Hendrycks and Mantas Mazeika and Andy Zou and Sahil Patel and Christine Zhu and Jesus Navarro and Dawn Song and Bo Li and Jacob Steinhardt},
  year   = {2021},
  eprint = {2110.13136},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.13136}
}

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/2110.13136.svg)](https://codeofpaper.com/paper/2110.13136)

Discussion