Skip to content

Add Diffusion Graph Network#46

Draft
rickybalin wants to merge 44 commits into
mainfrom
dgn
Draft

Add Diffusion Graph Network#46
rickybalin wants to merge 44 commits into
mainfrom
dgn

Conversation

@rickybalin

@rickybalin rickybalin commented Jan 5, 2026

Copy link
Copy Markdown

Add diffusion modeling to nekRS-ML in order to generate velocity fields on target graphs/meshes. This work leverages the Dist-GNN model already present.

The diffusion model introduced enough differences to the GNN architecture and the training/inference scripts to warrant the creation of a new directory specific to this model in ./3rd_party/dist-dgn.

The PR also adds an example based on the 3D flow past an extruded cylinder in order to demonstrate the use of the model and validate it on a simple test case.

To Do:

  • Add batching with respect to the forward process step r
  • Fix bug calling inference routine
  • Enable learnable variance in the model (needed for the hybrid loss)
  • Add the Hybrid Loss for diffusion models (see the hybrid loss in the dgn4cfd project taken from this paper).
  • Investigate importance sampling for diffusion step
  • Investigate use of larger batch sizes (32 and above) and larger datasets
  • Investigate poor model convergence on ext_cyl case for early diffusion steps
  • Implement v and x0 predictions
  • Implement min-SNR weighting of the loss
  • Validate model on coarse mesh and single GPU
  • Add a parallel MSE loss consistent across part boundaries
  • Validate model on multiple GPU
  • Add transformer based model with element-wise attention
  • Expand transformer model as in Appendix A of this paper to add global attention

@rickybalin rickybalin self-assigned this Jan 5, 2026
@rickybalin rickybalin added the enhancement New feature or request label Jan 5, 2026
rickybalin and others added 18 commits March 10, 2026 17:24
Signed-off-by: Riccardo Balin <riccardo.balin@gmail.com>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Add element wise transformer to diffusion model

* Fix mesh for ext_cyl_dgn to not have periodicity
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants