NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unfolding-based Partial Order Reduction

César Rodríguez, Marcelo Sousa, Subodh Sharma, Daniel Kroening

TL;DR

This paper introduces a novel algorithm that combines partial order reduction (POR) and net unfoldings to tackle the state-space explosion problem in concurrent systems. Their approach achieves "super-optimality" by exploring exponentially fewer execution paths than existing methods, while also handling non-terminating programs and efficiently reusing explored states.

What Problem Does This Paper Address?

Verifying concurrent software is notoriously difficult due to the "state-space explosion" problem. When multiple threads or processes execute concurrently, their actions can interleave in a vast number of ways, leading to an overwhelming number of possible execution paths and states to analyze. Two common techniques to combat this are:

  • Partial Order Reduction (POR): This method exploits the fact that some concurrent actions are independent and can be executed in different orders without changing the final outcome. POR aims to explore only a representative subset of these equivalent execution sequences.
  • Net Unfoldings: This technique models concurrent execution as a partial order, which can be more compact than a full execution tree. Unfoldings can handle non-terminating executions and are often stateful.

While both methods have strengths, they also have limitations. POR can sometimes explore too many equivalent traces, and combining it with stateful search is tricky. Unfoldings can be computationally expensive to construct and are inherently stateful, making them prone to memory issues. This paper seeks to bridge this gap by combining the benefits of both approaches.

Methods

The core contribution is a novel stateless POR algorithm built on top of an unfolding structure. Here's a breakdown of their approach:

  • Unified Framework: They first define a general execution model and an unfolding semantics that is parameterized by an independence relation. This allows them to treat POR and unfoldings within a common theoretical ground.
  • Unfolding-based POR: Instead of exploring sequential executions (like traditional POR), their algorithm explores configurations of an unfolding. A configuration represents a partial order of events.
  • Stateless Exploration: The algorithm is designed to be stateless, meaning it doesn't need to store the entire history of explored states. This is crucial for managing memory.
  • "Super-Optimality" via Cutoff Events: A key innovation is the use of "cutoff events," borrowed from unfolding theory. These events allow the algorithm to prune redundant branches of the exploration tree. By intelligently identifying and using cutoff events, the algorithm can explore exponentially fewer execution paths than standard POR methods, achieving a form of "super-optimality."
  • State Caching: To further improve efficiency, the algorithm incorporates state caching. This allows it to efficiently reuse information about previously explored states and events, speeding up revisiting them.
  • Handling Non-Termination: The algorithm is designed to cope with non-terminating concurrent programs, a common challenge in verification.

Datasets

Not discussed in the paper. The paper uses benchmarks from existing competitions and related work.

Key Insights and Ideas

  • Synergy of POR and Unfoldings: The paper demonstrates that combining POR and unfoldings isn't just additive; it can lead to a fundamentally more powerful verification technique. By using unfoldings as the underlying structure, POR can be made more efficient and robust.
  • "Super-Optimality" is Achievable: The concept of exploring exponentially fewer traces than even optimal POR is a significant theoretical advancement. This suggests that current POR techniques might be leaving a lot of redundancy on the table.
  • Cutoff Events as a Powerful Pruning Mechanism: The paper highlights the effectiveness of cutoff events not just for pruning unfoldings but for guiding a POR algorithm. This is a novel application of the concept.
  • Statelessness is Key for Scalability: The emphasis on a stateless algorithm is crucial for tackling large, complex concurrent systems where memory is a bottleneck.
  • Richer Structure for POR: The work frames POR not just as a technique for reducing sequential executions but as an algorithm exploring a richer, partially-ordered structure (the unfolding).

Key Results

  • Novel Stateless POR Algorithm: The paper presents a new algorithm that is stateless, optimal (explores each configuration at most once), and "super-optimal" (explores exponentially fewer traces than state-of-the-art DPORs in many cases).
  • Handles Non-Termination: The algorithm successfully copes with non-terminating concurrent systems.
  • State Caching Improves Performance: The inclusion of state caching significantly speeds up the exploration process.
  • Experimental Validation: Experiments on benchmarks with busy-waits and other concurrent programs show dramatic reductions in the number of explored executions compared to a state-of-the-art DPOR (Nidhugg). For instance, in the ssb(8) benchmark, their method explores significantly fewer traces and achieves a substantial speedup. Table 1 and 2 provide detailed quantitative results.

Limitations and Future Work

  • Theoretical Focus: While the paper presents a novel algorithm and theoretical framework, the implementation (Poet) is a proof-of-concept. Further optimization and scaling of the implementation are likely needed.
  • Conditional Independence: The current work focuses on unconditional independence. The authors conjecture that extending their framework to handle conditional independence could lead to even greater gains, especially for classic unfoldings.
  • Memory Consumption: While the algorithm is stateless, the paper mentions that the average maximal memory consumption (in events) is roughly half of the unfolding size. Further research into optimizing memory usage, especially for very large unfoldings, could be beneficial.
  • Comparison with Saturation-Based Methods: The paper notes that some of their benchmarks have narrow and deep unfoldings, which might be amenable to saturation-based unfolding verification. Exploring the interplay and potential benefits of combining their approach with saturation techniques is a promising direction.

Summary updated

BibTeX
@inproceedings{rodriguez2015unfolding,
  author = {César Rodríguez and Marcelo Sousa and Subodh Sharma and Daniel Kroening},
  title = {{Unfolding-based Partial Order Reduction}},
  booktitle = {CONCUR},
  year = {2015},
  url = {https://openreview.net/forum?id=Hshxc-MJn1o},
}
Figure