彩色自注意力:对在 Transformer 中编码图结构的再思考
Self-Attention in Colors: Another Take on Encoding Graph Structure in Transformers
AI总结:
本文提出 CSA 与全注意力图 Transformer CGT,通过随机游走相对位置编码和高阶拓扑信息在无消息传递情况下建模图结构,并在 ZINC 上达到最优性能。
摘要:
我们提出一种名为 CSA(Chromatic Self-Attention,彩色自注意力)的新型自注意力机制,它将注意力分数的概念扩展为注意力“滤波器”,独立调节各特征通道。我们在全注意力图 Transformer CGT(Chromatic Graph Transformer,彩色图 Transformer)中展示 CSA,该模型整合图结构信息与边特征,完全无需局部消息传递组件。我们的方法通过节点—节点交互灵活编码图结构,利用相对位置编码方案丰富原始边特征。我们提出一种基于随机游走的新方案,可同时编码结构信息与位置信息,并说明如何纳入高阶拓扑信息,例如分子图中的环。我们的方法在 ZINC 基准数据集上取得最先进结果,同时为编码图结构和纳入高阶拓扑提供了灵活框架。
英文摘要:
We introduce a novel self-attention mechanism, which we call CSA (Chromatic Self-Attention), which extends the notion of attention scores to attention _filters_, independently modulating the feature channels. We showcase CSA in a fully-attentional graph Transformer CGT (Chromatic Graph Transformer) which integrates both graph structural information and edge features, completely bypassing the need for local message-passing components. Our method flexibly encodes graph structure through node-node interactions, by enriching the original edge features with a relative positional encoding scheme. We propose a new scheme based on random walks that encodes both structural and positional information, and show how to incorporate higher-order topological information, such as rings in molecular graphs. Our approach achieves state-of-the-art results on the ZINC benchmark dataset, while providing a flexible framework for encoding graph structure and incorporating higher-order topology.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。