Compositional Policy Learning in Stochastic Control Systems with Formal Guarantees

Dorde Zikelic, Mathias Lechner, Abhinav Verma, Krishnendu Chatterjee, Thomas A. Henzinger

TL;DR

This paper introduces CLAPS, a novel method for training neural network policies in stochastic control systems that come with formal guarantees on their behavior. CLAPS decomposes complex tasks into simpler sub-tasks, learns policies for each, and composes them to ensure a high probability of satisfying the overall specification, even in the presence of uncertainty.

What Problem Does This Paper Address?

Reinforcement learning (RL) has shown great promise in learning complex control policies, but a major hurdle for deploying these policies in safety-critical applications is the lack of formal guarantees about their behavior. While RL typically optimizes for expected reward, it doesn't inherently ensure safety or guarantee that specific objectives will be met with a certain probability. Existing methods for providing such guarantees often struggle with stochastic environments, non-linear dynamics, or complex, long-horizon tasks. This paper aims to bridge this gap by enabling the learning of compositional policies for stochastic control systems that satisfy formal probabilistic specifications.

Methods

The core of the proposed method, CLAPS (Compositional Learning for Probabilistic Specifications), lies in its compositional approach. It leverages the SPECTRL language, which allows for the composition of logical specifications, particularly reach-avoid specifications.

  1. Decomposition into Abstract Graphs: A complex SPECTRL specification is translated into a directed acyclic graph (DAG) where each node represents a state region and each edge represents a reach-avoid sub-task.
  2. Learning Reach-Avoid Supermartingales (RASMs): For each edge (sub-task), CLAPS learns a neural network policy and a Reach-Avoid Supermartingale (RASM). RASMs act as formal certificates that guarantee a certain probability of satisfying the reach-avoid specification for that sub-task. The paper introduces a novel, tighter lower bound for the reach-avoidance probability implied by RASMs, which is crucial for composing guarantees.
  3. Compositional Policy Learning: The algorithm performs a forward pass on the DAG, learning edge policies "on-demand" and composing them. It maintains a running probability of satisfying the global specification based on the probabilities of the learned sub-policies. This allows for efficient learning and avoids redundant computations.
  4. Formal Guarantees: The final composed policy comes with a formal certificate (derived from the RASMs) guaranteeing that the original SPECTRL specification is satisfied with the desired probability.

A key theoretical contribution is the proof that RASMs imply a strictly tighter lower bound on reach-avoidance probability compared to prior work, achieved by using a multiplicative expected decrease condition instead of an additive one.

Datasets

The paper evaluates its approach on a "Stochastic Nine Rooms environment." This environment is a modification of a previously used benchmark, with the addition of stochastic disturbances to the agent's dynamics. The goal is to navigate from an initial region to a target region while avoiding unsafe areas (red walls).

Key Insights and Ideas

  • Compositionality is Key for Guarantees: By breaking down complex tasks into smaller, verifiable sub-tasks, it becomes feasible to provide formal guarantees for the overall system behavior.
  • RASMs as Verifiable Certificates: Reach-Avoid Supermartingales provide a powerful mechanism to formally certify the probabilistic safety of learned policies, going beyond empirical validation.
  • Tighter Bounds for Better Guarantees: The derivation of a tighter lower bound for reach-avoidance probability using multiplicative RASMs is critical. This improvement allows for more reliable guarantees, especially for complex tasks with many composed sub-policies, or when aiming for very high probabilities of satisfaction.
  • On-Demand Learning for Efficiency: The CLAPS algorithm's ability to learn edge policies only when needed, guided by the DAG structure and probability propagation, makes it more efficient than methods that might require solving all possible sub-tasks upfront.

Key Results

  • The proposed CLAPS algorithm successfully learns compositional policies for stochastic control systems with formal probabilistic guarantees.
  • The paper demonstrates a theoretical improvement in the lower bound for reach-avoidance probability using multiplicative RASMs, showing an exponential improvement factor over previous work. This is illustrated in Table 1, where for a target probability of 99.9%, their method requires a significantly smaller parameter ($\lambda \approx 100$) compared to the prior method ($\lambda \approx 1000$).
  • Experimental evaluation on the Stochastic Nine Rooms environment shows that an end-to-end learned policy fails to be verified as safe, while the CLAPS approach successfully decomposes the task and provides verifiable compositional policies. Figure 1 and 2 visually demonstrate this.

Limitations and Future Work

  • SPECTRL Specification Language: The current approach is limited to specifications expressible in the SPECTRL language, which, while expressive, does not cover the entirety of Linear Temporal Logic (LTL).
  • No Guarantee of Policy Existence: The algorithm is not guaranteed to find a policy that satisfies the specification if one exists.
  • Tightness of Bounds: While the bounds are improved, they are still lower bounds and not necessarily tight.
  • Future Work: The authors suggest extending the approach to cover more expressive specification languages (like full LTL) and developing methods to guarantee policy existence and tighter bounds.

Summary updated

BibTeX
@inproceedings{zikelic2023compositional,
  author = {Dorde Zikelic and Mathias Lechner and Abhinav Verma and Krishnendu Chatterjee and Thomas A. Henzinger},
  title = {{Compositional Policy Learning in Stochastic Control Systems with Formal Guarantees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=Yx8Sw2H5Q7},
}
Figure