Neighbourhood matching creates realistic surrogate temporal networks

Antonio Longa, Giulia Cencetti, Sune Lehmann, Andrea Passerini, Bruno Lepri

Abstract

Temporal networks are essential for modeling and understanding systems whose behavior varies in time, from social interactions to biological systems. Often, however, real-world data are prohibitively expensive to collect in a large scale or unshareable due to privacy concerns. A promising way to bypass the problem consists in generating arbitrarily large and anonymized synthetic graphs with the properties of real-world networks, namely 'surrogate networks'. Until now, the generation of realistic surrogate temporal networks has remained an open problem, due to the difficulty of capturing both the temporal and topological properties of the input network, as well as their correlations, in a scalable model. Here, we propose a novel and simple method for generating surrogate temporal networks. Our method decomposes the input network into star-like structures evolving in time. Then those structures are used as building blocks to generate a surrogate temporal network. Our model vastly outperforms current methods across multiple examples of temporal networks in terms of both topological and dynamical similarity. We further show that beyond generating realistic interaction patterns, our method is able to capture intrinsic temporal periodicity of temporal networks, all with an execution time lower than competing methods by multiple orders of magnitude. The simplicity of our algorithm makes it easily interpretable, extendable and algorithmically scalable.

Introduction

Temporal networks—graphs where connections between nodes change over time—are vital for modeling everything from the spread of diseases to social interactions. However, high-quality real-world data is often scarce, expensive to collect, or restricted due to privacy concerns. To solve this, researchers use "surrogate networks": synthetic datasets that mimic the properties of the original.

The challenge is that existing models struggle to balance topological accuracy (who is connected to whom) and temporal accuracy (how those connections change over time). Furthermore, most current methods are computationally expensive because they rely on finding complex "motifs" (subgraph isomorphism), making them impossible to scale to large, fine-grained datasets.

Methods: The ETN-gen Algorithm

The authors introduce the Egocentric Temporal Neighborhood Generator (ETN-gen). Instead of looking at the whole graph or complex triads, it adopts an "egocentric" perspective.

Decomposition and Linearization

The algorithm breaks the network down into "stars"—an ego node and its immediate neighbors—and tracks how these stars evolve over a short temporal window ($k$). These egocentric neighborhoods are encoded as simple binary strings. This "linearization" is the core innovation; it bypasses the NP-hard subgraph isomorphism problem, making the algorithm incredibly fast and scalable.

Decomposition of temporal graph snapshots into egocentric temporal neighborhood (ETN) signatures.

Probabilistic Extension and Layer Validation

The model builds a local probability distribution based on these strings. It asks: "Given this neighborhood's history over the last $k$ steps, what is the likelihood of it extending in a specific way in the next step?"

The model generates a "provisional" next layer for every node. Since these are generated independently for each ego node, they must be reconciled. For instance, if node A wants to connect to B, but B doesn't "request" A, the link is validated with a specific probability. This process ensures that the resulting network maintains structural integrity while remaining probabilistic.

The process of generating a provisional layer and validating connections to form the final synthetic network.

Key Results

The model was evaluated against several high-resolution datasets, primarily from the SocioPatterns project, including hospital, workplace, and high school interactions.

  • Speed: ETN-gen is at least 15 times faster than the fastest state-of-the-art method (STM) and three orders of magnitude faster than the slowest (Dymond).
  • Dynamical Similarity: In simulations of Random Walks and SIR spreading models (epidemics), ETN-gen produced results significantly closer to the original data than competing models like TagGen or Dymond.
  • Periodicity: Unlike many other models, ETN-gen successfully captured the "heartbeat" of social systems—the daily and weekly cycles of activity (e.g., lunch breaks, weekends).
  • Structural Fidelity: It accurately reproduced the distribution of connected components and "S-metrics" (hub-like cores), though it struggled slightly more with aggregated global features.

Discussion and Limitations

The core insight of this research is that global information is not strictly necessary to recreate realistic global dynamics. By accurately capturing how individuals (egos) behave locally, the aggregate network naturally inherits complex properties like periodicity and hub structures. By ignoring connections between an ego's neighbors (second-order interactions), the authors turned a graph-matching problem into a string-matching problem.

However, there is a "price to pay" for this egocentric simplification. Because the model ignores links between an ego's neighbors, it is less effective at preserving clustering coefficients and degree correlations. Additionally, the model relies on a short temporal window ($k$), meaning it cannot inherently capture very long-term dependencies without manual input of periodicity. Future work will aim to explicitly model the formation of stable, long-term communities (mesoscale structures).

Summary updated

Abstract

Temporal networks are essential for modeling and understanding systems whose behavior varies in time, from social interactions to biological systems. Often, however, real-world data are prohibitively expensive to collect in a large scale or unshareable due to privacy concerns. A promising way to bypass the problem consists in generating arbitrarily large and anonymized synthetic graphs with the properties of real-world networks, namely `surrogate networks'. Until now, the generation of realistic surrogate temporal networks has remained an open problem, due to the difficulty of capturing both the temporal and topological properties of the input network, as well as their correlations, in a scalable model. Here, we propose a novel and simple method for generating surrogate temporal networks. Our method decomposes the input network into star-like structures evolving in time. Then those structures are used as building blocks to generate a surrogate temporal network. Our model vastly outperforms current methods across multiple examples of temporal networks in terms of both topological and dynamical similarity. We further show that beyond generating realistic interaction patterns, our method is able to capture intrinsic temporal periodicity of temporal networks, all with an execution time lower than competing methods by multiple orders of magnitude. The simplicity of our algorithm makes it easily interpretable, extendable and algorithmically scalable.
BibTeX
@inproceedings{longa2022neighbourhood,
  author = {Antonio Longa and Giulia Cencetti and Sune Lehmann and Andrea Passerini and Bruno Lepri},
  title = {{Neighbourhood matching creates realistic surrogate temporal networks}},
  booktitle = {Communications},
  year = {2022},
}
Figure