Multilayer Stochastic Block Model

Machine Learning
Introduced by
Peixoto, T. P.; De Bacco, C. and colleagues
Year
2015-2017
Type
Generative probabilistic model
Family
Network science

What does it do?

The Multilayer Stochastic Block Model (ML-SBM) is a generative probabilistic model that extends the stochastic block model to networks with several layers, such as different relation types or time slices on a shared node set.

It infers one partition of nodes into blocks, together with a connection probability for each pair of blocks in each layer. The name is a descriptive label for layered stochastic block model inference, as developed in Peixoto (2015) and extended in De Bacco et al. (2017). The approach lets the analyst see whether community structure is shared across layers or varies from layer to layer.

The intuition behind the method

Imagine a group of people connected by friendship, collaboration, and online interaction, which form three separate but overlapping networks. The multilayer SBM asks whether a single latent partition of nodes into blocks best explains the edges across all three layers at once. Rather than analyzing each layer in isolation, it treats the layers as jointly informative: the block assignments are shared, while each layer has its own pattern of connections between blocks. Shared inference can help a sparser layer when it carries structure that also appears in denser layers, and it shows whether the same groups dominate every context or change from one layer to another. This benefit depends on the layers sharing enough structure; very sparse layers can still destabilize inference (see limitations).

History

The stochastic block model dates to Holland, Laskey, and Leinhardt (1983), as a generative model for social networks with latent group structure. Its extension to multilayer networks was developed by Peixoto (2015), who formulated an inference framework for layered, edge-valued, and time-varying networks using minimum description length. De Bacco, Power, Larremore, and Moore (2017) later combined community detection with link prediction and the modeling of layer interdependence.

When to use it

Use the multilayer SBM when you have two or more relation types, or time slices, on the same node set and want communities that are shared across those layers rather than found separately in each. It suits organizational, social, biological, or communication networks in which the same nodes play roles across relationship types. Avoid it when the layers are structurally unrelated, or when the node set differs substantially across layers. Do not use it for a single layer, where the standard SBM is sufficient. Very sparse individual layers can give unstable block assignments and need careful handling.

Limitations and considerations

  • Inference cost grows with the number of layers and nodes, which makes large multilayer networks computationally demanding.
  • Choosing the number of blocks K requires model-selection procedures, which add analytical work.
  • Assumes the same nodes appear in every layer; heterogeneous node sets require substantial model adaptation.
  • Highly sparse layers can dominate or destabilize inference if their contribution is not appropriately weighted or regularized.
  • The formula given on this page models binary edges. Edge-valued or weighted data need an emission model matched to the data, and this page does not specify one.
  • The formula assigns each node to a single block, whereas De Bacco et al. (2017) describe overlapping communities. The two are different models, and the choice affects how the results should be interpreted.

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

Strengths

  • Shares community assignments across layers, so the edges of every layer inform one partition instead of producing a separate partition for each layer.
  • Estimates a separate block-to-block connection matrix for each layer, showing which layers depart from the shared community structure.
  • Supports comparison of candidate models with different numbers of blocks through statistical evidence, as in Peixoto (2015).
  • Link prediction across layers and a principled layer-interdependence measure, defined by how much one layer helps predict links in another, are features of the overlapping-community model of De Bacco et al. (2017). The single-membership ML-SBM described on this page does not by itself provide these features.
  • Built on a probabilistic generative model, which allows formal reasoning about the fitted model and its parameters.

Applications

  • Detecting shared community structure across friendship, professional, and online communication networks.
  • Identifying functional modules in biological multiplex networks, such as protein interaction and gene co-expression layers.
  • Community-consistent link prediction to impute missing edges in incomplete multilayer datasets.
  • Longitudinal network analysis, treating time slices as layers to track how communities change.
  • Organizational network analysis in which collaboration, reporting, and advice-seeking form distinct layers.
  • Cross-platform social media analysis that combines interaction networks from several platforms.

How it works

How it works

1

The multilayer network is encoded as a set of adjacency matrices, one per layer. Each matrix records whether (or how strongly) each pair of nodes is connected through that particular relation type. Layers may differ in density and structural pattern but share the same set of nodes.

