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

SGFormer:具有无近似线性复杂度的单层图Transformer

SGFormer: Single-Layer Graph Transformers with Approximation-Free Linear Complexity

Broad Institute of MIT and Harvard(麻省理工学院与哈佛 broad 研究所);Shanghai Jiao Tong University(上海交通大学);University of Illinois, Chicago(芝加哥大学伊利诺伊分校);Amazon Web Service(亚马逊网络服务)

Qitian Wu, Kai Yang, Hengrui Zhang, David Wipf, Junchi Yan

AI总结:

针对图Transformer多层注意力效率受限的问题,本文提出单层图Transformer SGFormer,其无近似的线性复杂度全局注意力可扩展至超大规模图,推理速度显著提升且标注数据需求低。

摘要:

由于图的相互依赖特性,在大图上学习表示是一项长期存在的挑战。Transformer凭借其全局注意力机制能够捕获观测结构之外的全对交互,近期已在小图上展现出可观的性能。现有方法往往沿用语言和视觉任务中Transformer的思路,通过堆叠深度注意力传播层构建复杂架构。本文中,我们尝试评估图Transformer采用多层注意力的必要性——这类多层结构极大限制了模型效率。具体而言,我们分析了一种由全对注意力和基于图的传播组成的通用混合传播层,并证明多层传播可简化为单层传播,且二者的表示学习能力相当。这为构建强大且高效的图Transformer指明了一条新技术路径,尤其是可在不牺牲表达能力的前提下简化模型架构。基于这一发现,我们提出了简化单层图Transformer(SGFormer),其核心组件是单层全局注意力,该注意力的计算复杂度随图规模线性增长,且无需任何近似即可支持全对交互。实验结果表明,SGFormer成功扩展至网页级规模的图数据集ogbn-papers100M,在中等规模图上的推理速度较同类Transformer快数个数量级,并且在标注数据有限的情况下仍具备竞争力。

英文摘要:

Learning representations on large graphs is a long-standing challenge due to the inter-dependence nature. Transformers recently have shown promising performance on small graphs thanks to its global attention for capturing all-pair interactions beyond observed structures. Existing approaches tend to inherit the spirit of Transformers in language and vision tasks, and embrace complicated architectures by stacking deep attention-based propagation layers. In this paper, we attempt to evaluate the necessity of adopting multi-layer attentions in Transformers on graphs, which considerably restricts the efficiency. Specifically, we analyze a generic hybrid propagation layer, comprised of all-pair attention and graph-based propagation, and show that multi-layer propagation can be reduced to one-layer propagation, with the same capability for representation learning. It suggests a new technical path for building powerful and efficient Transformers on graphs, particularly through simplifying model architectures without sacrificing expressiveness. As exemplified by this work, we propose a Simplified Single-layer Graph Transformers (SGFormer), whose main component is a single-layer global attention that scales linearly w.r.t. graph sizes and requires none of any approximation for accommodating all-pair interactions. Empirically, SGFormer successfully scales to the web-scale graph ogbn-papers100M, yielding orders-of-magnitude inference acceleration over peer Transformers on medium-sized graphs, and demonstrates competitiveness with limited labeled data.

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

↑