[Paper Review] Optimizing Sparse Matrix-Vector Multiplication on Emerging Many-Core Architectures
This paper proposes a machine learning-based framework to automatically select the optimal sparse matrix-vector multiplication (SpMV) representation for emerging many-core architectures—Intel Knights Landing (KNL) and ARM-based FT-2000Plus (FTP). By training a predictive model offline on 9,500 profiling runs across 956 sparse matrices and five storage formats, the system achieves 95% and 91% of the best possible performance on KNL and FTP, respectively, with zero runtime profiling overhead.
Sparse matrix vector multiplication (SpMV) is one of the most common operations in scientific and high-performance applications, and is often responsible for the application performance bottleneck. While the sparse matrix representation has a significant impact on the resulting application performance, choosing the right representation typically relies on expert knowledge and trial and error. This paper provides the first comprehensive study on the impact of sparse matrix representations on two emerging many-core architectures: the Intel's Knights Landing (KNL) XeonPhi and the ARM-based FT-2000Plus (FTP). Our large-scale experiments involved over 9,500 distinct profiling runs performed on 956 sparse datasets and five mainstream SpMV representations. We show that the best sparse matrix representation depends on the underlying architecture and the program input. To help developers to choose the optimal matrix representation, we employ machine learning to develop a predictive model. Our model is first trained offline using a set of training examples. The learned model can be used to predict the best matrix representation for any unseen input for a given architecture. We show that our model delivers on average 95% and 91% of the best available performance on KNL and FTP respectively, and it achieves this with no runtime profiling overhead.
Motivation & Objective
- To investigate the impact of sparse matrix representations on two emerging many-core architectures: Intel Knights Landing (KNL) and FT-2000Plus (FTP).
- To identify that the optimal SpMV representation depends on both the underlying architecture and the sparsity pattern of the input matrix.
- To develop a predictive model that selects the best matrix representation for any unseen input on a given architecture without runtime profiling.
- To enable automatic, high-performance SpMV workloads across diverse many-core systems using a lightweight, deployable solution.
- To provide a framework for performance portability and optimization in high-performance computing (HPC) workloads involving sparse matrices.
Proposed method
- Conducted large-scale performance evaluation with over 9,500 profiling runs on 956 representative sparse datasets across KNL and FTP architectures.
- Evaluated five mainstream sparse matrix representations: CSR, CSR5, ELL, SELL, and HYB, measuring their performance under varying sparsity patterns and architectures.
- Extracted a set of quantifiable matrix features (e.g., sparsity pattern, non-zero distribution, matrix dimensions) as input to the machine learning model.
- Trained a machine learning model offline using these features and corresponding optimal representation choices to predict the best format for new inputs.
- Deployed the trained model at runtime to select the best representation without requiring any additional profiling or computation overhead.
- Used a predictive modeling approach that generalizes across architectures and matrices, enabling immediate deployment without source code modification.
Experimental results
Research questions
- RQ1How do different sparse matrix representations affect SpMV performance on emerging many-core architectures like KNL and FTP?
- RQ2What are the key architectural and matrix-specific factors that influence the performance of SpMV representations on KNL and FTP?
- RQ3Can a machine learning model trained on a representative dataset of matrices and architectures accurately predict the optimal SpMV representation for unseen inputs?
- RQ4To what extent can such a predictive model achieve near-optimal performance without runtime profiling on KNL and FTP?
- RQ5How does the performance of the best representation vary across different sparsity patterns and matrix sizes on these architectures?
Key findings
- The optimal sparse matrix representation for SpMV varies significantly depending on the underlying architecture (KNL vs. FTP) and the sparsity pattern of the input matrix.
- Mistakes in representation selection can severely degrade SpMV performance, highlighting the need for automated selection.
- The proposed machine learning model achieves 95% of the best available performance on KNL and 91% on FTP across unseen inputs.
- The model delivers near-optimal performance with zero runtime profiling overhead, making it suitable for production deployment.
- The study provides the first comprehensive analysis of SpMV representation performance on KNL and FTP, revealing architecture-specific performance characteristics.
- The framework is immediately deployable and requires no source code changes, enabling seamless integration into existing HPC pipelines.
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.