Recovering Barabási-Albert Parameters of Graphs through Disentanglement

Cristina Guzmán, Daphna Keidar, Tristan Meynier, Andreas Opedal, Niklas Stoehr

TL;DR

Inferring the underlying generative rules of real-world scale-free networks is notoriously difficult because existing graph autoencoders generate edges all at once rather than incrementally. This paper introduces a sequential $\beta$-Variational Autoencoder ($\beta$-VAE)—pairing a Graph Neural Network (GNN) encoder with an LSTM-based sequential decoder—to recover the latent generative parameters of Barabási-Albert (BA) networks without supervision.

What Problem Does This Paper Address?

Classical stylized graph generators, such as Erdős–Rényi (ER) random graphs and Barabási–Albert (BA) scale-free networks, describe real-world structures through interpretable mechanisms. However, reverse-engineering these parameters from observed graphs typically requires costly simulations or domain expertise.

Recent work showed that $\beta$-VAEs can learn disentangled representations corresponding directly to ER parameters. But that setup relies on "one-shot" decoders that generate an entire adjacency matrix simultaneously. While suitable for ER graphs (where edges are sampled independently), one-shot generation fails on scale-free BA graphs, which grow dynamically through step-by-step preferential attachment ("rich-get-richer" dynamics). This paper addresses the challenge of making the generation and disentanglement process sequential and differentiable.

Methods

The authors structure their study in two stages:

  1. Supervised Parameter Verification: Before attempting unsupervised disentanglement, the authors verify whether BA parameters can be extracted from graph structure alone. They evaluate a baseline Random Forest (RF) regressor using manually engineered graph statistics and a Graph Neural Network (GNN) trained with mean squared error (MSE) loss against the ground-truth parameters.
  2. Sequential Disentanglement ($\beta$-VAE):
  3. Encoder: A GNN maps input graphs into continuous latent variables.
  4. Latent Mapping: Deconvolutional layers expand latent vectors into $N$ step-wise representations.
  5. Decoder: An LSTM sequentially emits the graph step-by-step.
  6. Constrained Reconstruction Loss: Because random sequential growth is non-differentiable, the authors design a customized reconstruction loss that enforces structural validity: symmetry, no self-loops, strictly growing node/edge sets across time steps, and starting from an empty graph.
  7. Evaluation Metric: Disentanglement is evaluated using the Mutual Information Gap (MIG), which measures whether each latent variable uniquely isolates a single generative factor.

Datasets

The authors evaluate their approach on synthetic datasets generated using the standard and non-linear extensions of the Barabási–Albert model:

  • Generative Parameters: Total nodes $n$, initial connectivity integer $m$, and degree preferential exponent $\alpha$ (where the probability of attaching to node $i$ with degree $k_i$ is $p(k_i) \propto k_i^\alpha$). Setting $\alpha=1$ yields the standard linear BA model, while $\alpha \neq 1$ captures sub-linear and super-linear preferential attachment.
  • Supervised Benchmark: 16,000 training and 4,000 test graphs with $n=50$, $m \sim \mathcal{U}\{1, 49\}$, and $\alpha \sim \mathcal{U}(1/3, 3)$.
  • Unsupervised Benchmark: 200 graphs with node counts varying from 3 to 12, evaluated across linear ($\alpha=1$) and non-linear ($\alpha \in (1/3, 3)$) conditions.

Key Insights and Ideas

  • Sequential Inductive Bias is Essential: Modeling scale-free topologies requires generation mechanisms that honor temporal growth; one-shot matrix predictions fail to reflect preferential attachment history.
  • GNNs Struggle with Non-Linear Degree Distributions: While the Random Forest easily captured the degree exponent $\alpha$ (achieving a Pearson correlation of $0.89$), the standard GNN struggled (test MSE of $0.590$). Standard graph convolutional operations smooth out degree heterogeneities, obscuring the power-law hubs that define $\alpha$.
  • Parameter Decoupling Matters for $\beta$-VAEs: The standard formulation couples parameters because $m < n$. However, the $\beta$-VAE prior enforces independent latent dimensions. Re-parameterizing the target factor to the ratio $m/n$ made it independent of $n$ and noticeably increased the disentanglement score.

Key Results

  • Supervised Parameter Prediction:
  • On linear BA graphs, the GNN accurately learned $n$ and $m$ (MSE of $0.0005$ and $0.128$, respectively).
  • On non-linear graphs, the GNN struggled to predict $\alpha$ (MSE: $0.590$), whereas the Random Forest predicted it with low error (MSE: $0.194$, $r = 0.89$).
  • Unsupervised Disentanglement (MIG Scores):
  • Linear BA: $0.26$
  • Linear BA using normalized edge ratio ($m/n$): $0.29$
  • Non-linear BA: $0.12$

Limitations and Future Work

  • Encoder Expressiveness: The GNN encoder's inability to isolate $\alpha$ severely bottlenecks the unsupervised $\beta$-VAE on non-linear graphs. Node-level equivariant convolutions or alternative architectures are needed.
  • Continuous vs. Discrete Latents: The $\beta$-VAE assumes Gaussian latent priors, yet $n$ and $m$ are discrete integers and $\alpha$ is bounded. Exploring categorical reparameterizations (such as Gumbel-Softmax) is an open area.
  • Computational Overhead: The LSTM tracks the full generation history, which is computationally heavy and introduces long training times, even though standard BA generation strictly requires only a first-order Markov assumption.
  • Unattributed Graphs: The current setup operates solely on graph topology, leaving node- and edge-attributed graphs for future research.

Summary updated

BibTeX
@inproceedings{guzman2021recovering,
  author = {Cristina Guzmán and Daphna Keidar and Tristan Meynier and Andreas Opedal and Niklas Stoehr},
  title = {{Recovering Barabási-Albert Parameters of Graphs through Disentanglement}},
  booktitle = {GTRL @ ICLR},
  year = {2021},
  url = {https://openreview.net/forum?id=ln6AzgMbKBC},
}
Figure