Induction of Subgoal Automata for Reinforcement Learning

Daniel Furelos-Blanco, Mark Law, Alessandra Russo, Krysia Broda, Anders Jonsson

Abstract

ISA (Induction of Subgoal Automata) is a novel framework for learning and exploiting subgoals in reinforcement learning (RL). By inducing an automaton whose transitions are propositional formulas over observable events, ISA allows agents to autonomously discover task logic. Using Inductive Logic Programming (ILP), specifically the ILASP system, ISA interleaves RL exploration with automaton refinement. Evaluation in gridworld environments demonstrates that ISA achieves performance comparable to methods using human-provided automata, while enabling significant speedups through reward shaping and transfer learning.

Introduction

Reinforcement Learning (RL) has achieved remarkable success in complex environments, yet it often struggles with "compositional" tasks—problems requiring a specific sequence of sub-steps. While Hierarchical RL (HRL) addresses this by decomposing tasks, these hierarchies are typically handcrafted by human experts. The challenge lies in enabling an agent to look at its own experience traces and autonomously figure out the underlying logic of a task. ISA addresses this gap by enabling agents to induce their own "subgoal automata," facilitating better generalization and knowledge transfer across different high-level missions.

Methodology

ISA combines RL with Inductive Logic Programming (ILP) to build a task model. The core representation is a Subgoal Automaton, where states represent progress and transitions are labeled with boolean formulas over "observables" (e.g., being at a coffee machine or an office).

Figure 2: The OfficeWorld environment (a), example execution and observation traces (b), and the resulting subgoal automaton (c).

The learning process is interleaved rather than batch-processed:

  1. Exploration: The agent explores the environment using RL.
  2. Trace Generation: Experience is converted into observation traces.
  3. Induction: If a trace contradicts the current automaton (a "counterexample"), the ILASP engine induces a new, minimal automaton that explains all observed data. Minimalism acts as a prior, helping the agent discover the most general logical structure.
  4. Exploitation: The learned structure is used for intra-option learning (learning sub-policies for each state) and reward shaping (providing bonuses for progress in the automaton).

Experimental Setup and Tasks

The framework was evaluated in OfficeWorld, a gridworld benchmark. Tasks included COFFEE (deliver coffee to the office), COFFEEMAIL (deliver coffee and mail), and VISITABCD (visit four locations in a strict sequence). The agent was tested across 100 random grid layouts to assess its ability to generalize and transfer knowledge in a multitask setting.

Key Results and Discussion

ISA demonstrated performance parity with QRM, an algorithm where the automaton is provided by a human expert. This indicates that the overhead of learning the structure from scratch does not significantly hinder policy acquisition.

Figure 5: Learned subgoal automata for the VISITABCD (a) and COFFEEMAIL (b) tasks, illustrating the compositional logic discovered by ISA.

Reward shaping based on the automaton's topology drastically accelerated convergence. Furthermore, in multitask settings, ISA facilitated efficient transfer learning; sub-policies (e.g., "how to get coffee") were shared across different missions, meaning the agent did not have to re-learn basic navigation for every new goal. The computational cost of induction via ILASP was found to be negligible, often taking less than a second, confirming the feasibility of interleaving logic induction with RL.

Conclusion and Future Work

ISA provides a robust path toward autonomous task decomposition in RL. By leveraging the minimalism prior of ILP, agents discover general logical structures rather than overfitting to specific paths. However, the current implementation is limited to acyclic automata and assumes pre-defined observables. Future work will focus on extending the framework to cyclic tasks and discovering observables directly from raw sensory data like pixels.

Summary updated

BibTeX
@inproceedings{furelosblanco2020induction,
  author = {Daniel Furelos-Blanco and Mark Law and Alessandra Russo and Krysia Broda and Anders Jonsson},
  title = {{Induction of Subgoal Automata for Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5802},
}
Figure