S-REINFORCE: A Neuro-Symbolic Policy Gradient Approach for Interpretable Reinforcement Learning

Rajdeep Dutta, Qincheng Wang, Ankur Singh, Dhruv Kumarjiguda, Xiaoli Li, Senthilnath JayaveluarXiv 2023 · DOI

Abstract

Deep Reinforcement Learning (RL) has achieved significant success in complex tasks but remains limited by the "black-box" nature of neural network policies. We introduce S-REINFORCE, a novel neuro-symbolic framework that integrates Symbolic Regression (SR) into the RL training loop. By periodically distilling the neural network's behavior into compact mathematical expressions and applying importance sampling, S-REINFORCE produces policies that are both high-performing and fully interpretable. Evaluations on classic control and molecular discovery tasks show that S-REINFORCE outperforms standard REINFORCE in both final reward and training stability while providing causal transparency.

Introduction

Deep Reinforcement Learning (RL) has seen massive success in robotics and games, but it suffers from a significant "black-box" problem. The policies learned by neural networks (NNs) are composed of thousands of opaque weights, making it nearly impossible for humans to understand the rationale behind specific decisions. This lack of transparency is a critical barrier for high-stakes fields like medicine or autonomous vehicle control.

While Symbolic Regression (SR)—which finds mathematical expressions to fit data—offers a path to interpretability, it is computationally expensive and difficult to optimize directly within an RL loop. S-REINFORCE tackles this "interpretability-performance trade-off" by creating a framework where NNs and SR work together rather than in isolation.

Methodology

Overview of the S-REINFORCE architecture, illustrating the interaction between the neural network, symbolic regressor, and environment. Source, p. 4

Overview of the S-REINFORCE architecture, illustrating the interaction between the neural network, symbolic regressor, and environment.

The S-REINFORCE methodology builds on the classic REINFORCE policy gradient algorithm using a dual-track approach:

  1. Numerical Policy (NN): A standard neural network is trained to learn a probability distribution over actions based on the current state.
  2. Symbolic Policy (SR): At regular intervals, the algorithm uses Genetic Programming (GP) to fit a symbolic expression to the NN’s input-output mapping. This "distills" the complex neural logic into a compact, human-readable formula.
  3. Importance Sampling (IS): Once a symbolic policy is extracted, the agent uses it to sample actions in the environment. By comparing the symbolic policy to the neural policy, the algorithm calculates a sampling correction. This reduces the variance of the gradient estimates, leading to more stable and faster learning for the neural network.

By alternating between these two, the NN provides the raw power to explore the environment, while the SR provides a structured summary that stabilizes training.

Experimental Setup

The authors evaluated S-REINFORCE across four distinct environments:

  • Cartpole-v0: A classic control task balancing a pole on a cart.
  • Acrobot-v1: A two-link pendulum task requiring the agent to swing the end to a specific height.
  • LunarLanderContinuous-v2: A high-dimensional continuous control task.
  • ReLeaSE (Structural Evolution): A specialized environment for molecular discovery, where the agent optimizes chemical strings (SMILES) for specific properties like hydrophobicity (logP).

Key Results and Analysis

Performance comparison on the Acrobot-v1 environment, showing S-REINFORCE's superior stability and final reward compared to the baseline. Source, p. 6

Performance comparison on the Acrobot-v1 environment, showing S-REINFORCE's superior stability and final reward compared to the baseline.

S-REINFORCE consistently outperformed the baseline REINFORCE algorithm in both final reward and training stability. In the Cartpole environment, S-REINFORCE achieved a mean reward of 198.1 compared to the baseline's 188.6. The improvement was even more pronounced in the Acrobot task, where S-REINFORCE reached -109.8 versus the baseline's -161.5.

Beyond performance, the resulting formulas provide causal transparency. For example, in the Cartpole task, the symbolic policy revealed that decisions were primarily driven by pole angle and velocity, with negligible influence from the cart's position—a physical insight hidden within a standard neural network. In the Acrobot task, the policy was reduced to a simple trigonometric expression involving only a single state variable, discovering a highly efficient, sparse control law.

Conclusion

S-REINFORCE demonstrates that symbolic regression can serve as more than just a post-hoc explanation tool; it can actively improve the reinforcement learning process as a variance reducer. While future work is needed to scale this to more complex architectures like Actor-Critic methods, S-REINFORCE provides a promising path toward high-performance agents that humans can actually trust and understand.

Summary updated

BibTeX
@misc{dutta2023s,
  author = {Rajdeep Dutta and Qincheng Wang and Ankur Singh and Dhruv Kumarjiguda and Xiaoli Li and Senthilnath Jayavelu},
  title = {{S-REINFORCE: A Neuro-Symbolic Policy Gradient Approach for Interpretable Reinforcement Learning}},
  year = {2023},
  eprint = {2305.07367},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.07367},
}
Figure