TL;DR
This paper introduces DiffSES, a novel framework for symbolic reinforcement learning (RL) that learns interpretable, object-level symbolic policies for visual environments. By combining unsupervised object detection with differentiable symbolic expression search, DiffSES achieves competitive performance while requiring less human prior knowledge and offering greater scalability than previous symbolic RL methods.
What Problem Does This Paper Address?
Reinforcement learning (RL) agents, particularly those using deep neural networks (DNNs), have achieved impressive results in complex visual environments. However, these DNN-based policies are often "black boxes," making them difficult to interpret, debug, and trust. While symbolic RL (SRL) offers a path towards more interpretable policies by using symbolic expressions, existing SRL methods struggle with scalability in high-dimensional visual domains. They often rely on hand-crafted primitives or struggle with complex object interactions, leading to poor performance or requiring extensive human expertise. This paper aims to bridge this gap by developing a scalable and interpretable symbolic RL framework for visual tasks.
Methods
DiffSES employs a three-stage learning approach:
- Neural Policy Learning: A standard deep RL agent (e.g., PPO) is trained to act as a "teacher" policy. This stage leverages the ease of continuous optimization in neural networks.
- Symbolic Fitting: The knowledge from the teacher policy is distilled into a symbolic expression using symbolic regression (SR). This stage uses genetic programming (GP) to evolve symbolic trees that represent the policy. Crucially, DiffSES uses object-level abstractions (detected objects and their properties) as operands, rather than raw pixels, to improve scalability and interpretability.
- Neural-Guided Symbolic Search and Fine-Tuning: This is the core novelty. DiffSES introduces differentiable symbolic expression search. This means that while the structure of the symbolic expression is evolved using GP, the coefficients within the expression are optimized using gradient descent. This hybrid approach combines the exploration capabilities of GP with the efficiency of gradient-based optimization. The search is also "neural-guided," meaning the neural teacher policy helps guide the evolution of the symbolic trees, making the process more efficient.
Datasets
The paper evaluates DiffSES on several Atari and Retro environments, including:
- Circus Charlie-Nes
- AstroRoboSasa-Nes
- Seaquest-Atari2000
- Airstriker-Genesis
- Pong-Atari2600
- SpaceInvaders
- AdventureIsland2 and AdventureIsland3 (for transferability tests)
- CartPole, MountainCar, and Pendulum (for non-visual comparisons)
The object detection submodule is trained using the unsupervised SPACE algorithm, which does not require labeled datasets.
Key Insights and Ideas
- Object-Level Abstraction is Key for Scalability: Moving from raw pixels to object-level representations (like position, velocity) significantly simplifies the symbolic reasoning task and makes symbolic RL more scalable to complex visual environments.
- Differentiable Symbolic Search: Combining genetic programming with gradient descent for coefficient optimization is a powerful way to train symbolic expressions. This allows for both structural exploration and efficient parameter tuning.
- Neural Guidance Accelerates Learning: Using a pre-trained neural network policy to guide the symbolic search significantly speeds up convergence and improves the final performance of the symbolic policy.
- Interpretability Trade-off: While DiffSES aims for interpretability, the paper notes that learned symbolic policies can become less interpretable as the environment complexity or model performance increases, suggesting a potential trade-off.
- Robustness to Imperfect Perception: The framework shows resilience to suboptimal object detection, indicating that the symbolic learning can still function effectively even with noisy or incomplete perceptual input.
Key Results
- DiffSES achieves competitive rewards in various Atari and Retro environments, often matching or exceeding state-of-the-art symbolic RL methods like CGP. For example, in Pong, DiffSES achieved a reward of 20.2, compared to CGP's 19.7.
- The learned symbolic policies are demonstrably simpler and more interpretable than DNN-based policies, with some learned expressions offering clear geometric interpretations (e.g., predicting the aiming point of a pong ball).
- DiffSES requires significantly less human prior knowledge compared to other SRL methods that rely on hand-crafted primitives or complex domain-specific logic.
- The neural-guided search mechanism leads to faster convergence and better performance compared to a purely evolutionary approach.
- The symbolic policies exhibit better transferability to new, unseen environments compared to end-to-end DNN policies, even when the object detection module's performance degrades.
Limitations and Future Work
- Dependency on Object Detector: The performance of DiffSES is inherently tied to the quality of the object detection submodule. While the unsupervised SPACE detector is robust, its performance can still impact the overall results.
- Interpretability vs. Performance Trade-off: As noted, increased environmental complexity or improved performance can sometimes lead to less interpretable symbolic policies.
- Real-World 3D Vision: The current framework is primarily tested on 2D visual RL tasks. Extending it to more complex real-world 3D vision inputs is a significant future direction.
- Neural-Symbolic Co-evolution: The authors plan to improve the neural-symbolic co-evolution process and test the approach in more difficult scenarios.
Summary updated