dmlc / dgl

Python package built to ease deep learning on graph, on top of existing DL frameworks.
http://dgl.ai
Apache License 2.0
13.58k stars 3.02k forks source link

[Roadmap] DGL General Roadmap #3354

Closed jermainewang closed 1 year ago

jermainewang commented 3 years ago

To the entire DGL community,

It has been more than two years (actually 33 months) since I clicked the Make It Public button of the repo, at which time I was not expecting more than a small codebase for playing with some fancy new models called Graph Neural Networks. Throughout the years, it is amazing to see the project growing with the area of Graph Deep Learning (which accidentally shares the same set of first letters with DGL), extending its scope from single machine to distributed training, becoming backbones of other packages and foundations of exciting new researches. But what makes me more honored is the wonderful community and contributors. It is your advises, questions, feedback, issue reports and PRs that make this project thrived. As we are heading to the third year anniversary, it is time for us to think about the next stage for DGL that is the first stable release. Of course, there are still a tons of work to be done before that happens so we would like to share the plan with everyone so you guys can chime in your thoughts.

[03/16/22] Updated the list according to the new v0.8 release.

Documentation

DGL v1.0 will provide a full-fledged set of documentation including tutorials, user guide, API reference for users from beginner level to expert. The major focus will be a set of HeteroGNN tutorials for beginners and advanced documentation for in-depth DGL developers.

GNN models, modules, samplers and others

See the separate roadmap #3849 .

Sampling infrastructure

Besides adding more sampling algorithms, we plan to improve the sampling pipeline in terms of both system efficiency and customizability.

Core infrastructure

Distributed training infrastructure

Ecosystem

We want to see DGL being used by or using more and more amazing project in the ecosystem.

Compiler

See the separate roadmap #3850 .

DGL-Go

See the separate roadmap #3912 .

yzh119 commented 3 years ago

Some suggestions:

  1. Official support of half precision (user should find it in pip wheels, rather than compile the library by themselves).
  2. For PyTorch backends, we should have better compatibility.
    1. rewrite autograd in C++.
    2. make DGLGraph compatible with Torchscript.
    3. integration with torchscript and JIT.
    4. Use PyTorch's ffi system.
  3. Source code side, we'd better add type hinting (add pypy checks if possible) so that user have better auto completion experience.
  4. Expose spspmm interface to user in the form of sparse matrices instead of graphs.
BarclayII commented 3 years ago

A couple more suggestions regarding C++:

Regarding temporal graph support:

Regarding sampling:

fmello01 commented 3 years ago

Hi, very exciting to read all these points. Regarding Subgraph extraction: k-hop subgraph and [Subgraph sampling] SubgraphDataLoader interface proposal I would like to share how I did it for my pipeline. If anyone is interested in applications, this is a nice paper that explores that.

For edge prediction, I implemented my own k-hop subgraph sampling around node paira in a heterograph. Some features were important to me:

n_nodes: input int: How many nodes in the subgraph; min_node_per_type: input dict: quotas I would like to meet per node_type (my graph is very unbalanced. Without this, I risk not having some desired node_types in the subgraph); dist_from_center: output tuple: distances of each node from the center node pair

To do it, I did the following steps:

  1. Convert the graph to homogeneous;
  2. Remove the edge between the node pair (important especially to calculate dist_from_center);

Generate a subgraph for each center node;

  1. Get out_edges() to find neighbors (each iteration is a hop);
  2. If they were already visited, ignore them;
  3. Sample up to n_nodes, trying to meet the min_node_per_type, until n_nodes or k-hop is achieved;
  4. Merge both subgraphs

Then, I repeat this process in the new merged subgraph, but for each hop iteration, I save the distance from the center node. This is necessary because after the subgraphs are merged, the distances can change.

mufeili commented 3 years ago

Regarding the wishlist, it might be worth to have some examples/utils about heuristics and score functions for link prediction, e.g., common neighbor, resource allocation, etc.

DomInvivo commented 2 years ago

Thank you all for the awesome work on this repo!

Any idea about the release date of DGL v1.0?

otaviocx commented 2 years ago

Hi @jermainewang, thanks for sharing this! I'm currently doing my PhD and working with Dynamic Graphs. I would like to make myself available to help with the documentation related to that. I think these topics are related to my research and I may be helpful with them:

Please, let me know how can I contribute. Thanks in advance!

jermainewang commented 2 years ago

@otaviocx That's awesome! Let us sync on this matter.

ruisizhang123 commented 2 years ago

Hi @jermainewang, thanks for the awesome roadmap. I'm currently working distributed graph training and I think I can help with the following features:

Please let me know if I could help. :)

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale due to lack of activity. It will be closed if no further activity occurs. Thank you

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale due to lack of activity. It will be closed if no further activity occurs. Thank you

mfbalin commented 2 years ago

Can we have #4668 on the 1.0 release roadmap as well?

jermainewang commented 2 years ago

@mfbalin Sure. Let's move the discussion to the PR.

mufeili commented 2 years ago

@zyj-111 is interested in making a contribution for "[Blog] Spatial-temporal GNN models (e.g., for traffic network)", do we still plan to do that? @BarclayII @jermainewang @frozenbugs

jermainewang commented 2 years ago

Awesome. Let's follow this up on our slack.

Sids2k commented 1 year ago

Hi, What is the status of making DGLGraph compatible with Torchscript and the integration with JIT? I came across this thread and am not sure if this feature is available yet or not. (it was noted here) Thanks :)

jermainewang commented 1 year ago

Hi @Sids2k , it is currently work in progress. Our first goal is to make the recently released dgl.sparse package jittable. See the discussion in https://github.com/dmlc/dgl/issues/5275

jermainewang commented 1 year ago

Closed as 1.0 has been delivered. We will open a new thread for collecting feature requests and call for contributions.