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

HopFormer:具有显式感受野控制的稀疏图变换器

HopFormer: Sparse Graph Transformers with Explicit Receptive Field Control

University of California, Irvine(加州大学欧文分校)

Sanggeon Yun, Raheeb Hassan, Ryozo Masukawa, Sungheon Jeong, Mohsen Imani

AI总结:

HopFormer通过n跳掩码稀疏注意力实现图结构的显式感受野控制,无需位置编码或架构修改,从而在多种图结构上实现高效且稳定的性能。

摘要:

图变换器通常依赖于显式位置或结构编码和密集的全局注意力来融合图拓扑。在本工作中,我们证明这两者都不是必需的。我们引入了HopFormer,一种图变换器,通过头特定的n跳掩码稀疏注意力注入结构,而无需使用位置编码或架构修改。这种设计提供了显式且可解释的感受野控制,同时使真正的稀疏注意力得以实现,其计算成本与掩码稀疏度成线性关系。通过在节点级和图级基准上的广泛实验,我们证明了我们的方法在各种图结构上实现了竞争性或更优的性能。我们的结果进一步表明,密集的全局注意力往往并不必要:在具有强小世界属性的图上,局部注意力会产生更稳定且一致的高性能,而在具有弱小世界效应的图上,全局注意力提供 diminishing returns。这些发现挑战了图变换器设计中的主流假设,并突显了受控稀疏注意力作为一种原则性且高效的替代方案。

英文摘要:

Graph Transformers typically rely on explicit positional or structural encodings and dense global attention to incorporate graph topology. In this work, we show that neither is essential. We introduce HopFormer, a graph Transformer that injects structure exclusively through head-specific n-hop masked sparse attention, without the use of positional encodings or architectural modifications. This design provides explicit and interpretable control over receptive fields while enabling genuinely sparse attention whose computational cost scales linearly with mask sparsity. Through extensive experiments on both node-level and graph-level benchmarks, we demonstrate that our approach achieves competitive or superior performance across diverse graph structures. Our results further reveal that dense global attention is often unnecessary: on graphs with strong small-world properties, localized attention yields more stable and consistently high performance, while on graphs with weaker small-world effects, global attention offers diminishing returns. Together, these findings challenge prevailing assumptions in graph Transformer design and highlight sparsity-controlled attention as a principled and efficient alternative.

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

↑