Hybrid CPU-GPU Framework for Network Motifs

Ryan A. Rossi, Rong ZhouarXiv 2016

TL;DR

This paper introduces a novel hybrid CPU-GPU framework for efficiently computing "graphlets" (small induced subgraphs) in large networks. By intelligently distributing the workload between CPUs and GPUs, their method achieves significant speedups (up to 300x) compared to existing state-of-the-art techniques, making large-scale network analysis more feasible and cost-effective.

What Problem Does This Paper Address?

Analyzing the structure of large networks is crucial for understanding complex systems in fields like bioinformatics, cheminformatics, and social sciences. A key method for this is "graphlet counting," which involves identifying and counting the occurrences of small, induced subgraphs (k-vertex induced subgraphs, or graphlets) within a network. However, existing graphlet counting algorithms are notoriously slow, often requiring days to process even moderately sized graphs. They also tend to be memory-intensive and difficult to parallelize efficiently. This bottleneck severely limits their applicability to the massive datasets generated today. The paper aims to overcome these limitations by developing a parallel algorithm that can handle large networks much faster and more efficiently.

Methods

The core innovation of this paper is a hybrid parallelization strategy that leverages both multi-core CPUs and multiple GPUs simultaneously. The authors observe that the computational cost of counting graphlets for each edge in a network follows a power-law distribution: a few edges are computationally expensive, while most are cheap. This heterogeneity poses a challenge for GPUs, which excel at uniform workloads.

Their approach addresses this by:

  • Edge-centric computation: Instead of focusing on vertices, the algorithm processes edges and their local neighborhoods.
  • Dynamic Workload Distribution: Edges are dynamically assigned to either CPUs or GPUs based on their estimated computational "difficulty." More complex, irregular neighborhoods are sent to CPUs, while simpler, more regular ones go to GPUs.
  • Preprocessing: Vertices are sorted by degree, and neighbors are ordered to optimize computations, particularly for specific graphlet types like 4-cycles.
  • Work Stealing: A shared job queue and work-stealing mechanism ensure that all CPU and GPU workers remain fully utilized, minimizing idle time.
  • Algorithm Variations: They propose single-GPU, multi-GPU, and the main hybrid CPU-GPU frameworks, allowing flexibility based on available hardware.

Datasets

The paper evaluates their framework on a variety of real-world networks from different domains, including:

  • Social networks (e.g., socfb-Texas84, socfb-UF, socfb-MIT, socfb-Stanford3, socfb-Wisc87, socfb-Indiana, soc-flickr, soc-google-plus, soc-youtube, soc-livejournal, soc-twitter, soc-orkut)
  • Other domains like ia-enron-large, ia-wiki-Talk, ca-HepPh, brain-mouse-ret1, web-baidu-baike, web-arabic05, tech-internet-as, tech-as-skitter, C500-9, p-hat500-1, p-hat1000-1.

They also use random graphs (Barabási-Albert, Erdős-Rényi, and geometric algorithms) for comparison with prior work.

Key Insights and Ideas

  • Heterogeneity is Key: The power-law distribution of edge computation costs is not just a challenge but an opportunity. By intelligently assigning difficult tasks to flexible CPUs and easier tasks to massively parallel GPUs, significant performance gains are achieved.
  • Edge-Centric vs. Vertex-Centric: Processing edges and their neighborhoods is more amenable to parallelization and load balancing than vertex-centric approaches, especially for graphlet counting.
  • Dynamic Load Balancing is Crucial: Simply assigning work statically would lead to underutilization of either CPUs or GPUs. The dynamic work-stealing mechanism is vital for keeping all processing units busy.
  • Preprocessing Matters: Sorting vertices by degree and ordering neighbors significantly optimizes the computation of specific graphlets, reducing overall runtime.
  • Hybrid is Better: Combining the strengths of CPUs (flexibility, handling irregular tasks) and GPUs (raw parallel power for regular tasks) yields superior performance compared to using either alone.

Key Results

  • Massive Speedups: The hybrid CPU-GPU framework achieves speedups of up to 300 times compared to the state-of-the-art CPU-based method (PGD).
  • Orders of Magnitude Faster: Even single-GPU and multi-GPU approaches are orders of magnitude faster than existing methods.
  • Cost-Effectiveness: The GPU-based methods offer superior performance per capita and per watt, making them more economical for large-scale analysis.
  • Comparison to Prior Work: The proposed method is significantly faster (up to 181x) than a prior single-GPU method (Orca-GPU) even when the prior method was applied to simpler, denser random graphs.
  • Dynamic Load Balancing Validation: Figure 4 visually demonstrates that edges assigned to CPUs indeed take longer to process than those assigned to GPUs, validating the difficulty-based assignment strategy.

Limitations and Future Work

  • Edge Ordering Impact: While the hybrid approach is robust, the paper notes that edge ordering can significantly impact performance, and certain orderings might even lead to slower results than GPU-only approaches. Future work could explore more sophisticated ordering heuristics.
  • Unbiased Graphlet Estimation: The authors mention that their proposed methods are well-suited for unbiased graphlet estimation and plan to investigate this problem in future work.
  • Dynamic Algorithm Selection: The paper hints at dynamically selecting graphlet algorithms based on heuristics to trade off space for time, suggesting further optimization opportunities.

Summary updated

Abstract

Massively parallel architectures such as the GPU are becoming increasingly important due to the recent proliferation of data. In this paper, we propose a key class of hybrid parallel graphlet algorithms that leverages multiple CPUs and GPUs simultaneously for computing k-vertex induced subgraph statistics (called graphlets). In addition to the hybrid multi-core CPU-GPU framework, we also investigate single GPU methods (using multiple cores) and multi-GPU methods that leverage all available GPUs simultaneously for computing induced subgraph statistics. Both methods leverage GPU devices only, whereas the hybrid multi-core CPU-GPU framework leverages all available multi-core CPUs and multiple GPUs for computing graphlets in large networks. Compared to recent approaches, our methods are orders of magnitude faster, while also more cost effective enjoying superior performance per capita and per watt. In particular, the methods are up to 300 times faster than the recent state-of-the-art method. To the best of our knowledge, this is the first work to leverage multiple CPUs and GPUs simultaneously for computing induced subgraph statistics.
BibTeX
@misc{rossi2016hybrid,
  author = {Ryan A. Rossi and Rong Zhou},
  title = {{Hybrid CPU-GPU Framework for Network Motifs}},
  year = {2016},
  eprint = {1608.05138},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.05138},
}
Figure