arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.05062cs.LGcs.AI
收藏

关系注意力:为图结构任务泛化Transformers

Relational Attention: Generalizing Transformers for Graph-Structured Tasks

Rice University(莱斯大学);Microsoft Research(微软研究院)

Cameron Diao, Ricky Loynd

摘要:

Transformers在表示任务特定实体及其属性的实值向量集上灵活地操作,其中每个向量可以编码一个单词段标记及其在序列中的位置,或者编码一些根本不携带位置的信息段。但作为集合处理器,Transformers在对更一般的图结构数据进行推理时处于劣势,其中节点表示实体,边表示实体之间的关系。为了解决这个缺点,我们概括了Transformer的注意力,以考虑和更新每个Transformer层中的边缘向量。我们评估这种关系的Transformer上的一系列不同的图形结构的任务,包括大型和具有挑战性的CLRS数学推理基准。在那里,它大大优于最先进的图神经网络,专门设计用于对图结构数据进行推理。我们的分析表明,这些收益是由于关系注意力的内在能力,利用更大的表现力的图形集。

英文摘要:

Transformers flexibly operate over sets of real-valued vectors representing task-specific entities and their attributes, where each vector might encode one word-piece token and its position in a sequence, or some piece of information that carries no position at all. But as set processors, transformers are at a disadvantage in reasoning over more general graph-structured data where nodes represent entities and edges represent relations between entities. To address this shortcoming, we generalize transformer attention to consider and update edge vectors in each transformer layer. We evaluate this relational transformer on a diverse array of graph-structured tasks, including the large and challenging CLRS Algorithmic Reasoning Benchmark. There, it dramatically outperforms state-of-the-art graph neural networks expressly designed to reason over graph-structured data. Our analysis demonstrates that these gains are attributable to relational attention's inherent ability to leverage the greater expressivity of graphs over sets.

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

↑