2

Each node is assigned to one of K latent blocks, and this assignment is a single label per node that applies across all layers. This shared labeling is the main extension over a single-layer SBM. The number of blocks K is either fixed in advance or chosen by model comparison, for example by description length or Bayesian model selection.

3

For each pair of blocks (r, s) and each layer l, a connection probability omega^(l)_{rs} is estimated. It gives the probability that a node in block r links to a node in block s within layer l. For binary edges, the displayed formula is the Bernoulli form of this model. Edges are treated as conditionally independent given the block labels and layer parameters, the standard assumption of SBM-type models. To read each layer's omega matrix, diagonal entries (r = s) give within-block connection probabilities, and large diagonal values relative to off-diagonal entries indicate assortative structure. Large off-diagonal values with small diagonal values indicate disassortative structure. De Bacco et al. (2017) note that their overlapping-community model allows such mixtures of assortative, disassortative, and directed structure. A layer whose matrix differs markedly from the others is organized differently from the shared pattern.

Formula
P(A^{(l)}_{ij}=1) = \omega^{(l)}_{r_i r_j}
4

Block assignments and layer-specific connection probabilities are inferred jointly. De Bacco et al. (2017) use an efficient expectation-maximization algorithm for this task. Peixoto (2015) uses a nonparametric Bayesian methodology to infer parameters from data and to select the most appropriate model according to statistical evidence. Under a Bayesian treatment, the output is a posterior distribution over possible partitions rather than a single point estimate.

5

Fit is relative rather than absolute. Candidate models, such as different numbers of blocks K or shared versus layer-specific partitions, are compared by description length or other statistical evidence (Peixoto, 2015), or by held-out link prediction performance (De Bacco et al., 2017). No universal threshold marks a good fit; the preferred model is the one with the strongest support among the models compared.

Common pitfalls

  • Fixing K arbitrarily without model selection, which can over- or under-partition the network and misrepresent its structure.
  • Treating all layers as equally informative when some contain far fewer edges, which can bias the shared block assignments.
  • Ignoring layer interdependence and interpreting each layer's community structure in isolation after a multilayer fit.
  • Conflating the multilayer SBM with descriptive multiplex analysis. The former is a generative inference framework, not a visualization or aggregation approach.
  • Applying the model to very small node sets, where the connection probabilities for each pair of blocks are estimated from few nodes and become unreliable.

Frequently asked questions

How does the multilayer SBM differ from running a separate SBM on each layer?

Analyzing layers separately produces a different partition for each layer and does not use the shared structure across them. The multilayer SBM infers one set of block assignments informed by all layers at once, and it estimates a separate connection pattern for each layer, so the layers can be compared on a common partition.

How do I choose the number of blocks K?

Common approaches include minimizing minimum description length, comparing Bayesian models with different K, or checking held-out link prediction accuracy. Avoid setting K arbitrarily; try a range of values and select the one with the best information-theoretic score or predictive performance.

Can the multilayer SBM handle weighted edges?

The formula on this page targets binary adjacency matrices. Peixoto (2015) addresses edge-valued networks, so weighted data can be analyzed, but the emission model must match the edge type. The appropriate choice is not specified on this page and should be checked against the cited work before use.

What software implements multilayer SBM?

This page does not name a verified implementation. Check the code and software provided with the cited papers, and confirm that it supports the model variant you need before relying on it.

Is the multilayer SBM the same as a multiplex network method?

Multiplex networks, which have the same nodes and multiple edge types, are a special case of the multilayer networks the multilayer SBM targets. The SBM is a generative inference model, however, and differs from descriptive multiplex methods that compute per-layer metrics without a probabilistic community model.

Related methods

Sources

  1. Peixoto, T. P. (2015). Inferring the mesoscale structure of layered, edge-valued, and time-varying networks. Physical Review E, 92(4), 042807.

    Open DOI reference
  2. De Bacco, C., Power, E. A., Larremore, D. B., & Moore, C. (2017). Community detection, link prediction, and layer interdependence in multilayer networks. Physical Review E, 95(4), 042317.

    Open DOI reference