English

ERGMs are Hard

Data Structures and Algorithms 2014-12-05 v1 Social and Information Networks

Abstract

We investigate the computational complexity of the exponential random graph model (ERGM) commonly used in social network analysis. This model represents a probability distribution on graphs by setting the log-likelihood of generating a graph to be a weighted sum of feature counts. These log-likelihoods must be exponentiated and then normalized to produce probabilities, and the normalizing constant is called the \emph{partition function}. We show that the problem of computing the partition function is #P\mathsf{\#P}-hard, and inapproximable in polynomial time to within an exponential ratio, assuming PNP\mathsf{P} \neq \mathsf{NP}. Furthermore, there is no randomized polynomial time algorithm for generating random graphs whose distribution is within total variation distance 1o(1)1-o(1) of a given ERGM. Our proofs use standard feature types based on the sociological theories of assortative mixing and triadic closure.

Keywords

Cite

@article{arxiv.1412.1787,
  title  = {ERGMs are Hard},
  author = {Michael J. Bannister and William E. Devanny and David Eppstein},
  journal= {arXiv preprint arXiv:1412.1787},
  year   = {2014}
}
R2 v1 2026-06-22T07:20:55.779Z