Skip to main content
QUICK REVIEW

[Paper Review] A GraphBLAS Approach for Subgraph Counting

Langshi Chen, Jiayu Li|arXiv (Cornell University)|Mar 11, 2019
Graph Theory and AlgorithmsComputer Science39 references3 citations
TL;DR

This paper proposes Pgbsc, a shared-memory multi-threaded algorithm that leverages GraphBLAS-inspired vectorization and pruning to accelerate non-induced tree subgraph counting. By optimizing the color-coding algorithm and fully vectorizing sparse linear algebra operations, Pgbsc achieves up to 660x speedup over state-of-the-art methods like FASCIA on large-scale networks, demonstrating orders-of-magnitude performance improvements on subgraph templates of size 17 and above.

ABSTRACT

Subgraph counting aims to count the occurrences of a subgraph template T in a given network G. The basic problem of computing structural properties such as counting triangles and other subgraphs has found applications in diverse domains. Recent biological, social, cybersecurity and sensor network applications have motivated solving such problems on massive networks with billions of vertices. The larger subgraph problem is known to be memory bounded and computationally challenging to scale; the complexity grows both as a function of T and G. In this paper, we study the non-induced tree subgraph counting problem, propose a novel layered softwarehardware co-design approach, and implement a shared-memory multi-threaded algorithm: 1) reducing the complexity of the parallel color-coding algorithm by identifying and pruning redundant graph traversal; 2) achieving a fully-vectorized implementation upon linear algebra kernels inspired by GraphBLAS, which significantly improves cache usage and maximizes memory bandwidth utilization. Experiments show that our implementation improves the overall performance over the state-of-the-art work by orders of magnitude and up to 660x for subgraph templates with size over 12 on a dual-socket Intel(R) Xeon(R) Platinum 8160 server. We believe our approach using GraphBLAS with optimized sparse linear algebra can be applied to other massive subgraph counting problems and emerging high-memory bandwidth hardware architectures.

Motivation & Objective

  • Address the computational challenge of counting large tree subgraphs in massive networks with billions of vertices.
  • Overcome the memory and performance bottlenecks of existing parallel subgraph counting algorithms.
  • Improve hardware utilization by co-designing algorithmic optimizations with vectorized sparse linear algebra kernels.
  • Achieve high performance and strong scaling on shared-memory systems for subgraph templates beyond size 12.
  • Enable scalable, high-bandwidth-efficient subgraph counting for applications in bioinformatics, social networks, and cybersecurity.

Proposed method

  • Apply a layered software-hardware co-design approach to reduce redundant computation in the parallel color-coding algorithm.
  • Reframe the computation using GraphBLAS-inspired linear algebra kernels to enable full vectorization and maximize memory bandwidth utilization.
  • Optimize data structures and execution order to improve cache locality and register usage on modern x86 architectures.
  • Introduce pruning techniques to eliminate redundant graph traversals in the color-coding process, reducing algorithmic complexity by up to a factor of 86.
  • Implement a SpMM (Sparse Matrix-Multiply) kernel to efficiently handle irregular memory access patterns in subgraph enumeration.
  • Use floating-point arithmetic with controlled rounding to prevent overflow while maintaining negligible relative error (<10^-6) across all tests.

Experimental results

Research questions

  • RQ1Can algorithmic pruning and GraphBLAS-inspired vectorization jointly improve the performance of subgraph counting on shared-memory systems?
  • RQ2To what extent can hardware-aware data structure and execution order reorganization enhance memory bandwidth utilization and cache efficiency?
  • RQ3How does the proposed method scale with increasing subgraph template size and network skewness?
  • RQ4What is the performance gap between the proposed method and the state-of-the-art FASCIA implementation on large-scale networks?
  • RQ5Can the approach be generalized to larger subgraphs and other graph analytics workloads beyond tree counting?

Key findings

  • Pgbsc achieves up to 660x speedup over FASCIA on the RMAT-1M dataset for a 17-vertex subgraph template, with an average improvement of 50x on Graph500 scale=20.
  • For a 12-vertex template, Pgbsc still achieves a 9x performance improvement over FASCIA on the Miami dataset.
  • The algorithm demonstrates strong scaling up to 48 threads on a dual-socket Intel Xeon Platinum 8160 system, achieving 7.5x speedup at full thread count.
  • Thread scalability is bounded by memory bandwidth (12 channels per socket), which explains the slowdown in Pgbsc beyond 12 threads, unlike FASCIA.
  • Relative error between Pgbsc and FASCIA remains below 10^-6 across all tests, indicating negligible numerical differences due to floating-point arithmetic.
  • Roofline model analysis confirms that Pgbsc achieves near-full hardware efficiency, maximizing utilization of memory bandwidth and vector units.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.