arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.05479cs.LGcs.AI
收藏

探索 Graph Transformer 中的稀疏性

Exploring Sparsity in Graph Transformers

School of Computer Science, Wuhan University(武汉大学计算机学院);JD Explore Academy, JD.com(京东探索研究院);School of Computing and Information Systems, The University of Melbourne(墨尔本大学计算与信息系统学院);School of Computer Science, Yunnan University(云南大学计算机学院);School of Computing, Macquarie University(麦考瑞大学计算学院)

Chuang Liu, Yibing Zhan, Xueqi Ma, Liang Ding, Dapeng Tao, Jia Wu, Wenbin Hu, Bo Du

AI总结:

本文针对 Graph Transformer 计算成本高的问题,提出 GTSP 框架,从图数据、注意力头、层和权重四维度进行可微端到端稀疏剪枝,实验证明可显著降低计算量并保持甚至提升精度。

摘要:

Graph Transformer(GT)已在多种图相关任务上取得令人瞩目的结果。然而,GT 巨大的计算成本阻碍了其部署与应用,尤其是在资源受限的环境中。因此,本文探讨了对 GT 进行稀疏化的可行性,这是一个重要但尚未得到充分研究的课题。我们首先基于现有 GT 模型的特征讨论 GT 的冗余性,随后提出一个全面的 Graph Transformer SParsification(GTSP)框架,从四个维度帮助降低 GT 的计算复杂度:输入图数据、注意力头、模型层和模型权重。具体而言,GTSP 为每个可压缩组件设计了可微掩码,从而实现有效的端到端剪枝。我们通过在 GraphTrans、Graphormer 和 GraphGPS 等代表性 GT 上的大量实验检验了 GTSP。实验结果证实,GTSP 能有效削减计算成本,同时准确率仅出现边际下降,在某些情况下甚至有所提升。例如,在 OGBG-HIV 数据集上,GTSP 将浮点运算量减少 30%,并使 Area Under the Curve 准确率提升 1.8%。此外,我们还给出了关于注意力头特征和注意力机制行为的若干洞见,这些都具有启发该领域未来研究工作的巨大潜力。

英文摘要:

Graph Transformers (GTs) have achieved impressive results on various graph-related tasks. However, the huge computational cost of GTs hinders their deployment and application, especially in resource-constrained environments. Therefore, in this paper, we explore the feasibility of sparsifying GTs, a significant yet under-explored topic. We first discuss the redundancy of GTs based on the characteristics of existing GT models, and then propose a comprehensive \textbf{G}raph \textbf{T}ransformer \textbf{SP}arsification (GTSP) framework that helps to reduce the computational complexity of GTs from four dimensions: the input graph data, attention heads, model layers, and model weights. Specifically, GTSP designs differentiable masks for each individual compressible component, enabling effective end-to-end pruning. We examine our GTSP through extensive experiments on prominent GTs, including GraphTrans, Graphormer, and GraphGPS. The experimental results substantiate that GTSP effectively cuts computational costs, accompanied by only marginal decreases in accuracy or, in some cases, even improvements. For instance, GTSP yields a reduction of 30\% in Floating Point Operations while contributing to a 1.8\% increase in Area Under the Curve accuracy on OGBG-HIV dataset. Furthermore, we provide several insights on the characteristics of attention heads and the behavior of attention mechanisms, all of which have immense potential to inspire future research endeavors in this domain.

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

↑