All models

OpenHGNN-NARS

Node classifier for heterogeneous graphs trained on features averaged over sampled relation subgraphs.

Graphs and geometry · 34 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 (43 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
402K
Operations
34
Framework
PyTorch
Recurrent
No
Published
2020
Cited by
81 (as of 27 November 2026)
Authors
Lingfan Yu, Jiajun Shen, Jinyang Li, Adam Lerer
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
m2023
Graph hash
3131b38009c473bd253ba0fc81a4956a61d0c12adc4abbd5772d8a7b3bb57554
Skeleton hash
9d095ca915f918771999e1f21a2c57fb5ce69f040e261c3810a3936f6e946bf0
Architecture hash
0969461e98a42819268c2419d1601ee35dd7c8b96dd1559b11fe9f3f099a7eb3
Diagram SHA-256
4bc52986893b2cfcefbaa08e6f8619a0d313c406c6453bd3d56df4b73619d50f
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

NARS, short for Neighbor Averaging over Relation Subgraphs, is a method for node classification on heterogeneous graphs, built on scalable neighbor averaging. It generalizes the simpler SIGN model to heterogeneous graphs.

The method repeatedly samples subsets of the relation types and builds subgraphs made only of edges of those types, which the paper calls relation subgraphs. Features are averaged over neighbors on each relation subgraph and then aggregated with a learned 1-D convolution. An MLP is trained on the resulting features, as in SIGN. The convolution reduces the number of input parameters to that classifier.

For node types that come without input features, the authors found it helpful to start from relational graph embeddings trained on the heterogeneous graph. The paper names one downside, the large amount of memory needed to store node features for many random subgraphs. It reports accuracy above that of the GNN methods it compares with for heterogeneous graphs on tasks in three benchmark datasets.

Key idea. NARS trains a classifier on neighbor-averaged features computed for randomly sampled subgraphs of the relations in a heterogeneous graph.

  • nars
  • neighbor averaging over relation subgraphs
  • openhgnn nars
  • heterogeneous graph
  • node classification
  • scalable graph neural network
  • relation subgraphs
  • neighbor averaging

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

Cite the paper

@misc{yu2020scalablegraphneuralnetworks,
      title={Scalable Graph Neural Networks for Heterogeneous Graphs}, 
      author={Lingfan Yu and Jiajun Shen and Jinyang Li and Adam Lerer},
      year={2020},
      eprint={2011.09679},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2011.09679}, 
}