pyg-team / pytorch_geometric

Graph Neural Network Library for PyTorch
https://pyg.org
MIT License
21.41k stars 3.67k forks source link

New Attention-based graph neural network #1832

Open vymao opened 4 years ago

vymao commented 4 years ago

🚀 Feature

This paper in ICLR describes a new attention mechanism for graph neural networks that builds off of the original multi-head attention for GATs. This mechanism is similar to part of the attention mechanism in Transformer networks that has shown great success. The authors incorporate edge information into query, key and value transformations to derive attention coefficients. Would be great if this could be in Pytorch Geometric.

rusty1s commented 4 years ago

Thanks, I will have a look. I also recently added a TransformerConv module which might be of interest to you, see here.