Accelerating GNN Inference by Soft Channel Pruning

Wenbo Zhang, Jingwei Sun, Guangzhong Sun
{"title":"Accelerating GNN Inference by Soft Channel Pruning","authors":"Wenbo Zhang, Jingwei Sun, Guangzhong Sun","doi":"10.1109/PAAP56126.2022.10010603","DOIUrl":null,"url":null,"abstract":"Graph Neural Networks (GNNs) are effective models for processing graph-structured data. With the continuous growth of graph data scale and the deepening of graph neural network layers, the heavy cost of GNN inference has greatly limited its application in real-time tasks. This paper focus on accelerating the performance of GNN inference. We first measures the execution time ratio of each stage in the inference process for commonly used GNN models, and analyzes the performance characteristics of different stages. We find out that the critical performance factor of GNN inference is the feature dimension, which is different to CNN and NLP models. Therefore, we propose a soft channel pruning method with a ladder pruning pattern. It reduces the calculation from unimportant graph node features and achieve performance acceleration. Meanwhile, it reserves inference accuracy of GNNs. According to experimental validation on graph datasets of different scales, our method can effectively reduce the inference latency and achieve 2×–7× speedup. Also, compared with existing pruning methods, higher inference accuracy can be obtained with comparable speedup ratio.","PeriodicalId":336339,"journal":{"name":"2022 IEEE 13th International Symposium on Parallel Architectures, Algorithms and Programming (PAAP)","volume":"96 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-11-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE 13th International Symposium on Parallel Architectures, Algorithms and Programming (PAAP)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/PAAP56126.2022.10010603","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Graph Neural Networks (GNNs) are effective models for processing graph-structured data. With the continuous growth of graph data scale and the deepening of graph neural network layers, the heavy cost of GNN inference has greatly limited its application in real-time tasks. This paper focus on accelerating the performance of GNN inference. We first measures the execution time ratio of each stage in the inference process for commonly used GNN models, and analyzes the performance characteristics of different stages. We find out that the critical performance factor of GNN inference is the feature dimension, which is different to CNN and NLP models. Therefore, we propose a soft channel pruning method with a ladder pruning pattern. It reduces the calculation from unimportant graph node features and achieve performance acceleration. Meanwhile, it reserves inference accuracy of GNNs. According to experimental validation on graph datasets of different scales, our method can effectively reduce the inference latency and achieve 2×–7× speedup. Also, compared with existing pruning methods, higher inference accuracy can be obtained with comparable speedup ratio.
利用软信道剪枝加速GNN推断
图神经网络(gnn)是处理图结构数据的有效模型。随着图数据规模的不断增长和图神经网络层数的不断加深,GNN推理的沉重成本极大地限制了其在实时任务中的应用。本文主要研究如何提高GNN推理的性能。首先测量了常用GNN模型在推理过程中各阶段的执行时间比,并分析了不同阶段的性能特征。我们发现GNN推理的关键性能因素是特征维数,这与CNN和NLP模型不同。因此,我们提出了一种阶梯修剪模式的软通道修剪方法。它减少了不重要的图节点特征的计算,实现了性能加速。同时,保留了gnn的推理精度。通过对不同规模的图数据集的实验验证,我们的方法可以有效地降低推理延迟,达到2×-7×加速。与现有的剪枝方法相比,在加速比相当的情况下,可以获得更高的推理精度。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信