Abstract
Reinforcement learning (RL) has demonstrated remarkable success in discrete games and robotic manipulation, yet its application to industrial-scale control remains challenging due to a lack of standardized, rigorous benchmarks. We introduce controlgym, an open-source library featuring 46 diverse environments ranging from aerospace models to infinite-dimensional partial differential equations (PDEs). By bridging the gap between classical control theory and modern RL, controlgym provides a "stress test" for the scalability, stability, and robustness of learning-based controllers.
Introduction: The Benchmark Gap
While RL excels in environments with complex physical contacts (e.g., MuJoCo), industrial processes like power grids or chemical reactors often involve high-dimensional, distributed parameter systems that are poorly represented in current benchmarks. Existing control theory textbooks typically offer low-dimensional linear models, while standard RL suites lack the theoretical grounding required for safety-critical industrial applications. controlgym addresses this "benchmark gap" by providing a suite of environments that are both theoretically rigorous and computationally challenging.
The Controlgym Library
controlgym is designed as a lightweight Python library fully compatible with the OpenAI Gym/Gymnasium API. This compatibility allows for the seamless integration of state-of-the-art RL algorithms, such as PPO or SAC, without modification. The library is categorized into two main components:
- Linear Systems: 36 environments derived from the COMPleib project, encompassing aerospace, power systems, and decentralized cyber-physical systems.
- PDE Systems: 10 environments governed by fundamental physics equations (e.g., Wave, Schrödinger, Burgers’). These are implemented using high-performance numerical solvers, including pseudo-spectral methods and fourth-order exponential time differencing (ETDRK4), ensuring physical accuracy and computational efficiency.
Benchmarking Industrial-Scale Control
The library provides a comprehensive set of 46 benchmarks. The industrial linear tasks include complex models such as the International Space Station (ISS), F-14 aircraft, and distillation towers. Notably, these models vary significantly in state dimensionality ($n_s$), ranging from simple 4-state systems to a cable-mass model with 480 state variables.
The PDE-based environments represent the "stars" of the library. Unlike standard datasets, these environments allow users to scale state dimensionality toward infinity by increasing discretization density while maintaining the same underlying physics. This feature enables precise measurement of how RL performance scales with system complexity.
Key Insights for RL Research
controlgym introduces several unique challenges for RL algorithms:
- Scalability Stress Testing: The ability to tune discretization in PDE environments allows researchers to evaluate the performance-complexity trade-off.
- Unbounded State and Action Spaces: Unlike many RL benchmarks that clip values to a small range,
controlgymutilizes continuous, unbounded spaces. This forces agents to learn true dynamical stability, mirroring real-world sensor and actuator behavior. - Tunable Difficulty: In linear PDE systems, physical parameters are explicitly linked to system eigenvalues, allowing users to "dial up" instability to test the limits of RL controllers.
Conclusion and Future Directions
controlgym establishes a foundational tool for the Learning for Dynamics & Control (L4DC) community by modernizing classic industrial models and introducing complex, chaotic PDE systems into the RL ecosystem. Future work will focus on expanding to 2D and 3D fluid dynamics, incorporating non-stochastic adversarial disturbances, and exploring the development of "Foundational Control Transformers" trained across diverse control tasks.
Project Link: https://github.com/xiangyuan-zhang/controlgym
Summary updated