Reproduce “CSR5: An Efficient Storage Format for Cross-Platform Sparse Matrix-Vector Multiplication” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Weifeng Liu, Brian Vinter

Liu and Vinter introduce CSR5, a novel sparse matrix storage format and algorithm for Sparse Matrix-Vector Multiplication (SpMV) that achieves state-of-the-art performance across diverse multi-core and many-core processors. The format demonstrates robust efficiency for both regular and highly irregular sparse matrices, significantly outperforming previous methods for irregular structures with up to 943.3% improvement, while maintaining low conversion overhead.

Key insights

  • Extending the CSR format with specific auxiliary data and a tile-transposed layout within 2D blocks significantly improves SIMD utilization and load balancing for SpMV, making it robust against varying sparsity patterns.
  • Automating the selection of key tuning parameters (tile width and height) based on hardware capabilities and general matrix characteristics, rather than fine-grained structural analysis, effectively minimizes format conversion overhead.
  • Re-engineering the segmented sum operation as a sequence of optimized prefix-sum scans and arithmetic operations enables high-throughput SpMV on modern parallel architectures by reducing global synchronizations and memory access inefficiencies.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.