Graph model selection by edge probability sequential inference

Louis Duvivier, Rémy Cazabet, Céline Robardet

Abstract: Graphs are widely used for describing systems made up of many interacting components and for understanding the structure of their interactions. Various statistical models exist, which describe this structure as the result of a combination of constraints and randomness. Model selection techniques need to automatically identify the best model, and the best set of parameters for a given graph. To do so, most authors rely on the minimum description length paradigm, and apply it to graphs by considering the entropy of probability distributions defined on graph ensembles. In this paper, we introduce edge probability sequential inference, a new approach to perform model selection, which relies on probability distributions on edge ensembles. From a theoretical point of view, we show that this methodology provides a more consistent ground for statistical inference with respect to existing techniques, due to the fact that it relies on multiple realizations of the random variable. It also provides better guarantees against overfitting, by making it possible to lower the number of parameters of the model below the number of observations. Experimentally, we illustrate the benefits of this methodology in two situations: to infer the partition of a stochastic blockmodel, and to identify the most relevant model for a given graph between the stochastic blockmodel and the configuration model.

Introduction

In network science, selecting the statistical model that best explains an observed graph is a fundamental challenge. Traditional approaches often treat a graph as a single observation, leading to two primary issues: the "Single Realization" problem, where fitting complex models to one data point risks overfitting, and "Model Incompatibility," where comparing models of different natures (e.g., community-based vs. degree-based) is non-trivial. This paper proposes a framework that shifts the perspective from viewing a graph as a single static object to viewing it as a sequence of independent edge samples.

Methodology: Edge Probability Sequential Inference

The core of the proposed method is the Edge Statistical Model. Instead of defining distributions over the set of all possible graphs, the authors define them over the set of all possible edges ($n^2$ possible pairs in a graph of $n$ nodes). This allows for a more robust statistical treatment by increasing the number of observations from one graph to $m$ edges.

Model Definitions

The framework accommodates various standard graph models by representing them as sets of constraints on the edge probability matrix.

Summary of graph models and their defining properties

As shown in the table above, models like the Erdos-Reyni, Configuration Model, and Stochastic Blockmodel (SBM) are defined by different structural properties, such as total edge count, degree distribution, or node partitions.

Sequential Inference and MDL

The inference process uses the Minimum Description Length (MDL) principle within a sequential framework. Imagine a sender transmitting a graph to a receiver one edge at a time. After each edge, the model is updated and used to compress the next edge. The "best" model is the one that minimizes the total message length, effectively balancing model complexity and fit.

Cross entropy vs. sequence length illustrating underfitting and overfitting regions

Figure 1 illustrates the relationship between sequence length (number of observed edges) and cross entropy. A model with too many parameters (overfit) performs poorly initially because it hasn't seen enough data to learn its parameters. Conversely, a model that is too simple (underfit) fails to capture the underlying structure. The sequential MDL approach naturally penalizes complexity without requiring arbitrary penalty terms.

Key Insights

  • Edges as Samples: Treating each edge as an independent realization makes the number of observations much larger than the number of parameters, stabilizing inference.
  • Automatic Complexity Penalty: In the sequential framework, a model with too many parameters fails to make good predictions early on, resulting in a longer total description length.
  • A Common Currency: Expressing all models as probability distributions over the same set of possible edges allows the description length to serve as a universal metric for direct comparison.

Experimental Results

The framework was validated using synthetic datasets, including standard and heterogeneous SBMs as well as mixed models. Key findings include:

  • Partition Selection: The method successfully identified the correct number of blocks in SBMs, avoiding common "merge/split" errors found in traditional entropy-based methods. Accuracy reached 96-100% in scenarios where microcanonical entropy methods failed.
  • Model Comparison: It correctly distinguished between sequences generated by SBMs and Configuration Models.
  • Sensitivity to Structure: In mixed-model experiments, the MDL score accurately tracked the transition between structural types as a "mixing parameter" was varied.

Conclusion

By redefining graph observation as a sequence of edges, this methodology provides a consistent ground for statistical inference and robust protection against overfitting. While the current work assumes edge independence and focuses on synthetic benchmarks, it establishes a powerful foundation for future applications in large-scale real-world networks.

Summary updated

BibTeX
@article{duvivier2023graph,
  author = {Louis Duvivier and Rémy Cazabet and Céline Robardet},
  title = {{Graph model selection by edge probability sequential inference}},
  journal = {J. Complex Networks},
  year = {2023},
  doi = {10.1093/comnet/cnad011},
}
Figure