Semantic HELM: A Human-Readable Memory for Reinforcement Learning

Fabian Paischer, Thomas Adler, Markus Hofmarcher, Sepp Hochreiter
6/15/2023
21 citations
cs.LGcs.AIcs.CL
rl

Official code: ml-jku/helm (57 stars, Python, last commit 2024-11-05).

Abstract

Reinforcement learning agents deployed in the real world often have to cope with partially observable environments. Therefore, most agents employ memory mechanisms to approximate the state of the environment.

Show full abstract

Recently, there have been impressive success stories in mastering partially observable environments, mostly in the realm of computer games like Dota 2, StarCraft II, or MineCraft. However, existing methods lack interpretability in the sense that it is not comprehensible for humans what the agent stores in its memory. In this regard, we propose a novel memory mechanism that represents past events in human language. Our method uses CLIP to associate visual inputs with language tokens. Then we feed these tokens to a pretrained language model that serves the agent as memory and provides it with a coherent and human-readable representation of the past. We train our memory mechanism on a set of partially observable environments and find that it excels on tasks that require a memory component, while mostly attaining performance on-par with strong baselines on tasks that do not. On a challenging continuous recognition task, where memorizing the past is crucial, our memory mechanism converges two orders of magnitude faster than prior methods. Since our memory mechanism is human-readable, we can peek at an agent's memory and check whether crucial pieces of information have been stored. This significantly enhances troubleshooting and paves the way toward more interpretable agents.

View on arXivView PDF

Code Implementations(1)

ml-jku/helmOfficial100%
574Python, ShellMay 23, 20222 years agoNOASSERTION

Similar Papers

Cite this paper

@article{paischer2023semantic,
  title  = {Semantic HELM: A Human-Readable Memory for Reinforcement Learning},
  author = {Fabian Paischer and Thomas Adler and Markus Hofmarcher and Sepp Hochreiter},
  year   = {2023},
  eprint = {2306.09312},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.09312v2},
  journal = {NEURIPS 2023 2023}
}

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

Discussion