Skip to main content
QUICK REVIEW

[Paper Review] Semi-External Memory Sparse Matrix Multiplication on Billion-node Graphs in a Multicore Architecture.

Da Zheng, Disa Mhembere|arXiv (Cornell University)|Feb 9, 2016
Graph Theory and AlgorithmsComputer Science32 references4 citations
TL;DR

This paper proposes a semi-external memory (SEM) sparse matrix multiplication (SpMM) framework that stores sparse matrices on SSDs while keeping dense matrices in main memory, enabling efficient large-scale graph analytics. By combining I/O optimizations with in-memory algorithmic techniques, it achieves up to 100% of in-memory performance on billion-node graphs when dense matrices have more than four columns, outperforming Trilinos and Intel MKL.

ABSTRACT

Owing to random memory access patterns, sparse matrix multiplication is traditionally performed in memory and scales to large matrices using the distributed memory of multiple nodes. In contrast, we scale sparse matrix multiplication by utilizing commodity SSDs. We implement sparse matrix dense matrix multiplication (SpMM) in a semi-external memory (SEM) fashion, i.e., we keep the sparse matrix on SSDs and dense matrices in memory. Our SEM SpMM can incorporate many in-memory optimizations for large power- law graphs with near-random vertex connection. Coupled with many I/O optimizations, our SEM SpMM achieves performance comparable to our in-memory implementation on a large parallel machine and outperforms the implementations in Trilinos and Intel MKL. Our experiments show that the SEM SpMM achieves almost 100% performance of the in-memory implementation on graphs when the dense matrix has more than four columns; it achieves at least 65% performance of the in-memory implementation for all of our graphs when the dense matrix has only one column. We apply our SpMM to three important data analysis applications and show that our SSD-based implementations can significantly outperform state of the art of these applications and scale to billion-node graphs.

Motivation & Objective

  • Address the scalability limitations of in-memory sparse matrix multiplication for billion-node graphs due to memory capacity constraints.
  • Overcome the performance bottleneck of traditional I/O-bound SpMM by leveraging commodity SSDs as an extension of main memory.
  • Design a hybrid memory model that keeps sparse matrices on SSDs and dense matrices in main memory to reduce memory pressure.
  • Achieve performance comparable to in-memory SpMM while scaling to graphs too large to fit in main memory.
  • Enable efficient execution of large-scale graph workloads such as PageRank, SVD, and spectral clustering on billion-node graphs.

Proposed method

  • Implement SpMM in a semi-external memory (SEM) model, storing the sparse matrix on SSDs and the dense matrix in main memory.
  • Apply in-memory optimizations such as kernel fusion and cache-aware tiling to the dense matrix computation phase.
  • Integrate I/O-optimized data layouts and asynchronous I/O patterns to reduce latency in reading sparse matrix data from SSDs.
  • Use a hybrid execution model that overlaps computation with I/O operations to hide data transfer delays.
  • Leverage the power-law structure of real-world graphs to minimize random access overhead during SpMM.
  • Optimize data access patterns using compressed sparse row (CSR) format with prefetching and memory alignment strategies.

Experimental results

Research questions

  • RQ1Can semi-external memory SpMM achieve near-in-memory performance on billion-node graphs using commodity SSDs?
  • RQ2How does the performance of SEM SpMM scale with varying dense matrix column counts?
  • RQ3To what extent can I/O and in-memory optimizations reduce the performance gap between in-memory and semi-external SpMM?
  • RQ4How does the proposed SEM SpMM compare to state-of-the-art libraries like Trilinos and Intel MKL in real graph workloads?
  • RQ5Can SEM SpMM efficiently accelerate large-scale graph analytics applications such as PageRank and SVD on billion-node graphs?

Key findings

  • SEM SpMM achieves up to 100% of in-memory performance when the dense matrix has more than four columns on large power-law graphs.
  • For dense matrices with only one column, SEM SpMM maintains at least 65% of in-memory performance across all tested graphs.
  • The SEM SpMM implementation outperforms both Trilinos and Intel MKL in terms of execution time on large-scale graph workloads.
  • The framework successfully scales to billion-node graphs, enabling efficient execution of data analysis pipelines.
  • The combination of I/O optimizations and in-memory algorithmic techniques effectively mitigates the performance penalty of offloading sparse matrices to SSDs.
  • The approach enables practical deployment of memory-intensive graph algorithms on commodity hardware without requiring large main memory.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.