TL;DR
Reinforcement learning (RL) agents struggle in sparse-reward environments because they lack the structured priors humans use to break down complex goals into subtasks. The authors propose DYLAN (differentiable symbolic planner), a framework that integrates a differentiable first-order logic planner into RL. DYLAN acts as an interpretable reward model that accelerates exploration, functions as a high-level planner to recombine skills zero-shot for new tasks, and can even infer goals from demonstrations via backpropagation.
What Problem Does This Paper Address?
Standard deep RL methods (like PPO and A2C) learn primarily from trial and error. In sparse-reward tasks, agents waste millions of interactions blindly exploring before encountering an informative reward. Furthermore, policies learned by RL tend to be brittle: training an agent to find a key and open a red door rarely transfers to navigating a blue door without costly retraining.
While classical symbolic planners (like STRIPS) excel at high-level task decomposition, they are rigid, non-adaptive, and susceptible to issues like infinite recursive loops. This paper addresses how to seamlessly inject human-like structured reasoning into deep RL in an adaptive, differentiable manner.
Methods
The authors formulate the environment as a Symbolic Augmented MDP (SA-MDP), which maps low-level environment states to symbolic predicates. DYLAN incorporates prior knowledge through three interconnected roles:
- Differentiable Symbolic Planning: Planning rules (preconditions, actions, postconditions) are encoded as high-dimensional tensors. By replacing discrete logical operators with continuous relaxations ($\text{SoftOR}_\gamma$ and product t-norms), forward-chaining reasoning becomes fully differentiable. A learnable weight matrix $W$ softly selects and balances planning rules via gradient descent (e.g., minimizing binary cross-entropy loss against target task conditions).
- Static & Adaptive Reward Shaping:
- Static: Dylan evaluates the most probable high-level plan and provides auxiliary shaped rewards only when the agent achieves intermediate subgoals in sequence, penalized by the step count.
- Adaptive: Dylan performs step-by-step reasoning over all candidate plans and computes a dense auxiliary reward using a stabilized LogSumExp operator over plan likelihoods, dynamically nudging the agent toward high-probability paths without committing prematurely to a single plan.
- Hierarchical Composition & IRL: DYLAN stitches together pre-trained or abstract logic options to solve new tasks zero-shot. Because the planner is differentiable, it can also solve Inverse Reinforcement Learning (IRL) tasks—inferring underlying goals directly from expert action demonstrations through gradient updates on the rule weights.
Datasets & Environments
The authors evaluate DYLAN across multiple benchmark suites:
- MiniGrid & BabyAI: Grid-world environments including DoorKey ($8\times 8$, $12\times 12$, and $16\times 16$), UnlockPickup, and BoxKey (9-room setup). The authors customized DoorKey to include branching paths (e.g., entering an already opened door vs. finding a key to unlock a door).
- Atari Learning Environment: Evaluated on the sparse-reward game Freeway.
- MuJoCo MJX Playground: A continuous state and action space quadruped locomotion environment requiring navigation across connected rooms.
Key Insights and Ideas
- Differentiability solves classical planning pathologies: Traditional Depth-First Search (DFS) often gets trapped in infinite cyclic branches, while Breadth-First Search (BFS) explodes in computational cost. By making rule selection differentiable, DYLAN adaptively tunes search behavior via gradients to fit the task topology.
- Reasoning over plan distributions avoids exploration traps: Instead of forcing the agent to track a single brittle plan, calculating a LogSumExp dense reward over the full probability distribution of candidate plans provides continuous guidance while preserving adaptability.
- Symbolic reasoning enables zero-shot generalization: Rather than retraining monolithic neural policies when goals change, the agent treats skills as reusable logic options. DYLAN orchestrates these options algebraically at test time.
Key Results
- Accelerated Convergence: In DoorKey ($16\times 16$), standard PPO completely fails to converge, whereas PPO + DYLAN reliably solves the task. In DoorKey ($12\times 12$), DYLAN cuts training frames needed for PPO convergence in half (from $\sim 4\times 10^6$ to $\sim 2\times 10^6$ frames) and enables A2C to converge where baseline A2C fails.
- Zero-Shot Task Generalization: In multitask compositional tests (Key Retrieval, Red Door Reaching, Goal Reaching, Safe Goal Reaching), DYLAN achieves $98\%–100\%$ success rates without retraining, whereas baseline PPO ($42\%–63\%$) and hierarchical dDQN ($35.8\%–50\%$) struggle significantly.
- Robustness to Imperfect Knowledge: When critical environment rules or predicate visibilities (such as key or door visibility) are omitted, DYLAN variants still achieve high final returns ($\approx 0.86–0.90$), vastly outperforming vanilla PPO.
- Continuous Control & IRL: DYLAN successfully guides a continuous quadruped robot through rooms (where pure PPO fails completely) and achieves a 100% goal recovery rate in inverse RL demonstrations.
Limitations and Future Work
- Reliance on Ground-Truth Predicates: DYLAN currently depends on symbolic states provided directly by the environment. Future work aims to leverage vision foundation models to extract predicates from raw visual inputs.
- Rule Construction Pipeline: Initial planning rules are drafted using GPT-4o and refined with human verification. Developing automated verification (e.g., multi-LLM debate) and automated predicate invention is an open challenge.
Summary updated