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

Transformers是高效的层次化化学图学习器

Transformers are efficient hierarchical chemical graph learners

The University of Chicago(芝加哥大学);Tsinghua University(清华大学)

Zihan Pengmei, Zimu Li, Chih-chan Tien, Risi Kondor, Aaron R. Dinner

AI总结:

针对图Transformer自注意力计算量随token数二次增长的问题,提出基于子图和消息传递的SubFormer,在分子性质预测任务上以极低计算成本达到前沿性能,还能缓解过平滑与过挤压问题。

摘要:

源自自然语言处理领域的Transformer正逐渐成为图表示学习的主流方法。当前的图Transformer通常将节点或边视为独立的token,这种方式会因自注意力复杂度随token数量呈二次增长,即便面对中等规模的图也会带来计算挑战。本文提出SubFormer——一种在子图上运行、通过消息传递机制聚合信息的图Transformer,该方法减少了token数量,同时增强了长程交互的学习能力。我们在化学结构分子性质预测基准上对SubFormer进行了验证,结果表明其性能与前沿图Transformer相当,但计算成本仅为后者的一小部分,在消费级显卡上的训练时间仅需数分钟。我们还结合化学结构对注意力权重进行了解释,发现SubFormer的过平滑现象有限,且能避免传统图神经网络中普遍存在的过挤压问题。

英文摘要:

Transformers, adapted from natural language processing, are emerging as a leading approach for graph representation learning. Contemporary graph transformers often treat nodes or edges as separate tokens. This approach leads to computational challenges for even moderately-sized graphs due to the quadratic scaling of self-attention complexity with token count. In this paper, we introduce SubFormer, a graph transformer that operates on subgraphs that aggregate information by a message-passing mechanism. This approach reduces the number of tokens and enhances learning long-range interactions. We demonstrate SubFormer on benchmarks for predicting molecular properties from chemical structures and show that it is competitive with state-of-the-art graph transformers at a fraction of the computational cost, with training times on the order of minutes on a consumer-grade graphics card. We interpret the attention weights in terms of chemical structures. We show that SubFormer exhibits limited over-smoothing and avoids over-squashing, which is prevalent in traditional graph neural networks.

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

↑