Bridging Graph Position Encodings for Transformers with Weighted Graph-Walking Automata

12/13/2022
by   Patrick Soga, et al.
0

A current goal in the graph neural network literature is to enable transformers to operate on graph-structured data, given their success on language and vision tasks. Since the transformer's original sinusoidal positional encodings (PEs) are not applicable to graphs, recent work has focused on developing graph PEs, rooted in spectral graph theory or various spatial features of a graph. In this work, we introduce a new graph PE, Graph Automaton PE (GAPE), based on weighted graph-walking automata (a novel extension of graph-walking automata). We compare the performance of GAPE with other PE schemes on both machine translation and graph-structured tasks, and we show that it generalizes several other PEs. An additional contribution of this study is a theoretical and controlled experimental comparison of many recent PEs in graph transformers, independent of the use of edge features.

READ FULL TEXT

page 6

page 7

page 11

research
10/11/2022

Relational Attention: Generalizing Transformers for Graph-Structured Tasks

Transformers flexibly operate over sets of real-valued vectors represent...
research
06/23/2022

Equiformer: Equivariant Graph Attention Transformer for 3D Atomistic Graphs

3D-related inductive biases like translational invariance and rotational...
research
08/22/2022

Deterministic Graph-Walking Program Mining

Owing to their versatility, graph structures admit representations of in...
research
02/08/2023

Attending to Graph Transformers

Recently, transformer architectures for graphs emerged as an alternative...
research
01/29/2023

Graph Mixer Networks

In recent years, the attention mechanism has demonstrated superior perfo...
research
01/02/2020

Representing Unordered Data Using Multiset Automata and Complex Numbers

Unordered, variable-sized inputs arise in many settings across multiple ...
research
10/19/2022

Transformers Learn Shortcuts to Automata

Algorithmic reasoning requires capabilities which are most naturally und...

Please sign up or login with your details

Forgot password? Click here to reset