Induction of Subgoal Automata for Reinforcement Learning

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

Abstract

Reinforcement Learning (RL) agents often struggle with long-horizon tasks and generalization across environments. This paper introduces ISA (Induction of Subgoal Automata), a neuro-symbolic framework that allows agents to autonomously discover the underlying logic of a task. By interleaving RL with Inductive Logic Programming (ILP), ISA induces finite state machines—subgoal automata—from agent experience. These automata decompose complex goals into manageable subgoals, enabling significantly faster learning and seamless knowledge transfer between tasks.

Introduction

While RL has achieved remarkable success in domains like Go and Atari, standard "flat" policies—which map observations directly to actions—frequently fail in complex, multi-step scenarios. For instance, a task requiring an agent to "pick up a key, open a door, and then retrieve a treasure" can lead to aimless exploration for millions of steps. Hierarchical RL (HRL) addresses this by introducing subgoals, but these have traditionally required manual human design. ISA overcomes this bottleneck by enabling agents to autonomously induce high-level logical structures simply through environmental interaction.

The ISA Framework

The ISA framework operates by interleaving two distinct processes:

  1. Reinforcement Learning (The "Doer"): The agent employs Q-learning for Reward Machines (QRM), learning specialized policies for each state within its current high-level plan.
  2. Inductive Logic Programming (The "Thinker"): Using ILASP (Inductive Learning of Answer Set Programs), the agent processes "counterexamples"—experiences that contradict its current plan. ILASP then induces the minimal automaton that correctly classifies all prior successes and failures.
Overview of the OfficeWorld environment, observation traces, and the resulting subgoal automaton.

Key innovations include the use of boolean formulas over observable events (e.g., coffee ∧ ¬office) for transitions and Automaton-Based Reward Shaping. The latter uses the learned structure to provide internal rewards as the agent approaches the final goal, accelerating the acquisition of low-level actions.

Experimental Evaluation

The authors evaluated ISA in OfficeWorld, a gridworld environment where agents navigate obstacles to interact with specific items. The agent was tested across 100 randomly generated layouts to ensure it learned the general logic of the tasks rather than memorizing specific paths. Primary tasks included:

  • COFFEE: Deliver coffee to the office.
  • COFFEEMAIL: Deliver both coffee and mail to the office.
  • VISITABCD: Visit four locations in a strict sequence.
The induced subgoal automaton for the COFFEEMAIL task, showing the complex logic required to handle multiple subgoals.

Key Insights and Results

ISA demonstrates a powerful synergy between neural and symbolic methods. By separating "how to move" (RL) from "what to do next" (Symbolic Logic), the system achieves performance nearly identical to agents provided with ground-truth automata.

  • Minimalism as a Heuristic: By seeking the smallest possible automaton, the agent naturally discovers general rules, preventing over-complexity and aiding generalization.
  • Efficiency and Transfer: Reward shaping significantly speeds up convergence. Furthermore, because subgoals are expressed as logical formulas, knowledge of a subgoal (e.g., "get mail") can be transferred across different tasks.
  • Scalability: Reducing irrelevant observations improved logic induction speed by up to 92%, highlighting the importance of feature selection in neuro-symbolic architectures.

Limitations and Future Work

Currently, ISA is optimized for acyclic automata, meaning it struggles with tasks requiring infinite loops. Future research aims to support cyclic tasks and move beyond pre-defined observables. A critical next step is enabling agents to learn high-level symbolic concepts directly from raw sensory data, such as pixels, rather than relying on pre-labeled environment features.

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