Skip to content

feat: Add GMMConv support for HeteroGraphConv - #657

Merged
CarloLucibello merged 6 commits into
JuliaGraphs:masterfrom
i-Amogh:AKS/GMMConv
Nov 29, 2026
Merged

CarloLucibello merged 6 commits into
JuliaGraphs:masterfrom
i-Amogh:AKS/GMMConv

Conversation

@i-Amogh

@i-Amogh i-Amogh commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

Adds GMMConv support for HeteroGraphConv (part of #311).

  • GMMConv accepts a tuple (xj, xi) of source and target node features; the residual is added to the target features.
  • The edge pseudo-coordinates e default to the graph's edge features (l(g, x), also in GNNLux), so HeteroGraphConv reads each relation's edata through edge_features. Without edge features an ArgumentError is thrown.
  • Fix show for a GMMConv with a non-identity activation, and correct the docstring formula (σ, bias, optional residual).
  • Tests compare heterograph outputs against a hand-written MoNet forward pass.

🧔‍♂️🤖 Assisted by Claude Opus 5.5

Amogh and others added 6 commits November 29, 2026 13:37
Use check_num_nodes/check_num_edges, which handle both GNNGraph and
single-relation heterographs, and throw an ArgumentError when no edge
pseudo-coordinates are available. Revert whitespace-only edits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the activation and bias to the GMMConv formula, document the
`(xj, xi)` input and the edge-feature default, tick the Heterograph
column for GMMConv, and fix `show` erroring for a non-identity activation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Compare HeteroGraphConv with GMMConv layers to a hand-written MoNet
forward pass, with a residual on target features of a different size,
check the input gradient and the error without edge features. In GNNLux,
compare a bipartite subgraph to the homogeneous graph on the union of nodes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GMMConv reads heterograph edge features through the new
edge_features(::GNNHeteroGraph).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CarloLucibello
CarloLucibello merged commit 9cda3cf into JuliaGraphs:master Nov 29, 2026
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants