arXiv:2608.30869math.COAug 2026

Manuscript Offprint

arXiv:2608.30869

Exponential random graph models with soft clique constraints

Yasmin Tousinejad, Vera Koponen

YASMIN TOUSINEJAD AND VERA KOPONEN

ABSTRACT. Let r≥3r \geq 3 be fixed, and let Gn\mathbf{G}_n be the set of all simple graphs with vertex set [n]={1,…,n}[n] = \{1, \ldots, n\}. We consider an exponential random graph model which gives higher probability to G∈GnG \in \mathbf{G}_n than to H∈GnH \in \mathbf{G}_n if GG has fewer rr-cliques than HH. But all graphs in Gn\mathbf{G}_n have positive probability. The degree to which graphs with fewer rr-cliques are given higher probability is determined by a positive weight ww. We prove that, asymptotically almost surely as n→∞n \to \infty, a random graph from Gn\mathbf{G}_n has a vertex partition into r−1r - 1 parts of roughly equal size, the density of edges between the parts is close to 1/21/2, and for every ε>0\varepsilon > 0 the density of edges within any part is less than ε\varepsilon. The asymptotic structural properties are independent of the weight ww as long as it is positive. We also extend the result to the context of several clique sizes, each one with its own weight.

1. INTRODUCTION

Studies of large graphs, or other structures, subject to certain hard constraints have a long history in the field of random structures. The classical result of Erdős, Kleitman and Rothschild [12] states that the proportion of bipartite graphs among all triangle-free graphs with vertices 1,…,n1,\ldots,n tends to 1 as n→∞n \to \infty. More generally, Kolaitis, Prömel and Rothschild [19] proved that, for every fixed r≥3r \geq 3, the proportion of (r−1)(r-1)-partite graphs among all KrK_r-free graphs with vertices 1,…,n1,\ldots,n tends to 1 as n→∞n \to \infty. We can say that asymptotically almost surely (a.a.s.) a KrK_r-free graph is (r−1)(r-1)-partite. Later studies have considered the a.a.s. structure of H-free graphs for other “forbidden” subgraphs H (e.g. [2, 3, 15]), and yet other investigations have considered forbidding certain induced subgraphs (e.g. [4, 17, 24, 25]). Some studies have considered the a.a.s. structure under constraints other than forbidding a finite number of subgraph or induced subgraph configurations (e.g. [6, 5, 20, 31]), and some have considered structures other than graphs (e.g. [18, 29]).

In all mentioned examples, the probability distribution on structures with vertex set [n]:={1,…,n}[n] := \{1, \ldots, n\} that satisfy the given constraints is the uniform one. One can reformulate the problem by considering all graphs (or some other kind of structure) with vertex set [n][n], assigning probability 0 to graphs that do not satisfy the constraints and equal probability to the other graphs. An alternative is to not assign probability 0 to graphs that violate the constraints, but to instead consider a probability distribution on graphs with vertex set [n][n] with the following property: A graph with more violations of the constraints is less likely than a graph with fewer violations of the constraints, but graphs with violations can still have positive probability. Since the constraints may be violated in this setting, it is more appropriate to call them soft constraints. This idea is present in so-called exponential random graph models (ERGMs) [27, 9]. The same idea also underlies probability distributions defined by so-called Markov logic networks (MLNs) [26], which are formal specification models in the field of Statistical Relational Artificial Intelligence (SRAI) [8, 11, 13]. MLNs can be defined for finite relational structures, not just graphs, but when restricted to graphs, they are special cases of ERGMs. Not much

Date: 31 August, 2026.

YASMIN TOUSINEJAD AND VERA KOPONEN

is known about structural properties of large random structures defined by fixed-weight MLNs. The investigations most directly related to this topic that we are aware of are [21, 30].

Our main result concerns an ERGM, or equivalently an MLN, on random graphs which “penalizes” (for any fixed r≥3r \geq 3) r-cliques, that is, copies of the complete graph on r vertices, denoted KrK_r. In other words, a graph with more r-cliques will be less likely than a graph with fewer r-cliques, but all graphs have positive probability. The strength of the penalization is expressed by a positive weight w. The precise definition of the distribution is given in Definition 2.2. Informally speaking, our main result, Theorem 2.7, shows that, for every fixed positive weight w and every ε>0\varepsilon > 0, with probability tending to 1 as the number n of vertices tends to infinity, the following holds for a random graph:

(1) There is a partition of the vertex set into r−1r - 1 parts, each of size close to nr−1\frac{n}{r - 1}.

(2) The density of edges between any two different parts is close to 12\frac{1}{2}.

(3) For every ε>0\varepsilon > 0, if nn is large enough then the density of edges within any part is less than ε\varepsilon.

Note that the asymptotic almost sure structure of a random graph does not depend on the weight w (as long as w>0w > 0).

We also prove (Corollary 6.6) that if r≥4r \geq 4 then the probability that a random graph is (r−2)(r - 2)-partite tends to 0 exponentially fast as the number of vertices tends to infinity.

A further consequence of our results is a stochastic block model limit for fixed induced subgraphs (Corollary 6.2). Informally speaking, for every fixed m, as n tends to infinity, the subgraph induced by [m] converges in distribution to a stochastic block model with r - 1 classes such that each of the m vertices is assigned independently and uniformly to one of these classes. Given these assignments, there are no edges within a class, and each possible edge between different classes is included independently with probability 12\frac{1}{2}. The limiting distribution depends on r, but not on w.

We can refine the probability model considered so that we consider some integers 3≤r1<…<rk3 \leq r_1 < \ldots < r_k and for each rir_i we penalize an rir_i-clique with weight wi>0w_i > 0. (The larger wiw_i is, the more strongly rir_i-cliques are penalized.) We show (Theorem 6.7) that, for all choices of weights w1,…,wk>0w_1, \ldots, w_k > 0, the asymptotic behaviour of random graphs under this model is determined by r1r_1. More precisely, with probability tending to 1 as the number nn of vertices tends to infinity, a random graph will satisfy conditions (1) – (3) above if we let r:=r1r := r_1.

Our main results are proved by using graphons [7, 22, 16], which are analytic objects used to represent limits of sequences of dense graphs. The article is organized as follows. Just below we introduce the general notation and terminology that will be used. In Section 2 we define the probability model and state the main results (in Theorem 2.7). Section 3 defines the concept of graphon, as well as related concepts, and proves some basic results that will be used later. In Section 4 we work with the concepts of entropy of graphons, homomorphism density of KrK_r in graphons, and the cut distance of a graphon from a “balanced (r−1)(r-1)-partite graphon”, and show how they are related. In Section 5 we prove Theorem 2.7. Section 6 derives some consequences of Theorem 2.7 which were briefly described above.

General notation and terminology. By N\mathbb{N} we denote the set of positive integers. For n∈Nn \in \mathbb{N}, [n]:={1,…,n}[n] := \{1, \ldots, n\}. For n∈Nn \in \mathbb{N}, let Gn\mathbf{G}_n be the set of all undirected graphs without loops (i.e. simple graphs) with vertex set [n][n]. For every finite graph GG, let E(G)E(G) denote its edge set and let χ(G)\chi(G) denote its chromatic number.

If n∈Nn \in \mathbb{N}, G∈GnG \in \mathbf{G}_n, and A⊆[n]A \subseteq [n], set

eG(A):=∣{{u,v}∈E(G):u,v∈A}∣.e_{G}(A):=\left|\left\{\{u,v\}\in E(G):u,v\in A\right\}\right|.

If in addition B⊆[n]B \subseteq [n] is disjoint from AA, define

eG(A,B):=∣{{u,v}∈E(G):∣{u,v}∩A∣=1,∣{u,v}∩B∣=1}∣.e_{G}(A,B):=\left|\left\{\{u,v\}\in E(G):\left|\{u,v\}\cap A\right|=1,\left|\{u,v\}\cap B\right|=1\right\}\right|.

For n∈Nn \in \mathbb{N} and graphs G,H∈GnG, H \in \mathbf{G}_n, define the n2n^2-normalized edge-edit distance between GG and HH by

dedit(G,H):=1n2∣E(G)△E(H)∣.d_{\mathrm{e d i t}}(G,H):=\frac{1}{n^{2}}\left|E(G)\triangle E(H)\right|.

Here △\triangle denotes symmetric difference. Thus dedit(G,H)d_{\mathrm{edit}}(G, H) is the number of edge insertions and deletions needed to turn GG into HH, normalized by n2n^2.

For n∈Nn \in \mathbb{N} and p∈[0,1]p \in [0,1], the notation

Hn∼G(n,p)\mathsf{H}_{n}\sim G(n,p)

means that Hn\mathsf{H}_n is a random element of Gn\mathbf{G}_n sampled by including an unordered pair {i,j}\{i,j\} as an edge with probability pp, independently of whether other pairs have been included or not. In particular, Hn∼G(n,12)\mathsf{H}_n \sim G(n, \frac{1}{2}) means that every graph in Gn\mathbf{G}_n has probability 2−(n2)2^{-\binom{n}{2}}, so Hn\mathsf{H}_n is uniformly distributed on Gn\mathbf{G}_n.

For every integer s≥2s \geq 2, KsK_s denotes a complete graph with ss vertices. For every finite graph GG, let Ks(G)K_s(G) denote the number of unordered copies of KsK_s in GG, in other words, the number of subgraphs of GG that are isomorphic to KsK_s.