NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Temporal Graph Kernels for Classifying Dissemination Processes

Lutz Oettershagen, Nils M. Kriege, Christopher Morris, Petra Mutzel · DOI

Abstract

Many real-world graphs or networks are temporal, e.g., in a social network persons only interact at specific points in time. This information directs dissemination processes on the network, such as the spread of rumors, fake news, or diseases. However, the current state-of-the-art methods for supervised graph classification are designed mainly for static graphs and may not be able to capture temporal information. Hence, they are not powerful enough to distinguish between graphs modeling different dissemination processes. To address this, we introduce a framework to lift standard graph kernels to the temporal domain. Specifically, we explore three different approaches and investigate the trade-offs between loss of temporal information and efficiency. Moreover, to handle large-scale graphs, we propose stochastic variants of our kernels with provable approximation guarantees. We evaluate our methods on a wide range of real-world social networks. Our methods beat static kernels by a large margin in terms of accuracy while still being scalable to large graphs and data sets. Hence, we confirm that taking temporal information into account is crucial for the successful classification of dissemination processes.

Introduction

Most state-of-the-art methods for graph classification are designed for static graphs, where edges represent fixed relationships. However, real-world networks—like social interactions or contact networks—are inherently temporal: edges exist only at specific points in time. In a dissemination process, such as an epidemic or the spread of information, the order of events is critical. For instance, if person A meets person B on Monday, and B meets person C on Tuesday, a virus can spread from A to C. If the meetings were reversed, that path would be impossible.

Static graph kernels ignore these temporal constraints, effectively allowing "time travel" in their calculations. This makes them fundamentally ill-equipped to distinguish between different spreading processes. This paper introduces a framework to lift traditional graph kernels into the temporal domain, ensuring that reachability respects the "arrow of time."

An example of an epidemic outbreak where the timing of contacts determines the spread.

Methodology

The proposed framework transforms a temporal graph into a static representation that can be processed by standard kernels like Random Walk (RW) or Weisfeiler-Lehman (WL). Three primary transformation techniques are introduced:

  1. Reduced Graph Representation (RG): A simplified approach that keeps only the earliest interaction between nodes and encodes temporal changes into node labels. While efficient, it loses significant information.
  2. Directed Line Graph Expansion (DL): This method represents each temporal edge as a pair of vertices in a new directed acyclic graph (DAG). Edges in this DAG represent valid "time-respecting" transitions. It perfectly preserves temporal flow but can result in a quadratic blowup in the number of edges ($O(|E|^2)$).
  3. Static Expansion (SE): This creates "time-vertices" $(v, t)$ for each node at each active time step. It results in a DAG of linear size ($O(|E|)$) that can explicitly model "waiting times" between interactions.

To handle massive graphs where the DL expansion might be too slow, the authors also propose a Stochastic Approximation (APPROX). This algorithm samples temporal walks directly from the original graph, providing provable guarantees on how closely it approximates the exact kernel.

Experimental Evaluation

The researchers evaluated their methods on six real-world temporal social networks: MIT, Highschool, Infectious, Tumblr, DBLP, and Facebook. These datasets capture various interactions, from student face-to-face contacts to co-authorship over time. They used the Susceptible-Infected (SI) model to simulate dissemination processes, creating classification tasks to distinguish SI-spread from random labeling and to differentiate between various infection probabilities.

Results and Discussion

The experimental results demonstrate that temporal kernels outperform static baselines by a significant margin. For example, on the MIT dataset, static kernels achieved approximately 61% accuracy, while the DL-RW kernel reached over 92%. The DL and SE transformations consistently provided the best results across almost all datasets, confirming that capturing the full temporal structure is vital for accurate classification.

Classification accuracy results showing temporal kernels significantly outperforming static ones.

Furthermore, the stochastic sampling method (APPROX) achieved performance very close to the exact algorithms while being orders of magnitude faster on large datasets. An important finding was the robustness of these temporal kernels to noise; they remain highly accurate even when data is incomplete, such as when many infected individuals are not reported—a common challenge in real-world epidemiology.

Conclusion

This work demonstrates that taking temporal information into account is crucial for the successful classification of dissemination processes. By converting temporal graphs into Directed Acyclic Graphs (DAGs), the kernels naturally respect the flow of time, avoiding the pitfalls of static representations. While the DL expansion is powerful, its potential quadratic growth is mitigated by the SE expansion and stochastic approximations. Future work may involve integrating these temporal structural insights into deep learning architectures, such as temporal graph neural networks, to further improve representation learning for dynamic processes.

Summary updated

BibTeX
@inproceedings{oettershagen2019temporal,
  author = {Lutz Oettershagen and Nils M. Kriege and Christopher Morris and Petra Mutzel},
  title = {{Temporal Graph Kernels for Classifying Dissemination Processes}},
  booktitle = {SDM},
  year = {2019},
  doi = {10.1137/1.9781611976236.56},
}
Figure