MIT License

项目介绍

graphdeeplearning/graphtransformer 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 1.0k 个 Star、151 次 Fork。

仓库全名
graphdeeplearning/graphtransformer
开源许可证
MIT License
Star 数
1.0k
Fork 数
151
未关闭 Issue
9

README 摘要

Graph Transformer Architecture Source code for the paper "A Generalization of Transformer Networks to Graphs" by Vijay Prakash Dwivedi and Xavier Bresson, 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. Compared to the Standard Transformer, the highlights of the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

graphtransformer 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 1.0k 个 Star。

graphtransformer 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 graphtransformer 的源码?

可以直接克隆仓库:git clone https://github.com/graphdeeplearning/graphtransformer.git,默认分支为 main;安装与运行步骤见仓库 README。

graphtransformer 最近还在维护吗?

仓库最近一次更新为 2021年7月27日,当前有 9 个未关闭 Issue;Star 数为 1.0k,可作为社区活跃度的参考。

简要分析

热度分
1352
价值分
667
活跃状态
活跃

README

Graph Transformer Architecture

Source code for the paper “A Generalization of Transformer Networks to Graphs” by Vijay Prakash Dwivedi and Xavier Bresson, 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.
Compared to the Standard 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).

Graph Transformer Architecture
Figure: Block Diagram of Graph Transformer Architecture

1. Repo installation

This project is based on the benchmarking-gnns repository.

Follow these instructions to install the benchmark and setup the environment.


2. Download datasets

Proceed as follows to download the datasets used to evaluate Graph Transformer.


3. Reproducibility

Use this page to run the codes and reproduce the published results.


4. Reference

:page_with_curl: Paper on arXiv
:pencil: Blog on Towards Data Science
:movie_camera: Video on 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}
}




评论

暂无评论