All models

DGL-DenseSAGEConv

A GraphSAGE layer, in dense form, that builds node embeddings by aggregating neighborhood features.

Graphs and geometry · 8 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (12 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
22
Operations
8
Framework
PyTorch
Recurrent
No
Published
NIPS 2017
Cited by
9,516 (as of 22 October 2026)
Authors
William L. Hamilton, Rex Ying, Jure Leskovec
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m509
Graph hash
f8a5e67c8919ddafceebd7fb7b0595a4b9ce5a1e4e03ba6b89e85d06ccbed8cf
Skeleton hash
d8e642027f12923bb3676c814608b00409f619c22f1b095149ee6b8d1efc5e79
Architecture hash
b6d562f9bb308ed614fd53ff20faf464fa48154bd6b2962874b1813acf458332
Diagram SHA-256
9ef65424e41d924e09ebad35b1296eaf927db5e73171dd84fb1a78c55a4157b9
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

DenseSAGEConv is a layer of GraphSAGE, a general, inductive framework that uses node feature information to generate embeddings for nodes it has not seen before. The paper's starting point is that most earlier approaches required every node of the graph to be present while the embeddings were trained, so they did not naturally generalize to unseen nodes.

Instead of training an individual embedding for each node, GraphSAGE as the paper describes it learns a function that generates embeddings by sampling and aggregating features from a node's local neighborhood. The paper reports that the algorithm outperformed strong baselines on three inductive node-classification benchmarks. Those benchmarks use citation and Reddit post data, plus a multi-graph dataset of protein-protein interactions to test generalization to completely unseen graphs. The authors' code notes add that GraphSage can be viewed as a stochastic generalization of graph convolutions.

Key idea. GraphSAGE learns a function that generates node embeddings by sampling and aggregating features from a node's local neighborhood, so it can embed previously unseen nodes.

  • DenseSAGEConv
  • Dense GraphSAGE
  • GraphSAGE
  • inductive representation learning
  • node embeddings
  • neighborhood aggregation
  • inductive node classification
  • unseen nodes

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{hamilton2018inductiverepresentationlearninglarge,
      title={Inductive Representation Learning on Large Graphs}, 
      author={William L. Hamilton and Rex Ying and Jure Leskovec},
      year={2018},
      eprint={1706.02216},
      archivePrefix={arXiv},
      primaryClass={cs.SI},
      url={https://arxiv.org/abs/1706.02216}, 
}