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

Gophormer:用于节点分类的自我图Transformer

Gophormer: Ego-Graph Transformer for Node Classification

University of Notre Dame(圣母大学);Microsoft Research(微软研究院);Michigan State University(密歇根州立大学);Microsoft(微软)

Jianan Zhao, Chaozhuo Li, Qianlong Wen, Yiqi Wang, Yuming Liu, Hao Sun, Xing Xie, Yanfang Ye

摘要:

Transformers在包括自然语言处理和计算机视觉在内的无数领域都取得了卓越的性能。然而,当涉及到图挖掘领域时,其中图神经网络(GNN)一直是主导范式,Transformers还没有达到有竞争力的性能,特别是在节点分类任务上。现有的图Transformer模型通常在整个输入图上采用全连接注意力机制,因此存在严重的可扩展性问题,并且在数据不足的情况下难以进行训练。为了缓解这些问题,我们提出了一种新的Gophormer模型,该模型将Transformers应用于自我图而不是全图。具体而言,Node2Seq模块被提出来采样自我图作为Transformers的输入,这解决了可扩展性的挑战,并作为一种有效的数据增强技术来提高模型性能。此外,不同于vanilla Transformers中基于特征的注意策略,我们提出了一种邻近增强的注意力机制来捕获细粒度的结构偏差。为了处理自我图采样引入的不确定性,我们进一步提出了一致性正则化和多样本推理策略,分别用于稳定训练和测试。在六个基准数据集上进行了大量的实验,以证明Gophormer相对于现有的图Transformers和流行的GNN的优越性,揭示了图Transformers的光明前景。

英文摘要:

Transformers have achieved remarkable performance in a myriad of fields including natural language processing and computer vision. However, when it comes to the graph mining area, where graph neural network (GNN) has been the dominant paradigm, transformers haven't achieved competitive performance, especially on the node classification task. Existing graph transformer models typically adopt fully-connected attention mechanism on the whole input graph and thus suffer from severe scalability issues and are intractable to train in data insufficient cases. To alleviate these issues, we propose a novel Gophormer model which applies transformers on ego-graphs instead of full-graphs. Specifically, Node2Seq module is proposed to sample ego-graphs as the input of transformers, which alleviates the challenge of scalability and serves as an effective data augmentation technique to boost model performance. Moreover, different from the feature-based attention strategy in vanilla transformers, we propose a proximity-enhanced attention mechanism to capture the fine-grained structural bias. In order to handle the uncertainty introduced by the ego-graph sampling, we further propose a consistency regularization and a multi-sample inference strategy for stabilized training and testing, respectively. Extensive experiments on six benchmark datasets are conducted to demonstrate the superiority of Gophormer over existing graph transformers and popular GNNs, revealing the promising future of graph transformers.

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

↑