paper-with-me

홈 › Papers

Relational Attention: Generalizing Transformers for Graph-Structured Tasks

2022-10-11 · Cameron Diao, Ricky Loynd

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.

📄 PDF Abstract BibTeX arXiv:2210.05062

Code (1)

camerondiao/relational-transformer 공식 구현 jax

Tasks

Position

Similar Papers 제목 키워드 기반

Scaling Graph Transformers: A Comparative Study of Sparse and Dense Attention

2025-08-24 · Leon Dimitrov arxiv

Graphs have become a central representation in machine learning for capturing relational and structured data across various domains. Traditional graph neural networks often struggle to capture long-range dependencies bet…

Graph Mixer Networks

2023-01-29 · Ahmet Sarıgün

In recent years, the attention mechanism has demonstrated superior performance in various tasks, leading to the emergence of GAT and Graph Transformer models that utilize this mechanism to extract relational information …

Computational Efficiency

Global Relational Models of Source Code

2020-05-01 · ICLR 2020 1 · Vincent J. Hellendoorn, Charles Sutton, Rishabh Singh, Petros Maniatis 외

Models of code can learn distributed representations of a program's syntax and semantics to predict many non-trivial properties of a program. Recent state-of-the-art models leverage highly structured representations of p…

Inductive BiasProgram RepairVariable misuse

Graph-Aware Isomorphic Attention for Adaptive Dynamics in Transformers

2025-01-04 · Markus J. Buehler

We present an approach to modifying Transformer architectures by integrating graph-aware relational reasoning into the attention mechanism, merging concepts from graph neural networks and language modeling. Building on t…

Language ModelingLanguage ModellingRelational Reasoning

Relational Graph Transformer

2025-05-16 · Vijay Prakash Dwivedi, Sri Jaladi, Yangyi Shen, Federico López 외

Relational Deep Learning (RDL) is a promising approach for building state-of-the-art predictive models on multi-table relational data by representing it as a heterogeneous temporal graph. However, commonly used Graph Neu…

Graph Neural Network