Introduction
Deep reinforcement learning (DRL) has demonstrated remarkable success in complex tasks, yet its "black box" nature remains a significant barrier to deployment in safety-critical domains like autonomous driving. To address this, researchers are seeking models with intrinsic interpretability—systems that are understandable by design rather than through post-hoc explanations.
Traditional approaches to interpretable RL, such as differentiable Inductive Logic Programming (ILP), often face scalability issues due to high memory and computational costs. Other methods, like Hierarchical RL (HRL) with symbolic planning, frequently require extensive human-engineered transition models. This paper introduces Neural Symbolic Reinforcement Learning (NSRL), a framework that learns interpretable First-Order Logic (FOL) rules end-to-end without requiring predefined transition models.
Methodology: Neural Symbolic Reinforcement Learning
NSRL integrates multi-hop symbolic reasoning with neural attention mechanisms. The framework processes symbolic states—consisting of entities and their relations—through three primary components:
- Attention Module: This module uses a hierarchical stack of Transformers to generate dynamic attention weights. It includes a predicate attention submodule to identify relevant relations and a path attention submodule to determine the optimal length of logical chains.
- Reasoning Module: NSRL performs multi-hop reasoning on a knowledge graph using matrix multiplication. By applying weights from the Attention Module, it generates "soft" chain-like logical rules in a differentiable manner.
- Policy Module: A standard Multi-Layer Perceptron (MLP) translates the reasoning outputs into action probabilities or values.
Because the entire pipeline is differentiable, NSRL can be trained using standard deep RL algorithms like DQN or PPO. Interpretability is achieved by extracting the highest-confidence FOL rules from the learned attention weights.
Experimental Setup
The authors evaluated NSRL on two distinct environments:
- Montezuma’s Revenge (Atari): A complex game characterized by sparse, delayed rewards, used to test scalability.
- Blocks World Manipulation: A classic AI environment used to evaluate zero-shot generalization. Agents were trained on tasks with 4 blocks and tested on unseen configurations with 5 to 7 blocks.
Key Results and Discussion
NSRL demonstrates competitive performance, superior generalization, and high computational efficiency.
Performance and Scalability
In Montezuma's Revenge, NSRL converged to an optimal policy (reward of +400) in approximately 1.8 million steps. As shown in the learning curves, NSRL matches the performance of established models like HDQN and SDRL while requiring significantly less expert knowledge than the latter.
Generalization and Efficiency
NSRL's reliance on abstract relational rules (e.g., "move block X to Y if X is clear") allows it to generalize to environments with more objects than seen during training. In a 5-block STACK task, NSRL achieved an expected return of 0.917, whereas a standard MLP agent failed completely (-0.980). Furthermore, NSRL is computationally efficient, using ~2.7x less memory and achieving ~4.5x faster inference than state-of-the-art differentiable logic methods like NLRL.
Interpretability
The framework successfully extracts human-readable rules. For instance, in Montezuma's Revenge, it learned the logical sequence: Move(man, door) <- WithObject(man, key) ^ KeyToDoor(key, door), explicitly showing the reasoning behind the agent's actions.
Conclusion
NSRL represents a significant step toward scalable, interpretable RL. By framing logic as matrix operations and using attention for rule selection, it bridges the gap between neural performance and symbolic transparency. Future work aims to expand the expressiveness of the reasoning module beyond chain-like rules and to integrate symbolic predicate extraction directly from raw visual inputs.
Summary updated