作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2022, Vol. 48 ›› Issue (2): 86-91. doi: 10.19678/j.issn.1000-3428.0060481

• 人工智能与模式识别 • 上一篇    下一篇

基于深度学习的稀疏矩阵向量乘运算性能预测模型

曹中潇1,2, 冯仰德1, 王珏1, 闵维潇3, 姚铁锤1,2, 高岳4, 王丽华3, 高付海4   

  1. 1. 中国科学院计算机网络信息中心, 北京 100190;
    2. 中国科学院大学, 北京 100049;
    3. 北京航空航天大学 软件学院, 北京 100191;
    4. 中国原子能科学研究院, 北京 102413
  • 收稿日期:2021-01-04 修回日期:2021-03-02 发布日期:2022-02-14
  • 作者简介:曹中潇(1994-),女,硕士研究生,主研方向为并行计算;冯仰德、王珏(通信作者),副研究员、博士;闵维潇,硕士研究生;姚铁锤,博士研究生;高岳,工程师、硕士;王丽华,教授;高付海,副研究员、硕士。
  • 基金资助:
    国家重点研发计划(2017YFB0202302)。

Computing Performance Prediction Model for Sparse Matrix Vector Multiplication Based on Deep Learning

CAO Zhongxiao1,2, FENG Yangde1, WANG Jue1, MIN Weixiao3, YAO Tiechui1,2, GAO Yue4, WANG Lihua3, GAO Fuhai4   

  1. 1. Computer Network Information Center, Chinese Academy of Sciences, Beijing 100190, China;
    2. University of Chinese Academy of Sciences, Beijing 100049, China;
    3. School of Software, Beihang University, Beijing 100191, China;
    4. China Institute of Atomic Energy, Beijing 102413, China
  • Received:2021-01-04 Revised:2021-03-02 Published:2022-02-14

摘要: 稀疏矩阵向量乘(SpMV)是求解稀疏线性方程组的计算核心,被广泛应用在经济学模型、信号处理等科学计算和工程应用中,对于SpMV及其调优技术的研究有助于提升解决相关领域问题的运算效率。传统SpMV自动调优方法基于硬件平台的体系结构参数设置来提升SpMV性能,但巨大的参数设置量导致搜索空间变大且自动调优耗时大幅增加。采用深度学习技术,基于卷积神经网络,构建由双通道稀疏矩阵特征融合以及稀疏矩阵特征与体系结构特征融合组成的SpMV运算性能预测模型,实现快速自动调优。为提高SpMV运算时间的预测精度,选取特征数据并利用箱形图统计SpMV时间信息,同时在佛罗里达稀疏矩阵数据集上进行实验设计与验证,结果表明,该模型的SpMV运算时间预测准确率达到80%以上,并且具有较强的泛化能力。

关键词: 稀疏矩阵向量乘, 自动调优, 深度学习, 卷积神经网络, 特征融合

Abstract: Sparse Matrix Vector Multiplication(SpMV) is key to solving sparse linear equations.It is widely used in economic modeling, signal processing and other scientific and engineering tasks.The research on SpMV and its tuning technology can improve the computational efficiency of solving problems in related fields.Traditional SpMV automatic tuning methods improve the performance of SpMV based on the architecture parameter settings of the hardware platform, but the huge amount of parameter settings leads to a larger search space and a significant increase in the time consumption of automatic tuning.To implement fast and accurate automatic tuning, we use deep learning technology to construct a Convolutional Neural Network(CNN) model for SpMV computing performance prediction, which is built based on dual-channel sparse matrix feature fusion, sparse matrix feature fusion and architecture feature fusion.In order to improve the prediction accuracy of SpMV computing performance, feature data is selected and constructed.The box plot is used to count SpMV time information.Then the Florida sparse matrix dataset is selected for experimental design and verification.Experimental results show that the model displaying a prediction accuracy of SpMV computing time over 80% and strong generalization ability.

Key words: Sparse Matrix Vector Multiplication(SpMV), automatic tuning, deep learning, Convolutional Neural Network(CNN), feature fusion

中图分类号: