Approximate Partial Order Reduction

Chuchu Fan, Zhenqi Huang, Sayan Mitra

Abstract

We present a new partial order reduction method for reachability analysis of nondeterministic labeled transition systems over metric spaces. Nondeterminism arises from both the choice of the initial state and the choice of actions, and the number of executions to be explored grows exponentially with their length. We introduce a notion of $\varepsilon$-independence relation over actions that relate approximately commutative actions; $\varepsilon$-equivalent action sequences are obtained by swapping $\varepsilon$-independent consecutive action pairs. Our reachability algorithm generalizes individual executions to cover sets of executions that start from different, but $\delta$-close initial states, and follow different, but $\varepsilon$-independent, action sequences. The constructed over-approximations can be made arbitrarily precise by reducing the $\delta, \varepsilon$ parameters. Exploiting both the continuity of actions and their approximate independence, the algorithm can yield an exponential reduction in the number of executions explored. We illustrate this with experiments on consensus, platooning, and distributed control examples.

Introduction

In the verification of distributed systems, the primary challenge is the "combinatorial explosion" of possible execution paths. When multiple nodes perform actions concurrently, the number of potential interleavings grows factorially ($n!$) with the number of actions. Traditional formal methods use Partial Order Reduction (POR) to mitigate this. POR identifies independent actions—those that commute exactly (e.g., $ab = ba$)—allowing a verifier to check only one representative sequence instead of all permutations.

However, traditional POR is often too rigid for systems involving physical quantities like temperature, position, or voltage. In these metric spaces, actions rarely commute perfectly; a small numerical difference usually exists depending on the order of operations. Standard tools, demanding absolute equality, fail to prune these paths. This paper introduces Approximate Partial Order Reduction (APOR), a framework that leverages the inherent continuity of physical systems to allow for "nearly" independent actions.

The APOR Framework

The core innovation of APOR is the transition from exact equivalence to $\varepsilon$-equivalence. This is built on three pillars:

1. $\varepsilon$-Independence

Two actions are considered $\varepsilon$-independent if executing them in different orders results in states that are at most $\varepsilon$ distance apart. By relaxing the requirement for perfect commutativity, the algorithm can group together traces that are functionally similar, even if not identical.

2. Discrepancy Functions

To ensure the analysis remains rigorous, the authors employ discrepancy functions. These functions track how initial differences in state (denoted by $\delta$) and the errors introduced by swapping actions (denoted by $\varepsilon$) propagate and potentially grow over the length of an execution. This allows the system to maintain a bound on the total possible error.

3. Trace Equivalent Discrepancy (ted)

The algorithm introduces a novel metric called Trace Equivalent Discrepancy (ted). Instead of simulating every possible interleaving, the algorithm simulates a single representative execution. It then "bloats" the resulting state into a ball using the ted value. This bloated set is a sound over-approximation, guaranteed to contain the final states of all other $\varepsilon$-equivalent interleavings.

The Reachability Algorithm

The APOR reachability algorithm works by covering the initial state space with small $\delta$-balls. For each ball, it explores representative traces. If a new action sequence is encountered that is $\varepsilon$-equivalent to a sequence already explored, the algorithm prunes the new sequence. The potential deviation is accounted for by the bloating factor. This approach ensures that if the bloated reachable sets do not intersect with an unsafe region, the system is mathematically proven to be safe.

Experimental Results

The researchers evaluated APOR across three distinct case studies, demonstrating its ability to turn exponential problems into linear ones for specific state space regions:

  • Iterative Consensus: In a linear system where processes agree on a value, the algorithm reduced the number of explored executions from 216 to just 2. The analysis time dropped from 20 milliseconds to a mere 1 millisecond.
  • Building Heating System: In a 3-room distributed control model over 8 rounds, there were 1.6 million valid executions. APOR explored only one representative execution of length 32, finishing in 1 millisecond, while exhaustive simulation required 434 seconds.
  • Vehicle Platooning: For a nonlinear system of 4 cars maintaining safe distances, the algorithm successfully verified a state space containing $81^{10}$ possible traces by exploring only 7,986 paths.

Conclusion and Future Work

APOR provides a powerful method for scaling the verification of cyber-physical systems. By exploiting the continuity of actions, it achieves dramatic reductions in computational overhead while maintaining sound over-approximations.

Future research directions include moving from "global" independence (where actions must commute everywhere) to "local" independence (where actions commute only in specific regions). Additionally, extending the framework to hybrid systems—where variables evolve via differential equations between discrete actions—and supporting more complex temporal logic properties would further broaden the applicability of this approach.

Summary updated

Abstract

We present a new partial order reduction method for reachability analysis of nondeterministic labeled transition systems over metric spaces. Nondeterminism arises from both the choice of the initial state and the choice of actions, and the number of executions to be explored grows exponentially with their length. We introduce a notion of $\varepsilon$-independence relation over actions that relate approximately commutative actions; $\varepsilon$-equivalent action sequences are obtained by swapping $\varepsilon$-independent consecutive action pairs. Our reachability algorithm generalizes individual executions to cover sets of executions that start from different, but $δ$-close initial states, and follow different, but $\varepsilon$-independent, action sequences. The constructed over-approximations can be made arbitrarily precise by reducing the $δ,\varepsilon$ parameters. Exploiting both the continuity of actions and their approximate independence, the algorithm can yield an exponential reduction in the number of executions explored. We illustrate this with experiments on consensus, platooning, and distributed control examples.
BibTeX
@misc{fan2016approximate,
  author = {Chuchu Fan and Zhenqi Huang and Sayan Mitra},
  title = {{Approximate Partial Order Reduction}},
  year = {2016},
  eprint = {1610.06317},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1610.06317},
}
Figure