arXiv:2609.02017math.COSep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.02017

Optimal girth-dependent bounds for the Bethe approximation of the permanent

Dingding Dong, Vishesh Jain

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

1. INTRODUCTION

For a positive integer nn, write [n]:={1,…,n}[n] := \{1, \ldots, n\} and let Sym(n)\mathrm{Sym}(n) denote the set of permutations of [n][n]. For a matrix A∈Rn×nA \in \mathbb{R}^{n \times n}, the permanent of AA is defined by

per(A):=∑σ∈Sym(n)∏i=1nAi,σ(i).\mathrm{per}(A) := \sum_{\sigma \in \mathrm{Sym}(n)} \prod_{i=1}^{n} A_{i,\sigma(i)}.

Although this formula differs from the determinant only in the absence of signs, the two quantities have fundamentally different computational behavior. The determinant can be computed in polynomial time, whereas Valiant [20] proved that computing the permanent is #P-hard even for 0–1 matrices.

Let GA=(L⊔R,E)G_A = (L \sqcup R, E) be the bipartite graph in which LL and RR are disjoint copies of [n][n] and ij∈Eij \in E if and only if Aij≠0A_{ij} \neq 0. We call GAG_A the support graph of AA, assign the edge ijij weight AijA_{ij}, and write Ae:=AijA_e := A_{ij} for e=ije = ij. Then

per(A)=∑M∈M(GA)∏e∈MAe,\mathrm{per}(A) = \sum_{M \in \mathcal{M}(G_A)} \prod_{e \in M} A_e,

where M(GA)\mathcal{M}(G_A) denotes the set of perfect matchings of GAG_A. When AA is nonnegative, the permanent is therefore the partition function of the weighted perfect-matching model. In particular, when AA is a 0–1 matrix, every perfect matching has weight one, and per(A)\mathrm{per}(A) counts the perfect matchings of GAG_A.

We henceforth restrict to nonnegative matrices and consider the problem of approximating the permanent efficiently. Jerrum, Sinclair, and Vigoda [14] settled the randomized version by providing a fully polynomial randomized approximation scheme. Given ε,δ>0\varepsilon, \delta > 0, their algorithm returns a (1+ε)(1+\varepsilon)-approximation to per(A)\mathrm{per}(A) with probability at least 1−δ1-\delta, in time polynomial in the input size, 1/ε1/\varepsilon, and log⁡(1/δ)\log(1/\delta).

1.1. Deterministic approximation of the permanent. In contrast, no deterministic analogue of the Jerrum–Sinclair–Vigoda result is known. In fact, every known general deterministic polynomial-time guarantee loses a factor exponential in nn. Throughout, we measure multiplicative guarantees by the width of a certified interval, i.e., a factor C≥1C \geq 1 guarantee consists of polynomial-time computable quantities L(A)L(A) and U(A)U(A) satisfying

L(A)≤per(A)≤U(A)andU(A)≤CL(A).L(A) \leq \mathrm{per}(A) \leq U(A) \qquad \text{and} \qquad U(A) \leq CL(A).

The first nontrivial general deterministic guarantee was obtained by Linial, Samorodnitsky, and Wigderson [16]. Combining matrix scaling with the van der Waerden inequality, they obtained a factor ene^n approximation. A sequence of refinements by Gurvits and Samorodnitsky [11, 13, 19] eventually lowered the factor to approximately 1.9022n1.9022^n. Anari and Rezaei [4] subsequently obtained the factor 2n/22^{n/2} by providing a sharp universal comparison between the Bethe permanent and the permanent (see Section 1.2). Very recently, Anari [3] and Narang and Perkins [18] improved the factor to cnc^n for some absolute constant c<2c < \sqrt{2} by supplementing the Bethe approximation with additional efficiently computable corrections.

As observed by Anari and Rezaei, it is not a coincidence that the gap between randomized and deterministic approximations is (1+ε)(1+\varepsilon) vs. exponential. Indeed, by a simple tensorization trick, a deterministic polynomial-time algorithm which approximates the permanent of every n×nn \times n nonnegative matrix within a factor 2nc2^{n^c}, for fixed c<1c < 1, can be boosted to obtain a deterministic fully polynomial-time approximation scheme.

