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

什么提升了Graph Transformers的泛化能力?对自注意力与位置编码的理论深入探讨

What Improves the Generalization of Graph Transformers? A Theoretical Dive into the Self-attention and Positional Encoding

Rensselaer Polytechnic Institute(伦斯勒理工学院);Stony Brook University(石溪大学);Michigan State University(密歇根州立大学);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室);IBM Research(IBM研究院);University of Science and Technology of China(中国科学技术大学);IBM Thomas J. Watson Research Center(IBM托马斯·J.沃森研究中心)

Hongkang Li, Meng Wang, Tengfei Ma, Sijia Liu, Zaixi Zhang, Pin-Yu Chen

AI总结:

本文首次从理论上研究了用于半监督节点分类的浅层Graph Transformer,定量刻画了其样本复杂度与收敛条件,并证明自注意力与位置编码通过使注意力图稀疏化来增强泛化能力。

摘要:

结合了自注意力和位置编码的Graph Transformers近期已成为用于各种图学习任务的强大架构。尽管其性能出色,但跨层的复杂非凸交互以及递归的图结构使得建立学习和泛化的理论基础极具挑战。本研究首次对用于半监督节点分类的浅层Graph Transformer进行了理论探讨,该模型由一个带相对位置编码的自注意力层和一个两层感知机组成。针对包含决定节点标签的判别性节点和与类别无关的非判别性节点的图数据模型,我们刻画了通过随机梯度下降(SGD)训练以达到理想泛化误差所需的样本复杂度。本文定量刻画了依赖于判别性节点比例、主导模式和初始模型误差的样本复杂度及收敛迭代次数。此外,我们证明自注意力和位置编码通过在训练期间使注意力图稀疏并促进核心邻域来增强泛化能力,这解释了Graph Transformers优越的特征表示。我们的理论结果得到了合成和真实世界基准上经验实验的支持。

英文摘要:

Graph Transformers, which incorporate self-attention and positional encoding, have recently emerged as a powerful architecture for various graph learning tasks. Despite their impressive performance, the complex non-convex interactions across layers and the recursive graph structure have made it challenging to establish a theoretical foundation for learning and generalization. This study introduces the first theoretical investigation of a shallow Graph Transformer for semi-supervised node classification, comprising a self-attention layer with relative positional encoding and a two-layer perceptron. Focusing on a graph data model with discriminative nodes that determine node labels and non-discriminative nodes that are class-irrelevant, we characterize the sample complexity required to achieve a desirable generalization error by training with stochastic gradient descent (SGD). This paper provides the quantitative characterization of the sample complexity and number of iterations for convergence dependent on the fraction of discriminative nodes, the dominant patterns, and the initial model errors. Furthermore, we demonstrate that self-attention and positional encoding enhance generalization by making the attention map sparse and promoting the core neighborhood during training, which explains the superior feature representation of Graph Transformers. Our theoretical results are supported by empirical experiments on synthetic and real-world benchmarks.

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

↑