Skip to content
← Models
ClosedRex Ying et al. (Stanford SNAP)/10 trustVerified

DiffPool

Differentiable hierarchical pooling: learn soft cluster assignments to coarsen graphs end to end.

Visit official page →

About

Early GNNs were flat: they learned node embeddings and then collapsed them with a single global readout, throwing away the hierarchical structure that makes graphs interesting. DiffPool learns the hierarchy instead. At each layer a GNN predicts a soft assignment matrix mapping nodes to clusters; nodes are pooled into cluster embeddings and the coarsened graph becomes the input to the next layer. Two auxiliary losses keep the assignments sensible: a link-prediction loss encouraging nearby nodes to cluster together, and an entropy penalty pushing assignments toward crisp decisions. The whole thing is differentiable, so pooling is learned jointly with the classification objective rather than fixed upfront.\n\nThe NeurIPS 2018 paper reports that adding DiffPool to a Structure2Vec base lifts ENZYMES accuracy from 61.10 to 63.33 and D&D from 78.92 to 82.07, with average gains of 5-10% across graph-classification benchmarks and a new state of the art on four of five datasets. A practical bonus: GraphSAGE with DiffPool trained 12x faster than the same model with Set2Set pooling, because coarsening shrinks the graphs the convolutions operate on. DiffPool established hierarchical pooling as a first-class GNN component and inspired a long line of successors.

Specs

Context window

N/A - graph-structured model; no token context window

Pricing

Free (open-source research code)

Free quota

Unlimited (self-hosted)

API access

No hosted API; self-host the authors' open-source DiffPool implementation (RexYing/diffpool)

Weights

Closed — API only

Released

Not disclosed

Benchmarks

Paper-reported: S2V + 2 DiffPool layers reaches 63.33 on ENZYMES and 82.07 on D&D (vs 61.10/78.92 base); average 5-10% gains across benchmarks, new SOTA on 4 of 5 datasets (Ying et al., NeurIPS 2018).

Provider-reported unless a source says otherwise. Benchmarks are marketing-adjacent by nature — treat them as directional.

Use cases

graph-classificationhierarchical-representationmolecular-property-predictionresearch

Trust score — 8/10

/10 trustVerified

Scored 8/10 (verified tier, metrics-v1). Evidence: NeurIPS 2018 paper; gains reported across five graph-classification datasets with the base model held constant; the 12x speedup over Set2Set is a measured, not claimed, number. Strengths: made hierarchical pooling differentiable and end-to-end, with accuracy and speed gains together. Docked for: (1) no official pretrained checkpoints; (2) dense assignment matrices scale poorly to very large graphs, which is why sparser successors (SAGPool, TopK) followed. License: open-source code release; check the repo license before commercial use.

How the trust score is built

Full methodology →
Adoption · stars/downloads, log-scaled vs peers
8.0/10
Maintenance · recency, releases, issue load
5.0/10
Openness · license + docs
9.0/10
Manual review · sanity read + red-flag check
8.0/10
  • · NeurIPS 2018 paper
  • · New SOTA on 4 of 5 graph-classification datasets
  • · 12x faster than Set2Set pooling (measured)
  • · Dense assignment matrices limit very-large-graph use

Sources