1.2. The Bethe permanent. Anari and Rezaei obtained their 2n/22^{n/2} bound by analyzing the Bethe permanent, a heuristic approximation to the permanent originating in statistical physics. For a bipartite graph GG, let

PM(G):={p∈R≥0E(G):∑e∋vpe=1 for every v∈V(G)}\mathrm{PM}(G):=\left\{\boldsymbol{p}\in\mathbb{R}_{\geq 0}^{E(G)}:\sum_{e\ni v}p_{e}=1\text{ for every }v\in V(G)\right\}

denote the fractional perfect matching polytope. If PM(GA)=∅\mathrm{PM}(G_A) = \emptyset, we set Bethe(A)=0\mathrm{Bethe}(A) = 0. If PM(GA)≠∅\mathrm{PM}(G_A) \neq \emptyset, define

Bethe(A):=max⁡p∈PM(GA)∏e∈E(GA)(Aepe)pe(1−pe)1−pe,(1.1)\mathrm{Bethe}(A):=\max_{\boldsymbol{p}\in\mathrm{PM}(G_A)}\prod_{e\in E(G_A)}\left(\frac{A_e}{p_e}\right)^{p_e}(1-p_e)^{1-p_e}, \tag{1.1}

where the boundary terms are defined by continuity. It will be useful to decompose the variational expression into an energy term and an entropy term. For a bipartite graph GG and p∈PM(G)\boldsymbol{p} \in \mathrm{PM}(G), define the Bethe entropy by

HB(p):=∑e∈E(G)(−pelog⁡pe+(1−pe)log⁡(1−pe)).(1.2)H_{\mathrm{B}}(\boldsymbol{p}):=\sum_{e\in E(G)}\left(-p_{e}\log p_{e}+(1-p_{e})\log(1-p_{e})\right). \tag{1.2}

Taking logarithms in (1.1), we obtain

log⁡Bethe(A)=max⁡p∈PM(GA){∑e∈E(GA)pelog⁡Ae+HB(p)}(1.3)\log \mathrm{Bethe}(A)=\max_{\boldsymbol{p}\in\mathrm{PM}(G_A)}\left\{\sum_{e\in E(G_A)} p_e \log A_e + H_{\mathrm{B}}(\boldsymbol{p})\right\} \tag{1.3}

whenever PM(GA)≠∅\mathrm{PM}(G_A) \neq \emptyset. Vontobel [21] proved that the Bethe entropy is concave on PM(GA)\mathrm{PM}(G_A). Since the energy term is linear, the objective in (1.3) is concave, and maximizing it over the explicitly described polytope PM(GA)\mathrm{PM}(G_A) is a convex optimization problem. In particular, log⁡Bethe(A)\log \mathrm{Bethe}(A) can be approximated to any prescribed additive accuracy in polynomial time, or equivalently, Bethe(A)\mathrm{Bethe}(A) can be approximated to prescribed multiplicative accuracy [13, 21] in polynomial time.

Gurvits [12] proved that

Bethe(A)≤per(A)(1.4)\mathrm{Bethe}(A) \leq \mathrm{per}(A) \tag{1.4}

for every nonnegative matrix AA and Gurvits and Samorodnitsky [13] obtained the reverse inequality with a multiplicative loss of 2n2^n. Anari and Rezaei [4] proved the sharp universal bound

per(A)≤2n/2Bethe(A).(1.5)\mathrm{per}(A) \leq 2^{n/2} \mathrm{Bethe}(A). \tag{1.5}

The lower and upper bounds are attained at opposite extremes. On tree-structured graphical models, the Bethe approximation is exact [23]. For perfect matchings, this follows directly. A forest has at most one perfect matching, since the symmetric difference of two perfect matchings would contain a cycle. Moreover, if a perfect matching exists, repeated deletion of leaves shows that its indicator vector is the unique point of PM(GA)\mathrm{PM}(G_A). Hence Bethe(A)=per(A)\mathrm{Bethe}(A) = \mathrm{per}(A) whenever GAG_A is a forest. By contrast, equality in (1.5) is obtained by the bipartite adjacency matrix of a disjoint union of 4-cycles, the shortest possible cycles in a bipartite graph.

