Automatic Verification of Concurrent Stochastic Systems

Marta Kwiatkowska, Gethin Norman, David Parker, Gabriel Santos

Abstract

Automated verification techniques for stochastic games allow formal reasoning about systems featuring competitive or collaborative behavior among rational agents in uncertain settings. Traditional tools focus on turn-based games and zero-sum properties, where agents have directly opposing objectives. This paper presents automated verification techniques for Concurrent Stochastic Games (CSGs), which provide a more natural model for simultaneous decision-making. We introduce an extension of the temporal logic rPATL to specify quantitative properties, including social welfare Nash equilibria, allowing for the identification of scenarios where agents collaborate to optimize joint performance. We implement these algorithms in PRISM-games 3.0 and demonstrate their effectiveness across various case studies, including robotics, computer security, and network protocols.

Introduction

Stochastic multi-player games are a cornerstone for modeling autonomous agents in uncertain environments, such as robotic swarms, financial markets, and network infrastructures. However, existing formal verification frameworks, such as earlier versions of PRISM-games, have historically been constrained by two major limitations. First, they primarily support Turn-based Stochastic Games (TSGs), where only one player acts at any given state. Second, they focus on zero-sum properties, assuming a strictly adversarial relationship between players.

In reality, many systems involve agents acting concurrently without knowledge of others' simultaneous choices. Furthermore, these agents often have distinct but non-opposing goals, making collaboration a more realistic and beneficial outcome than pure competition. This paper addresses these gaps by developing a framework for the verification and strategy synthesis of Concurrent Stochastic Games (CSGs) using nonzero-sum properties.

Modeling Concurrent Interaction

In a CSG, players choose their actions simultaneously and independently. The transition to the next state is determined by the combination of these choices. This concurrency is vital for accurately modeling decentralized systems. For example, in a futures market, modeling the system as turn-based might allow one investor to unfairly react to another's move within the same time step. A concurrent model prevents this, leading to more realistic bounds on profits and risks.

To specify properties in this setting, we extend the probabilistic alternating-time temporal logic with rewards (rPATL). This extension allows us to reason about Social Welfare and Social Cost Nash Equilibria. These equilibria identify strategies where no player has an incentive to unilaterally deviate, and the sum of the players' rewards (or costs) is maximized (or minimized).

Verification Algorithms and Implementation

The verification process involves a comprehensive pipeline implemented in PRISM-games 3.0:

  1. Finite-Horizon Properties: For properties with a fixed time limit (e.g., reaching a goal within $k$ steps), the tool uses exact computation via backward induction.
  2. Infinite-Horizon Properties: For properties such as eventually reaching a goal, the tool employs value iteration to reach an approximate solution.
  3. State-Level Game Solving: At each state during the verification process, the algorithm must solve a game. For zero-sum properties, this involves solving a matrix game via Linear Programming (LP). For nonzero-sum properties, the tool solves a bimatrix game to find Nash equilibria using the method of labelled polytopes (the Lemke-Howson algorithm), which we encode into an SMT solver (such as Yices or Z3).
  4. Optimization via MDPs: To improve efficiency during value iteration, the algorithm detects states where a player's objective can no longer change (e.g., the goal is already reached). In these instances, the tool switches from solving expensive bimatrix games to solving a simpler Markov Decision Process (MDP) for the remaining player.

Experimental Evaluation

We evaluated the framework on a diverse suite of case studies, including robot coordination, trust models for user-centric networks, the slotted ALOHA protocol, and jamming in multi-channel radio systems.

Scalability and Performance

The implementation in PRISM-games 3.0 demonstrated significant scalability, successfully verifying models with over 3 million states and nearly 18 million transitions. Most models were solved within minutes on a standard workstation, and all were completed in under two hours. Our testing indicated that the SMT solver Yices significantly outperformed Z3 in solving the underlying bimatrix games, particularly as the number of available actions per player increased.

Strategic Insights

The results highlight the practical benefits of modeling concurrency and collaboration:

  • Collaboration vs. Competition: By optimizing for Social Welfare Nash Equilibria rather than zero-sum outcomes, agents achieved significantly better results. In robotics coordination, for instance, agents synthesized strategies where one would yield to another to avoid collisions, ensuring both reached their goals efficiently.
  • Realism in Concurrency: The transition from turn-based to concurrent models fundamentally changed the optimal strategies in several case studies, providing more accurate reflections of real-world decentralized interactions.

Conclusion and Future Work

This work provides the first automated tool for the verification of CSGs with nonzero-sum properties. By moving beyond the adversarial, turn-based paradigm, we enable the formal analysis of collaborative multi-agent systems. Future research will focus on developing symbolic implementations using Binary Decision Diagrams (BDDs) to handle even larger state spaces, exploring policy iteration methods, and extending the framework to support partially observable strategies and multi-coalitional games.

Summary updated

BibTeX
@article{kwiatkowska2021automatic,
  author = {Marta Kwiatkowska and Gethin Norman and David Parker and Gabriel Santos},
  title = {{Automatic Verification of Concurrent Stochastic Systems}},
  journal = {Formal Methods Syst. Des.},
  year = {2021},
  doi = {10.1007/s10703-020-00356-y},
}
Figure