TL;DR
This paper tackles the computationally intensive problem of truss decomposition on massive graphs, which is crucial for various graph analysis tasks. The authors introduce a novel framework that significantly accelerates this process by optimizing memory access, dynamically adapting computation, and effectively parallelizing across CPUs and GPUs, achieving up to an order of magnitude speedup.
What Problem Does This Paper Address?
Truss decomposition aims to partition a graph into a hierarchy of subgraphs called "trusses," where each edge in a k-truss is part of at least k-2 triangles within that subgraph. This hierarchical structure reveals community patterns and is valuable in areas like social network analysis and recommendation systems. However, performing truss decomposition on billion-edge graphs is extremely time-consuming, often taking hours on commodity hardware. Existing parallel algorithms, while improving performance, often overlook data characteristics and can be inefficient due to excessive triangle counting and random memory accesses. This paper addresses the need for a much faster and more efficient truss decomposition method for large-scale graphs, especially on heterogeneous computing architectures.
Methods
The authors propose a multi-pronged approach to accelerate truss decomposition:
- Optimized Triangle Enumeration and Support Update: They introduce techniques to make these core operations more efficient. This includes:
- Word-Packing for Support Initialization: An enhancement to bitmap-based triangle counting that packs non-zero bits into 64-bit words, enabling faster word-wise lookups.
- Dynamic Selection of Peeling vs. Counting: The algorithm intelligently decides whether to recompute support values from scratch or decrement them based on the current state of the graph, optimizing for workload.
- Pivot-Skip Merge (PSM) for Triangle Enumeration: A novel algorithm designed to handle data skew (uneven vertex degrees) efficiently by using a galloping search and binary search for faster neighbor set intersection.
- Graph Compaction: Periodically reducing the size of adjacency lists by removing processed edges to minimize memory access and redundant checks.
- Enumeration Skipping (ES): Identifying and skipping triangle enumeration in the first and last iterations of peeling phases, as no new triangles can be formed.
- Efficient Edge Filtering: An indexing strategy using queues (Qc, Qn, Q1) to quickly identify edges that need processing, avoiding scans of the entire edge set.
- CPU-GPU Co-Processing: A strategy to leverage both CPU and GPU capabilities. The CPU handles initial processing and data compaction, then offloads the heavy computation to the GPU. This is crucial for handling graphs that exceed GPU memory.
- Parallelization: The algorithms are designed to be parallelized on multicore CPUs using OpenMP and on GPUs using CUDA.
Datasets
The paper evaluates their methods on:
- Real-world graphs: Orkut (OR), web-uk (WU), web-eu (WE), webbase (WB), web-it (WI), and Twitter (TW).
- Synthetic RMAT graphs: Generated to vary in size from 64 million to 8 billion edges.
No new benchmarks were introduced; instead, they used standard graph datasets to compare against existing state-of-the-art algorithms.
Key Insights and Ideas
- Data Skew is a Major Bottleneck: The paper highlights that uneven vertex degrees (data skew) significantly impacts the performance of standard graph algorithms. Their Pivot-Skip Merge technique directly addresses this by adapting to degree differences.
- Dynamic Computation is Key: Instead of a one-size-fits-all approach, the algorithm's ability to dynamically choose between recomputing or decrementing support values, and between triangle counting and peeling, is crucial for efficiency.
- CPU-GPU Synergy is Essential for Large Graphs: For graphs exceeding GPU memory, a hybrid approach where the CPU pre-processes and compacts data before offloading to the GPU is significantly more effective than trying to force everything onto the GPU.
- Memory Access Patterns Matter: Techniques like graph compaction and word-packing are not just about reducing computation but also about improving memory access locality, which is a major performance driver on modern hardware.
Key Results
- Significant Speedups: The proposed methods achieve speedups of up to an order of magnitude (68.7x) compared to state-of-the-art algorithms like PKT and MSP.
- Fastest on Large Graphs: Their optimized heterogeneous processor implementation (OPT-HPU) completes the computation on a 680 million-edge Twitter graph in just 88 seconds.
- Effective Individual Techniques:
- Parallel pre-processing (PP+P) speeds up by 6.5x.
- Word-packing (WP) for support initialization improves SI by 18.9x on dense graphs.
- Offloading the SI stage to the GPU provides an 8.4x speedup.
- The CPU-GPU co-processing strategy for the IEP stage is up to 3.8x faster on the GPU than on the CPU.
- Scalability: The algorithms demonstrate good scalability with an increasing number of CPU threads and graph sizes.
Limitations and Future Work
- Parameter Tuning: The performance of some techniques (e.g., word-packing threshold
wpt, graph compaction thresholdct, edge-peeling throughputept, and range index sizers) is sensitive to parameter settings, requiring careful tuning for optimal performance. - Memory Limits for Extremely Large Graphs: For graphs with an extremely large number of edges (e.g., > 2^33), the memory consumption for intermediate k-class results and mapping can still be a challenge, leading to out-of-memory issues.
- Future Work: The authors suggest that their triangle counting (TC) optimization in the support update can be extended to other TC methods. They also note that their approach can be adapted for other graph-centric algorithms that involve similar computational patterns.
Summary updated