1.3. Our contribution. The contrast between forests and 4-cycles suggests that the error of the Bethe approximation should be controlled by the girth of the support graph. Recall that the girth of a graph is the length of its shortest cycle (which is necessarily even for a bipartite graph), with forests regarded as having infinite girth. Motivated by this, Nima Anari proposed the following conjecture in private communication.

Conjecture 1.1 (Anari). Let g≥4g \geq 4 be even, and let A∈R≥0n×nA \in \mathbb{R}_{\geq 0}^{n \times n} be a nonnegative matrix whose support graph has girth at least g. Then

per(A)≤22n/gBethe(A).\mathrm{per}(A)\leq2^{2n/g}\mathrm{Bethe}(A).

Example 1.2. When g∣2ng \mid 2n, the factor 22n/g2^{2n/g} in Conjecture 1.1 is attained by the bipartite adjacency matrix of a disjoint union of gg-cycles. Indeed, let CgC_g be the (g/2)×(g/2)(g/2) \times (g/2) 0-1 matrix whose support graph is a single cycle of length gg. The cycle has exactly two perfect matchings, and hence per(Cg)=2\mathrm{per}(C_g) = 2. On the other hand, every fractional perfect matching of the cycle has alternating edge weights

x,1−x,x,1−x,…x,1-x,x,1-x,\ldots

for some x∈[0,1]x \in [0,1]. For x∈(0,1)x \in (0,1), the two factors in (1.1) corresponding to a consecutive pair of edge weights multiply to

(1x)x(1−x)1−x(11−x)1−xxx=1,\left(\frac{1}{x}\right)^{x}(1-x)^{1-x}\left(\frac{1}{1-x}\right)^{1-x}x^{x}=1,

and the endpoint cases follow by continuity. Thus Bethe(Cg)=1\mathrm{Bethe}(C_g) = 1. Taking AA to be the block diagonal matrix consisting of 2n/g2n/g copies of CgC_g, the multiplicativity of both the permanent and the Bethe permanent gives

per(A)=22n/gBethe(A).\mathrm{per}(A)=2^{2n/g}\mathrm{Bethe}(A).

Our main result confirms Conjecture 1.1.

Theorem 1.3. Let g≥4g \geq 4 be even, and let A∈R≥0n×nA \in \mathbb{R}_{\geq 0}^{n \times n} be a nonnegative matrix whose support graph has girth at least g. Then

Bethe(A)≤per(A)≤22n/gBethe(A).\mathrm{Bethe}(A)\leq\mathrm{per}(A)\leq2^{2n/g}\mathrm{Bethe}(A).

Moreover, whenever g∣2ng \mid 2n, the upper bound is attained by the 0-1 matrices whose support graphs are disjoint unions of cycles of length g.

When g = 4, Theorem 1.3 recovers the sharp universal bound of Anari and Rezaei. At the other extreme, the Bethe approximation is exact on forests, as discussed above. More generally, along any sequence of matrices whose support graphs have girth tending to infinity, the Bethe permanent approximates the permanent within a subexponential factor.

1.4. Relation to previous work. As discussed above, the Bethe permanent is exact when the support graph is a forest. This is consistent with the more general exactness of the Bethe approximation on tree-structured graphical models [23]. On graphs with cycles, loop calculus gives exact formulas for the discrepancy between the true partition function and its Bethe approximation. Chertkov and Chernyak [7] expressed the partition function as the Bethe contribution plus correction terms indexed by generalized loops, and Watanabe and Chertkov [22] derived a version of this expansion for the permanent. These formulas describe the correction in terms of the individual loops and their weights. By contrast, Theorem 1.3 gives a sharp worst-case bound depending only on the girth of the support graph.

