Efficiently Sampling Multiplicative Attribute Graphs Using a Ball-Dropping Process

Hyokun Yun, S. V. N. VishwanathanarXiv 2012

Abstract

We introduce a novel and efficient sampling algorithm for the Multiplicative Attribute Graph Model (MAGM). Our algorithm is strictly more efficient than previous state-of-the-art methods, extending the best time complexity guarantees to a larger fraction of the parameter space. Both in theory and in empirical evaluation on sparse graphs, our new algorithm outperforms the previous one. To design our algorithm, we first define a stochastic ball-dropping process (BDP). Our rigorous treatment of the BDP enables us to clarify the rationale behind a BDP approximation of the Kronecker Product Graph Model (KPGM) and design an efficient sampling algorithm for the MAGM.

Introduction

Statistical graph models are essential for understanding and simulating massive networks like social media platforms or the web. While the Kronecker Product Graph Model (KPGM) is popular due to its scalability, it is often criticized for being under-parameterized. The Multiplicative Attribute Graph Model (MAGM) addresses this by incorporating node attributes to create more realistic networks.

However, a major challenge remains: how do we efficiently sample graphs from MAGM? Naively checking every possible edge in a graph with $n$ nodes takes $O(n^2)$ time, which is computationally intractable for networks with millions of nodes. Previous fast algorithms, such as the "quilting" method, only guarantee efficiency under specific parameter settings that often result in dense graphs. This paper introduces an algorithm that scales efficiently—proportional to the number of edges rather than nodes squared—across a broader range of realistic, sparse graph parameters.

Methods: The Ball-Dropping Process

The core of the proposed sampling algorithm is a Ball-Dropping Process (BDP). While BDP was previously used as a heuristic for KPGM, this work formalizes its mathematical foundations and adapts it for MAGM using an accept-reject sampling scheme.

Poisson Approximation

The authors prove that BDP generates edges following a Poisson distribution. For sparse graphs, where the probability of any specific edge existing is close to zero, this Poisson distribution perfectly approximates the target Bernoulli distribution of MAGM. This realization allows for a mathematically sound and computationally convenient proxy for edge generation.

Color Partitioning and Proposal Distribution

In MAGM, nodes possess binary attribute vectors, or "colors." The algorithm partitions these colors into frequent ($\mathcal{F}$) and infrequent ($\mathcal{I}$) sets based on their expected occurrences. To ensure efficiency, the algorithm constructs a composite proposal distribution made of four separate BDP matrices ($\mathcal{FF}, \mathcal{FI}, \mathcal{IF}, \mathcal{II}$).

Visualization of the hierarchical partitioning and parameter assignment used in the proposal distribution for MAGM sampling.

Because BDP uses Poisson rates rather than strict probabilities, its parameters are not capped at 1. This flexibility allows the authors to scale the proposal distribution to tightly bound the target MAGM distribution without generating an excessive number of rejected samples. By splitting node colors into sets based on frequency, the algorithm avoids the loose mathematical bounds that typically slow down sampling when attribute probabilities are skewed.

Results

The algorithm was evaluated on synthetic graphs generated using parameter matrices ($\Theta_1$ and $\Theta_2$) known to model real-world network structures accurately.

Theoretical and Empirical Performance

The algorithm achieves a time complexity of $O(d \cdot (\log_2 n)^2 \cdot (e_K + e_M))$, where $e_M$ is the expected number of edges in the MAGM and $e_K$ is the expected edges in an equivalent KPGM. This represents a near-linear runtime relative to the number of edges.

Empirical tests on graphs with $2^{17}$ nodes confirm these theoretical bounds. The BDP sampler drastically outperforms the competing "quilting" algorithm for sparse graphs, particularly when the attribute probability parameter $\mu < 0.5$. In these regimes, the running time scales almost perfectly linearly with the expected number of edges.

Conclusion

While the BDP algorithm excels in sparse regimes, it becomes less efficient for dense graphs ($\mu > 0.5$), where the quilting algorithm remains superior. Given that the expected running time for both can be estimated in $O(nd)$ time, a hybrid implementation that automatically selects the optimal algorithm based on graph parameters is a promising future direction. Additionally, removing the dependency of the time complexity on the baseline KPGM's edge count remains an open research question.

Summary updated

BibTeX
@misc{yun2012efficiently,
  author = {Hyokun Yun and S. V. N. Vishwanathan},
  title = {{Efficiently Sampling Multiplicative Attribute Graphs Using a Ball-Dropping Process}},
  year = {2012},
  eprint = {1202.6001},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1202.6001},
}
Figure