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

SpikeGraphormer:一种具有脉冲图注意力机制的高性能图Transformer

SpikeGraphormer: A High-Performance Graph Transformer with Spiking Graph Attention

School of Astronautics, Harbin Institute of Technology(哈尔滨工业大学航天学院);School of Computer Science and Technology, Harbin Institute of Technology(哈尔滨工业大学计算机科学与技术学院);HebeiGejun Science & Technology Company(河北格钧科技公司);School of Computer Science & Statistics, Trinity College Dublin(都柏林三一学院计算机与统计学院)

Yundong Sun, Dongjie Zhu, Yansong Wang, Zhaoshuo Tian, Ning Cao, Gregory O'Hared

AI总结:

本文提出SpikeGraphormer,首次将脉冲神经网络引入图Transformer,设计了SGA模块以线性复杂度实现全节点对交互,并结合双分支架构在多项数据集上显著提升了计算效率与性能。

摘要:

最近,Graph Transformers已成为缓解图神经网络(GNN)固有局限性并提升图表示性能的极具前景的解决方案。遗憾的是,由于在大规模图上应用自注意力机制时固有的二次复杂度,Graph Transformers的计算成本很高,尤其是在节点任务中。相比之下,脉冲神经网络(SNN)凭借事件驱动和二值脉冲特性,能够执行高能效的计算。在本研究中,我们提出了将SNN与Graph Transformers相结合的新颖见解,并设计了Spiking Graph Attention(SGA)模块。矩阵乘法被替换为稀疏加法和掩码操作。这种线性复杂度使得在GPU内存有限的情况下,能够在大规模图上实现所有节点对之间的交互。据我们所知,我们的工作是首次尝试将SNN引入Graph Transformers。此外,我们设计了SpikeGraphormer,这是一种双分支架构,将稀疏GNN分支与由SGA驱动的Graph Transformer分支相结合,能够同时执行所有节点对交互并捕获局部邻域信息。SpikeGraphormer在各种数据集上始终优于现有的最先进方法,并在训练时间、推理时间和GPU内存成本方面取得了显著改进(比普通自注意力低10到20倍)。它在跨领域应用(图像和文本分类)中也表现良好。我们在 https://github.com/PHD-lanyu/SpikeGraphormer 发布了代码。

英文摘要:

Recently, Graph Transformers have emerged as a promising solution to alleviate the inherent limitations of Graph Neural Networks (GNNs) and enhance graph representation performance. Unfortunately, Graph Transformers are computationally expensive due to the quadratic complexity inherent in self-attention when applied over large-scale graphs, especially for node tasks. In contrast, spiking neural networks (SNNs), with event-driven and binary spikes properties, can perform energy-efficient computation. In this work, we propose a novel insight into integrating SNNs with Graph Transformers and design a Spiking Graph Attention (SGA) module. The matrix multiplication is replaced by sparse addition and mask operations. The linear complexity enables all-pair node interactions on large-scale graphs with limited GPU memory. To our knowledge, our work is the first attempt to introduce SNNs into Graph Transformers. Furthermore, we design SpikeGraphormer, a Dual-branch architecture, combining a sparse GNN branch with our SGA-driven Graph Transformer branch, which can simultaneously perform all-pair node interactions and capture local neighborhoods. SpikeGraphormer consistently outperforms existing state-of-the-art approaches across various datasets and makes substantial improvements in training time, inference time, and GPU memory cost (10 ~ 20x lower than vanilla self-attention). It also performs well in cross-domain applications (image and text classification). We release our code at https://github.com/PHD-lanyu/SpikeGraphormer.

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

↑