Provably expressive temporal graph networks

Amauri H. Souza, Diego Mesquita, Samuel Kaski, Vikas Garg

Temporal Graph Networks (TGNs) are essential for modeling dynamic interactions, yet their theoretical foundations have historically lagged behind their static counterparts. This paper provides the first rigorous theoretical treatment of TGNs. By extending the classical Weisfeiler-Leman (WL) graph isomorphism test to the temporal domain, the authors uncover the fundamental limits of current models and introduce PINT, a new architecture that is provably more expressive and sets new performance benchmarks.

Overview

The authors establish a theoretical foundation for temporal graph networks, proving that the two dominant classes of models—message-passing and walk-aggregating—are fundamentally limited and incomparable. To overcome these limitations, they introduce PINT, a novel architecture that uses injective updates and relative positional features to surpass existing constraints, outperforming current models on major real-world benchmarks.

The Challenge with Temporal Graph Networks

While Graph Neural Networks (GNNs) for static graphs are well-understood through the lens of the Weisfeiler-Leman (WL) test, TGNs—which handle graphs that evolve over time—have lacked similar theoretical underpinnings.

Researchers have generally split TGNs into two camps:

  1. MP-TGNs (Message-Passing): These use local neighborhood aggregation and recurrent memory (e.g., TGAT, TGN-Att).
  2. WA-TGNs (Walk-Aggregating): These extract features from temporal walks (e.g., CAW).

Until now, it was unclear which approach was superior, how they related to the WL test, or if they were capable of capturing complex graph properties like cycles or diameter.

Key Insights and Theoretical Foundations

The authors approach the problem through several key technical contributions, fundamentally altering how we understand TGN expressivity.

Venn diagram and overview of theoretical results showing PINT's superior expressivity over existing TGNs.
  • The "Incomparability" Result: The authors prove that MP-TGNs and WA-TGNs are incomparable. There are certain graph structures one can distinguish that the other cannot, suggesting neither is strictly "better"—they are just fundamentally different.
  • The Memory Paradox: In shallow networks, recurrent memory is vital because it provides a "global" summary. However, the authors prove that in sufficiently deep networks, memory becomes redundant because the receptive field is already wide enough to capture the necessary information.
  • Injectivity is Essential: To reach the power of the temporal WL test, a TGN must use injective aggregation and update functions. Most existing models (like TGAT) use mean-pooling or attention, which are not injective and thus lose information.

Introducing PINT

To bridge these theoretical gaps, the authors propose PINT (Position-encoding Injective temporal graph NeT), an architecture built on two pillars:

  1. Injective Temporal Aggregation: PINT uses a specific aggregation scheme with exponential time decay to ensure that different neighborhoods result in unique embeddings.
  2. Relative Positional Features: PINT introduces a novel way to count temporal walks of various lengths between nodes. This allows the model to "see" structural relationships that standard message passing misses.

By combining injective message passing with relative positional features, PINT is provably more expressive than both standard MP-TGNs and WA-TGNs.

Real-World Performance

The models were evaluated on six popular real-world dynamic link prediction benchmarks, split into attributed networks (Reddit, Wikipedia, Twitter) and unattributed networks (UCI, Enron, LastFM).

  • Performance: PINT achieved the highest Average Precision (AP) on 5 out of 6 datasets in the transductive setting.
  • Structural Power: On unattributed datasets (like UCI), where structural expressivity is paramount, PINT outperformed the previous best MP-TGN by a massive margin (e.g., 96.01% vs 80.40% AP on UCI).
  • Efficiency: Despite its complexity, PINT is significantly faster to train than walk-based models like CAW because its positional features can be pre-computed or updated incrementally.

Limitations and Future Work

While PINT represents a major step forward, it is not without limitations:

Examples of pairwise isomorphic temporal trees that PINT cannot distinguish, highlighting fundamental limits.
  • Fundamental WL Limits: Like 1-WL GNNs, PINT still cannot recognize certain global graph properties such as the exact girth (length of the shortest cycle) or diameter.
  • Monotonicity: The positional features grow over time as more interactions occur. While the authors used $L_1$-normalization to mitigate this, a more sophisticated time-dependent normalization could improve long-term generalization.
  • Failure Cases: The authors identify specific "pairwise isomorphic" temporal trees (shown above) that PINT still cannot distinguish, pointing the way toward even higher-order temporal GNNs in future research.

Summary updated

BibTeX
@inproceedings{souza2022provably,
  author = {Amauri H. Souza and Diego Mesquita and Samuel Kaski and Vikas Garg},
  title = {{Provably expressive temporal graph networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=_cc62Pi37uE},
}
Figure