Efficient Symbolic Policy Learning with Differentiable Symbolic Expression

Jiaming Guo, Rui Zhang, Shaohui Peng, Qi Yi, Xing Hu, Ruizhi Chen, Zidong Du, Xishan Zhang, Ling Li, Qi Guo, Yunji Chen

Abstract

Deep Reinforcement Learning (DRL) has achieved remarkable success across diverse domains, yet the resulting policies often manifest as "black box" neural networks. These models, while effective, lack interpretability, pose safety verification challenges, and demand significant computational resources for deployment. This paper introduces Efficient Symbolic Policy Learning (ESPL), a novel framework that bridges the gap between the performance of deep learning and the interpretability of symbolic expressions. By making the search for mathematical formulas end-to-end differentiable, ESPL enables the discovery of compact, high-performing policies from scratch with unprecedented data efficiency.

Introduction

In traditional DRL, policies are represented by massive neural networks with thousands or millions of parameters. While these models can master complex tasks, their internal logic is opaque. Symbolic policies—where a strategy is expressed as a simple mathematical formula—offer a compelling alternative. They are inherently interpretable, verifiable, and extremely lightweight.

However, finding the optimal symbolic expression is a combinatorial "needle in a haystack" problem. Historically, researchers relied on Genetic Programming or reinforcement learning agents that "guess" formulas, both of which are computationally expensive and often require pre-trained neural network "teachers" to guide the search. ESPL addresses these bottlenecks by framing symbolic expression discovery as a gradient-based optimization problem, allowing for the use of standard backpropagation techniques.

Methodology

ESPL transforms the discrete search for symbolic expressions into a continuous optimization task through three primary innovations:

1. The Symbolic Network (SN)

Unlike standard neural networks that use linear transformations and simple activations (like ReLU), the Symbolic Network utilizes a library of mathematical operators (e.g., $\sin, \cos, \log, \exp$) as its functional units. The architecture employs dense connections, ensuring every layer has access to the original input features. This allows the network to build increasingly complex mathematical expressions by composing simple operations across layers.

2. Differentiable Path Selection

To ensure the final policy is a compact formula rather than a dense graph of operators, ESPL incorporates a Path Selector. Using the Gumbel-Sigmoid trick, the system learns a probabilistic mask that determines which mathematical operations are active. This technique allows the model to prune unnecessary operations during training while maintaining a differentiable path for gradients to flow, effectively "distilling" the network into a simple equation.

3. Contextual Symbolic Policy (CSP) for Meta-RL

ESPL extends to Meta-Reinforcement Learning through Contextual Symbolic Policies. By integrating a context encoder, the system can adapt its symbolic output to varying environment parameters (e.g., changing gravity or friction). This allows a single framework to generate specialized symbolic formulas for different tasks on the fly.

Experimental Results

The researchers evaluated ESPL against state-of-the-art DRL (SAC, TD3) and symbolic methods (DSP) across benchmarks including MuJoCo, PyBullet, and TORCS.

Data and Computational Efficiency

ESPL demonstrates a massive leap in efficiency:

  • Training Efficiency: ESPL requires 1,000x to 4,000x fewer environment interactions than previous symbolic methods like Deep Symbolic Policy (DSP) to reach comparable performance.
  • Inference Speed: Once trained, the symbolic policies are exceptionally lean. They require 60x to 45,000x fewer floating-point operations (FLOPs) than standard neural network policies, making them ideal for low-power embedded systems.

Performance and Generalization

In 7 out of 8 benchmark tasks, ESPL achieved rewards comparable to or exceeding heavy-duty DRL algorithms. Notably, in Meta-RL scenarios, symbolic policies often outperformed neural networks on unseen tasks. This suggests that mathematical formulas may capture the underlying physical laws of an environment more robustly than neural networks, which are prone to overfitting training distributions.

Interpretability and Safety

One of the primary advantages of ESPL is the human-readability of the resulting policies. In user studies, researchers were able to directly inspect formulas to understand the control logic—such as how a LunarLander agent weights vertical velocity against altitude. This transparency is critical for safety-critical applications where a "black box" decision-making process is unacceptable.

Conclusion and Future Work

ESPL represents a significant step toward making reinforcement learning both interpretable and efficient. By enabling gradient-based search for symbolic expressions, it removes the need for expensive evolutionary algorithms or pre-trained teachers.

Currently, ESPL is optimized for low-dimensional state spaces (e.g., sensor data). Future research aims to extend this framework to high-dimensional inputs, such as raw pixels, potentially by using a neural "front-end" to extract features for a symbolic "back-end." Additionally, the authors see potential for ESPL in automated hardware design and other engineering fields where compact, symbolic logic is preferred over dense neural architectures.

Summary updated

BibTeX
@inproceedings{guo2023efficient,
  author = {Jiaming Guo and Rui Zhang and Shaohui Peng and Qi Yi and Xing Hu and Ruizhi Chen and Zidong Du and Xishan Zhang and Ling Li and Qi Guo and Yunji Chen},
  title = {{Efficient Symbolic Policy Learning with Differentiable Symbolic Expression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=xdQpmUPNHC},
}
Figure