NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Interpretable Model-based Hierarchical Reinforcement Learning using Inductive Logic Programming

Duo Xu, Faramarz FekriarXiv 2021

Introduction

Deep Reinforcement Learning (RL) has achieved remarkable success in complex domains, yet it remains plagued by two significant hurdles: extreme sample inefficiency and a lack of interpretability. For long-horizon tasks, agents often require millions of interactions to discover optimal policies through random exploration. Furthermore, the resulting neural network policies are essentially "black boxes," making it difficult for human operators to understand the reasoning behind specific actions.

While Symbolic RL has emerged as a potential solution by integrating logic-based planning, many existing methods rely on human experts to provide hand-coded rules for environment dynamics. This research introduces a novel framework that autonomously learns human-readable symbolic rules from scratch, significantly boosting data efficiency while ensuring the decision-making process is transparent.

The Proposed Framework

The core of this approach is a Model-Based Hierarchical Semi-Markov Decision Process (SMDP) that decouples the learning problem into two distinct levels of abstraction.

The proposed hierarchical architecture featuring a high-level agent that learns a symbolic transition model via ILP to guide a low-level subtask solver.

Low-Level: Subtask Solver

At the lower level, a standard model-free RL agent (such as PPO or Q-learning) is tasked with learning "options" or macro-actions. These options are designed to achieve specific, short-term subgoals within the raw environment, such as navigating to a specific landmark or interacting with an object.

High-Level: Symbolic MDP and ILP

The high-level agent is responsible for strategic planning—deciding which subgoals to pursue and in what order. Unlike traditional HRL, this agent learns a symbolic transition model using Inductive Logic Programming (ILP). By utilizing a differentiable version of ILP (∂ILP), the agent observes the outcomes of its subtasks to induce logic rules that describe the world's physics. It learns the preconditions (e.g., "must have a blue key to open a blue door") and effects of its actions. This learned model allows the agent to perform "imagination-based" planning, reducing the necessity for costly real-world interactions.

Experimental Evaluation

The framework was evaluated across two distinct simulated environments:

  1. Modified Room Environment: A discrete grid-world where a robot must navigate through rooms, collect keys, and unlock doors to reach a final target. This environment tests the agent's ability to handle partial observability and logical dependencies.
  2. Robot Navigation (Safety Gym): A continuous state/action environment where a point-robot must visit colored targets in a specific, hidden sequence based on sensory lidar data.

Key Results and Insights

The experimental results demonstrate that the proposed method significantly outperforms standard hierarchical and symbolic baselines.

Learning curves in the Room Environment showing the proposed method achieving higher average rewards significantly faster than HRL and SDRL baselines.

Enhanced Sample Efficiency

In the Room Environment, the proposed method proved to be 30% to 40% more sample-efficient than Hierarchical DQN and Symbolic Deep RL (SDRL). By learning the underlying logic of the task, the agent avoids the pitfalls of exhaustive trial-and-error exploration.

Compositional Generalization and Transfer

One of the most striking advantages of learning abstract logic is the ability to generalize. When trained on a simple map and subsequently placed in a larger, more complex environment with deceptive dead-ends, the agent achieved zero-shot or near-zero-shot transfer. It solved the new map in under 100 episodes, whereas standard HRL baselines failed to find a solution even after 200 episodes.

Human-Readable Interpretability

Because the transition model is built using ILP, the agent's internal logic is represented as human-readable predicates. For instance, the system might output a rule such as:
ReachRoom(Y) <- CurAct(X,Y), Lock(X,Y,C), hasKeyColor(C)
This transparency allows developers to audit the agent's "beliefs" about the world, ensuring it has learned correct causal relationships rather than exploiting spurious correlations.

Conclusion and Future Work

This work represents a significant step toward creating RL agents that are both efficient and explainable. By autonomously inducing symbolic rules, the framework bridges the gap between high-level reasoning and low-level control.

Currently, the method relies on a predefined set of predicates (the "vocabulary" of the logic). A promising direction for future research involves integrating representation learning to automatically extract these predicates from raw sensory data (e.g., pixels), potentially creating a fully end-to-end, self-supervised, and interpretable RL pipeline.

Summary updated

BibTeX
@misc{xu2021interpretable,
  author = {Duo Xu and Faramarz Fekri},
  title = {{Interpretable Model-based Hierarchical Reinforcement Learning using Inductive Logic Programming}},
  year = {2021},
  eprint = {2106.11417},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.11417},
}
Figure