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

Data-centric Dynamic Partial Order Reduction

Marek Chalupa, Krishnendu Chatterjee, Andreas Pavlogiannis, Nishant Sinha, Kapil Vaidya

TL;DR

This paper introduces Data-Centric Dynamic Partial Order Reduction (DC-DPOR), a novel approach to stateless model checking that groups program executions based on what data read events observe rather than the specific order of all dependent operations. By shifting from a control-centric to a data-centric equivalence, the authors achieve an exponential reduction in the number of program traces that need to be explored while maintaining full coverage of reachable local states.

What Problem Does This Paper Address?

Stateless model checking is a powerful technique for finding bugs in concurrent programs by systematically exploring different thread interleavings. However, it faces a "combinatorial explosion": the number of possible interleavings grows exponentially with the number of threads and operations.

To manage this, researchers use Dynamic Partial Order Reduction (DPOR). Traditional DPOR relies on Mazurkiewicz equivalence, which considers two traces equivalent if they only differ by the swapping of independent, adjacent events. While effective, Mazurkiewicz equivalence is "control-centric"—it focuses heavily on the relative ordering of dependent events. The authors argue this is still too granular; many traces that are technically different under Mazurkiewicz equivalence actually result in the same data being passed between threads and thus the same program behavior.

Methods

The authors propose a coarser equivalence relation called observation equivalence. Two traces are observationally equivalent if every read event in the program observes the same write event in both traces.

Key components of their approach include:

  • Annotations: To guide the exploration, the algorithm uses "positive annotations" (forcing a read to see a specific write) and "negative annotations" (preventing a read from seeing a specific write).
  • The Realize Procedure: Given a set of desired read-write observations, the algorithm must determine if a valid program trace exists that satisfies them. The authors show that while this is NP-complete in general, it can be solved in polynomial time for acyclic architectures (where the communication graph between processes has no cycles) by reducing the problem to 2-SAT.
  • DC-DPOR Algorithm: A recursive exploration strategy that uses these annotations to ensure it visits exactly one representative trace from each observation equivalence class.
  • Handling Cycles: For cyclic architectures, they introduce a refined version of the equivalence that remains coarser than Mazurkiewicz but allows for an optimal exploration algorithm.

The model syntax and the way events are structured in a control-flow graph are illustrated in the paper's preliminaries:

Fig. 2. The control-flow graph CFGi is a sequential composition of these five atomic graphs.

Datasets

The authors evaluated their tool, built on top of the LLVM-based model checker Nidhugg, using two types of benchmarks:

  1. Synthetic Benchmarks: lastzero and opt_lock, designed to highlight the theoretical strengths of different DPOR methods.
  2. SV-COMP Benchmarks: Real-world-inspired concurrent programs from the TACAS Competition on Software Verification, including fib_bench, pthread_demo, sigma_false, and parker.

Key Insights and Ideas

  • Data vs. Control: The "aha moment" is realizing that if the data flowing into every read remains the same, the local state of every process remains the same, regardless of how other non-conflicting writes were ordered.
  • Exponential Succinctness: The paper proves that observation equivalence can be exponentially more succinct than Mazurkiewicz equivalence. In some cases, a state space that Mazurkiewicz sees as exponential, DC-DPOR sees as linear.
  • Optimality: The algorithm is "optimal," meaning it never explores the same equivalence class twice. This is achieved through the clever use of sleep-set-like negative annotations.
  • 2-SAT Reduction: Finding a trace that matches a data-flow specification is essentially a constraint satisfaction problem. Mapping this to 2-SAT for acyclic architectures is a key technical contribution that makes the approach practical.

The difference in how these methods explore the state space is shown in this comparison:

Comparison of Mazurkiewicz-based (center) vs. Observation-based (right) trace exploration.

Key Results

The experimental results show that DC-DPOR significantly outperforms the state-of-the-art Source-DPOR:

  • Trace Reduction: On the lastzero(6) benchmark, Source-DPOR explored over 1.7 million traces, while DC-DPOR required only 316.
  • Scalability: For the opt_lock benchmark, DC-DPOR scaled to 200 attempts (2,397 traces), whereas Source-DPOR timed out after 1 hour at just 15 attempts.
  • Time Efficiency: In most SV-COMP benchmarks, DC-DPOR was orders of magnitude faster. For example, on sigma_false(8), DC-DPOR finished in 0.28 seconds compared to Source-DPOR's 658 seconds.

Limitations and Future Work

  • Computational Overhead: The Realize procedure, while polynomial for acyclic graphs, still adds overhead. In the parker benchmark, DC-DPOR explored fewer traces but was slower overall because the cost of discovering each trace was higher than the savings from skipping others.
  • Cyclic Architectures: While the paper provides a solution for cyclic architectures, it requires a finer (less efficient) equivalence. The authors suggest that finding even coarser equivalences for cyclic graphs is an open challenge.
  • Memory Models: The current work assumes Sequential Consistency. Extending this data-centric approach to relaxed memory models (like TSO or PSO) is a promising future direction.
  • Static Analysis: The authors propose using static analysis to automatically transform cyclic program architectures into acyclic ones to leverage the faster version of their algorithm.

Summary updated

BibTeX
@inproceedings{chalupa2016data,
  author = {Marek Chalupa and Krishnendu Chatterjee and Andreas Pavlogiannis and Nishant Sinha and Kapil Vaidya},
  title = {{Data-centric Dynamic Partial Order Reduction}},
  booktitle = {Proc. ACM Program. Lang},
  year = {2016},
  doi = {10.1145/3158119},
}
Figure