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

图Transformer在理论与实践中的可泛化洞见

Generalizable Insights for Graph Transformers in Theory and Practice

Timo Stoll, Luis Müller, Christopher Morris

AI总结:

针对图Transformer(GTs)理论与实践间的差距,提出整合近年进展的广义距离Transformer(GDT),从理论分析其表示能力,通过大规模跨领域实验识别通用设计选择,提炼可泛化洞见。

摘要:

图Transformer(GTs)已展现出强大的实证性能,但当前架构在注意力机制、位置嵌入(PEs)和表达能力的使用上差异很大。现有表达能力结果通常与特定设计选择相关,且缺乏在大规模数据上的全面实证验证。这导致理论与实践之间存在差距,阻碍了超越特定应用领域的可泛化洞见的形成。在此,我们提出广义距离Transformer(GDT)——一种使用标准注意力的GT架构,整合了近年来GT的多项进展,并从注意力和PEs角度深入理解GDT的表示能力。通过广泛实验,我们识别出在各种应用、任务和模型规模下持续表现良好的设计选择,在无需微调的少样本迁移场景中展现出强大性能。我们的评估覆盖了超过800万个图,包含约2.7亿个标记,涉及图像目标检测、分子属性预测、代码摘要和分布外算法推理等不同领域。我们将理论和实践发现提炼为关于有效GT设计、训练和推理的若干可泛化洞见。

英文摘要:

Graph Transformers (GTs) have shown strong empirical performance, yet current architectures vary widely in their use of attention mechanisms, positional embeddings (PEs), and expressivity. Existing expressivity results are often tied to specific design choices and lack comprehensive empirical validation on large-scale data. This leaves a gap between theory and practice, preventing generalizable insights that exceed particular application domains. Here, we propose the Generalized-Distance Transformer (GDT), a GT architecture using standard attention that incorporates many advancements for GTs from recent years, and develop a fine-grained understanding of the GDT's representation power in terms of attention and PEs. Through extensive experiments, we identify design choices that consistently perform well across various applications, tasks, and model scales, demonstrating strong performance in a few-shot transfer setting without fine-tuning. Our evaluation covers over eight million graphs with roughly 270M tokens across diverse domains, including image-based object detection, molecular property prediction, code summarization, and out-of-distribution algorithmic reasoning. We distill our theoretical and practical findings into several generalizable insights about effective GT design, training, and inference.

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

↑