Several works show that the Bethe prediction becomes asymptotically exact for matching and related models on graph sequences that become locally tree-like; see, for example, [5, 10, 17, 24]. In the setting of perfect matchings, Abért, Csikvári, Frenkel, and Kun [1] showed that for dd-regular bipartite graphs converging locally to the dd-regular tree, the normalized logarithm of the number of perfect matchings converges to the Bethe prediction; see also Lelarge [15] for related results. In the other direction, Csikvári [9] showed that for dd-regular vertex-transitive bipartite graphs, the presence of a cycle of bounded length gives a strict exponential improvement over this tree rate. The former results concern locally tree-like limits or finite-activity models, while Csikvári's result requires regularity and vertex transitivity. By contrast, Theorem 1.3 gives a sharp non-asymptotic bound for weighted perfect matchings without any additional assumptions.

1.5. Overview of the proof. Suppose that per(A)>0\mathrm{per}(A) > 0. Let μA\mu_A be the Gibbs distribution induced by AA on the perfect matchings of GAG_A, given by

μA(M):=∏e∈MAeper(A),\mu_{A}(M):=\frac{\prod_{e\in M}A_{e}}{\mathrm{per}(A)},

and let p\boldsymbol{p} be its vector of edge marginals. Then

log⁡per(A)=∑e∈E(GA)pelog⁡Ae+H(μA),\log\mathrm{per}(A)=\sum_{e\in E(G_{A})}p_{e}\log A_{e}+H(\mu_{A}), log⁡Bethe(A)≥∑e∈E(GA)pelog⁡Ae+HB(p).\log\mathrm{Bethe}(A)\geq\sum_{e\in E(G_{A})}p_{e}\log A_{e}+H_{\mathrm{B}}(\boldsymbol{p}).

Thus, the common energy term cancels, and the problem reduces to comparing H(μA)H(\mu_A) with HB(p)H_{\mathrm{B}}(\boldsymbol{p}).

Anari and Rezaei control this discrepancy by a vertex-wise functional FF. Their argument can be used to show (see [4, Section 4, especially Equation (6)]) that

H(μA)−HB(p)≤12∑v∈V(GA)F(pv).H(\mu_{A})-H_{\mathrm{B}}(\boldsymbol{p})\leq\frac{1}{2}\sum_{v\in V(G_{A})}F(\boldsymbol{p}_{v}).

Here FF, defined in Definition 2.8, depends only on the local marginal vector pv=(pe)e∋v\boldsymbol{p}_{v}=(p_{e})_{e\ni v}. Their sharp bound F(q)≤(log⁡2)/2F(\boldsymbol{q})\leq(\log 2)/2, recorded in Proposition 2.10, then yields their universal 2n/22^{n/2} approximation.

Our main technical result, Theorem 3.1, replaces 1/2 by 2/g. Namely, every distribution μ\mu on the perfect matchings of a graph GG of girth at least gg, with edge-marginal vector p\boldsymbol{p}, satisfies

H(μ)−HB(p)≤2g∑v∈V(G)F(pv).(1.6)H(\mu)-H_{\mathrm{B}}(\boldsymbol{p})\leq\frac{2}{g}\sum_{v\in V(G)}F(\boldsymbol{p}_{v}). \tag{1.6}

Taking μ=μA\mu=\mu_A and applying Proposition 2.10 at the 2n2n vertices of GAG_A gives Theorem 1.3.

Reduction to a good vertex. Write ΦG(p):=HB(p)+2g∑vF(pv)\Phi_G(\boldsymbol{p}):=H_{\mathrm{B}}(\boldsymbol{p})+\frac{2}{g}\sum_v F(\boldsymbol{p}_v). Let M∼μM\sim\mu, and for u∈Lu\in L let XuX_u be the vertex matched to uu. We prove H(μ)≤ΦG(p)H(\mu)\leq\Phi_G(\boldsymbol{p}) by induction. Conditioning on Xu=wX_u=w fixes the edge uwuw, and deleting uu and ww gives a smaller perfect-matching instance whose girth is still at least gg. The chain rule for entropy and the induction hypothesis therefore reduce the proof to finding u∈Lu\in L such that

