Skip to main content
QUICK REVIEW

[论文解读] A GraphBLAS Approach for Subgraph Counting

Langshi Chen, Jiayu Li|arXiv (Cornell University)|Mar 11, 2019
Graph Theory and AlgorithmsComputer Science参考文献 39被引用 3
一句话总结

该论文提出 Pgbsc,一种基于共享内存的多线程算法,通过借鉴 GraphBLAS 的向量化与剪枝技术,加速非诱导树子图计数。通过优化彩色编码算法并完全向量化稀疏线性代数运算,Pgbsc 在大规模网络上相较于最先进的方法 FASCIA 实现最高达 660 倍的加速,对大小为 17 及以上的子图模板展现出数量级的性能提升。

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.

研究动机与目标

  • 解决在拥有数十亿个顶点的海量网络中计数大型树子图的计算挑战。
  • 克服现有并行子图计数算法在内存与性能方面的瓶颈。
  • 通过将算法优化与向量化稀疏线性代数内核协同设计,提升硬件利用率。
  • 在共享内存系统上实现对大小超过 12 的子图模板的高性能与强可扩展性。
  • 为生物信息学、社交网络和网络空间安全等应用提供可扩展且高带宽效率的子图计数能力。

提出的方法

  • 采用分层软硬件协同设计方法,减少并行彩色编码算法中的冗余计算。
  • 使用受 GraphBLAS 启发的线性代数内核重构计算,实现完全向量化并最大化内存带宽利用率。
  • 优化数据结构与执行顺序,以提升现代 x86 架构上的缓存局部性与寄存器使用效率。
  • 引入剪枝技术,消除彩色编码过程中冗余的图遍历,将算法复杂度降低最多达 86 倍。
  • 实现 SpMM(稀疏矩阵乘法)内核,以高效处理子图枚举中的不规则内存访问模式。
  • 使用带控制舍入的浮点数运算,在所有测试中保持可忽略的相对误差(<10^-6),防止溢出。

实验结果

研究问题

  • RQ1算法剪枝与受 GraphBLAS 启发的向量化能否协同提升共享内存系统上子图计数的性能?
  • RQ2硬件感知的数据结构与执行顺序重组在多大程度上能提升内存带宽利用率与缓存效率?
  • RQ3所提方法在子图模板大小与网络偏度增加时的可扩展性如何?
  • RQ4在大规模网络上,该方法与最先进的 FASCIA 实现之间的性能差距有多大?
  • RQ5该方法能否推广至更大规模的子图及其他图分析工作负载,而不仅限于树子图计数?

主要发现

  • 在 RMAT-1M 数据集上,对于 17 个顶点的子图模板,Pgbsc 相较于 FASCIA 实现最高达 660 倍的加速,且在 Graph500 scale=20 的数据集上平均提升 50 倍。
  • 对于 12 个顶点的模板,Pgbsc 在 Miami 数据集上仍相较 FASCIA 实现 9 倍的性能提升。
  • 该算法在双路 Intel Xeon Platinum 8160 系统上实现强可扩展性,最多支持 48 个线程,全线程数下达到 7.5 倍加速。
  • 线程可扩展性受限于内存带宽(每插槽 12 条通道),这解释了 Pgbsc 在超过 12 个线程后出现的性能下降,而 FASCIA 则无此现象。
  • Pgbsc 与 FASCIA 的相对误差在所有测试中均低于 10^-6,表明浮点数运算导致的数值差异可忽略。
  • Roofline 模型分析表明,Pgbsc 实现了接近硬件极限的效率,充分利用了内存带宽与向量单元。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。