DynG-CAWN
Temporal link predictor that encodes sampled causal anonymous walks with an RNN and pools them as a set.
Graphs and geometry · 235 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.
At a glance
- Task
- Graphs and geometry
- Parameters
- 4.4M
- Operations
- 235
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2021
- Cited by
- 95 (as of 29 October 2026)
- Authors
- Yanbang Wang, Yen-Yu Chang, Yunyu Liu and others
- Source
- GitHub: snap-stanford/CAW
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m806
- Graph hash
- 26f2421cef68f601dbbf69a0ccacb311e3b581ebdcded8579e8ec92ea80df426
- Skeleton hash
- 51ed98ff7919922244cf2b02b27041d371a4dcef4ed175f5164410fe7bdb5f15
- Architecture hash
- bf518a66513e90d826c775d18b53378584f7b92f6b47ecfbaa340a0445a1e4a8
- Diagram SHA-256
- ebb6256b8fd2938efb9e7603b8b8b44d175acc9f584e8eb79aa0733b02510fcf
- 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
This model is the reference PyTorch implementation, set to sample 64 length-2 CAWs for every node with alpha = 1e-5.
CAW-N is a neural-network model that encodes Causal Anonymous Walks (CAWs), the paper's way of representing a temporal network inductively. A temporal network treats interacting elements as nodes and their interactions as links labeled with when they happen.
A CAW starts from a link of interest and backtracks several adjacent links over time. Node identities on the walks are replaced with the hitting counts of the nodes over a set of sampled walks, which keeps the method inductive. To predict a link between two nodes, the model samples a few CAWs related to them, encodes the walks with RNNs and aggregates them by set-pooling. Time is encoded with random Fourier features. The paper tests two variants, CAW-N-mean and CAW-N-attn, which pool the walks by mean and by attention.
Evaluated on link prediction over 6 real temporal networks, CAW-N is reported to outperform previous methods in the inductive setting and in 4 out of the 6 networks in the transductive setting. A note on the paper dated 10/30/2022 says a bug in previous versions was fixed.
Key idea. The paper represents temporal networks with causal anonymous walks, whose node identities are replaced by hitting counts over sampled walks, and encodes them with the CAW-N network.
- CAWN
- CAW-N
- Causal Anonymous Walks
- CAW
- temporal network
- temporal graph
- dynamic graph
- link prediction
- inductive representation learning
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{yu2023betterdynamicgraphlearning,
title={Towards Better Dynamic Graph Learning: New Architecture and Unified Library},
author={Le Yu and Leilei Sun and Bowen Du and Weifeng Lv},
year={2023},
eprint={2303.13047},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2303.13047},
}