ΦG(p)−EXuΦG(pXu)≥H(Xu),\Phi_{G}(\boldsymbol{p})-\mathbb{E}_{X_{u}}\Phi_{G}(\boldsymbol{p}^{X_{u}})\geq H(X_{u}),

where

pXu:=(P(e∈M∣Xu))e∈E(G)\boldsymbol{p}^{X_{u}}:=\left(\mathbb{P}(e\in M\mid X_{u})\right)_{e\in E(G)}

is the conditional marginal vector. We call such a vertex good; see Definition 3.2.

Where girth enters. Fix u∈Lu \in L, and for each edge e∈E(G)e \in E(G) let Ee:=1{e∈M}E_e := \mathbf{1}_{\{e \in M\}}. We decompose the mutual information I(Xu;Ee)I(X_u; E_e) according to whether Ee=1E_e = 1 or Ee=0E_e = 0. Summing the Ee=1E_e = 1 terms over e∋ve \ni v gives

H(pv)−EXuH(pvXu),H(\boldsymbol{p}_{v})-\mathbb{E}_{X_{u}}H(\boldsymbol{p}_{v}^{X_{u}}),

while summing the Ee=0E_e = 0 terms gives

Hc(pv)−EXuHc(pvXu),H_{\mathrm{c}}(\boldsymbol{p}_{v})-\mathbb{E}_{X_{u}}H_{\mathrm{c}}(\boldsymbol{p}_{v}^{X_{u}}),

where HcH_{\mathrm{c}} is the complementary entropy functional defined in Definition 2.1.

By the perfect matching constraint, if an edge ee incident to vv is absent, then exactly one of the other edges f≠ef \neq e incident to vv is present. Convexity of relative entropy therefore bounds the contribution from Ee=0E_e = 0 by the contributions from (Ef=1)f≠e(E_f = 1)_{f \neq e}. In Section 4.1, we use this comparison to construct an information flow on an auxiliary network. After decomposing the flow into paths and cycles, each component projects to a nonbacktracking walk in GG.

By construction, the steps leaving uu account for the Ee=1E_e = 1 contributions at uu, whose total weight is H(Xu)H(X_u). Every departure after the first requires the walk to return to uu before it can leave again. The resulting excursion is a closed nonbacktracking walk, and hence has length at least gg. A weighted count of these excursions, carried out in Proposition 4.6, gives the following estimate. Define

Φ0(p):=1g∑v∈VHc(pv)+g−22g∑v∈VS(pv),\Phi_{0}(\boldsymbol{p}):=\frac{1}{g}\sum_{v\in V}H_{\mathrm{c}}(\boldsymbol{p}_{v})+\frac{g-2}{2g}\sum_{v\in V}S(\boldsymbol{p}_{v}),

where S:=H−HcS:=H-H_{\mathrm{c}} is the local Bethe entropy functional from Definition 2.1. Then Proposition 3.4 states that

Φ0(p)−EXuΦ0(pXu)−H(Xu)≥−2gS(pu).\Phi_{0}(\boldsymbol{p})-\mathbb{E}_{X_{u}}\Phi_{0}(\boldsymbol{p}^{X_{u}})-H(X_{u})\geq-\frac{2}{g}S(\boldsymbol{p}_{u}).

Thus the girth argument controls Φ0\Phi_0, rather than the full potential Φ\Phi, and leaves a deficit of 2S(pu)/g2S(\boldsymbol{p}_u)/g. It remains to control Φ−Φ0\Phi - \Phi_0.

Averaging. A direct calculation gives

Φ(p)−Φ0(p)=1g∑v∈VΓ(pv),Γ(q):=H(q)−2Hc(q)+2F(q).\Phi(\boldsymbol{p})-\Phi_{0}(\boldsymbol{p})=\frac{1}{g}\sum_{v\in V}\Gamma(\boldsymbol{p}_{v}),\qquad\Gamma(\boldsymbol{q}):=H(\boldsymbol{q})-2H_{\mathrm{c}}(\boldsymbol{q})+2F(\boldsymbol{q}).

For a fixed vertex uu, the girth estimate would therefore imply that uu is good if

