Learning from Less: Guiding Deep Reinforcement Learning with Differentiable Symbolic Planning

Zihan Ye, Oleg Arenz, Kristian Kersting · DOI

Introduction

Standard Reinforcement Learning (RL) algorithms, such as Proximal Policy Optimization (PPO), frequently struggle in environments characterized by "sparse rewards." In these scenarios, an agent receives feedback only after completing a complex sequence of actions—for instance, navigating a maze to find a key, using that key to unlock a door, and finally reaching a goal. Without intermediate guidance, agents often explore aimlessly, leading to training that is either prohibitively expensive or entirely unsuccessful in large state spaces.

In contrast, humans leverage logical priors to decompose complex tasks into manageable subgoals. While classical symbolic planners can handle such logic, they are often rigid and struggle with the stochasticity and high-dimensional nature of real-world environments. This paper introduces Dylan, a differentiable symbolic planner designed to bridge the gap between high-level human reasoning and deep RL. By integrating logic-based planning into the RL loop, Dylan provides structured reward shaping and enables agents to compose complex behaviors from simple primitives.

Methods: The Dylan Framework

The core contribution of this work is the Dylan (Differentiable Symbolic Planner) architecture. Unlike traditional planners like STRIPS, which rely on hard-coded search algorithms, Dylan represents logic programs as tensors. This representation allows logical entailment to be computed through differentiable forward-chaining, enabling the system to propagate gradients through logical rules.

Figure 1: Overview of the Dylan framework integrating symbolic planning with reinforcement learning agents.

Dylan serves two primary functions within the RL pipeline:

  1. As a Reward Model: Dylan acts as a "teacher" by providing auxiliary rewards ($r_{aux}$) when the agent completes logical subgoals. It supports both Static reward shaping (following a single specific plan) and Adaptive reward shaping (considering the probability of all valid plans), which provides a denser and more stable learning signal.
  2. As a High-Level Planner: In hierarchical settings, Dylan can stitch together pre-trained "policy primitives" (e.g., goto_door, grab_key) to solve novel tasks without requiring additional training.

Furthermore, Dylan can dynamically adjust its search strategy—for example, shifting between Breadth-First Search (BFS) and Depth-First Search (DFS)—by optimizing rule weights to avoid common pitfalls like infinite execution loops in recursive logic.

Experimental Evaluation

The researchers evaluated Dylan using the MiniGrid-DoorKey environment suite, focusing on 12x12 and 16x16 grid sizes. These environments require the agent to find a key and unlock a door to reach a goal. Additionally, customized multi-path environments and pathological planning tasks were used to test the agent's ability to adapt plans based on observations and search efficiency.

Key Results and Insights

The integration of Dylan significantly improved performance across several metrics. In the challenging 16x16 MiniGrid environment, baseline PPO and A2C agents failed to converge within the training limit. In contrast, agents guided by Dylan reached optimal performance within approximately 1 million frames.

Figure 5: Mean return over training steps for 12x12 and 16x16 grid environments, comparing standard RL baselines with Dylan-enhanced versions.

Beyond sample efficiency, Dylan achieved a 100% success rate in multitask settings, such as Key Retrieval and Red Door Reaching, whereas baselines only achieved 40-60% success. The results demonstrated that considering all possible successful plans (Adaptive rewards) prevents agents from becoming stuck when an initial plan becomes unviable due to environmental changes.

Discussion and Future Work

While Dylan represents a significant step toward neuro-symbolic RL, several challenges remain. Currently, the system relies on the environment to provide symbolic states (e.g., has_key: True). Future work aims to use vision foundation models to extract these symbols directly from raw pixels. Additionally, while Dylan uses Large Language Models (LLMs) to generate initial rules, human supervision is still required to ensure correctness. Automating this error-correction loop and scaling the framework to high-dimensional continuous control tasks, such as robotics, are key areas for future research.

Summary updated

BibTeX
@inproceedings{ye2025learning,
  author = {Zihan Ye and Oleg Arenz and Kristian Kersting},
  title = {{Learning from Less: Guiding Deep Reinforcement Learning with Differentiable Symbolic Planning}},
  booktitle = {PRL @ RLC},
  year = {2025},
  url = {https://openreview.net/forum?id=Cm5CN0eLu6},
}
Figure