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

具有容量控制的全局注意力用于图变换器

Capacity-Controlled Global Attention for Graph Transformers

Brain Investing Limited;The University of Hong Kong(香港大学);Stellaris AI Limited

Yang Liu, Dongxin Guo, Tom Zheng, Siu Ming Yiu, Liam Ning, Jikun Wu

AI总结:

本文提出SigGate-GT,通过在图变换器中引入可学习的sigmoid门来缓解全局注意力的保守约束,从而解决过平滑、低秩瓶颈和训练不稳定等问题,提升了多个基准测试的性能。

摘要:

全局自注意力推动了现代图变换器,但其核心的softmax操作引入了一个很少直接考察的结构约束:每个注意力行非负且和为一,因此每个头的输出是值向量的守恒凸组合。一个节点永远无法“不关注任何东西”。我们认为这种守恒约束是三个通常孤立研究的病理的根本原因:深度下的节点表示崩溃(过平滑)、每个头输出的低秩瓶颈,以及深度堆栈中的脆弱优化。借鉴sigmoid门在语言模型中消除类似注意力沉底的方式,我们引入SigGate-GT,一种在GraphGPS框架中应用可学习、按头、输入条件化的sigmoid门的图变换器。该门是一种平滑的、按维度的“体积控制”,可将头输出驱动至零,不放弃注意力的概率解释。通过分析和合成实验,我们证明该门严格增加每个头输出的稳定秩,并将此秩增益与所有三种表现联系起来。在五个分子和长距离基准上,SigGate-GT在ZINC上匹配先前最佳(0.059 MAE),在ogbg-molhiv上记录最强结果(82.47% ROC-AUC),在ogbg-molpcba和长距离图基准上具有竞争力,且在所有五个数据集上均优于GraphGPS(p < 0.05)。机制分析证实了诊断:门减缓了过平滑(在4-16层中表示多样性平均相对增益30%),保持了注意力熵不崩溃,并在10倍学习率范围内稳定训练,参数开销约为OGB的1%,时间成本低于3%。

英文摘要:

Global self-attention drives modern graph transformers, yet the softmax at its core imposes a structural constraint rarely examined directly: every attention row is non-negative and sums to one, so each per-head output is a mass-conserving convex combination of value vectors. A node can never "attend to nothing." We argue this conservation constraint is a single root cause behind three pathologies usually studied in isolation: the collapse of node representations with depth (over-smoothing), a low-rank bottleneck on per-head outputs, and brittle optimization in deep stacks. Drawing on how sigmoid gating removes analogous attention sinks in language models, we introduce SigGate-GT, a graph transformer that applies a learned, per-head, input-conditioned sigmoid gate to the attention output inside the GraphGPS framework. The gate is a smooth, per-dimension "volume control" that can drive head outputs toward zero, relaxing the constraint without abandoning attention's probabilistic interpretation. Analytically and through synthetic experiments, we show the gate strictly increases the stable rank of per-head outputs, and connect this rank gain to all three manifestations. On five molecular and long-range benchmarks, SigGate-GT matches the prior best on ZINC (0.059 MAE), records the strongest result among the graph-transformer baselines we evaluate on ogbg-molhiv (82.47% ROC-AUC), and is competitive on ogbg-molpcba and the Long-Range Graph Benchmark, with statistically significant gains over GraphGPS on all five datasets (p < 0.05). Mechanism analyses confirm the diagnosis: gating slows over-smoothing (a 30% mean relative gain in representation diversity across 4-16 layers), keeps attention entropy from collapsing, and stabilizes training across a 10x learning-rate range, at about 1% parameter overhead on OGB and under 3% wall-clock cost.

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

↑