All models

DNAConv

A graph layer where each node attends over its neighbors' earlier embeddings to set its own receptive field.

Graphs and geometry · 82 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 (38 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

Family
DNA
Parameters
3.5K
Operations
82
Framework
PyTorch
Recurrent
No
Published
ICLR 2019 Workshop on Representation Learning on Graphs and Manifolds
Cited by
26 (as of 19 October 2026)
Authors
Matthias Fey
License
MIT
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
m559
Graph hash
cb69db08161667648a4950f2aae7effef35dcee45f9ba23808198cfb2428f103
Skeleton hash
e3c364ff8732bfe64452aab56da10890dff1538d1068301b6a460e84a9412812
Architecture hash
31f9d45ffc94f50da04d06d2903fd616c39a96cc8d16eacd4af3e5a9974b3564
Diagram SHA-256
2e0e2cdb29cffab35a189ae57fcb61489471ce9f4e320f88e5fa815456dfff41
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

About this model's family

Dynamic neighborhood aggregation, DNA, is a graph neural network layer in which a node aggregates not just its neighbors' current embeddings but their earlier ones too, choosing per node how local or global its view should be. The motivation is the familiar failure of deep GNNs: stacking layers usually lowers accuracy even though deeper stacks can see more of the graph. Jumping Knowledge networks address this by jumping back to earlier representations after the fact; DNA lets the jump happen inside the aggregation itself.

Concretely, a node's new embedding is computed by attending over all previous embeddings of each neighbor, with the node's current state as the query. Because the attention needs matching dimensions, the feature width must stay equal across all layers. An additional fixed parameter in the attention softmax lets the model refuse to aggregate individual neighbors, preserving fine-grained detail. Grouped linear projections with g groups cut the parameter count from d squared to d squared over g and act as a regularizer on the attention heads.

The evaluation covers eight transductive benchmarks: citation graphs, co-authorship graphs and Amazon co-purchase graphs. The paper reports that DNA beats plain stacking of GNN layers and exceeds Jumping Knowledge in most cases. Grouping gave accuracy gains of up to 3 percentage points for both GAT and DNA. The code and its evaluation examples are integrated into the PyTorch Geometric library.

Key idea. DNA lets each node attend over all previous embeddings of its neighbors during aggregation, with grouped projections as a regularizer, beating Jumping Knowledge stacks on node classification.

  • dna
  • dnaconv
  • dynamic neighborhood aggregation
  • just jump
  • graph attention
  • jumping knowledge
  • node classification
  • pytorch geometric

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

Cite the paper

@misc{fey2019justjumpdynamicneighborhood,
      title={Just Jump: Dynamic Neighborhood Aggregation in Graph Neural Networks}, 
      author={Matthias Fey},
      year={2019},
      eprint={1904.04849},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1904.04849}, 
}