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

面向大规模图的Graph Transformers

Graph Transformers for Large Graphs

Nanyang Technological University(南洋理工大学);Snap Inc.(Snap公司);National University of Singapore(新加坡国立大学)

Vijay Prakash Dwivedi, Yozen Liu, Anh Tuan Luu, Xavier Bresson, Neil Shah, Tong Zhao

AI总结:

针对大规模图下全局注意力计算成本过高、采样速度与精度难权衡的问题,提出融合2跳实现4跳感受野的局部采样注意力与近似全局自注意力的LargeGT框架,在多个大图基准上实现性能与速度的双重提升。

摘要:

Transformer近年来已成为图学习领域性能强劲的神经网络,在多项图属性预测任务上展现出state-of-the-art(当前最优)的性能。但这些成果仅局限于小规模图,只有在这类图上全局注意力机制的计算可行性才能得到保障。该领域的下一个目标是扩展这类架构,使其能够处理节点规模达数百万甚至数十亿的超大规模图。对于大规模图而言,全局注意力学习因与节点数量呈二次方的复杂度,已被证实不具备实用性。另一方面,邻域采样技术对于管控大图规模至关重要,但如何通过采样技术在速度与精度之间找到最优权衡仍是一大难题。本研究推进了单一大规模图上的表示学习,重点明确了开发可扩展图Transformer(Graph Transformer,GT)架构所需的模型特征与关键设计约束。我们认为,这类GT需要具备能够同时高效学习局部与全局图表示、同时可快速采样图拓扑结构的层。据此,本研究的核心创新在于提出了一种快速邻域采样技术,该技术搭配覆盖4跳感受野的局部注意力机制,且仅通过2跳操作即可实现。随后,将该局部节点嵌入与全局节点嵌入相融合——全局节点嵌入通过另一个带有近似全局码本的自注意力层获得——最终送入下游层完成节点预测。所提出的GT框架名为LargeGT,突破了以往的计算瓶颈,并在三个大规模节点分类基准上得到了验证。我们报告称,该框架在ogbn-products和snap-patents数据集上实现了3倍加速与16.8%的性能提升,同时还将LargeGT扩展到ogbn-papers100M数据集上,取得了5.9%的性能提升。

英文摘要:

Transformers have recently emerged as powerful neural networks for graph learning, showcasing state-of-the-art performance on several graph property prediction tasks. However, these results have been limited to small-scale graphs, where the computational feasibility of the global attention mechanism is possible. The next goal is to scale up these architectures to handle very large graphs on the scale of millions or even billions of nodes. With large-scale graphs, global attention learning is proven impractical due to its quadratic complexity w.r.t. the number of nodes. On the other hand, neighborhood sampling techniques become essential to manage large graph sizes, yet finding the optimal trade-off between speed and accuracy with sampling techniques remains challenging. This work advances representation learning on single large-scale graphs with a focus on identifying model characteristics and critical design constraints for developing scalable graph transformer (GT) architectures. We argue such GT requires layers that can adeptly learn both local and global graph representations while swiftly sampling the graph topology. As such, a key innovation of this work lies in the creation of a fast neighborhood sampling technique coupled with a local attention mechanism that encompasses a 4-hop reception field, but achieved through just 2-hop operations. This local node embedding is then integrated with a global node embedding, acquired via another self-attention layer with an approximate global codebook, before finally sent through a downstream layer for node predictions. The proposed GT framework, named LargeGT, overcomes previous computational bottlenecks and is validated on three large-scale node classification benchmarks. We report a 3x speedup and 16.8% performance gain on ogbn-products and snap-patents, while we also scale LargeGT on ogbn-papers100M with a 5.9% performance improvement.

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

↑