- Notifications
You must be signed in to change notification settings - Fork146
Graph Transformer Architecture. Source code for "A Generalization of Transformer Networks to Graphs", DLG-AAAI'21.
License
graphdeeplearning/graphtransformer
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Source code for the paper "A Generalization of Transformer Networks to Graphs" byVijay Prakash Dwivedi andXavier Bresson, atAAAI'21 Workshop on Deep Learning on Graphs: Methods and Applications (DLG-AAAI'21).
We propose a generalization of transformer neural network architecture for arbitrary graphs:Graph Transformer.
Compared to theStandard Transformer, the highlights of the presented architecture are:
- The attention mechanism is a function of neighborhood connectivity for each node in the graph.
- The position encoding is represented by Laplacian eigenvectors, which naturally generalize the sinusoidal positional encodings often used in NLP.
- The layer normalization is replaced by a batch normalization layer.
- The architecture is extended to have edge representation, which can be critical to tasks with rich information on the edges, or pairwise interactions (such as bond types in molecules, or relationship type in KGs. etc).

Figure: Block Diagram of Graph Transformer Architecture
This project is based on thebenchmarking-gnns repository.
Follow these instructions to install the benchmark and setup the environment.
Proceed as follows to download the datasets used to evaluate Graph Transformer.
Use this page to run the codes and reproduce the published results.
📃 Paperon arXiv
📝 Blogon Towards Data Science
🎥 Videoon YouTube
@article{dwivedi2021generalization, title={A Generalization of Transformer Networks to Graphs}, author={Dwivedi, Vijay Prakash and Bresson, Xavier}, journal={AAAI Workshop on Deep Learning on Graphs: Methods and Applications}, year={2021}}About
Graph Transformer Architecture. Source code for "A Generalization of Transformer Networks to Graphs", DLG-AAAI'21.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Contributors2
Uh oh!
There was an error while loading.Please reload this page.