Optimizing Sparse Linear Algebra Through Automatic Format Selection and Machine Learning

被引:0
作者
Stylianou, Christodoulos [1 ]
Weiland, Michele [1 ]
机构
[1] Univ Edinburgh, EPCC, Edinburgh, Midlothian, Scotland
来源
2023 IEEE INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM WORKSHOPS, IPDPSW | 2023年
基金
英国工程与自然科学研究理事会;
关键词
sparse matrix storage formats; machine learning; automatic format selection;
D O I
10.1109/IPDPSW59300.2023.00125
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Sparse matrices are an integral part of scientific simulations. As hardware evolves new sparse matrix storage formats are proposed aiming to exploit optimizations specific to the new hardware. In the era of heterogeneous computing, users often are required to use multiple formats for their applications to remain optimal across the different available hardware, resulting in larger development times and maintenance overhead. A potential solution to this problem is the use of a lightweight auto-tuner driven by Machine Learning (ML) that would select for the user an optimal format from a pool of available formats that will match the characteristics of the sparsity pattern, target hardware and operation to execute. In this paper, we introduce Morpheus-Oracle, a library that provides a lightweight ML auto-tuner capable of accurately predicting the optimal format across multiple backends, targeting the major HPC architectures aiming to eliminate any format selection input by the end-user. From more than 2000 reallife matrices, we achieve an average classification accuracy and balanced accuracy of 92.63% and 80.22% respectively across the available systems. The adoption of the auto-tuner results in average speedup of 1.1x on CPUs and 1.5x to 8x on NVIDIA and AMD GPUs, with maximum speedups reaching up to 7x and 1000x respectively.
引用
收藏
页码:734 / 743
页数:10
相关论文
共 50 条
[1]   Automatic Selection of Sparse Triangular Linear System Solvers on GPUs through Machine Learning Techniques [J].
Dufrechou, Ernesto ;
Ezzatti, Pablo ;
Quintana-Orti, Enrique S. .
2019 31ST INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE AND HIGH PERFORMANCE COMPUTING (SBAC-PAD 2019), 2019, :41-47
[2]   Regularization of Machine Learning and Linear Algebra [J].
Liu, Shuang ;
Kabanikhin, Sergey Igorevich ;
Strijhak, Sergei Vladimirovich .
PROCEEDINGS OF 2024 8TH INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND ARTIFICIAL INTELLIGENCE, CSAI 2024, 2024, :327-332
[3]   Hardware Acceleration of Machine Learning Beyond Linear Algebra [J].
Muecke, Sascha ;
Piatkowski, Nico ;
Morik, Katharina .
MACHINE LEARNING AND KNOWLEDGE DISCOVERY IN DATABASES, ECML PKDD 2019, PT I, 2020, 1167 :342-347
[4]   Optimizing machine-learning models for mutagenicity prediction through better feature selection [J].
Shinada, Nicolas K. ;
Koyama, Naoki ;
Ikemori, Megumi ;
Nishioka, Tomoki ;
Hitaoka, Seiji ;
Hakura, Atsushi ;
Asakura, Shoji ;
Matsuoka, Yukiko ;
Palaniappan, Sucheendra K. .
MUTAGENESIS, 2022, 37 (3-4) :191-202
[5]   Automatic Selection of Compiler Optimizations by Machine Learning [J].
Peker, Melih ;
Ozturk, Ozcan ;
Yildirim, Suleyman ;
Ozturk, Mahiye Uluyagmur .
2023 31ST SIGNAL PROCESSING AND COMMUNICATIONS APPLICATIONS CONFERENCE, SIU, 2023,
[6]   Compressed linear algebra for large-scale machine learning [J].
Ahmed Elgohary ;
Matthias Boehm ;
Peter J. Haas ;
Frederick R. Reiss ;
Berthold Reinwald .
The VLDB Journal, 2018, 27 :719-744
[7]   Accelerating Machine Learning Queries with Linear Algebra Query Processing [J].
Sun, Wenbo ;
Katsifodimos, Asterios ;
Hai, Rihan .
35TH INTERNATIONAL CONFERENCE ON SCIENTIFIC AND STATISTICAL DATABASE MANAGEMENT, SSDBM 2023, 2023,
[8]   Compressed linear algebra for large-scale machine learning [J].
Elgohary, Ahmed ;
Boehm, Matthias ;
Haas, Peter J. ;
Reiss, Frederick R. ;
Reinwald, Berthold .
VLDB JOURNAL, 2018, 27 (05) :719-744
[9]   Accelerating machine learning queries with linear algebra query processing [J].
Sun, Wenbo ;
Katsifodimos, Asterios ;
Hai, Rihan .
DISTRIBUTED AND PARALLEL DATABASES, 2025, 43 (01)
[10]   Automatic Load Model Selection Based on Machine Learning Algorithms [J].
Hernandez-Pena, S. ;
Perez-Londono, S. ;
Mora-Florez, J. .
IEEE ACCESS, 2022, 10 :89308-89319