Introduction
Deep Reinforcement Learning (DRL) has achieved remarkable success in complex tasks, yet it remains plagued by two significant limitations: a lack of interpretability and poor generalization to varying environment scales. Standard DRL agents operate as "black boxes," where decision-making logic is obscured within millions of neural weights. Furthermore, these agents often fail when encountering environments with more objects than seen during training, as they learn specific state-to-action mappings rather than abstract relational concepts.
Deep Explainable Relational Reinforcement Learning (DERRL) addresses these challenges by bridging the gap between the gradient-based optimization of deep learning and the symbolic reasoning of First-Order Logic (FOL). By learning policies as sets of human-readable logical rules, DERRL enables "zero-shot" generalization and provides transparent explanations for agent behavior.
The DERRL Framework
The core innovation of DERRL is its ability to search the vast space of logical rules using a differentiable neural architecture. The framework consists of three primary components:
1. Rule Generator
Unlike traditional DRL, where a network outputs action probabilities directly, DERRL’s neural network outputs a Rule Vector. This vector represents the probability of specific logical atoms (e.g., top(X) or on(X, Y)) being included in a rule's body. To bridge the gap between continuous weights and discrete logic, the system employs the Gumbel-max trick, allowing for the sampling of discrete rules while maintaining differentiability for end-to-end training.
2. Differentiable Inference
To evaluate these rules against the current environment state, DERRL utilizes "fuzzy" logic. Specifically, it applies the Lukasiewicz t-norm—a differentiable conjunction operator—to calculate the degree to which a state satisfies a learned rule. This allows the entire pipeline to be optimized using standard RL algorithms like REINFORCE, as the gradient can flow from the final action back to the rule generation parameters.
3. Semantic Constraints
A common pitfall in symbolic learning is the generation of redundant or logically impossible rules. DERRL introduces a Semantic Loss function that incorporates "common sense" axioms. For instance, a rule requiring a block to be simultaneously "on the floor" and "on another block" is penalized. These constraints prune the search space, significantly accelerating the convergence of the model.
Experimental Evaluation
The authors evaluated DERRL across five diverse relational environments designed to test reasoning and scalability:
- Countdown Game: A mathematical task requiring arithmetic operations to reach a target value.
- Blocks World: A classic benchmark involving the manipulation of stacked blocks.
- Gridworld: A navigation task with various obstacles.
- Traffic: A multi-agent simulation using the SUMO (Simulation of Urban MObility) platform.
- DoorKey Minigrid: A complex sequence requiring an agent to locate a key, unlock a door, and reach a goal.
Key Results and Insights
DERRL demonstrates significant improvements over existing logic-based RL baselines and standard neural approaches:
- Computational Efficiency: DERRL is significantly more efficient than previous state-of-the-art methods like Neural Logic Reinforcement Learning (NLRL), reducing computation time per episode by a factor of approximately 10x.
- Robust Generalization: In the Blocks World environment, DERRL maintained near-perfect performance (0.92–0.96) even as the number of blocks increased. In contrast, standard Multi-Layer Perceptrons (MLPs) and Graph Convolutional Networks (GCNs) experienced sharp performance declines when faced with more objects than encountered during training.
- Interpretability: The learned policies are inherently transparent. In the Countdown Game, the agent successfully derived intuitive rules such as:
add action if acc < goalandsub action if acc > goal.
Conclusion and Future Work
DERRL represents a significant step toward explainable and generalizable AI. By treating interpretation as the primary output of the neural network, it provides a clear window into the agent's decision-making process.
However, several challenges remain. Currently, DERRL relies on predefined predicates, meaning a human must define the symbolic "alphabet" (e.g., defining what on(X, Y) means). Future research will focus on learning these symbolic concepts directly from raw sensory data, automating the discovery of the optimal number of rules, and scaling the framework to high-dimensional continuous control tasks like robotics.
Summary updated