Learning Robust Reward Machines from Noisy Labels

Roko Parac, Lorenzo Nodari, Leo Ardon, Daniel Furelos-Blanco, Federico Cerutti +1 more
8/27/2024
cs.AIcs.LG

No official code found. Best implementation: rparac/Prob-IRM (3 stars, MIT, last commit 2026-04-15).

Abstract

This paper presents PROB-IRM, an approach that learns robust reward machines (RMs) for reinforcement learning (RL) agents from noisy execution traces. The key aspect of RM-driven RL is the exploitation of a finite-state machine that decomposes the agent's task into different subtasks. PROB-IRM uses a state-of-the-art inductive logic programming framework robust to noisy examples to learn RMs from noisy traces using the Bayesian posterior degree of beliefs, thus ensuring robustness against inconsistencies. Pivotal for the results is the interleaving between RM learning and policy learning: a new RM is learned whenever the RL agent generates a trace that is believed not to be accepted by the current RM. To speed up the training of the RL agent, PROB-IRM employs a probabilistic formulation of reward shaping that uses the posterior Bayesian beliefs derived from the traces. Our experimental analysis shows that PROB-IRM can learn (potentially imperfect) RMs from noisy traces and exploit them to train an RL agent to solve its tasks successfully. Despite the complexity of learning the RM from noisy traces, agents trained with PROB-IRM perform comparably to agents provided with handcrafted RMs.

View on arXivView PDF

Code Implementations(1)

rparac/Prob-IRMCommunity100%
MIT
32Shell, PythonAug 6, 20246 months agoMIT

Similar Papers

Cite this paper

@article{parac2024learning,
  title  = {Learning Robust Reward Machines from Noisy Labels},
  author = {Roko Parac and Lorenzo Nodari and Leo Ardon and Daniel Furelos-Blanco and Federico Cerutti and Alessandra Russo},
  year   = {2024},
  eprint = {2408.14871},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.14871v2}
}

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

Discussion