arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.03148cs.LG
收藏

用 Weisfeiler-Leman 对齐 Transformers

Aligning Transformers with Weisfeiler-Leman

RWTH Aachen University(亚琛工业大学)

Luis Müller, Christopher Morris

AI总结:

本文推进了 Transformer 与 $k$-WL 层次结构的对齐,为每个 $k$ 展示了更强的表达能力,开发了研究位置编码的理论框架,并在大规模数据集上验证了其竞争力的预测性能。

摘要:

与 $k$ 维 Weisfeiler-Leman($k$-WL)层次结构对齐的图神经网络架构提供了理论上充分理解的表达能力。然而,这些架构在现实世界图上往往无法提供最先进的预测性能,限制了其实用性。虽然最近将图 Transformer 架构与 $k$-WL 层次结构对齐的工作显示出有前景的实验结果,但由于自注意力机制的高昂运行时和内存复杂性,以及不切实际的架构假设(例如不可行的注意力头数量),将 Transformer 用于更高阶的 $k$ 仍然具有挑战性。在此,我们推进了 Transformer 与 $k$-WL 层次结构的对齐,为每个 $k$ 展示了更强的表达能力结果,使其在实践中更加可行。此外,我们开发了一个理论框架,允许研究已建立的位置编码,如 Laplacian PEs 和 SPE。我们在大规模 PCQM4Mv2 数据集上评估了我们的 Transformer,展示了与最先进技术相媲美的预测性能,并在小规模分子数据集上微调它们时表现出强大的下游性能。我们的代码可在 https://github.com/luis-mueller/wl-transformers 获取。

英文摘要:

Graph neural network architectures aligned with the $k$-dimensional Weisfeiler--Leman ($k$-WL) hierarchy offer theoretically well-understood expressive power. However, these architectures often fail to deliver state-of-the-art predictive performance on real-world graphs, limiting their practical utility. While recent works aligning graph transformer architectures with the $k$-WL hierarchy have shown promising empirical results, employing transformers for higher orders of $k$ remains challenging due to a prohibitive runtime and memory complexity of self-attention as well as impractical architectural assumptions, such as an infeasible number of attention heads. Here, we advance the alignment of transformers with the $k$-WL hierarchy, showing stronger expressivity results for each $k$, making them more feasible in practice. In addition, we develop a theoretical framework that allows the study of established positional encodings such as Laplacian PEs and SPE. We evaluate our transformers on the large-scale PCQM4Mv2 dataset, showing competitive predictive performance with the state-of-the-art and demonstrating strong downstream performance when fine-tuning them on small-scale molecular datasets. Our code is available at https://github.com/luis-mueller/wl-transformers.

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

↑