[Paper Review] Parallel Model Counting with CUDA: Algorithm Engineering for Efficient Hardware Utilization
This paper presents TensorOrder2, a parallel weighted model counter that leverages multi-core CPUs and GPUs via a portfolio of tree-decomposition solvers and TensorFlow-based tensor contractions. By combining parallel planning with GPU-accelerated execution enhanced by index slicing, TensorOrder2 outperforms existing counters on 11% of benchmarks after preprocessing and achieves the second-lowest PAR-2 score, proving effective as part of a portfolio solver strategy.
A promising new algebraic approach to weighted model counting makes use of tensor networks, following a reduction from weighted model counting to tensor-network contraction. Prior work has focused on analyzing the single-core performance of this approach, and demonstrated that it is an effective addition to the current portfolio of weighted-model-counting algorithms. In this work, we explore the impact of multi-core and GPU use on tensor-network contraction for weighted model counting. To leverage multiple cores, we implement a parallel portfolio of tree-decomposition solvers to find an order to contract tensors. To leverage a GPU, we use TensorFlow to perform the contractions. We compare the resulting weighted model counter on 1914 standard weighted model counting benchmarks and show that it significantly improves the virtual best solver.
Motivation & Objective
- To improve the performance of tensor network-based weighted model counting by leveraging modern parallel and GPU hardware.
- To address the bottleneck in tensor network contraction by enabling efficient GPU execution through TensorFlow and index slicing.
- To enhance planning efficiency by introducing a parallel portfolio of tree-decomposition solvers, improving over single-core approaches.
- To evaluate the impact of multi-core and GPU acceleration on the full weighted model counting pipeline, including preprocessing and execution stages.
- To demonstrate that the resulting system, TensorOrder2, is a competitive addition to the portfolio of state-of-the-art weighted model counters.
Proposed method
- A parallel portfolio of single-core tree-decomposition solvers (e.g., Tamaki, FlowCutter, htd, Hicks) is used to accelerate the planning stage of tensor network contraction.
- Tensor contractions are offloaded to a GPU using TensorFlow, enabling high-throughput computation on large-scale tensor networks.
- Index slicing is implemented to reduce GPU memory usage at the cost of increased computation time, enabling handling of larger instances.
- The system integrates a performance factor optimization strategy to tune execution across different hardware configurations (CPU1, CPU8, GPU).
- A 3-stage algorithm is employed: (1) reduction of weighted model counting to tensor network contraction, (2) planning of contraction order via solvers, and (3) GPU-accelerated execution using TensorFlow.
- The framework supports integration with the pmc-eq preprocessor, which significantly improves performance on hard benchmarks.
Experimental results
Research questions
- RQ1Can a parallel portfolio of tree-decomposition solvers significantly improve planning performance compared to single-core solvers?
- RQ2Does GPU acceleration with TensorFlow and index slicing lead to measurable speedups in tensor network contraction for weighted model counting?
- RQ3How does the performance of the proposed TensorOrder2 compare to state-of-the-art counters, both with and without preprocessing?
- RQ4Can branch-decomposition solvers be effectively integrated into the portfolio, and do they improve overall performance?
- RQ5What is the optimal hardware configuration and performance factor for maximizing solver efficiency across diverse benchmarks?
Key findings
- TensorOrder2 with the P4 portfolio and GPU configuration solved 1,549 out of 1,914 benchmarks after preprocessing, ranking second in total solved and second in PAR-2 score.
- The P4+GPU configuration achieved the fastest performance on 200 benchmarks with preprocessing and on 158 benchmarks without preprocessing, outperforming all other counters on these sets.
- Index slicing reduced memory usage significantly, enabling GPU execution on larger instances, though it introduced a time cost that was offset by GPU speedup on hard benchmarks.
- The parallel portfolio of tree-decomposition solvers (P4) reduced planning time compared to single-core solvers, with the P4+CPU8 configuration showing the best performance on the planning stage.
- While branch-decomposition solvers were theoretically integrable into the portfolio, their practical impact was minimal, as they did not significantly improve the overall solution quality.
- The GPU configuration achieved the highest speedup in the execution stage, especially on hard benchmarks, while CPU parallelism provided only marginal gains in the planning phase.
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.