Abstract
Deep reinforcement learning (DRL) has shown significant promise for uncovering sophisticated control policies that interact in complex environments, such as stabilizing a tokamak fusion reactor or minimizing the drag force on an object in a fluid flow. However, DRL requires an abundance of training examples and may become prohibitively expensive for many applications. In addition, the reliance on deep neural networks often results in an uninterpretable, black-box policy that may be too computationally expensive to use with certain embedded systems. Recent advances in sparse dictionary learning, such as the sparse identification of nonlinear dynamics (SINDy), have shown promise for creating efficient and interpretable data-driven models in the low-data regime. In this work we introduce SINDy-RL, a unifying framework for combining SINDy and DRL to create efficient, interpretable, and trustworthy representations of the dynamics model, reward function, and control policy. We demonstrate the effectiveness of our approaches on benchmark control environments and flow control problems, including gust mitigation on a 3D NACA 0012 airfoil at $Re=1000$. SINDy-RL achieves comparable performance to modern DRL algorithms using significantly fewer interactions in the environment and results in an interpretable control policy orders of magnitude smaller than a DRL policy.
Introduction
Deep Reinforcement Learning (DRL) has achieved remarkable success in complex tasks ranging from strategic games to autonomous drone racing. Despite these achievements, DRL faces significant hurdles for real-world engineering deployment. Specifically, standard DRL algorithms are notoriously data-hungry, often requiring millions of interactions that are impractical for high-fidelity simulations or physical hardware. Furthermore, the resulting policies are computationally heavy black boxes, lacking the interpretability required for safety-critical systems like aviation or nuclear fusion.
SINDy-RL addresses these challenges by integrating Sparse Identification of Nonlinear Dynamics (SINDy) into a model-based RL framework. By replacing opaque neural networks with transparent symbolic equations, SINDy-RL provides a path toward efficient, interpretable, and trustworthy autonomous control.
Methods: The SINDy-RL Framework
The core of the framework is SINDy, which utilizes sparse regression to identify the simplest combination of candidate functions (e.g., polynomials, trigonometric functions) that accurately describe observed data. SINDy-RL applies this principle across three critical components of the RL loop:
- Surrogate Dynamics: Instead of interacting directly with expensive environments, a SINDy model is trained to act as a fast surrogate. This allows agents to train in an "imaginary" environment at speeds orders of magnitude faster than full-order simulations.
- Surrogate Rewards: In scenarios where rewards are not directly measurable, SINDy-RL learns a symbolic mapping from available sensors to the reward function (e.g., mapping pressure sensors to net drag).
- Policy Distillation: Complex neural network policies are distilled into sparse SINDy models via behavioral cloning, converting thousands of parameters into a human-readable equation.
To manage noise and provide safety metrics, the framework employs Ensemble SINDy (E-SINDy), which quantifies model uncertainty by training multiple models on data subsets. This allows for risk-averse agents that avoid regions of the state space where the model is uncertain.
Experimental Results
SINDy-RL was evaluated across a diverse set of benchmarks, including classic control (Cartpole, Swimmer), fluid dynamics (2D cylinder flow, Pinball), and high-fidelity 3D Computational Fluid Dynamics (CFD) for a NACA 0012 airfoil.
Sample Efficiency and Performance
As shown in the comparative analysis across environments, SINDy-RL consistently outperforms baseline model-free algorithms in sample efficiency. In the Cartpole swing-up task, SINDy-RL achieved a successful policy with 100x fewer interactions than Proximal Policy Optimization (PPO). For the computationally intensive 3D Airfoil gust mitigation task—where a single simulation step takes 45 seconds—SINDy-RL was 14.5x more sample efficient, reducing total training time from 185 hours to just 14 hours.
Interpretability and Generalization
A key advantage of SINDy-RL is the simplicity of the resulting controllers. In the Pinball environment, a 5,000-parameter neural network was reduced to a quadratic polynomial with only 66 elements. Remarkably, these distilled symbolic policies often generalized better than their neural counterparts, maintaining stability across varying Reynolds numbers where the original networks failed. Furthermore, the learned reward for the 2D cylinder was discovered to be a simple quadratic function, providing clear physical insight into the controller's objective.
Discussion and Future Work
While SINDy-RL offers significant improvements in efficiency and transparency, it faces limitations. The "curse of dimensionality" can lead to combinatorial growth in the candidate function library for high-dimensional state spaces, necessitating dimensionality reduction techniques like SVD. Additionally, ensuring the inherent stability of identified symbolic models remains a challenge, currently addressed through "bounding box" resets during training. Future research will explore the use of delay embeddings to handle partial observability and further automate the discovery of stable, low-dimensional representations for increasingly complex physical systems.
Summary updated