TL;DR
PageRank and Sparse Matrix-Vector (SpMV) operations are heavily bottlenecked by irregular, fine-grained random DRAM accesses. The authors propose the Partition-Centric Processing Methodology (PCPM), an approach that groups destination vertices into cacheable partitions to eliminate redundant update writes and convert random DRAM accesses into sequential streaming operations. On a 16-core system, PCPM achieves an average $2.7\times$ speedup and a $1.7\times$ reduction in DRAM communication over state-of-the-art binned Gather-Apply-Scatter implementations.
What Problem Does This Paper Address?
Graph analytics algorithms like PageRank spend the vast majority of their runtime waiting on memory. Because PageRank iteratively performs SpMV operations over large, sparse, and irregular adjacency matrices, traditional pull-based approaches generate fine-grained random reads across DRAM, resulting in high cache miss rates and poor memory bandwidth utilization.
Prior works attempted to mitigate this using Gather-Apply-Scatter (GAS) models with "binning" (staging updates into buckets). However, vertex-centric GAS has major inefficiencies: a source vertex must repeatedly write its updated value to every outgoing edge, flooding memory with redundant data. Furthermore, standard binning cannot exploit intelligent graph reorderings (node labelings that boost spatial locality), and switching between target bins causes latency-inducing random writes to DRAM.
Methods
PCPM reimagines graph computation as interactions between individual vertices and cache-sized vertex partitions rather than individual edges. Its key components include:
- Partition-Centric Update Propagation: The graph's vertices are divided into contiguous, equisized partitions sized to fit in cache (~256 KB). When a vertex connects to multiple destination nodes within the same target partition, it sends only a single update value to that partition's bin, drastically cutting redundant data.
- Decoupled Update and Destination Bins: Destination vertex IDs are written to DRAM only during the initial iteration and reused across iterations. PCPM tags the Most Significant Bit (MSB) of destination IDs to mark when an update applies to multiple successive neighbors.
- Partition-Node Graph (PNG) Layout: To prevent unpredictable bin switching during the scatter phase, the authors construct a compressed, per-partition bipartite graph $G'(P, V, E')$. Multi-edges to the same partition are compressed into a single edge, and the graph is transposed per partition. This ensures updates for each target bin are written contiguously in memory as sequential streams, while random source-node lookups hit cache.
- Branch Avoidance in Gather: Instead of using data-dependent
ifconditions to check whether the next node shares the same update, the gather routine directly adds the MSB bit to the update pointer (update_ptr += MSB(id)), eliminating hardware branch mispredictions.
Datasets
The authors evaluated their framework on 6 large synthetic and real-world graphs:
- gplus: Google+ social network (28.94M vertices, 462.99M edges).
- pld: Pay-Level-Domain web crawl (42.89M vertices, 623.06M edges).
- web: Webbase-2001 hyperlink crawl with high inherent locality (118.14M vertices, 992.84M edges).
- kron: Graph500 Kronecker synthetic scale-25 graph (33.5M vertices, 1047.93M edges).
- twitter: Follower network graph (61.58M vertices, 1468.36M edges).
- sd1: Subdomain hyperlink crawl (94.95M vertices, 1937.49M edges).
Graphs were evaluated using both original vertex ordering (Orig) and cache-aware vertex reordering via GOrder.
Key Insights and Ideas
- Partition Granularity Exploits Natural Clustering: Many vertices have multiple edges into the same neighborhood. By grouping destination nodes into partitions, edge updates can be compressed by a factor of $r = |E| / |E'|$ (up to $8.4\times$ on clustered web graphs).
- Synergy with Graph Reordering: Standard binned GAS transfers a constant volume of DRAM traffic regardless of node ordering. In contrast, PCPM's communication drops significantly when paired with graph ordering tools (like GOrder), as higher spatial locality translates directly into fewer bipartite edges.
- Transposition Yields Sequential DRAM Access: Transposing the bipartite layout within each cache-sized partition allows sequential streaming writes to DRAM bins without paying a penalty for random reads, because source vertex reads stay resident in L2/L3 cache.
Key Results
- Execution Speedup: PCPM achieved $2.1\times$ to $3.8\times$ speedups over the state-of-the-art binned GAS (BVGAS) baseline, and up to $4.1\times$ faster execution than conventional pull-direction PageRank (PDPR). Scatter-phase execution alone was accelerated by ~5$\times$.
- Reduced Communication: Main memory traffic dropped by $1.7\times$ on average compared to BVGAS and $2.2\times$ compared to PDPR.
- Bandwidth Utilization: By replacing random accesses with streaming operations, PCPM sustained an average DRAM bandwidth of 42.4 GB/s (reaching ~77% of peak system read bandwidth on
sd1), compared to 26 GB/s for BVGAS and 33.1 GB/s for PDPR. - Energy Efficiency: Lower DRAM communication and reduced random access penalties directly translated into lower energy consumption ($\mu\text{J}/\text{edge}$).
Limitations and Future Work
- Pre-Processing Overhead: Constructing the PNG layout and calculating bin offsets introduces initial overhead (0.25s–0.95s), which requires multiple iterations to amortize.
- ID Capacity Reduction: Utilizing the MSB for update demarcation caps vertex IDs at 2 billion (using 32-bit integers) instead of 4 billion.
- Diminished Gains on Inherent High Locality: On graphs that already exhibit extreme natural locality (such as
web), traditional pull PageRank already achieves low cache misses, yielding only marginal speedups for PCPM. - Future Directions: The authors suggest exploring balanced edge-partitioning algorithms, extending the technique to disk-based or High-Bandwidth Memory (HBM) systems, and evaluating PCPM on heterogeneous accelerator architectures.
Summary updated