Abstract
Unsupervised recovery of generative parameters for sequentially grown graphs remains a significant challenge in graph representation learning. While $\beta$-Variational Autoencoders ($\beta$-VAEs) have shown promise in disentangling parameters for static models like Erdős-Rényi graphs, they typically struggle with scale-free networks that grow iteratively. This paper introduces a novel $\beta$-VAE architecture featuring a sequential LSTM-based decoder designed to capture the "preferential attachment" dynamics of Barabási-Albert (BA) networks. We demonstrate that our model can successfully recover underlying generative parameters in an unsupervised manner, providing a scalable alternative to domain-heavy manual parameter tuning.
Introduction
Classical graph models, such as the Barabási-Albert (BA) model, are essential for simulating real-world networks that exhibit scale-free properties. These models rely on specific generative parameters—such as the number of nodes ($n$), edges added per step ($m$), and attachment exponents ($\alpha$)—to mimic complex topologies. However, identifying the optimal parameters for a given real-world dataset often requires extensive domain expertise or exhaustive simulations.
Recent advances in unsupervised learning, particularly $\beta$-VAEs, have enabled the automatic discovery (or "disentanglement") of these parameters. While successful for "one-shot" models like Erdős-Rényi (ER) graphs, where all edges are sampled independently, these methods falter on sequential graphs. BA graphs grow through an iterative process of preferential attachment, where new nodes connect to existing hubs. Static decoder architectures in standard VAEs cannot naturally represent this step-by-step generation, necessitating a shift toward sequential modeling.
Methodology
The proposed approach consists of two primary phases: a supervised proof-of-concept and an unsupervised disentanglement framework.
Supervised Parameter Prediction
To confirm that generative parameters are indeed encoded in the final graph topology, we first trained a Random Forest regressor and a Graph Neural Network (GNN). These models were tasked with predicting $n$, $m$, and $\alpha$ from synthetic BA graphs. This stage serves to verify that the target parameters are extractable from the data before attempting unsupervised recovery.
Unsupervised Disentanglement Framework
The core contribution is a $\beta$-VAE tailored for sequential graph data. The architecture consists of:
- Encoder: A GNN that compresses the input graph into a low-dimensional latent space.
- Sequential Decoder: An LSTM-based decoder that reconstructs the graph iteratively. Unlike standard decoders, the LSTM generates the adjacency matrix step-by-step, mirroring the actual growth process of BA networks.
- Custom Reconstruction Loss: To handle the non-differentiable nature of graph generation, the authors implemented a loss function that enforces structural constraints: symmetry, no self-loops, and a strictly increasing count of nodes and edges over time.
Results and Discussion
Experiments were conducted on synthetic datasets of linear and non-linear BA graphs, with node counts ranging from 3 to 50.
Supervised Performance
The supervised models successfully validated the learnability of BA parameters. The GNN achieved high accuracy for $n$ (MSE 0.0005) and $m$ (MSE 0.128). Interestingly, while the GNN struggled with the non-linear exponent $\alpha$, a Random Forest using manual features achieved a Pearson correlation of 0.89, suggesting that standard graph-level aggregations in GNNs might overlook subtle topological signatures of non-linear growth.
Unsupervised Disentanglement
Disentanglement quality was evaluated using the Mutual Information Gap (MIG). The model achieved a MIG of 0.26 for linear BA graphs. A key insight was the handling of parameter interdependence; since $n$ and $m$ are naturally linked in the BA model, targeting the independent ratio $m/n$ improved the MIG to 0.29. For more complex non-linear graphs, the MIG reached 0.12, indicating room for improvement in capturing highly non-linear dynamics.
Conclusion and Future Work
This work demonstrates that sequential decoders are essential for learning the latent rules of growing networks. By aligning the neural architecture with the iterative nature of the data generation process, the model achieves unsupervised parameter recovery for scale-free graphs.
Future research will focus on addressing current limitations, such as the use of fixed-size adjacency matrices and Gaussian priors for discrete parameters. Exploring node-level embedding GNNs and discrete priors (e.g., Gumbel-Softmax) could enhance the model's flexibility and disentanglement performance. Additionally, applying these techniques to real-world graphs with node attributes remains a promising direction.
Summary updated