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

PolyFormer:通过多项式图变换器实现可扩展的节点级滤波器

PolyFormer: Scalable Node-wise Filters via Polynomial Graph Transformer

Renmin University of China(中国人民大学)

Jiahong Ma, Mingguo He, Zhewei Wei

AI总结:

针对现有谱图神经网络滤波器灵活性不足及可扩展性受限的问题,提出基于注意力机制的可扩展节点级滤波器PolyAttn及模型PolyFormer,在保持高效的同时增强表达性,实验证明其性能优越且可处理亿级节点图。

摘要:

谱图神经网络在图表示学习中展现了优越的性能。然而,许多现有方法侧重于对所有节点采用共享的多项式系数,即学习节点统一的滤波器,这限制了滤波器在节点级任务中的灵活性。最近的DSF方法试图通过基于位置编码学习节点级系数来克服这一限制。然而,位置编码的初始化和更新过程负担较重,阻碍了在大规模图上的可扩展性。在这项工作中,我们提出了一种可扩展的节点级滤波器PolyAttn。利用注意力机制,PolyAttn能够以高效的方式直接学习节点级滤波器,提供强大的表示能力。基于PolyAttn,我们引入了整个模型,命名为PolyFormer。从图变换器模型的角度来看,PolyFormer在节点内计算注意力分数,展现出良好的可扩展性。此外,该模型捕获谱信息,在保持效率的同时增强表达能力。凭借这些优势,PolyFormer为节点级任务提供了可扩展性与表达性之间的理想平衡。大量实验表明,我们提出的方法擅长学习任意的节点级滤波器,在同质图和异质图上均表现出优越的性能,并能处理包含多达1亿个节点的图。代码可在https://github.com/air029/PolyFormer获取。

英文摘要:

Spectral Graph Neural Networks have demonstrated superior performance in graph representation learning. However, many current methods focus on employing shared polynomial coefficients for all nodes, i.e., learning node-unified filters, which limits the filters' flexibility for node-level tasks. The recent DSF attempts to overcome this limitation by learning node-wise coefficients based on positional encoding. However, the initialization and updating process of the positional encoding are burdensome, hindering scalability on large-scale graphs. In this work, we propose a scalable node-wise filter, PolyAttn. Leveraging the attention mechanism, PolyAttn can directly learn node-wise filters in an efficient manner, offering powerful representation capabilities. Building on PolyAttn, we introduce the whole model, named PolyFormer. In the lens of Graph Transformer models, PolyFormer, which calculates attention scores within nodes, shows great scalability. Moreover, the model captures spectral information, enhancing expressiveness while maintaining efficiency. With these advantages, PolyFormer offers a desirable balance between scalability and expressiveness for node-level tasks. Extensive experiments demonstrate that our proposed methods excel at learning arbitrary node-wise filters, showing superior performance on both homophilic and heterophilic graphs, and handling graphs containing up to 100 million nodes. The code is available at https://github.com/air029/PolyFormer.

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

↑