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

面向图生成的高效边缘感知注意力网络

Efficient Edge-aware Attention Network for Graph Generation

EPFL(洛桑联邦理工学院);Università della Svizzera italiana(瑞士意大利语区大学)

Vincent Jung, Alba Carballo-Castro, Yiming Qin, Lonneke van der Plas, Pascal Frossard

AI总结:

该研究针对图生成模型的内存与扩展性问题,提出边缘感知注意力层,结合PyTorch的FlexAttention实现,在保持生成质量的同时降低GPU内存并提升吞吐量,为可扩展图基础模型提供实用方案。

摘要:

图生成模型通常采用图专用的Transformer架构来联合更新节点与边特征,但这类架构无法直接受益于近期硬件感知的注意力实现,限制了其可扩展性。然而,这种适配并非易事:必须将边和图级特征注入成对注意力分数,必须遵守图掩码,且动态边更新仍是二次内存使用的主要来源。我们提出一种用于图生成的边缘感知注意力层,该层通过头级分数调制融入结构信息,同时采用轻量残差机制更新边表示,保留依赖注意力分数的边更新。该层可通过PyTorch的FlexAttention有效实现。我们取得了与基线相似的生成质量,同时将峰值GPU内存降低约65%,并大幅提升了训练与采样吞吐量。这些结果表明,所提架构是迈向可扩展图基础模型的实用一步。

英文摘要:

Graph generative models commonly use graph-specific Transformer architectures to jointly update node and edge features. However, these architectures do not directly benefit from recent hardware-aware attention implementations, limiting their scalability. The adaptation is, however, non-trivial: edge and graph-level features must be injected into pairwise attention scores, graph masks must be respected, and dynamic edge updates remain a major source of quadratic memory usage. We propose an edge-aware attention layer for graph generation that incorporates structural information through head-wise score modulation, while updating edge representations with a lightweight residual mechanism that retains attention-score dependent edge updates. This layer can be effectively implemented using PyTorch's FlexAttention. We achieve similar generation quality to our baseline while reducing peak GPU memory by around 65% and substantially improving training and sampling throughput. These results suggest that the proposed architecture is a practical step toward scalable graph foundation models.

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

↑