
DynG-TGAT
Graphs and geometry472 ops59.9M params
Graph attention over time-stamped neighbours, with a learned time encoding, for evolving graphs.
Graphs and geometry · 472 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.
This is the DyGLib re-implementation of TGAT, one of eight continuous-time dynamic graph methods the library includes.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}