Temporal Stochastic Block Model

Machine Learning
Introduced by
Xu, K. S. & Hero, A. O.; Matias, C. & Miele, V.
Year
2014–2017
Type
Generative probabilistic model
Family
Network science

What does it do?

The Temporal Stochastic Block Model (TSBM) extends the Stochastic Block Model to sequences of network snapshots, jointly inferring latent community memberships and how those memberships change over time.

In the Matias and Miele formulation, a static SBM describes the edges at each time step and independent Markov chains link each node's group across consecutive snapshots. Because the model is fitted by statistical inference, the number of groups can be chosen with a model selection criterion.

The intuition behind the method

Consider a network of researchers whose collaborations shift as new topics emerge. A static community-detection method either pools all time periods together or treats each snapshot independently, so it cannot show how groups form, merge, or dissolve. The TSBM treats community membership as a hidden state that evolves from one time step to the next. Edges are generated according to connection probabilities between blocks, and fitting the model estimates both the block structure and how nodes move between groups from one snapshot to the next. In the Matias and Miele model the within-group connectivity is stable over time and the memberships are what evolve.

History

The Stochastic Block Model for static networks was introduced by Holland, Laskey, and Leinhardt in 1983. Dynamic extensions followed: Xu and Hero (2014) proposed a dynamic stochastic blockmodel for time-evolving social networks, formulated as a state-space model. Matias and Miele (2017) developed a dynamic SBM with independent Markov chains for group membership, with inference based on variational expectation-maximisation and a model selection criterion for the number of groups.

When to use it

Use the TSBM when you have longitudinal network data observed at several discrete time points and want to detect communities whose membership may change over time. It suits questions about how nodes move between groups and where a generative, model-based account of the groups is wanted. With very few snapshots the transition structure is weakly identified, so interpret the results with caution. Avoid it when node sets change substantially across snapshots without a reliable matching of nodes, when communities are assumed fixed over time (a static SBM is then simpler), or when the network is so large that fitting becomes impractical.

Limitations and considerations

  • Assumes a fixed number of communities K across all time steps; an incorrect K gives a poor fit, and the model does not itself allow the number of communities to change.
  • Matias and Miele focus on groups with stable within-group connectivity, so the model is suited to membership change rather than to rapid changes in the connection pattern of a group.
  • Requires consistently labelled nodes across all snapshots; networks with node entry or exit need additional modelling.
  • Fitting depends on initialisation and can converge to local optima, so several starting points should be compared.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Provides a generative probabilistic model, so the fit supports statistical inference and comparison of candidate models, with the number of groups selected through a criterion.
  • Jointly models community structure and temporal change rather than treating each snapshot as an unrelated partition.
  • The Markov link between consecutive snapshots ties each node's membership to its previous state, so assignments are not re-estimated independently at every time step.
  • Handles binary edges as well as weighted edges in the Matias and Miele formulation, so it is not restricted to presence or absence of ties.

Applications

  • Clustering contact networks in which encounters between individuals are recorded over time, such as the high school contact data analysed by Matias and Miele.
  • Studying animal interaction networks in which group structure is observed across successive periods, as in the animal interaction applications of Matias and Miele.
  • Possible uses include tracking research communities in co-authorship networks, legislative co-voting groups across sessions, or online communities in longitudinal social media data; these are plausible settings rather than applications established in the cited sources.

How it works

How it works

1

The network is represented as an ordered sequence of adjacency matrices or edge lists, one per discrete time period. Each snapshot records which nodes are connected at that point in time. Nodes must be identified consistently across snapshots so that each node's membership can be followed over time.

2

A block connectivity matrix gives the probability that a node in one community connects to a node in another community. As in the static SBM, nodes in the same block share a connection profile. In the Matias and Miele model this connectivity is stable over time, so the edge probability at time t depends only on the groups of the two nodes at that time: P(A_ij^(t)=1) = pi_{z_i^(t) z_j^(t)}. Only the group memberships evolve. They also treat weighted edges with discrete or continuous values, not only binary edges. Time-varying connectivity belongs to other formulations, such as the state-space model of Xu and Hero.

Formula
P(A_{ij}^{(t)}=1) = \pi_{z_i^{(t)}, z_j^{(t)}}
3

In the Matias and Miele formulation, each node's group follows an independent Markov chain across time steps, with a transition matrix giving the probability of staying in or moving to another group between consecutive snapshots. Because each membership depends on the previous one, assignments are linked across time rather than estimated separately for each snapshot. Xu and Hero use a related but different state-space formulation for time-evolving networks.

4

Matias and Miele fit the model with a variational expectation-maximisation algorithm, and their paper stresses that the initialisation strategy plays an important role. Xu and Hero fit their state-space model with an extended Kalman filter augmented by a local search. In both cases the fitting procedure can depend on starting values, so the estimates should be checked for stability across initialisations.

5

After fitting, each node receives a community assignment, or a posterior membership probability, at every time step, which shows how nodes move between groups over time. Matias and Miele propose a model selection criterion for choosing the number of groups. For SBM-type models more generally, criteria such as the integrated classification likelihood (ICL) or the Bayesian information criterion (BIC) are common options, but check which criterion your implementation uses.

Common pitfalls

  • Selecting K by visual inspection of the network rather than by a model selection criterion.
  • Ignoring whether the Markov assumption, under which a node's next membership depends only on its current one, is appropriate for the process under study.
  • Treating soft membership probabilities as hard assignments without acknowledging the uncertainty they carry.
  • Failing to check that node identities are correctly matched across snapshots, which can silently distort the temporal signal.
  • Relying on a single fit when the estimates depend on the starting values, which Matias and Miele identify as an important part of the procedure.
  • Applying the TSBM to a single aggregated network when multiple snapshots are available, which discards the temporal information the model is designed to use.
  • Expecting the Matias and Miele model to capture groups whose connection pattern itself changes quickly over time.

Frequently asked questions

How is the Temporal SBM different from running a static SBM on each snapshot separately?

Running a static SBM on each snapshot independently gives partitions whose labels need not correspond across time and ignores the link between consecutive snapshots. The TSBM connects snapshots through a Markov model of membership, so the community trajectories are estimated jointly and are comparable across time.

How do I choose the number of communities K?

Fit the model over a range of K values and compare a model selection criterion across them. Matias and Miele propose their own criterion for the number of groups; ICL and BIC are common options for SBM-type models generally. Avoid choosing K from prior expectation or visual inspection alone.

What software implements the Temporal SBM?

Matias and Miele state that an implementation of their method is available as the R package dynsbm. Check the package documentation for the edge types and model options it supports before using it.

Does the TSBM require equally spaced time steps?

The formulation on this page indexes discrete snapshots and does not specify how unequal time intervals are handled. If your snapshots are unevenly spaced, confirm in the implementation you use how the transition model is defined before interpreting the results.

Can the TSBM handle weighted or directed edges?

Matias and Miele's model covers binary edges and weighted edges with discrete or continuous values. Directed-edge support is not established by the sources used here, so check the implementation for that case.

Related methods

Sources

  1. Matias, C. & Miele, V. (2017). Statistical clustering of temporal networks through a dynamic stochastic block model. Journal of the Royal Statistical Society: Series B, 79(4), 1119–1141.

    Open DOI reference
  2. Xu, K. S. & Hero, A. O. (2014). Dynamic stochastic blockmodels for time-evolving social networks. IEEE Journal of Selected Topics in Signal Processing, 8(4), 552–562.

    Open DOI reference