[Paper Review] A Comparison of Sequential and GPU Implementations of Iterative Methods to Compute Reachability Probabilities
This paper compares sequential and GPU-accelerated implementations of the Jacobi and BiCGStab iterative methods for solving linear systems arising in Markov chain reachability probability computation. It finds that CUDA-accelerated Jacobi outperforms sequential versions, especially on sparse matrices, while BiCGStab on GPU only benefits for large, dense matrices—supporting the conjecture that Jacobi is superior to Krylov methods in probabilistic model checking due to sparsity, not memory access patterns.
We consider the problem of computing reachability probabilities: given a Markov chain, an initial state of the Markov chain, and a set of goal states of the Markov chain, what is the probability of reaching any of the goal states from the initial state? This problem can be reduced to solving a linear equation Ax = b for x, where A is a matrix and b is a vector. We consider two iterative methods to solve the linear equation: the Jacobi method and the biconjugate gradient stabilized (BiCGStab) method. For both methods, a sequential and a parallel version have been implemented. The parallel versions have been implemented on the compute unified device architecture (CUDA) so that they can be run on a NVIDIA graphics processing unit (GPU). From our experiments we conclude that as the size of the matrix increases, the CUDA implementations outperform the sequential implementations. Furthermore, the BiCGStab method performs better than the Jacobi method for dense matrices, whereas the Jacobi method does better for sparse ones. Since the reachability probabilities problem plays a key role in probabilistic model checking, we also compared the implementations for matrices obtained from a probabilistic model checker. Our experiments support the conjecture by Bosnacki et al. that the Jacobi method is superior to Krylov subspace methods, a class to which the BiCGStab method belongs, for probabilistic model checking.
Motivation & Objective
- To evaluate the performance of sequential and GPU-accelerated iterative solvers for computing reachability probabilities in Markov chains.
- To determine whether GPU acceleration via CUDA improves performance for the Jacobi and BiCGStab methods on matrices derived from probabilistic model checking.
- To investigate whether the Jacobi method's superiority over Krylov subspace methods like BiCGStab in probabilistic model checking is due to sparsity or memory access characteristics.
- To compare results on real probabilistic model checking data (from JPF) with synthetic random matrices of similar size and density.
- To assess the impact of matrix size and density on the performance of GPU-accelerated solvers in this context.
Proposed method
- Implemented sequential and CUDA-parallel versions of the Jacobi and BiCGStab iterative methods in C using NVIDIA's CUDA framework.
- Generated random dense and sparse matrices with varying dimensions and non-zero entry counts to test general performance characteristics.
- Used a probabilistic extension of Java PathFinder (JPF) to generate real transition probability matrices from randomized sequential algorithms.
- Reduced the JPF-generated matrices by subtracting the identity matrix to form the linear system A·x = b for reachability probability computation.
- Measured execution times across multiple trials for each matrix type and solver variant, with standard deviations too small to be visible on graphs.
- Compared performance on JPF matrices, random matrices with matching sizes/densities, and synthetic matrices with random positive integer entries.
Experimental results
Research questions
- RQ1Does GPU acceleration via CUDA improve performance for the Jacobi and BiCGStab methods when solving reachability probability problems in Markov chains?
- RQ2How do the performance characteristics of the Jacobi and BiCGStab methods compare on sparse versus dense matrices in this context?
- RQ3Is the observed superiority of the Jacobi method over Krylov subspace methods like BiCGStab in probabilistic model checking due to matrix sparsity or memory access overhead?
- RQ4To what extent do matrix size and density determine the performance benefit of GPU acceleration in this setting?
- RQ5Are the performance trends observed on real probabilistic model checking data (from JPF) replicable on synthetic matrices with similar size and density?
Key findings
- The CUDA-optimized Jacobi method consistently outperforms its sequential counterpart, especially on sparse matrices, demonstrating a strong performance benefit from GPU parallelization.
- The BiCGStab method on GPU only shows performance advantages on large, dense matrices, while the sequential BiCGStab version is faster for smaller, sparser matrices.
- For matrices generated by the probabilistic model checker JPF, the Jacobi method outperforms BiCGStab, supporting the conjecture by Bosnacki et al. that Jacobi is more suitable than Krylov subspace methods in this domain.
- Performance trends on JPF-generated matrices are replicated on synthetic random matrices with matching sizes and densities, indicating that size and density are the primary determinants of solver performance, not unique structural properties of model-checking matrices.
- The superior performance of the Jacobi method on sparse matrices—not memory access overhead—explains its dominance in probabilistic model checking, contradicting the hypothesis that BiCGStab's higher memory requirements are the main reason for its poor performance.
- The CUDA BiCGStab implementation does not improve performance on typical probabilistic model checking data due to the sparsity of such matrices, which do not meet the size and density thresholds required for GPU benefits.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.