∑v∈V(Γ(pv)−EXuΓ(pvXu))≥2S(pu).\sum_{v\in V}\left(\Gamma(\boldsymbol{p}_{v})-\mathbb{E}_{X_{u}}\Gamma(\boldsymbol{p}_{v}^{X_{u}})\right)\geq 2S(\boldsymbol{p}_{u}).

This pointwise inequality is false in general. Instead, we prove the averaged version

∑u∈L∑v∈V(Γ(pv)−EXuΓ(pvXu))≥2∑u∈LS(pu).\sum_{u\in L}\sum_{v\in V}\left(\Gamma(\boldsymbol{p}_{v})-\mathbb{E}_{X_{u}}\Gamma(\boldsymbol{p}_{v}^{X_{u}})\right)\geq 2\sum_{u\in L}S(\boldsymbol{p}_{u}).

Together with the girth estimate, this guarantees that some vertex is good.

Averaging allows us to interchange the order of summation:

∑u∈L∑v∈V(Γ(pv)−EXuΓ(pvXu))=∑v∈V∑u∈L(Γ(pv)−EXuΓ(pvXu)).\sum_{u\in L}\sum_{v\in V}\left(\Gamma(\boldsymbol{p}_{v})-\mathbb{E}_{X_{u}}\Gamma(\boldsymbol{p}_{v}^{X_{u}})\right)=\sum_{v\in V}\sum_{u\in L}\left(\Gamma(\boldsymbol{p}_{v})-\mathbb{E}_{X_{u}}\Gamma(\boldsymbol{p}_{v}^{X_{u}})\right).

Thus it suffices to control, for each v∈Vv\in V, the total change in Γ(pv)\Gamma(\boldsymbol{p}_{v}) obtained by conditioning on the coordinates Xu,u∈LX_{u}, u\in L. Since XX is a bijection, if v∈Lv\in L, conditioning on XvX_{v} determines the matched neighbor of vv, while conditioning on XuX_{u} for u≠vu\neq v rules out one possible matched neighbor. The key recursive identity for Γ\Gamma (Lemma 5.1) then shows that

∑u∈L(Γ(pv)−EXuΓ(pvXu))≥S(pv).\sum_{u\in L}\left(\Gamma(\boldsymbol{p}_{v})-\mathbb{E}_{X_{u}}\Gamma(\boldsymbol{p}_{v}^{X_{u}})\right)\geq S(\boldsymbol{p}_{v}).

The corresponding argument for X−1X^{-1} treats v∈Rv \in R. Summing over v∈Vv \in V gives

∑u∈L∑v∈V(Γ(pv)−EXuΓ(pvXu))≥∑v∈VS(pv)=2∑u∈LS(pu).\sum_{u\in L}\sum_{v\in V}\left(\Gamma(\boldsymbol{p}_{v})-\mathbb{E}_{X_{u}}\Gamma(\boldsymbol{p}_{v}^{X_{u}})\right)\geq\sum_{v\in V}S(\boldsymbol{p}_{v})=2\sum_{u\in L}S(\boldsymbol{p}_{u}).

Thus the averaged contribution from Φ−Φ0\Phi - \Phi_0 exactly compensates for the total deficit left by the girth estimate.

1.6. Acknowledgements. The authors thank Nima Anari, Clayton Mizgerd, and Huy Tuan Pham for helpful discussions. V.J. is supported by NSF grant DMS-2237646. This work was initiated when D.D. visited V.J. at the University of Illinois Chicago.

Statement on AI use. The authors had developed a strategy for proving Theorem 1.3 with multiplicative factor exp⁡(n/f(g))\exp(n/f(g)), where f(g)→∞f(g) \to \infty as g→∞g \to \infty. ChatGPT 5.6 Sol Pro was able to develop a version of this strategy into a proof with f(g)=Θ(g/log⁡g)f(g) = \Theta(g/\log g). Subsequent interactions with ChatGPT 5.6 Sol Ultra, aimed at understanding the source of this logarithmic loss and the relationship with the work of Anari-Rezaei, led to the development of the present proof. The authors used Codex for assistance with preparing the manuscript. The mathematical content, the final text, and any errors are the responsibility of the authors.