Track: Track1; Team name: PushparajD; Model: Generalized PageRank GNN#352
Open
Pdevadiga45 wants to merge 8 commits into
Open
Track: Track1; Team name: PushparajD; Model: Generalized PageRank GNN#352Pdevadiga45 wants to merge 8 commits into
Pdevadiga45 wants to merge 8 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
Description
Adds GPR-GNN (Generalized PageRank GNN) as a Track 1 graph backbone.
● Chien, Peng, Li, Milenkovic. Adaptive Universal Generalized PageRank Graph Neural Network, ICLR 2021 arXiv:2006.07988
● code: jianhao2016/GPRGNN.
GPR-GNN keeps feature learning and propagation separate. An MLP encodes the node features; a propagation step then takes a weighted sum over
Khops of the symmetric-normalised adjacency, with the per-hop weightsγ₀…γ_Klearned jointly with the rest of the model. Those weights are unconstrained in sign, so the effective filter can land anywhere from low-pass to high-pass. Which is why one architecture copes with both homophilic and heterophilic graphs, the axis GraphUniverse sweeps.Files in this PR
topobench/nn/backbones/graph/gprgnn.py: the propagation layerGPRProp(aMessagePassingmodule) and theGPRGNNmodel. PPR / NPPR / Random / SGC / WS initialisations are all supported, and the docstrings point back to the paper's equations.configs/model/graph/gprgnn.yaml: Hydra config built onGNNWrapper+NoReadOut; one config covers both the node task (community detection) and the graph task (triangle counting).test/nn/backbones/graph/test_gprgnn.py: 13 tests, 100% coverage of the backbone. As well as shapes and gradients, they pin down model invariants:K=0is the identity,SGCinit is a single-hop filter, the output is permutation-equivariant, and theγweights actually receive gradient. As an external reference check, PPR-initialised propagation is asserted to match PyG's official APPNP bit-for-bit (APPNP is exactly the PPR special case of GPR's weights), validating the normalisation, hop recursion, and aggregation against a trusted implementation.test/pipeline/test_pipeline.py: registersgraph/gprgnnfor the CI MUTAG integration test.2026_tdl_challenge/outputs/.../results.json: GraphUniverse grid outputAdaptations Made for TopoBench
log_softmax.forward(x, edge_index, edge_weight=None, **kwargs)swallows the extra argumentsGNNWrapperpasses, and the hidden width is kept equal to the encoder width so the wrapper's residual add is well-formed.MessagePassingsignature inspector unless the class resolves to its real module. GPR-GNN is the first message-passing backbone in the repo, so this only shows up now.Cost. Propagation is
Ksparse products on the normalised adjacency -O(K·E·d)time,O(N·d)memory. Plus the MLP, with onlyK+1extra scalars. At the benchmarked size (width 64,K=10,α=0.1, PPR init) the backbone is ~8.3K parameters.How
results.jsonwas producedThe shipped evaluation notebook can't run as-is. Its guard cell compares a stored hash (
f87b2cf…) against the hash of its own remaining cells (3c1d784…), they differ, and it raisesValueErrorbefore doing anything. Rather than touch the notebook orutils.py, I called the two functions it wraps,run_challenge_gridandsave_challenge_artifacts, which run the same grid and emit the same JSON.Issue
Submission to the TDL Challenge 2026, Track 1 (GNNs).
Additional context
Tested with the project environment (Python 3.11, torch 2.3.0).
ruff(lint + format),numpydocvalidation, and the 12 backbone unit tests (100% coverage) all pass locally; the MUTAG pipeline test passes.