Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Graph Transformer Architecture. Source code for "A Generalization of Transformer Networks to Graphs", DLG-AAAI'21.
| Date | Stars |
|---|---|
| 2026-07-24 | 1028 |
| 2026-07-25 | 1028 |
| 2026-07-28 | 1028 |
| 2026-07-30 | 1028 |
| 2026-08-07 | 1029 |
| 2026-08-21 | 1028 |
| 2026-08-28 | 1028 |
| 2026-08-29 | 1029 |
| 2026-08-30 | 1030 |
| 2026-09-20 | 1030 |
Today
— stars today
This week
— stars this week
This month
+2 stars this month
Momentum
0.0
growth rate 0.00%/day
# Graph Transformer Architecture
Source code for the paper "**[A Generalization of Transformer Networks to Graphs](https://arxiv.org/abs/2012.09699)**" by _[Vijay Prakash Dwivedi](https://github.com/vijaydwivedi75) and [Xavier Bresson](https://github.com/xbresson)_, at **AAAI'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**. <br>Compared to the [Standard Transformer](https://papers.nips.cc/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf), 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).
<br>
<p align="center">
<img src="./docs/graph_transformer.png" alt="Graph Transformer Architecture" width="800">
<br>
<b>Figure</b>: Block Diagram of Graph Transformer Architecture
</p>
## 1. Repo installation
This project is based on the [benchmarking-gnns](https://github.com/graphdeeplearning/benchmarking-gnns) repository.
[Follow these instructions](./docs/01_benchmark_installation.md) to install the benchmark and setup the environment.
<br>
## 2. Download datasets
[Proceed as follows](./docs/02_download_datasets.md) to download the datasets used to evaluate Graph Transformer.
<br>
## 3. Reproducibility
[Use this page](./docs/03_run_codes.md) to run the codes and reproduce the published results.
<br>
## 4. Reference
:page_with_curl: Paper [on arXiv](https://arxiv.org/abs/2012.09699)
:pencil: Blog [on Towards Data Science](https://towardsdatascience.com/graph-transformer-generalization-of-transformers-to-graphs-ead2448cff8b)
:movie_camera: Video [on YouTube](https://www.youtube.com/watch?v=h-_HNeBmaaU&t=237s)
```
@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}
}
```
<br><br><br>
Excerpt of 2,540 characters
Read on GitHub12
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:6b82cbcc3bc004a1, topic:transformer, desc:transformer architecture, readme:transformer architecture