[Paper Review] Efficient Generation ε-close to G(n,p) and Generalizations
This paper presents an efficient algorithm to generate random graphs $ε$-close to $G(n,p)$ and its generalizations, using a Metropolis Markov chain to sample from the binomial distribution with rigorous bit-accuracy accounting. The method achieves $O(m \log n \log(1/\epsilon))$ expected running time, where $m$ is the expected number of edges, and provides the first practical, accurate simulation of classical random graph models with quantified tradeoffs between precision and efficiency.
We give an efficient algorithm to generate a graph from a distribution $ε$-close to $G(n,p)$, in the sense of total variation distance. In particular, if $p$ is represented with $O(\log n)$-bit accuracy, then, with high probability, the running time is linear in the expected number of edges of the output graph (up to poly-logarithmic factors). All our running times include the complexity of the arithmetic involved in the corresponding algorithms. Previous standard methods for exact $G(n,p)$ sampling (see e.g. Batagelj and Brandes, 2005) achieve similar running times, however, under the assumption that performing real number arithmetic with arbitrary accuracy takes constant time. We note that the actual accuracy required by these methods is O(n)-bit per step, which results in quadratic running times. The main idea of our $G(n,p)$ generation algorithm is a Metropolis Markov chain to sample $ε$-close from the binomial distribution. This is a new method for sampling from the binomial distribution: it is of separate interest and may find other useful applications. Our analysis accounts for all necessary bit-accuracy and arithmetic, and our running times are comparable to known methods for exact binomial sampling. We further obtain efficient generation algorithms for random graphs with given arbitrary degree distributions, Inhomogeneous Random Graphs when the kernel function is the inner product, and Stochastic Kronecker Graphs. To the best our knowledge, our work can be viewed as the first effort to simulate efficient generation of graphs from classical random graph models, while taking into account implementational considerations as fundamental computational aspects, and quantifying the tradeoff between accuracy and running time in a way that can be useful in practice.
Motivation & Objective
- To develop an efficient algorithm that generates graphs $\epsilon$-close to $G(n,p)$ in total variation distance, while rigorously accounting for bit-accuracy and arithmetic complexity.
- To address the gap in prior methods that assume constant-time real arithmetic, which leads to either quadratic running times or unquantified bias when implemented with finite precision.
- To extend the method to generalizations of $G(n,p)$, including random graphs with given expected degrees $G(n,\vec{w})$, inner-product graphs $G(n,W)$, and stochastic Kronecker graphs $G(n,\mathcal{P})$.
- To provide a practical, implementable framework for simulating large-scale complex networks using classical random graph models, with provable accuracy and efficiency guarantees.
Proposed method
- The core technique uses a Metropolis Markov chain to sample from the binomial distribution $\text{Bin}(n,p)$ with $\epsilon$-closeness, ensuring bit-accuracy is accounted for in arithmetic operations.
- The algorithm partitions edges into classes based on their edge probability $p_e$, and for each class, it samples the number of edges using the Metropolis-based binomial sampler.
- For each edge class, it generates a random subset of $M$ edges from $N$ possible edges using a combinatorial sampling method, with $O(d^4 M)$ time per class.
- The method uses recursive Kronecker product structure in $G(n,\mathcal{P})$ to group edges by their probability $p_e = \theta_1 \cdots \theta_k$, enabling efficient class-wise sampling.
- It maintains a running product of probabilities and uses iterative computation to avoid recomputing factorials and products from scratch, reducing arithmetic cost.
- The algorithm ensures $\epsilon$-closeness via union bounds over edge classes and applies concentration inequalities to bound tail probabilities of running time.
Experimental results
Research questions
- RQ1Can we generate graphs $\epsilon$-close to $G(n,p)$ with running time linear in the expected number of edges, while accounting for finite-precision arithmetic?
- RQ2What is the tradeoff between bit-accuracy and running time in exact $G(n,p)$ sampling, and how can it be quantified rigorously?
- RQ3Can the same approach be extended to generalizations of $G(n,p)$, such as $G(n,\vec{w})$, $G(n,W)$, and $G(n,\mathcal{P})$, with similar efficiency and accuracy?
- RQ4Does the use of a Metropolis chain for binomial sampling provide a practical and efficient alternative to standard methods, especially when bit-accuracy is considered?
- RQ5What is the expected and high-probability running time of the algorithm across all generalized models, and how does it scale with $n$, $p$, and model parameters?
Key findings
- The algorithm generates a graph $\epsilon$-close to $G(n,p)$ in expected time $O(m \log n \log(1/\epsilon))$, where $m$ is the expected number of edges, and this holds even when $p$ is represented with $O(\log n)$-bit accuracy.
- The method achieves this efficiency by using a Metropolis Markov chain to sample from the binomial distribution with full accounting for bit-accuracy and arithmetic complexity.
- For $G(n,\mathcal{P})$, the expected running time is $O(d^4 \mu \log(\epsilon^{-1}) \max\{\log n, \log q\} + d^2 (\log n)^{d^2 + 2} \log^2 q)$, where $\mu = \mathbb{E}[|E|]$ and $q = \max\{|\log_2 \max \theta_{ij}|, |\log_2 \min \theta_{ij}|\}$.
- The running time exceeds its expectation by a $2c\log n$ factor with probability at most $O(n^{-c})$, ensuring high-probability performance.
- The approach resolves a long-standing issue in prior methods that assumed constant-time real arithmetic, which leads to quadratic running times or unquantified bias when implemented with finite precision.
- The work is the first to rigorously quantify the tradeoff between accuracy and running time in random graph generation, making it practical for large-scale network simulation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.