[Paper Review] GraphMat: High performance graph analytics made productive
GraphMat is a high-performance graph analytics framework that combines the productivity of vertex programming with the efficiency of optimized sparse matrix operations. By mapping vertex programs to generalized sparse matrix-vector multiplication (SPMV), GraphMat achieves 1.2–7× speedup over frameworks like GraphLab, CombBLAS, and Galois, and performs within 1.2× of hand-optimized code while scaling efficiently across 24 cores with 13–15× speedup.
Given the growing importance of large-scale graph analytics, there is a need to improve the performance of graph analysis frameworks without compromising on productivity. GraphMat is our solution to bridge this gap between a user-friendly graph analytics framework and native, hand-optimized code. GraphMat functions by taking vertex programs and mapping them to high performance sparse matrix operations in the backend. We get the productivity benefits of a vertex programming framework without sacrificing performance. GraphMat is in C++, and we have been able to write a diverse set of graph algorithms in this framework with the same effort compared to other vertex programming frameworks. GraphMat performs 1.2-7X faster than high performance frameworks such as GraphLab, CombBLAS and Galois. It achieves better multicore scalability (13-15X on 24 cores) than other frameworks and is 1.2X off native, hand-optimized code on a variety of different graph algorithms. Since GraphMat performance depends mainly on a few scalable and well-understood sparse matrix operations, GraphMatcan naturally benefit from the trend of increasing parallelism on future hardware.
Motivation & Objective
- To address the performance-productivity gap in graph analytics frameworks, where high-level abstractions often sacrifice execution efficiency.
- To enable developers to write graph algorithms productively using a familiar vertex programming model without manual low-level optimization.
- To achieve performance close to hand-optimized code by leveraging well-understood, highly optimized sparse matrix operations as a backend.
- To improve multicore scalability and enable efficient porting to diverse hardware platforms through a standardized matrix-based execution model.
- To provide a scalable, high-performance foundation that can be adopted by array processing systems to support graph analytics via vertex programming frontends.
Proposed method
- GraphMat maps user-written vertex programs to generalized sparse matrix-vector multiplication (SPMV), abstracting low-level graph traversal logic into a well-studied HPC primitive.
- The framework uses a C++ implementation with a focus on optimizing the SPMV kernel, including bitvector-based sparse vector representation for improved memory access patterns.
- Compiler-level optimizations such as -ipo (inter-procedural optimization) are applied to enhance scalar performance before parallelization.
- Parallel scalability is achieved through thread-level parallelism with load balancing and data partitioning strategies that minimize load imbalance across cores.
- The system supports runtime tunables such as thread count and matrix partitioning to balance performance and resource utilization.
- Backend optimizations are transparent to users, who interact only through a high-level vertex programming interface, preserving productivity.
Experimental results
Research questions
- RQ1Can a graph analytics framework maintain high productivity through vertex programming while achieving performance close to hand-optimized code?
- RQ2To what extent can sparse matrix operations, particularly SPMV, serve as a performant and scalable backend for diverse graph algorithms?
- RQ3How does GraphMat's multicore scalability compare to existing frameworks like GraphLab, Galois, and CombBLAS across different workloads and core counts?
- RQ4What is the performance impact of specific low-level optimizations—such as bitvectors, compiler optimizations, and load balancing—on SPMV execution?
- RQ5Can a matrix-based backend enable easier portability and extensibility to heterogeneous and distributed systems compared to task-based or vertex-centric models?
Key findings
- GraphMat achieves 1.2–7× speedup over high-performance frameworks such as GraphLab, CombBLAS, and Galois on single-node workloads across diverse graph algorithms.
- The framework scales 13–15× on 24 cores, significantly outperforming GraphLab, CombBLAS, and Galois, which scale only 2–12× over their single-threaded baselines.
- GraphMat runs within 1.2× of native, hand-optimized code on average, demonstrating near-peak performance for a high-level framework.
- Optimizations such as bitvectors and -ipo compiler flags yield up to 1.9× speedup on Pagerank and 1.5× on SSSP, with further gains from load balancing and parallelization.
- The addition of bitvectors improves parallel scalability from 3.9× to 11.7× on Pagerank and from 3.4× to 4.7× on SSSP, showing strong multiplicative gains.
- The framework achieves 27.3× and 19.9× speedup from naive scalar code on Pagerank and SSSP respectively, demonstrating the cumulative impact of backend optimizations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.