Manuscript Offprint
arXiv:2608.31061Structural Corrections to the Bethe Approximation of the Permanent
Abstract
We study deterministic approximation algorithms for the permanent of a nonnegative matrix through the Bethe permanent, an approximation computable in polynomial time. The tight analysis of Anari and Rezaei gives a universal comparison between the permanent and the Bethe permanent within a factor . The simple example of the unweighted 4-cycle (or a union of disjoint 's) shows that this bound is tight.
We show that such 4-cycle obstructions can be identified and exploited algorithmically. Given a Bethe optimizer, our algorithm identifies nearly isolated weighted blocks and peels off a vertex-disjoint family of them. If the total weighted correction is large, we can improve the Bethe approximation; if it is small, we show that the Bethe permanent is within a factor of of the truth. Combining these facts, we obtain a deterministic polynomial time -approximation algorithm for the permanent of an arbitrary nonnegative matrix, where is some absolute constant.
*School of Computer Science, Georgia Institute of Technology, inarang3@gatech.edu †School of Computer Science, Georgia Institute of Technology, wperkins@gatech.edu. Supported in part by NSF grant CCF-2309708.
1 Introduction
Given an matrix , its permanent is defined as . When is a 0/1 matrix, one can view as the bi-adjacency matrix of a bipartite graph , and accordingly is the number of perfect matchings of . For a general nonnegative matrix, the same expression is the sum of edge-weighted perfect matchings in the support graph of .
The permanent plays a central role in complexity theory, lying at the heart of questions about tractability and the power of randomness in computation. Computing the permanent of a matrix exactly is -hard [Val79], while computing the determinant of has a polynomial-time algorithm. Furthermore, even deciding the sign of is difficult [AA13, GS18], motivating the restricted case of nonnegative matrices.
On the randomized side, a breakthrough approach to approximately sampling perfect matchings via Markov chains was initiated by Broder [Bro86] and culminated in an FPRAS (Fully Polynomial Randomized Approximation Scheme) for the permanent of nonnegative matrices [JS89, JSV04]. That is, for every , there is a randomized algorithm running in time polynomial in and which outputs, with probability at least , a -multiplicative approximation to .
Constructing an algorithm without randomness, however, remains elusive. No fully polynomial-time approximation scheme (FPTAS) is known, even for 0/1 matrices. Consequently, polynomial-time deterministic algorithms for the permanent are usually studied through their exponential approximation rate. We say that a deterministic algorithm gives a -approximation to the permanent if, on input , it outputs a quantity satisfying
The classical matrix-scaling approach of Linial, Samorodnitsky, and Wigderson gives an -approximation [LSW00]; Gurvits and Samorodnitsky [GS14] then gave a -approximation. The sharpest known deterministic polynomial-time guarantee is the -approximation obtained by Anari and Rezaei via the Bethe permanent [AR25]. Improved guarantees are known in certain special cases, such as constant-degree expanders [GK10].
The main contribution of this paper is a polynomial-time deterministic algorithm for approximating the permanent of a nonnegative matrix with a better approximation ratio (by an exponential factor) than the Bethe permanent. Our main result is the following:
Theorem 1.1. There exists a constant and a deterministic, polynomial-time algorithm that, given a matrix , produces a multiplicative approximation for .
Our algorithm and proof are based on a careful post-processing and analysis of the worst-case behaviour of the Bethe permanent. Therefore, before we discuss our techniques and outline our proofs, we review the Bethe permanent.
The normalizing constant of this probability distribution is exactly . The distribution induces marginals on each edge: the probability that edge is included in the perfect matching drawn from . We collect these marginals in the matrix , where
We refer to the above matrix as the matrix of true marginals. Since every perfect matching uses exactly one edge incident to each vertex, the sum marginals of edges incident to any given vertex is 1. Therefore lies in the support-restricted perfect matching polytope
Here denotes the Birkhoff polytope of doubly stochastic matrices.
By the standard self-reducibility equivalence between approximate sampling and approximate counting, sufficiently accurate access to the true marginal matrix would yield an FPTAS for per(A). Moreover, one possible route to computing is to express it as an optimization problem via the Gibbs variational principle. However, the resulting objective includes the entropy of distributions on perfect matchings with prescribed edge marginals and is computationally intractable in general.
This motivates replacing the exact Gibbs variational problem with the Bethe free energy, a variational approximation originally arising in statistical physics and important in statistics and machine learning as well. For additional information on the general Bethe free energy, see for example, [YFW05, MM09, CY13]. Specialized to the perfect matching model, this relaxation gives the Bethe permanent.
For a nonnegative matrix and a doubly stochastic matrix , define
with the conventions and . If while , the corresponding summand is interpreted as . The Bethe permanent of is then defined as
Importantly, the Bethe permanent is computable (to arbitrary accuracy) in polynomial time [Von13]. Additionally, we will write
so that
whenever is supported on the positive entries of . It is also useful to consider the Bethe entropy term on a vertex-by-vertex level. To that end, we define by . A useful property of is that it is concave over the probability simplex.
Lemma 1.2 ([Von13]). The function is concave on . Consequently, for every ,
Note that Lemma 1.2 implies that the Bethe objective is concave on its feasible region. Indeed, is linear in , while each row , so is concave, giving that , and therefore , is concave on . Thus maximizing is equivalent to minimizing the convex function , so is computable to polynomial precision by standard convex optimization methods [Von13, BV04]. Because of this efficient computability, much work has gone into understanding the relationship between the permanent and Bethe permanent. In the following theorem, the lower bound is a result of [Sch98, Gur11] and the upper bound is from [AR25].
Theorem 1.3. For any nonnegative matrix , define to be the matrix of marginals induced by the measure . Then
where , the Bethe permanent evaluated at P.
The lower bound was originally proved via an inequality by Schrijver [Sch98, Gur11] and admits alternative proofs and generalizations via lifts [Csi17] and stable polynomials [AOG17]. In contrast, the upper bound proof of [AR25] follows an entropy comparison framework similar to that of [Rad97] for Bregman's Inequality [Bre73].
Additionally, we note that both the upper and lower bounds are tight: the lower bound is tight by the identity matrix, and the upper bound is tight by the following extremal example.
Example 1.4. Consider the unweighted cycle . Then, its set of Bethe optimal solutions is given by the one-parameter family
A direct computation gives that , and thus a set of disjoint 's gives an approximation ratio of .
A natural question is whether a disjoint set of 's is the unique worst-case example, and after accounting for edges with marginals equal to 0 or 1, it is. However, one can construct many examples with ratio that can potentially look very different.

Figure 1: As the outer cycle length tends to infinity, the edges inside each displayed weighted gadget have true marginals tending to 1/2, while the connector edges between successive gadgets have marginals tending to 0. Thus the marginal vector becomes arbitrarily close to that of disconnected -like components, even though the support graph is connected.
Motivated by such examples, a core idea of our proof is to show that any nonnegative matrix which attains a near worst-case approximation ratio must behave like a collection of disjoint weighted blocks whose two local orientation products are nearly balanced. This naturally lends itself to the following dichotomy: either the Bethe permanent performs much better than the worst-case, or it has weighted -like behavior. We are able to correct this behavior via a post-processing algorithm that peels off weighted components.
1.2 Outline of the Proof
We begin by observing that we can exactly correct weighted 4-cycles. Indeed, consider
The two local matching orientations have weights and . A direct computation gives that and . Thus, the exact correction factor is
In a general matrix, however, a block need not be isolated. Perfect matchings may enter or leave the block through boundary edges. We therefore look for blocks which are nearly isolated. This leads to the following definition.
Definition 1.5. Let and let . For a block , with all four entries positive, define
The P-leakage of Q is
We say that is -admissible for if .
Given and , let denote the total score produced by the greedy algorithm that orders all -admissible blocks by decreasing and selects a block whenever it is vertex-disjoint from all previously selected blocks. That is,
where is the greedy vertex-disjoint collection.
The Bethe approximation performs worst when it handles many high-score weighted obstructions. We show that when the Bethe optimizer has large total obstruction score, there exists an algorithm that corrects these obstructions.
Theorem 1.6. Fix . There exist and such that the following holds for every .
Let satisfy , and let be a Bethe optimizer. If
then Algorithm 2 outputs a number satisfying
The underlying algorithmic idea is that when a solution to the Bethe variational problem has many weighted defects, we can construct an auxiliary weighted matrix which provably has significantly smaller permanent, but similar Bethe value. By analyzing the structural differences between these matrices, we are able to produce a better approximation of the permanent.
To handle the case of small total obstruction score, we show that then the Bethe approximation ratio is already significantly improved. This is given by the following result.
Theorem 1.7. There exist constants , and such that the following holds.
Let satisfy , and let be a Bethe optimizer. If
then
Our proof of Theorem 1.7 is a stability refinement of the row-exposure framework of Anari and Rezaei [AR25]. For the true marginal matrix , the energy term cancels exactly:
Thus the comparison problem becomes purely entropic. The Anari-Rezaei one-row slack terms are nonnegative and vanish only at two-point extremizers with masses . Thus a near-extremal ratio forces almost all rows of the true marginal matrix to be close to such two-point vectors.
This row-wise conclusion alone does not imply -structure: the near-1/2 edges could form longer paths or cycles. We rule out this possibility through a block-exposure entropy argument, which shows that non- components incur a linear entropy loss. Hence near-extremal true marginals must organize into -components. We then show that most of these true-tight components have small leakage with respect to the Bethe optimizer , and that their two weighted orientations are nearly balanced. Therefore, if is small, the Bethe ratio is already bounded away from .
Independent work After finishing and submitting this paper, we learned of independent work of Anari [Ana26] with a similar main result, but different algorithm.
Organization. The remainder of this paper is organized as follows. Section 2 contains our algorithm, and Sections 3 and 4 contain the proofs of Theorems 1.6 and 1.7 respectively. These two theorems together immediately imply Theorem 1.1.
AI Use Statement AI (ChatGPT 5.5 Plus) was used to check the mathematical proofs as well as spelling and grammar. It also suggested ideas that helped simplify Lemma 4.5.
2 The Algorithm
We now give the deterministic approximation algorithm. The algorithm first checks whether the support of contains a perfect matching. If not, then and the algorithm returns 0. Otherwise, it computes a Bethe optimizer , identifies a greedy vertex-disjoint family of low-leakage blocks with respect to , and either returns the uncorrected Bethe permanent or applies the correction subroutine described below. The constants and are fixed absolute constants chosen so that the two guarantees in Theorems 1.6 and 1.7 apply. For simplicity we describe the algorithms as using exact Bethe optimizers and exact Bethe values. Standard convex optimization computes the required quantities to inverse-polynomial additive accuracy, and the resulting error can be absorbed by decreasing the final constant .
Algorithm 1 Deterministic weighted Bethe correction algorithm
Require: A nonnegative matrix .
Ensure: A lower estimate .
1: If the support of has no perfect matching, return 0.
2: Use the fixed constants small enough for Theorems 1.6 and 1.7.
3: Compute
and let .
4: Compute the greedy vertex-disjoint collection of -admissible blocks from Definition 1.5 and Equation (1.8), ordered by decreasing score .
5: Set .
6: if then
7: return .
8: else
9: Run Algorithm 2 on input .
10: return its output .
11: end if
Note that Algorithm 1 runs in polynomial time. It requires a check for the existence of a perfect matching, a computation of the Bethe permanent, the additional step of computing , and a search over possible blocks.
Algorithm 2 is designed to repair the places where the Bethe approximation loses weighted factors due to local ambiguity. In a weighted block , the true matching model has two local orientations: the parallel orientation with weight , and the cross orientation with weight . The weighted Bethe correction factor is .
The algorithm makes this correction explicit. For each selected block, the algorithm keeps the heavier local orientation intact and deletes one edge from the lighter orientation, choosing the deleted edge according to the -masses. The resulting matrix is then modified on boundary edges: edges leaving a selected left vertex are divided by the local correction factor . After this is done across all selected blocks, the resulting estimate approximates the weighted number of perfect matchings in the modified matrix by the Bethe permanent and then multiplies by the product of the local correction factors.
Below is the explicit pseudocode for the correction procedure.
Algorithm 2 Bethe guided weighted -correction subroutine
Require: A nonnegative matrix , a Bethe optimizer , and a vertex-disjoint collection of -admissible blocks.
Ensure: A lower estimate .
1: Initialize .
2: for each do
3: Write and .
4: Set
, , .
5: if then
6: Let and .
7: if then
8: Delete from .
9: else
10: Delete from .
11: end if
12: else
13: Let and .
14: if then
15: Delete from .
16: else
17: Delete from .
18: end if
19: end if
20: end for
21: Define a weighted matrix on the support of as follows.
22: for each positive entry of do
23: if for some , and then
24: Set .
25: else
26: Set .
27: end if
28: end for
29: Compute the weighted Bethe permanent .
30: return
It is straightforward to see that Algorithm 2 runs in polynomial time. To verify that the worst case approximation ratio is indeed , we must show that when , the quantity is at most , and that when , the correction procedure leads to the claimed correction. These two properties follow from Theorems 1.7 and 1.6 respectively.
3 Proof of Theorem 1.6
Proof. The algorithmic procedure which achieves this guarantee is exactly Algorithm 2. Our proof proceeds by analyzing its steps and the resulting approximation ratio.
Let be the Bethe optimizer under consideration. Let be the collection of blocks selected by the greedy procedure in Algorithm 1, and set
By assumption, . Since the components in are vertex-disjoint, and each uses two left vertices, we also have .
Recall that Algorithm 2 constructs a matrix by deleting one internal edge from each component . We will show that the Bethe free energy of is roughly similar to that of by constructing a feasible point . Fix a component , and write its vertices as
For notational convenience write
Since is -admissible, the total -leakage from the two rows and two columns of is at most . In particular, the two internal row sums and the two internal column sums all lie in .
Suppose first that , so that the parallel orientation is at least as heavy as the cross orientation. If , Algorithm 2 deletes and we define
Equivalently,
All edges outside selected blocks keep their value. Observe that this solution preserves the two row sums and the two column sums. Furthermore, the non-negativity constraints are met because , and , by the original row and column constraints for . Therefore the new values remain feasible, and the deleted edge receives value 0. The case is symmetric. If , we perform the same alternating-cycle transformation with the roles of the two orientations reversed. Since the components of are vertex-disjoint, these local transformations are compatible and yield a feasible point .
We now compare the Bethe objective of with that of . The energy term does not decrease. Indeed, in the case and , the internal energy change is
It remains to control the Bethe entropy term. We use the following elementary estimate.
Claim 3.1. There is an absolute constant such that the following holds for all sufficiently small . Let
be a nonnegative matrix whose two row sums and two column sums all lie in . Then
Consequently, if is another nonnegative matrix with the same row and column sums, then
Proof of Claim 3.1. Set . Since the first row sum is in , the entry differs from by at most . Since the first column sum is in , the entry differs from by at most . Finally, since the second row sum and first column sum both lie in , the entry differs from by at most .
Note that the function satisfies
for all and all sufficiently small . Along the exactly closed face we have
Combining these two facts gives the desired bound. The final assertion follows by applying the same bound to both and .
Applying Claim 3.1 to each selected block and using the nondecrease of the energy term gives
By definition, , and since is feasible for , this implies
With this fact in hand, we leverage the difference between and in order to explicitly correct the Bethe error on . Let denote the set of perfect matchings in the support of . For a matching , say that a component is closed by if the two left vertices of are matched by to the two right vertices of .
On each closed component , the matching uses the unique internal perfect matching of which remains in and corresponds to the heavier orientation. Since contains both internal perfect matchings of , we may flip independently on each closed component. The total weighted contribution from the two choices on is multiplied by exactly .
Moreover, two distinct matchings generate disjoint flip orbits in the support of . Indeed, if two matchings in differed by a nontrivial flip on some , then one of them would use the internal edge deleted from , contradicting membership in .
Recall that Algorithm 2 defines a weighted matrix by dividing boundary edges leaving selected left vertices by their local . For , let be the number of selected left vertices of which are matched outside . Then
where . If is closed by , then . If is not closed by , then at least one selected left vertex is matched outside , so . Therefore
The right-hand side is exactly the weighted contribution of the flip orbit generated from . Summing over gives
Since by Theorem 1.3, the output of Algorithm 2 is indeed a lower bound:
It remains to compare with . Since H is obtained from by dividing boundary edges of each selected block C by , we have
The transformation from to does not change boundary edge values. Since each selected block is -admissible, its selected-left boundary mass is at most . Therefore
Combining this with (3.1) gives
for an absolute constant . Now, by Equation (3.3),
Plugging in the above and using Theorem 1.3, we obtain
as . Choosing small enough so that whenever gives the result
for some .
4 Proof of Theorem 1.7
The proof has three parts. First, we use the row-exposure entropy comparison of Anari and Rezaei [AR25] to show that near equality in the Bethe upper bound forces almost all true marginal rows to be close to two-point vectors. Second, we prove a block-exposure refinement showing that these two-point rows must organize into -components; longer paths and cycles lose a linear amount of entropy. Third, we transfer this true-marginal structure to the Bethe optimizer using concavity of the Bethe entropy, and show that the corresponding weighted blocks have nearly balanced orientation products. We will signpost our use of the results of [AR25]; we recommend the reader also review their methodology.
We begin with the following useful definition.
Definition 4.1. Given a doubly stochastic matrix , we say a row is -two point if there exist two distinct indices such that
At a high level, our proof proceeds by first showing that if the worst-case ratio of is achieved, then true marginals must look like two-point rows, and furthermore that they will be organized according to 4-cycles. Once we have shown this, we show that most of these true-tight 4-cycles are low-leakage blocks for the Bethe optimizer and have nearly balanced weighted orientation products. This presence of many high-score admissible blocks contradicts the assumption that is small.
Before we proceed to the analysis, we note that, although the matrix A is weighted, the comparison at the true marginal matrix is purely entropic.
Observation 4.2. Let P be the true marginal matrix of . Then
Consequently,
Indeed, under , , so
Since , the identity follows.
Thus, throughout the proof, we will work with the quantity .
We can now begin with the following lemma. The strategy of its proof is similar to the coordinate merging framework utilized in [AR25]. We will also utilize the following consequences of their analysis: the row-slack decomposition, the coordinate-merging monotonicity lemma, and the three-dimensional equality cases of the one-row inequality.
Lemma 4.3. Fix sufficiently small and . There exists a constant such that the following holds.
Let have . Let denote the true marginal matrix of the Gibbs measure . If at least rows of are not -two point, then
Equivalently, if
then all but at most rows of P are -two point.
Proof. Let , and let . For , write for the right vertex matched to . For a probability vector , define
where is a uniformly random ordering of , and means that or appears after in the ordering . All expressions are interpreted with the usual convention .
We use the following consequence of the row-exposure analysis of [AR25]. Applied to the true marginal matrix , it gives the row-slack decomposition
Moreover, the one-row inequality of [AR25] gives for every probability vector .
We claim that there exists a constant such that every probability vector which is not -two point satisfies . Let be a probability vector which is not -two point. Zero coordinates do not affect the row expression, so we delete all zero coordinates. Starting from the remaining positive coordinates, repeatedly merge the two currently smallest coordinates until only three coordinates remain. If fewer than three positive coordinates remain, append zero coordinates. Let be the resulting three-coordinate vector.
We now justify that every merge used above is allowed by the coordinate-merging monotonicity lemma of [AR25]. Suppose that at some stage there are active coordinates, and let be the two smallest active masses. Since the total mass is 1, we have
Thus the merging of [AR25] (Proof of Lemma 13) implies that these merges cannot increase the one-row slack, and hence
Let
We claim that is bounded away from by a quantity depending only on . Write the coordinates of in increasing order as .
We first record a simple property of the smallest-coordinate merging procedure. If one of the final coordinates is not an original coordinate of , then its mass is at most . Indeed, suppose a final coordinate was created at its last internal merge by merging two active blocks of masses . At that moment, and were the two smallest active masses, so every active block outside this merge had mass at least . If , then is immediate. Otherwise, descends from an active block outside this merge. Since subsequent merges only increase masses, we have . Hence .
Now fix an absolute constant sufficiently small and take sufficiently small. Suppose, for contradiction, that . Since is invariant under coordinate permutations, after sorting coordinates increasingly this implies
In particular,
For and chosen sufficiently small, this gives and . From the property proved above, neither nor can be a merged coordinate. Therefore and must both be original coordinates of p. But then
so has two original coordinates within of . This contradicts the assumption that is not -two point. Therefore . Now note that the function is continuous on and moreover, the equality-case form of [AR25] gives
By compactness,
Consequently,
proving the claim. Now assume that at least rows of P are not -two point. Applying the row-slack lower bound to these rows gives
Plugging this into the row-slack decomposition gives
Since
we have
Since is feasible for the Bethe variational problem, , and therefore
Note that the above Lemma only gives us that most rows are -two point, and nothing about their structure. In order to argue about their structure, we first generalize the machinery of [AR25] to an entropy comparison on blocks.
Lemma 4.4. Let satisfy , and let be the Gibbs measure on perfect matchings. Let be the true marginal matrix. For , write and . Then
Proof. Let . By the chain rule for entropy,
Since records the partners of all rows in , the conditional randomness in after is revealed is exactly the randomness of the remaining weighted matching on the rows . Thus
where ranges over feasible values of , and .
Fix a feasible value of . Let be the set of right vertices not used by the partial matching . Conditional on , the remaining matching is distributed according to the Gibbs measure of the residual weighted matrix
Let denote the true marginals of this residual Gibbs measure, extended to all by setting for .
Applying Theorem 1.3 to the residual matrix and evaluating the Bethe objective at its true marginals gives
Indeed, the residual energy term cancels from the comparison between the logarithm of the residual partition function and the Bethe objective evaluated at . Taking expectation over x, we obtain
Now, observe that for every and , we have by the law of total expectation. Additionally, because the function is concave on the probability simplex (Lemma 1.2), we have for each fixed ,
Summing over , we get
Combining this with the chain rule and subtracting gives
Putting together the above two ingredients will enable us to prove the structure of the true marginals.
Lemma 4.5. Fix . There exists such that for every , there exists a constant with the following property.
Let satisfy . Let denote the true marginal matrix of the Gibbs measure and define to be the subgraph of the support of consisting of all edges satisfying .
If
then the threshold graph has -components spanning at least left vertices.
Proof. Let . For , write for the right vertex matched to . Additionally, let denote the binary entropy function, and define
Observe that since , we have as . Additionally, set and choose sufficiently small so that, for every ,
Fix such a , and set
Additionally, choose small enough so that and . Let be the constant given by Lemma 4.3, applied with parameters and . Finally define
and set .
Now suppose
Since , Lemma 4.3 implies that all but at most left vertices are -two point. Applying the same lemma to gives the analogous statement for right vertices.
Hence there exist sets and such that , , and every vertex in is -two point. For every vertex outside these exceptional sets, there are at least two incident edges in . On the other hand, has maximum degree at most 2. Indeed, if some vertex were incident to three edges of , then the sum of the corresponding true marginals would be at least , a contradiction. Therefore every non-exceptional vertex has exactly two incident edges in , and every connected component of is a path or a cycle.
Let be the collection of connected components of which are not 's. Enumerate them as . For each , write
and write and . We will prove that if is a positive fraction of , then the Bethe ratio is bounded away from .
We will do this by bounding the entropy of the matching distribution on long cycles and paths. To do this, expose the random vector as follows.
- For each , reveal
the set of rows in whose matching edge is not an edge of the -component . Also reveal
the set of columns in whose matching edge is not an edge of .
-
For each , reveal the actual destinations of the exceptional rows: .
-
Lastly, for each , reveal the remaining internal matching inside , denoted by .
The collection determines . Hence, by the chain rule and entropy subadditivity,
We now bound these three terms. Consider the entropy of the exceptional sets. If , then the two -edges of incident to both have marginal at least . Therefore
Similarly, if , then . Thus, by entropy subadditivity,
Since every component of is a path or a cycle, for every . If , then is a path whose larger side contains an endpoint. That endpoint has degree at most 1 in , and therefore cannot be -two point. Hence each imbalanced component can be charged to a vertex of . Consequently,
In particular, , and therefore
Next, we bound the entropy of the exceptional destinations. For , set
Let be the random variable equal to if , and equal to a dummy symbol * otherwise. Then is determined by together with the sets . Hence
Finally, bound the entropy of the internal choices . Once have been revealed, the remaining vertices of must be matched using only edges of . If is a path, deleting vertices leaves a disjoint union of paths, and each path has at most one perfect matching. Thus a path component contributes at most one internal choice. If is a cycle, then either some vertex has been deleted, leaving a disjoint union of paths, or no vertex has been deleted, in which case the cycle has exactly two alternating perfect matchings. Therefore a cycle component contributes at most to the entropy, while a path component contributes zero.
Let be the number of cycle components in . Since the -components were excluded, every cycle in has at least 3 left vertices. Hence . Consequently,
Combining the three entropy bounds gives
We now compare the entropy with the Bethe contribution from the same rows. Define
By Lemma 4.4,
where the last inequality follows from and from for every internal edge .
Rows in contribute at most , while rows in contribute at most their total row mass. Since ,
Also, and , so
Plugging these bounds in, we get
Using and , this implies
Let be the union of the -components of . Every left vertex not spanned by is either in or in . Therefore the number of left vertices not spanned by is at most .
Now suppose, toward contradiction, that spans fewer than left vertices. Then , and hence, using , we have . Plugging this into (4.4) gives
where we used . Exponentiating, we get
a contradiction since .
Now that we have characterized the behavior of the true marginals under the worst-case ratio, all that remains is showing that this same behavior transfers to weighted low-leakage blocks for the Bethe optimizer and that the corresponding weighted orientation products are nearly balanced. Such a structure is described by the following definition.
Definition 4.6. Let be the true marginal matrix, and let be the threshold graph consisting of all edges with . A block
is called a true -tight -component if the four edges form a connected component of . In particular, each internal edge of has true marginal in , and for every ,
The following Lemma shows that when is sufficiently small, such tight 's can be detected by the Bethe permanent.
Lemma 4.7. For every and every , there exist constants and such that the following holds.
Let satisfy , with true marginal matrix and Bethe optimizer . Suppose
Let be a row-disjoint collection of true -tight 's for . Then all but at most members are -admissible for . Moreover every member satisfies
We defer its proof to the next subsection. For now, assuming it is true, we can finish the proof of Theorem 1.7 as follows.
Proof of Theorem 1.7. Choose constants and . Fix sufficiently small, to be specified below, and apply Lemma 4.7 with this choice of parameters and . Let and be the constants from that lemma. Apply Lemma 4.5 with the above fixed value of .
Choose small enough so that Lemma 4.5 applies with tolerance and additionally . Let be the corresponding constant. Thus, if
then the true marginal graph contains a vertex-disjoint union of 's spanning at least left vertices.
Set
and choose any . Finally choose small enough that and . We claim that this choice proves the theorem. Suppose, toward contradiction, that but
Since , Lemma 4.5 gives a vertex-disjoint collection of true -tight 's spanning at least left vertices, i.e. . Moreover,
We claim that every true -tight -component is also a true -tight -component. Indeed, the four internal edges are within of . Moreover, for every vertex of the block, the total marginal mass leaving the block is at most . Hence every external incident edge has marginal at most , and therefore no external incident edge belongs to the threshold graph .
Thus Lemma 4.7 applies to . All but at most members of are -admissible for , and every member of has score at least . Therefore the maximum total score of a vertex-disjoint collection of -admissible blocks is at least
The greedy algorithm that defines obtains at least a fraction of the optimum score: each selected block uses four vertices, and a vertex-disjoint optimum block can be charged to the first greedy block with which it intersects. Hence
contradicting the assumption .
4.1 Proof of Lemma 4.7
Recall the notation
When the dimension is clear, we simply write , and recall that by Lemma 1.2, it is concave.
Claim 4.8. Define by
Then, for all ,
Proof. It suffices to prove that merging two coordinates cannot increase the Jensen gap, and the result follows by iterating. Denote the two coordinates being merged in by , and in the corresponding coordinates by . The loss in from merging these two coordinates is
Thus is concave on the triangle by Lemma 1.2. Therefore
Equivalently, the Jensen gap before merging is at least the Jensen gap after merging. Iterating gives the claim.
The next claim also exploits the concavity of the Bethe objective on the simplex.
Claim 4.9. Let be a Bethe optimizer and let be the true marginal matrix. Suppose that, for some ,
Then
Proof. Since is a Bethe optimizer,
Therefore the difference in the first item is nonnegative. Also, by Theorem 1.3,
On the other hand, the hypothesis gives
Combining the previous two displays proves the first item.
For the second, set . By concavity of on the matching polytope,
On the other hand, by optimality of ,
Thus
The linear energy term cancels from the Jensen gap, so the left-hand side equals
This proves the claim.
Claim 4.10. For every , there exist constants and such that the following holds.
Let . Suppose that is -tight on coordinates 1 and 2, i.e.
and suppose that satisfies . Then
Proof. Define . Since p is -tight,
For , define
We show that is bounded below by a positive constant whenever . Let with , and define
Then
By Lemma 1.2, is concave on . It is not affine, because and, as ,
Since , the third term gives . Therefore
Equivalently, whenever . The set is compact, and is continuous. Hence
By continuity of on , after decreasing if necessary, we may ensure that whenever and , one has . Set . Now take and . Since is -tight and , the result follows from Claim 4.8.
The next claim says that a true-tight has nearly balanced orientation products.
Claim 4.11. There is an absolute constant such that the following holds. Let be a true -tight -component for the Gibbs measure of , with . Then
In particular .
Proof. Let
and
Because is true -tight, each internal edge marginal is within of , and each row and column leakage from is at most . If the event occurs but , then column is matched from outside , an event of probability at most . Therefore
Also . The same argument gives
Conditioned on being internally closed, the residual outside problem is identical for the parallel and cross orientations. Hence
Since both and lie in , their ratio is between and for an absolute constant , proving the claim.
With the above claims in hand, we now prove Lemma 4.7.
Proof of Lemma 4.7. Fix and . Choose . Let and be the constants from Claim 4.10. Choose small enough so that
where is the constant from Claim 4.11. Lastly, define . Let be a row-disjoint collection of true -tight 's for the true marginal matrix , and suppose
Call a row bad if it belongs to some and satisfies
We show that there are few bad rows. Fix a bad row belonging to such a . Since is a true -tight -component for , the two internal true marginals in row are within of , and
Also , so after relabeling as coordinates 1, 2, the row , is -tight in the sense of Claim 4.10. Since is bad,
Therefore Claim 4.10 implies that this row contributes at least to the Jensen gap:
By Lemma 1.2, every row Jensen gap is nonnegative. On the other hand, by Claim 4.9, the total row Jensen gap is at most . Thus the number of bad rows is at most
Since is row-disjoint, the number of blocks in containing at least one bad row is also at most . In particular, all but at most blocks in have both Bethe row leakages less than .
Now fix such a good block . Then
We next show that the two Bethe column leakages are also small. Since is feasible, all row and column sums equal 1. Therefore
Thus the total row leakage is less than and the total column leakage is less than . Hence
So all but at most members of are -admissible. Finally, by Claim 4.11 and the choice of , every member satisfies . This proves the lemma.
References
[AA13] Scott Aaronson and Alex Arkhipov. The computational complexity of linear optics. Theory of Computing, 9(4):143–252, 2013. Preliminary version in STOC 2011.
[Ana26] Nima Anari. Beyond the bethe approximation of the permanent. arXiv preprint arXiv:2608.28031, 2026.
[AOG17] Nima Anari and Shayan Oveis Gharan. A generalization of permanent inequalities and applications in counting and optimization. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, pages 384–396, New York, NY, USA, 2017. ACM.
[AR25] Nima Anari and Alireza Rezaei. A tight analysis of Bethe approximation for permanent. SIAM Journal on Computing, 54(4):FOCS19–81–FOCS19–101, 2025. Special section for FOCS 2019.
[Bre73] Lev M. Bregman. Some properties of nonnegative matrices and their permanents. Soviet Mathematics Doklady, 14:945–949, 1973. Russian original in Doklady Akademii Nauk SSSR, 211:27–30, 1973.
[Bro86] Andrei Z. Broder. How hard is it to marry at random? (On the approximation of the permanent). In Proceedings of the 18th Annual ACM Symposium on Theory of Computing, pages 50–58, New York, NY, USA, 1986. ACM.
[BV04] Stephen Boyd and Lieven Vandenberghe. Convex Optimization. Cambridge University Press, Cambridge, 2004.
[Csi17] Péter Csikvári. Lower matching conjecture, and a new proof of Schrijver’s and Gurvits’s theorems. Journal of the European Mathematical Society, 19(6):1811–1844, 2017.
[CY13] Michael Chertkov and Adam B. Yedidia. Approximating the permanent with fractional belief propagation. Journal of Machine Learning Research, 14(62):2029–2066, 2013.
[GK10] David Gamarnik and Dmitriy Katz. A deterministic approximation algorithm for computing the permanent of a 0,1 matrix. Journal of Computer and System Sciences, 76(8):879–883, 2010.
[GS14] Leonid Gurvits and Alex Samorodnitsky. Bounds on the permanent and some applications. In Proceedings of the 55th Annual IEEE Symposium on Foundations of Computer Science, pages 90–99. IEEE, 2014.
[GS18] Daniel Grier and Luke Schaeffer. New hardness results for the permanent using linear optics. In Rocco A. Servedio, editor, 33rd Computational Complexity Conference (CCC 2018), volume 102 of Leibniz International Proceedings in Informatics (LIPIcs), pages 19:1–19:29, Dagstuhl, Germany, 2018. Schloss Dagstuhl–Leibniz-Zentrum für Informatik.
[Gur11] Leonid Gurvits. Unleashing the power of Schrijver's permanental inequality with the help of the Bethe approximation. Technical Report TR11-169, Electronic Colloquium on Computational Complexity, 2011. arXiv:1106.2844.
[JS89] Mark Jerrum and Alistair Sinclair. Approximating the permanent. SIAM Journal on Computing, 18(6):1149–1178, 1989.
[JSV04] Mark Jerrum, Alistair Sinclair, and Eric Vigoda. A polynomial-time approximation algorithm for the permanent of a matrix with nonnegative entries. Journal of the ACM, 51(4):671–697, 2004.
[LSW00] Nathan Linial, Alex Samorodnitsky, and Avi Wigderson. A deterministic strongly polynomial algorithm for matrix scaling and approximate permanents. Combinatorica, 20(4):545–568, 2000.
[MM09] Marc Mezard and Andrea Montanari. Information, physics, and computation. Oxford University Press, 2009.
[Rad97] Jaikumar Radhakrishnan. An entropy proof of Bregman's theorem. Journal of Combinatorial Theory, Series A, 77(1):161–164, 1997.
[Sch98] Alexander Schrijver. Counting 1-factors in regular bipartite graphs. Journal of Combinatorial Theory, Series B, 72(1):122–135, 1998.
[Val79] Leslie G. Valiant. The complexity of computing the permanent. Theoretical Computer Science, 8(2):189–201, 1979.
[Von13] Pascal O. Vontobel. The Bethe permanent of a nonnegative matrix. IEEE Transactions on Information Theory, 59(3):1866–1901, 2013.
[YFW05] Jonathan S. Yedidia, William T. Freeman, and Yair Weiss. Constructing free-energy approximations and generalized belief propagation algorithms. IEEE Transactions on Information Theory, 51(7):2282–2312, 2005.