dgl icon indicating copy to clipboard operation
dgl copied to clipboard

Examples of Generative Model

Open nashid opened this issue 3 years ago • 13 comments

🚀 Feature

Support for Generative Models

Motivation

DGL is intuitive to use and there are some great examples. However, DGL lacks generative models.

I am wondering whether there are any plans to include any of the following models:

  • GraphRNN: https://github.com/JiaxuanYou/graph-generation

Also, DGL lacks examples of Graph2Seq based models. It would be awesome to consider any of the following Graph2Seq based generative models.

  • Graph-to-Sequence Learning using Gated Graph Neural Networks, ACL’18 https://github.com/beckdaniel/acl2018_graph2seq Using MXNet

  • Densely Connected Graph Convolutional Networks for Graph-to-Sequence Learning, ACL’19 https://github.com/Cartus/DCGCN Using MXNet 1.3.0

  • Gated Graph Sequence Neural Networks, Y. Li, D. Tarlow, M. Brockschmidt, and R. Zemel.

  • Heterogeneous Graph Transformer for Graph-to-Sequence Learning, ACL’18 https://github.com/QAQ-v/HetGT

Alternatives

I am considering the following GGNN implementation from OpenNMT.

OpenNMT GGNN https://opennmt.net/OpenNMT-py/examples/GGNN.html

Pitch

DGL is easy to use and mostly for predictive tasks. Supporting more generative models would clearly increase its adoption.

nashid avatar May 21 '21 01:05 nashid

@sneakerkg OpenNMT has a GGNN implementation. https://opennmt.net/OpenNMT-py/examples/GGNN.html

I think having a similar model with DGL would be a great starting point!

nashid avatar May 26 '21 23:05 nashid

Hi @nashid , thanks very much for proposing this and adding the paper links. DGL team indeed has the plan and we are arranging force to add graph generative models, but the ETA may not be in this month. We will keep you posted if we have updates on this.

sneakerkg avatar Jun 01 '21 09:06 sneakerkg

@nashid You are also very welcomed to contribute along this line. We are happy to discuss the details and provide help if needed.

jermainewang avatar Jun 01 '21 13:06 jermainewang

Hi @nashid, recently we've noticed a third-party library built upon DGL: https://github.com/graph4ai/graph4nlp . They have Graph2Seq implemented. Does that one include the models you want?

sneakerkg avatar Jun 25 '21 05:06 sneakerkg

@sneakerkg thanks for pointing out this library. I am currently exploring Graph4NLP. Graph4NLP is a great library, but in my first attempt, I do not find it a generic library like DGL and quite hard to incorporate a custom dataset into their Graph2Seq model.

nashid avatar Dec 08 '21 16:12 nashid

@sneakerkg wondering any further update?

nashid avatar Mar 12 '22 00:03 nashid

@sneakerkg so still no support for a generative model with DGL?

smith-co avatar Aug 04 '22 00:08 smith-co

I've put GraphRNN to the roadmap issue #3849 so we can properly track them. For the Graph2Seq series of work, they all seem to years ago. Are there any more recent ones? Also cc @rudongyu @QipengGuo to see if you have any suggestions.

jermainewang avatar Aug 04 '22 00:08 jermainewang

@rudongyu @QipengGuo @jermainewang when do you plan to have a generative model like Graph2Seq?

smith-co avatar Aug 04 '22 00:08 smith-co

@jermainewang @rudongyu @QipengGuo community has been waiting for this support for years, but there is no support yet for it from DGL 😢 😢 😢

Curious to know why is this case? Are GNNs not good enough for generative tasks?

code-rex1 avatar Aug 05 '22 21:08 code-rex1

Would be great to have an example of generative models like Graph2Seq like Graph2RNN, Graph2transformer, or GraphTransformer implementation. Wondering whether would it be added at some point?

ramsey-coding avatar Aug 06 '22 00:08 ramsey-coding

Hi everyone, for graph transformer related work, we are closely watching and will likely add some supports such as examples or modules. Please stay tuned. We will post a dedicated roadmap for that soon!

jermainewang avatar Aug 06 '22 03:08 jermainewang

Also, check out graph4nlp https://github.com/graph4ai/graph4nlp which contains many models like Graph2Seq.

jermainewang avatar Aug 08 '22 04:08 jermainewang