Neural Reward Machines

Elena Umili, Francesco Argenziano, Roberto Capobianco
8/16/2024
cs.LGcs.AI

No official code found. Best implementation: RodrigoToroIcarte/reward_machines (77 stars, last commit 2024-02-16). 1 more below.

Abstract

Non-markovian Reinforcement Learning (RL) tasks are very hard to solve, because agents must consider the entire history of state-action pairs to act rationally in the environment. Most works use symbolic formalisms (as Linear Temporal Logic or automata) to specify the temporally-extended task. These approaches only work in finite and discrete state environments or continuous problems for which a mapping between the raw state and a symbolic interpretation is known as a symbol grounding (SG) function. Here, we define Neural Reward Machines (NRM), an automata-based neurosymbolic framework that can be used for both reasoning and learning in non-symbolic non-markovian RL domains, which is based on the probabilistic relaxation of Moore Machines. We combine RL with semisupervised symbol grounding (SSSG) and we show that NRMs can exploit high-level symbolic knowledge in non-symbolic environments without any knowledge of the SG function, outperforming Deep RL methods which cannot incorporate prior knowledge. Moreover, we advance the research in SSSG, proposing an algorithm for analysing the groundability of temporal specifications, which is more efficient than baseline techniques of a factor $10^3$.

View on arXivView PDF

Code Implementations(2)

63PythonJan 12, 202411 months ago
7736Shell, PythonAug 4, 20202 years ago

Similar Papers

Cite this paper

@article{umili2024neural,
  title  = {Neural Reward Machines},
  author = {Elena Umili and Francesco Argenziano and Roberto Capobianco},
  year   = {2024},
  eprint = {2408.08677},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.08677v1}
}

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

Discussion