arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.00193cs.LG
收藏

$\rm A^2Q$:面向图神经网络的聚合感知Quantization

$\rm A^2Q$: Aggregation-Aware Quantization for Graph Neural Networks

University of Chinese Academy of Sciences(中国科学院大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Shanghai Jiao Tong University(上海交通大学)

Zeyu Zhu, Fanrong Li, Zitao Mo, Qinghao Hu, Gang Li, Zejian Liu, Xiaoyao Liang, Jian Cheng

摘要:

随着图数据大小的增加,推理过程中的巨大延迟和内存消耗对图神经网络(GNN)的实际部署构成了重大挑战。虽然量化是降低GNN复杂性的一种有效方法,但大多数以前关于GNN量化的工作都未能利用GNN的独特特性,从而导致精度严重下降。通过深入分析GNN的拓扑结构,我们观察到图的拓扑结构导致节点之间存在显著差异,图中的大多数节点似乎具有较小的聚合值。受此启发,在本文中,我们提出了GNN的聚合感知混合精度量化($\rm A^2Q$),其中自动学习并分配给图中的每个节点适当的位宽。为了减轻节点之间稀疏连接引起的梯度消失问题,我们提出了一种局部梯度方法,以节点特征的量化误差作为训练过程中的监督。我们还开发了一个最近邻策略来处理未见过图的推广。在八个公共节点级和图级数据集上的实验证明了该方法的通用性和鲁棒性。与FP 32模型相比,我们的方法可以实现高达18.6倍(即,1.70bit)压缩比,精度下降可忽略不计。同时,与现有的量化方法相比,该方法在节点级和图级任务上的精度分别提高了11.4%和9.5%,在专用硬件加速器上的加速比提高了2倍.

英文摘要:

As graph data size increases, the vast latency and memory consumption during inference pose a significant challenge to the real-world deployment of Graph Neural Networks (GNNs). While quantization is a powerful approach to reducing GNNs complexity, most previous works on GNNs quantization fail to exploit the unique characteristics of GNNs, suffering from severe accuracy degradation. Through an in-depth analysis of the topology of GNNs, we observe that the topology of the graph leads to significant differences between nodes, and most of the nodes in a graph appear to have a small aggregation value. Motivated by this, in this paper, we propose the Aggregation-Aware mixed-precision Quantization ($\rm A^2Q$) for GNNs, where an appropriate bitwidth is automatically learned and assigned to each node in the graph. To mitigate the vanishing gradient problem caused by sparse connections between nodes, we propose a Local Gradient method to serve the quantization error of the node features as the supervision during training. We also develop a Nearest Neighbor Strategy to deal with the generalization on unseen graphs. Extensive experiments on eight public node-level and graph-level datasets demonstrate the generality and robustness of our proposed method. Compared to the FP32 models, our method can achieve up to a 18.6x (i.e., 1.70bit) compression ratio with negligible accuracy degradation. Morever, compared to the state-of-the-art quantization method, our method can achieve up to 11.4\% and 9.5\% accuracy improvements on the node-level and graph-level tasks, respectively, and up to 2x speedup on a dedicated hardware accelerator.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