Story Shaping: Teaching Agents Human-like Behavior with Stories

Xiangyu Peng, Christopher Cui, Wei Zhou, Renee Jia, Mark Riedl
1/24/2023
cs.AIcs.GTcs.HC

No confident code implementation found for this paper.

Abstract

Reward design for reinforcement learning agents can be difficult in situations where one not only wants the agent to achieve some effect in the world but where one also cares about how that effect is achieved. For example, we might wish for an agent to adhere to a tacit understanding of commonsense, align itself to a preference for how to behave for purposes of safety, or taking on a particular role in an interactive game. Storytelling is a mode for communicating tacit procedural knowledge. We introduce a technique, Story Shaping, in which a reinforcement learning agent infers tacit knowledge from an exemplar story of how to accomplish a task and intrinsically rewards itself for performing actions that make its current environment adhere to that of the inferred story world. Specifically, Story Shaping infers a knowledge graph representation of the world state from observations, and also infers a knowledge graph from the exemplar story. An intrinsic reward is generated based on the similarity between the agent's inferred world state graph and the inferred story world graph. We conducted experiments in text-based games requiring commonsense reasoning and shaping the behaviors of agents as virtual game characters.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{peng2023story,
  title  = {Story Shaping: Teaching Agents Human-like Behavior with Stories},
  author = {Xiangyu Peng and Christopher Cui and Wei Zhou and Renee Jia and Mark Riedl},
  year   = {2023},
  eprint = {2301.10107},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.10107v1}
}

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

Discussion