
DNAConv
Graphs and geometry82 ops3.5K params
A graph layer where each node attends over its neighbors' earlier embeddings to set its own receptive field.
Graphs and geometry · 348 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
DNAConv-net follows the paper's setup around the layer, projecting features, stacking DNA layers and performing the final prediction via a fully connected layer, so it outputs class scores.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}