Deep Reinforcement Learning (DRL) has demonstrated incredible power in mastering low-level control tasks. However, it notoriously struggles with "sparse-reward" scenarios—environments where an agent might need to perform thousands of precise actions before receiving a single positive reward signal. Think of a robot trying to cook a meal or assemble furniture; random exploration is highly unlikely to stumble upon the correct sequence of steps.
Classical planning excels in these exact scenarios because it uses symbolic logic to break large, complex goals into manageable, hierarchical subtasks. The catch? Planning usually requires a human expert to manually define all the "rules" of the environment (e.g., "to open a door, you must first have a key").
This paper tackles the challenge of automatic induction: can an agent observe a few expert demonstrations and figure out the underlying symbolic rules and hierarchical structure on its own? By bridging the gap between DRL and classical planning, the authors propose a framework that automatically "learns the rules of the game" to guide agents through complex, sparse-reward environments.
A Two-Stage Framework for Automatic Induction
The authors propose a novel framework divided into two primary modules: an Induction Module that learns the rules, and a Training Module that uses those rules to guide the DRL agent.
1. The Induction Module (The "Rule Learner")
Instead of relying on hardcoded logic, the system observes a few expert demonstrations (as few as 20 to 64) and reverse-engineers the environment's mechanics:
- Action-Effect Linkage: The system uses Mutual Information to identify which specific actions cause changes in which state variables.
- Symbolic Regression via Genetic Programming (GP): This is the core innovation. The framework evolves mathematical "programs" to explain state changes. For example, it might discover the exact arithmetic rule
wood_after = wood_before - 2when themake_stickaction is performed. - Precondition Discovery: It utilizes Decision Trees (CART) to determine the exact conditions required for an action to succeed (e.g., discovering that crafting requires
at_workbench = 1).
2. The Training Module (The "Guide")
Once the rules are induced, the system builds a roadmap for the agent:
- Critical Action Network: Using "backward chaining" from the final goal, the system constructs a graph of necessary subtasks and dependencies.
- Intrinsic Rewards: As the DRL agent (specifically using Proximal Policy Optimization, or PPO) interacts with the environment, it receives "bonus" intrinsic rewards for completing the symbolic subtasks discovered during the induction phase. This transforms a near-impossible "needle-in-a-haystack" search into a guided, step-by-step progression.
Experimental Validation
The framework was evaluated on three custom Gridworld environments designed to test varying levels of hierarchical complexity:
- SWITCH: Requires toggling switches in a specific sequence, where a single mistake resets all progress.
- DOORKEY: A classic hierarchical task requiring the agent to find a key, unlock a door, and navigate to a goal.
- MINECRAFT (Gridworld): A complex crafting environment where agents collect raw materials (wood, stone, iron) and use toolsheds to craft increasingly complex items.
Key Results
- Superior Sample Efficiency: In the highly complex 8-SWITCH task, standard DRL algorithms like PPO and DQN failed to achieve any reward. In contrast, the proposed framework achieved near-perfect performance within just 1 million steps.
- Outperforming State-of-the-Art: The framework consistently beat advanced exploration methods (like RIDE) and imitation learning methods (like GAIL) across all tested complex tasks.
- Strong Generalization: Because the agent induces functional rules rather than just memorizing paths, it demonstrated remarkable adaptability. When tested on "variant domains" with slightly altered rules, the agent successfully adapted its task structures with only a handful of new demonstrations.
Key Insights and Future Directions
A major takeaway from this research is that compositionality is key. Because the rules are learned as symbolic programs, they are naturally modular. If the agent learns the subroutine to "pickup wood," it can reuse that knowledge for any higher-level task requiring wood, even if it has never seen the final goal before. Furthermore, while neural networks often struggle with exact arithmetic and discrete logic gates, Genetic Programming proved surprisingly effective at finding the simple, integer-based rules common in structured tasks.
Limitations: Currently, the induction module assumes the world is deterministic, fully observable, and relies on integer-based state changes. Real-world robotics, however, involve continuous variables (like joint angles), random failures, and hidden information. Furthermore, while highly sample-efficient, the system still depends on initial expert demonstrations. Future work exploring how to induce these rules through pure, curiosity-driven "play" could pave the way for even more autonomous and capable AI agents.
Summary updated