All models

TGAT

Graph attention over time-stamped neighbours, with a learned time encoding, for evolving graphs.

Graphs and geometry · 472 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 (7 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
TGAT
Parameters
59.9M
Operations
472
Framework
PyTorch
Recurrent
No
Published
ICLR 2020
Cited by
29 (as of 5 October 2026)
Authors
Da Xu, Chuanwei Ruan, Evren Korpeoglu and others
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
m14420
Graph hash
3f0a2c4527e77ed31efdd1692b0443622c31aada68b81d491d06656e9cd1340a
Skeleton hash
cf263d358eb2abccd9dd6c18d895e544b5e7c1eaa89cd68d02f0f098976735b2
Architecture hash
a1d9e14e3eef24ccd9ffff359e025e8d6c7d41ac9103493724a2bdb31ef79b6b
Diagram SHA-256
e69d83fb824ebd4bdec5b113c626e20bbeabd2952ef12174909517c4655dcc57
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

TGAT is a graph network for graphs that change over time, built so that a node's embedding is a function of time and can be computed for nodes the model has never seen. The setting matters because real dynamic networks keep adding nodes, and the embeddings must carry both the static node features and the evolving topology. The building block is the temporal graph attention layer, which aggregates a node's temporal and topological neighbourhood and learns how time and features interact.

The layer uses self-attention as its core and pairs it with a functional time encoding derived from Bochner's theorem in harmonic analysis. By way of that theorem, learning a kernel over time differences becomes learning a distribution over frequencies, and the resulting encoding slots into self-attention as a drop-in for positional encodings. As in GAT, masked self-attention is run over the neighbours of a node, restricted to interactions that happened before the query time. Stacking L layers aggregates over the L-hop neighbourhood, with every message direction kept in chronological order. Neighbourhood sampling can be uniform or weighted by inverse timespan so that recent interactions are picked more often.

Because masked self-attention parallelises, the authors argue TGAT is cheaper than RNN-based models, and inference is entirely inductive: a single forward pass gives a node's embedding at any timestamp. The model handles both node classification and link prediction and extends naturally to temporal edge features. It was evaluated on transductive and inductive tasks with two benchmark datasets and one industrial dataset, where it compared favourably to the baselines. The released code trains on the Reddit and Wikipedia interaction data and reuses the link-prediction network for the downstream node classification task.

Key idea. A temporal graph attention layer that combines self-attention with a functional time encoding from Bochner's theorem, giving inductive, time-aware node embeddings.

  • TGAT
  • temporal graph attention
  • Inductive Representation Learning on Temporal Graphs
  • functional time encoding
  • Bochner time encoding
  • dynamic graph
  • continuous-time graph
  • link prediction
  • node classification
  • DyGLib TGAT
  • DynG-TGAT

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

Cite the paper

@misc{xu2020inductiverepresentationlearningtemporal,
      title={Inductive Representation Learning on Temporal Graphs}, 
      author={Da Xu and Chuanwei Ruan and Evren Korpeoglu and Sushant Kumar and Kannan Achan},
      year={2020},
      eprint={2002.07962},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2002.07962}, 
}