All models

GrapNet

A network stored as an editable graph whose nodes own their own child links and weights.

115 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 (131 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
629
Operations
115
Framework
PyTorch
Recurrent
Yes
Published
2026
Cited by
0 (as of 15 November 2026)
Authors
Zirong Li
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
m11649
Graph hash
17470f26ef5f7ed497c41466a52d8437a27909e5f63c07d8417cbd08292c712d
Skeleton hash
4f17ffddcf49842a91c6a787286a8f4b3528b2dfba9ba933d6cbd3a4a37245a3
Architecture hash
47369197c60d317b316c5791c2440ca0781db7cef9f9c672135594ef1cb47175
Diagram SHA-256
4ac5d8028ce3c72fe701ec5613daccc9cc8aed7fa9392449ac3e607284cb34f2
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

GrapNet is a 2026 proposal from Zirong Li for a neural network whose graph is the architecture and executable program itself, not an input data graph. The motivation is programmability: editing a relation, freezing a subgraph, auditing a local function or changing the execution backend should be an operation on the neural program rather than ad-hoc parameter surgery. Each compute node owns its next-layer child references and a trainable allocation vector aligned with those references, so deleting a relation physically removes both the child reference and its allocation coordinate.

A forward pass is the paper's Algorithm 1, a child-owned transition: each current-layer node multiplies its input activation by its allocation vector, adds the resulting messages into its children, and the next layer's bias and activation are applied. Proposition 2 says the child-owned transition and a matrix built from the active relations compute the same pre-activation for every sample, which is how the paper shows that every feed-forward MLP is a GrapNet topology with fully connected child lists. Structural rules and execution policies live outside the node core, so the same graph can be grown, frozen, edited, grouped into family blocks, routed by attention over active relations, or lowered to dense snapshots after the topology stabilizes.

GrapNet composes with ordinary modules through a vector-valued parent interface: dense layers, CNN encoders, ResNet feature extractors, attention blocks and transformer representations can all feed one sensory GrapNode per coordinate. The evaluation is organized as a programmability stress suite rather than a new replay benchmark: in a matched ten-seed Split Fashion-MNIST study, a plastic GrapNet+ER head reaches 63.16 percent seen-class accuracy versus 51.08 percent for a parameter-larger dense MLP+ER. The paper's released equivalence audit copies PyTorch dense-layer weights into the allocation vectors and reports maximum absolute differences of at most 1.2e-7 across linear, ReLU and GELU MLP settings. On Split CIFAR-10 with a frozen ImageNet ResNet-18 encoder, the same substrate improves the online head over MLP-256 by 3.81 points.

Key idea. An editable neural graph substrate in which each node owns its child references and aligned allocation vector, so structural edits are first-class operations and the dense, sparse and compiled execution views stay faithful to one another.

  • grapnet
  • graph-as-network
  • programmable neural graph
  • dynamic architecture
  • neural graph substrate
  • child-owned graph
  • continual learning
  • zirong li

AI-written summary, checked automatically against its sources; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{li2026grapnetprogrammabledynamicarchitectureneural,
      title={GrapNet: A Programmable Dynamic-Architecture Neural Graph Substrate}, 
      author={Zirong Li},
      year={2026},
      eprint={2606.18923},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2606.18923}, 
}