Research projects · 2021 – today

Network structure & machine learning

Machine learning and interpretable representations to compare, summarize and model complex and temporal networks.

k = 1k = 2GNN layersnode embeddings

Real-world networks — and in particular temporal networks, where interactions are time-stamped — are high-dimensional objects that are hard to compare, summarize and model. In this project we use machine learning and statistical modelling to find compact representations that preserve their relevant structure:

  • an embedding-based distance between temporal graphs, well defined for graphs of different sizes and time spans (Nature Communications, 2024), released as the Python package G-DynaDist;
  • efficient distributed representations that approximate the softmax normalization in linear time (TMLR, 2025), released as EDRep;
  • an epidemic-aware dissimilarity between temporal graphs that compares them by how spreading processes unfold on them, designed to be used in machine-learning pipelines (arXiv, 2026);
  • models of memory in time-respecting paths on temporal networks (EPJ Data Science, 2026);
  • community detection in time-evolving graphs with a dynamical Bethe-Hessian (NeurIPS, 2020).

Software & data

G-DynaDist

A distance between temporal graphs

Compute the distance between pairs of temporal graphs — matched or unmatched, of different sizes and time spans — using embeddings based on time-respecting random walks. Installable with pip.

Python GitHub stars

EDRep

Efficient Distributed Representations

Learn embeddings by optimizing the cross-entropy with a softmax whose normalization constants are estimated in linear time. Interpretable and easy to adapt to arbitrary embedding problems.

Python GitHub stars

Publications 5

arXiv arXiv preprint 2026

A temporal graph dissimilarity measure capturing epidemic spreading behavior

Salvatore Freni, L. Dall'Amico, Francesca Pistilli, Alain Barrat, Tatiana Tommasi, Ciro Cattuto

Comparing temporal networks is a challenging problem in network analysis. Commonly adopted methods compare structural properties of temporal graphs and can be highly sensitive to the pre-selected features. However, temporal networks are the support of dynamical processes, and a process may take place in statistically indistinguishable ways on structurally different temporal graphs. In particular, a dissimilarity measure that compares temporal graphs based on how spreading processes unfold on them is highly desirable. In this work, we first define the Time-Shift DTW, a dissimilarity between epidemic curves that accounts for both differences in their shape and temporal shifts. We then introduce Epidemic-Aware Temporal Graph Dissimilarity (EATGD), a deterministic and differentiable dissimilarity between temporal graphs that combines an embedding-based temporal graph distance with a set of topological and temporal features. Its parameters are calibrated using stochastic SIR simulations to maximize the correlation with the Time-Shift DTW, after which graph comparisons require no further epidemic simulations. Using empirical human proximity networks from the SocioPatterns collaboration and synthetic temporal graphs, we show that EATGD captures epidemic-based graph dissimilarity and generalizes across heterogeneous network settings. Its differentiability and computational efficiency make EATGD suitable for integration into machine-learning pipelines and provide a potential loss function for training generative models to reproduce epidemic dynamics without requiring an exact reconstruction of fine-grained network structure.
EPJ Data Sci. EPJ Data Science 2026

Modeling memory in time-respecting paths on temporal networks

Silvia Guerrini, Ciro Cattuto, L. Dall'Amico

Human close-range proximity interactions are the key determinant for spreading processes like knowledge diffusion, norm adoption, and infectious disease transmission. These dynamical processes can be modeled with time-respecting paths on temporal networks. Here, we propose a framework to quantify memory in time-respecting paths and evaluate it on several empirical datasets encoding proximity between humans collected in different settings. Our results show strong memory effects, robust across settings, model parameters, and statistically significant when compared to memoryless null models. We further propose a generative model to create synthetic temporal graphs with memory and use it to show that memory in time-respecting paths decreases the diffusion speed, affecting the dynamics of spreading processes on temporal networks.
TMLR Transactions on Machine Learning Research 2025

Learning distributed representations with efficient SoftMax normalization

L. Dall'Amico, Enrico Maria Belliardo

Learning distributed representations, or embeddings, that encode the relational similarity patterns among objects is a relevant task in machine learning. A popular method to learn the embedding matrices $X$, $Y$ is optimizing a loss function of the term ${\rm SoftMax}(XY^T)$. The complexity required to calculate this term, however, runs quadratically with the problem size, making it a computationally heavy solution. In this article, we propose a lineartime heuristic approximation to compute the normalization constants of ${\rm SoftMax}(XY^T)$ for embedding vectors with bounded norms. We show on some pre-trained embedding datasets that the proposed estimation method achieves higher or comparable accuracy with competing methods. From this result, we design an efficient and task-agnostic algorithm that learns the embeddings by optimizing the cross entropy between the softmax and a set of probability distributions given as inputs. The proposed algorithm is interpretable and easily adapted to arbitrary embedding problems. We consider a few use cases and observe similar or higher performances and a lower computational time than similar “2Vec” algorithms.
Nat. Commun. Nature Communications 2024

An embedding-based distance for temporal graphs

L. Dall'Amico, Alain Barrat, Ciro Cattuto

Temporal graphs are commonly used to represent time-resolved relations between entities in many natural and artificial systems. Many techniques were devised to investigate the evolution of temporal graphs by comparing their state at different time points. However, quantifying the similarity between temporal graphs as a whole is an open problem. Here, we use embeddings based on time-respecting random walks to introduce a new notion of distance between temporal graphs. This distance is well-defined for pairs of temporal graphs with different numbers of nodes and different time spans. We study the case of a matched pair of graphs, when a known relation exists between their nodes, and the case of unmatched graphs, when such a relation is unavailable and the graphs may be of different sizes. We use empirical and synthetic temporal network data to show that the distance we introduce discriminates graphs with different topological and temporal properties. We provide an efficient implementation of the distance computation suitable for large-scale temporal graphs.
NeurIPS Advances in Neural Information Processing Systems 33 (NeurIPS 2020) 2020

Community detection in sparse time-evolving graphs with a dynamical Bethe-Hessian

L. Dall'Amico, Romain Couillet, Nicolas Tremblay

This article considers the problem of community detection in sparse dynamical graphs in which the community structure evolves over time. A fast spectral algorithm based on an extension of the Bethe- Hessian matrix is proposed, which benefits from the positive correlation in the class labels and in their temporal evolution and is designed to be applicable to any dynamical graph with a community structure. Under the dynamical degree-corrected stochastic block model, in the case of two classes of equal size, we demonstrate and support with extensive simulations that our proposed algorithm is capable of making non-trivial community reconstruction as soon as theoretically possible, thereby reaching the optimal detectability threshold and provably outperforming competing spectral methods

People in this project

CCCiro Cattuto3ABAlain Barrat2EBEnrico Maria BelliardoFPFrancesca PistilliNTNicolas TremblayRCRomain CouilletSFSalvatore FreniSGSilvia GuerriniTTTatiana Tommasi