Compositional Reinforcement Learning for Discrete-Time Stochastic Control Systems

Abolfazl Lavaei, Mateo Perez, Milad Kazemi, Fabio Somenzi, Sadegh Soudjani, Ashutosh Trivedi, Majid Zamani

Modern critical infrastructure, such as smart power grids and intelligent traffic networks, consists of numerous interconnected components. Controlling these large-scale systems presents two primary challenges: the lack of precise mathematical models for real-world dynamics and the "curse of dimensionality," where the state space grows exponentially with the number of components. This paper, published in the IEEE Open Journal of Control Systems, introduces a compositional reinforcement learning (RL) framework that addresses these issues by providing decentralized control with formal performance guarantees.

The Compositional Framework

To overcome the scalability limits of monolithic control, the authors propose a "divide and conquer" strategy known as compositional synthesis. Instead of training a single massive controller, the system is decomposed into smaller, manageable subsystems.

Interconnection of subsystems $\Sigma_1$ and $\Sigma_2$ showing internal signals $w_i$ and $h_i$.

As illustrated in the figure above, each subsystem $\Sigma_i$ interacts with its neighbors through internal signals. The framework treats these neighboring interactions as adversarial in a minimax game setting. By employing Minimax Q-learning, each subsystem controller is trained to maximize the probability of meeting its local objectives while assuming its neighbors might behave in a worst-case manner. This "assume-guarantee" approach ensures that the resulting decentralized policies are robust to the behavior of the rest of the network.

Methodology and Theoretical Guarantees

The methodology bridges the gap between model-free RL and formal verification. The process involves several key steps:

  1. Implicit Abstraction: Continuous real-world data is mapped onto a discrete grid. Unlike traditional methods, this abstraction is "implicit," meaning the RL agent learns directly from samples on the grid without the need to construct a massive transition matrix.
  2. Automata-Based Reward Shaping: System goals are expressed using Syntactically Co-safe Linear Temporal Logic (scLTL). These specifications (e.g., "maintain temperature within range for $T$ steps") are converted into finite automata. To handle the "sparse reward" problem typical in such tasks, the authors use potential-based reward shaping to provide the agent with dense feedback during training.
  3. Multi-Level Discretization: Learning is accelerated by starting on a coarse grid and gradually refining it, transferring learned knowledge across levels.
Flowchart of the methodology showing the relationship between definitions, theorems, and the final optimality results.

Crucially, the authors leverage Lipschitz constants—measures of the smoothness of the system's dynamics—to provide a theoretical lower bound on the probability that the overall network will satisfy its global requirements. This transforms RL from a "black box" into a verifiable control tool.

Experimental Validation

The framework was evaluated on two physical benchmarks:

  • Room Temperature Network: A circular network of 20 interconnected rooms. The goal was to maintain comfort levels for 45 minutes. The learned policy achieved a 99.99% satisfaction probability, far exceeding the conservative theoretical lower bound of 90.2%.
  • Road Traffic Network: A ring of 7 traffic cells where the goal was to keep vehicle density below a critical threshold.

In both cases, training was remarkably efficient, taking only 4 to 5 minutes on standard hardware. A monolithic approach to the 20-room problem would have required reasoning over $10^{35}$ state-input pairs; the compositional approach reduced this to a few hundred thousand pairs per subsystem.

Conclusion

This research demonstrates that compositional RL can provide scalable, decentralized, and mathematically rigorous control for complex stochastic systems. While the current theoretical bounds are conservative due to the worst-case adversarial assumptions, the framework provides a robust foundation for applying RL to safety-critical infrastructure. Future work aims to extend these results from finite-horizon tasks to infinite-horizon properties.

Summary updated

BibTeX
@article{lavaei2023compositional,
  author = {Abolfazl Lavaei and Mateo Perez and Milad Kazemi and Fabio Somenzi and Sadegh Soudjani and Ashutosh Trivedi and Majid Zamani},
  title = {{Compositional Reinforcement Learning for Discrete-Time Stochastic Control Systems}},
  journal = {IEEE Open Journal of Control Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=iOAX40w9A0},
}
Figure