Manuscript Offprint
arXiv:2609.11049A deterministic approximation for the permanent of a nonnegative matrix
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
1. INTRODUCTION
Let . Its permanent is
where denotes the symmetric group on elements. The permanent counts perfect matchings in the bipartite support graph of when is a 0–1 matrix. For general nonnegative , it is the total weight of perfect matchings, where a matching has weight .
Valiant [27] proved that computing the permanent is #P-complete even for 0–1 matrices. On the algorithmic side, Jerrum, Sinclair, and Vigoda [18] gave a fully polynomial randomized approximation scheme for nonnegative matrices. The existence of a deterministic (fully) polynomial approximation scheme remains a major open problem.
The known deterministic polynomial-time algorithms for general nonnegative matrices have approximation factors exponential in n. Throughout, we measure multiplicative guarantees by the width of a certified interval, i.e., a factor approximation consists of polynomial-time computable quantities and satisfying
Linial, Samorodnitsky, and Wigderson [21] obtained a factor by combining matrix scaling with the van der Waerden inequality. Subsequent improvements used the Bethe permanent, which can be computed by convex optimization [28]. Gurvits [15] proved that the Bethe permanent is a lower bound for the permanent, and Gurvits and Samorodnitsky [16] proved the reverse inequality with a factor . Their analysis also yields an approximation factor of approximately , as noted in [2, Footnote 3]. Anari and Rezaei [2] proved that the Bethe permanent approximates the permanent within a factor , and that this bound is sharp. Thus a better general approximation requires more than the Bethe permanent alone. Recently, Anari [1] and Narang and Perkins [23] obtained approximation factors for a small absolute constant by adding corrections to the Bethe approximation.
We show that the base of the exponential factor can be taken to be any constant greater than one.
Theorem 1.1. For every fixed , there is a deterministic algorithm that, given , returns satisfying
For each fixed , the algorithm is strongly polynomial, using arithmetic operations and comparisons.
Remark 1.2. We use the computational model of Linial, Samorodnitsky, and Wigderson [21], described in Section 1.1. The running time can be improved to by replacing the map used in Section 3 with the rational map in [4, Lemma 2.3]. We do not pursue this refinement here.
1.1. Computational model. We use the arithmetic model of [21], in which additions, subtractions, multiplications, divisions, and exact comparisons of real numbers have unit cost. An algorithm is strongly polynomial if its operation count is polynomial in the number of input entries, independently of their magnitudes and encoding lengths, and if, on rational inputs, all numbers computed have bit lengths polynomial in the total input length. We apply this definition with fixed.
The bit length of a rational number , denoted as , is the sum of the binary lengths of its numerator and denominator in lowest terms. Elementary functions are evaluated by rational approximation, with the cost included in the operation count.
1.2. Related work. Gamarnik and Katz [13] obtained a approximation for 0–1 matrices in polynomial time under the assumption that the support graph has bounded maximum degree and vertex expansion bounded away from zero. For arbitrary 0–1 matrices, their algorithm achieves the same approximation factor in time . Their algorithm uses the approximation scheme of Bayati, Gamarnik, Katz, Nair, and Tetali [8] for the matching partition function , where the sum is over all matchings. For fixed activity and bounded maximum degree, these authors gave a deterministic fully polynomial-time approximation scheme based on correlation decay. Gamarnik and Katz use vertex expansion to bound the contribution of nonperfect matchings when is sufficiently large.
For matrices satisfying for all , where is fixed, matrix scaling gives a polynomial-factor approximation in polynomial time [21, 7]. Barvinok obtained more accurate approximations in quasipolynomial time, first for real or complex matrices whose entries are sufficiently close to 1 [5], and subsequently for all real matrices satisfying [6]. In the latter setting, his algorithm approximates log per to additive error in time . Recently, Yi [30] gave an FPTAS for matrices with entries in , where is fixed, provided every row and column has at least nonzero entries for a fixed .
Barvinok’s algorithms use his interpolation method, which approximates the logarithm of a polynomial from its first few coefficients, using bounds on the locations of its zeros. For the polynomial , where the sum is over all matchings of , the Heilmann–Lieb theorem [17] places all zeros on the negative real axis. Barvinok [4] used this to approximate the total number of matchings from the first few coefficients of . Patel and Regts [25] showed how to compute the required coefficients efficiently on bounded-degree graphs, obtaining polynomial-time approximation algorithms from suitable bounds on the zeros. We refer to [3] for a general account of this method.
The Bethe permanent is computable by convex optimization [28] and is a lower bound for the permanent [15]. The authors [12] proved that its approximation factor improves from to if the support graph has girth at least g, for even . This comparison is sharp and holds for arbitrary nonnegative edge weights.
Independent work. After finishing this paper and right before submitting it, we learned of independent work of Kudria, Luo, and Majid [20] which provides an -factor approximation of the permanent in deterministic polynomial time. We believe that by replacing the exact Taylor polynomial in Section 3 by a suitable approximation, our algorithm can also be modified to achieve this guarantee.
1.3. Notation and conventions. All logarithms are natural, and . An empty product equals one.
For a finite graph , let denote the set of its matchings, including the empty matching. For edge weights , write
For nonnegative weights, the associated Gibbs measure is
For an induced subgraph of , uses the restrictions of the same weights. We write for the graph obtained by deleting , and similarly for several vertices.
For a nonnegative matrix , its bipartite support graph has a left vertex for each row, a right vertex for each column, and an edge whenever . We assign this edge weight , write when , and use with the convention above.
For a finite set , let denote the set of probability distributions on . For , its entropy is
We also write for the entropy of the distribution of a random variable X, and
for the binary entropy function. For , their relative entropy is
with zero summands when and value if for some .
We write and for the indicator of an event . The vector has all entries equal to one, with dimension determined by context. Exponentials and logarithms of vectors are taken coordinatewise. For vectors, and denote the Euclidean and maximum norms; for matrices, denotes the Euclidean operator norm. We write for the Euclidean ball of radius centered at . For real symmetric matrices, means that is positive semidefinite.
1.4. Proof overview. Consider the partition function at activity , given by
For sufficiently large , the contribution of perfect matchings dominates, so approximates per A. Gamarnik and Katz [13] use this observation to approximate the permanent of 0–1 matrices. When the support graph is a bounded-degree expander, they show that the contribution of nonperfect matchings is sufficiently small for a choice of depending only on , the expansion constant, and the degree bound. In particular, is independent of . The correlation-decay algorithm of [8] approximates in polynomial time for fixed and bounded-degree graphs, so this gives a polynomial-time algorithm for bounded-degree expanders. For general 0–1 matrices, they use an expander decomposition and obtain a subexponential-time algorithm. Note that for arbitrary nonnegative weights, the required value of can be arbitrarily large, even for a graph consisting of two disjoint edges. Indeed, consider . Then, per whereas
so that in order for to approximate per within a fixed factor, must grow at least proportionally to .
Instead of using a uniform activity , we rescale the rows and columns of A separately. Specifically, we assign an activity to each vertex and replace the edge weight by
Since every perfect matching uses each vertex exactly once,
On the other hand, the weight of a nonperfect matching is multiplied only by the activities at the vertices it covers.
We show that there exists for which
while the total edge weight incident to each vertex is . It therefore remains to find such and approximate efficiently. The function is convex, but it is unclear how to evaluate it without enumerating all matchings. We overcome this by showing that when the total edge weight at each vertex is , the function has an efficiently computable approximation that remains convex in . This allows us to find a suitable by using deterministic convex optimization.
Existence of . We adapt the approach of Csikvári [11, 10]. We assume that per and that every edge in the support of belongs to a perfect matching; removing edges violating this can be accomplished in polynomial time and does not change per . Consider the distribution on matchings corresponding to the weights ,
The probability of a perfect matching under this distribution is per . Thus, the approximation we desire is equivalent to requiring that the probability of a matching being perfect is at least . In particular, this probability may be exponentially small in . We will use this flexibility to allow each vertex to be unmatched with a small probability depending only on , rather than on .
In Csikvári's vertex-transitive setting [10], symmetry ensures that every vertex has the same probability of being matched. Our main idea is to enforce this balance for general weighted graphs by choosing so that
where is chosen close to one. This is somewhat analogous to matrix scaling [21], where the row and column factors are chosen so that the total edge weight incident to each vertex is one. Note that is impossible for finite , since the empty matching has positive probability under . Since is the maximum of over distributions on perfect matchings, it is natural to consider
where the maximum is over distributions on matchings which match every vertex with probability t. For , a standard Lagrange multiplier argument shows that the maximizing distribution has the form for some finite ; see [26].
In Section 2, we prove the following entropy inequality, which may be of independent interest
Since as , this gives the required approximation by choosing sufficiently close to one in terms of .
Finally, as in Csikvári [10], a correlation inequality of Heilmann–Lieb [17] implies that, for any satisfying (1.2),
Thus, the choice of t above also bounds the total edge weight at each vertex by .
Convex approximation. To find , we use the dual formulation
By (1.3), we can restrict the minimum to parameters for which the total edge weight at each vertex is at most . We need an approximation to that is both efficiently computable and convex in , so that we can minimize the resulting objective.
Barvinok’s interpolation method [3, 4] constructs a polynomial approximation to from the total weights of matchings with at most edges. These quantities can be computed by enumeration, so can be evaluated in time. However, the polynomial obtained this way is generally not convex in . We therefore add a correction with sufficiently large Hessian, following a standard regularization principle; see, for example, Nesterov [24, Theorem 1].
Concretely, we consider the following regularized version of the Taylor polynomial
By (1.3), the regularizer changes by at most on the region we are optimizing over, whereas a direct computation shows that . The remaining task is therefore to choose large enough to compensate for the negative curvature of , but small enough to preserve the required accuracy.
In Section 3, we prove that
where depends only on and and decreases exponentially with for fixed . Taking and , we get that is convex and satisfies
throughout the region we optimize over.
Finally, to obtain a strongly polynomial algorithm, we use the preprocessing procedure of Linial, Samorodnitsky, and Wigderson [21], followed by rounding, to reduce to a matrix whose entries have bit length polynomial in n and . This makes the number of operations required for the convex minimization independent of the magnitudes of the original entries; see Section 4.
2. An INTERPOLATION FOR THE LOGARITHM OF THE PERMANENT
Let and suppose that satisfies per . Let denote the bipartite support graph of . Deleting support edges that do not belong to any perfect matching does not change per , so we henceforth assume that every belongs to some perfect matching of . This property is used in (2.3).
For , let
and define
Since per , the graph has a perfect matching. Retaining each edge of any fixed perfect matching independently with probability gives an element of , so is nonempty. Moreover, is a closed subset of the finite-dimensional probability simplex , and hence is compact. The objective defining is continuous, so the maximum is attained.
Let denote the probability measure on perfect matchings given by
For every , since
we have
Since , with equality at , it follows that
Thus may be viewed as an interpolation for log per A through matching distributions with prescribed vertex marginals. The following theorem quantifies this interpolation.
Theorem 2.1. For every with per and every ,
Remark 2.2. Both constants in Theorem 2.1 are best possible. The lower bound is attained for the identity matrix , while the constant 2 in the upper bound is asymptotically sharp for the all-ones matrix , for example, with and as .
The lower bound is obtained by thinning a perfect matching sampled from .
Proof of the lower bound in Theorem 2.1. Let . Then
Retain each edge of independently with probability t, and let M denote the resulting matching. The law of M belongs to , and, by linearity of expectation,
View as a bijection from to , and let be the set of vertices whose incident edge in is retained. For , write for the restriction of to . The matching is in bijection with the pair . Therefore,
where the last equality uses the independence of S and . Equivalently,
By the fractional-cover form of Shearer's entropy inequality (cf. [22]),
For completeness, we include the short proof. Suppose . For every fixed with , the chain rule and the fact that conditioning reduces entropy give
Taking expectations over and using for every yields
Thus,
The remainder of this section is devoted to the proof of the upper bound in Theorem 2.1.
2.1. The maximizing distribution. We now express as a convex minimization problem. This uses standard entropy duality; see Wainwright and Jordan [29] for background and Singh and Vishnoi [26] for its use in counting algorithms. We give the proof in our setting below. Fix . For , define
and let , where recall that is the Gibbs measure associated with the edge weights . Define
For every vertex v and matching M, let denote the indicator that v is matched in M. Then we have
For every ,
where the last equality uses for every . Rearranging gives
Thus
with equality whenever . We next show that attains its infimum and that a minimizer satisfies .
Lemma 2.3. For every , the infimum of over is attained. If is any minimizer, then and
Proof. We first prove that the infimum is attained. Fix , choose an edge maximizing , and let be a perfect matching containing . (Note that such a perfect matching exists by the support reduction at the start of the section.) Let
Since is a matching,
Moreover, since P is a perfect matching,
Therefore,
(2.3)
where the last step follows from that . Note from above that depends on only through the vector . Thus, letting , it makes sense to define the map by
Note that S is a linear subspace of , and hence is closed.
Since is continuous, so is . By (2.3), for every , the set is closed and bounded in . Since itself is closed in , we get that is compact.
Thus attains its infimum on the compact nonempty sublevel set , so the infimum of is attained.
Finally, since
(2.4)
we have
Hence, at any minimizer ,
so . Taking in (2.1) gives
which proves (2.2).
□
2.2. A bound on the partition function. We next bound the partition function at a minimizer of .
Lemma 2.4. For every 0 < t < 1 and every minimizer of ,
Proof. Fix a minimizer and for convenience of notation, write . By Lemma 2.3, every vertex is matched with probability under .
We will need the following correlation inequality of Heilmann and Lieb [17]. For the reader's convenience, we give a proof here.
Claim 2.5. If and , then
Proof. Consider the map
defined as follows. Given a red matching and a blue matching , regard any common edge as two parallel colored copies.
If also avoids , leave the pair unchanged. Otherwise, the component of containing is an alternating path beginning with and a blue edge incident to it. We observe that this path cannot contain . Indeed, since does not contain , cannot be an internal vertex of this path. Furthermore, if is the other endpoint, then the last edge must be red; in particular, the path must have even length. But and lie in different parts of the bipartite graph, so the path must have odd length, which is a contradiction. Hence does not lie on this path. Swap the two colors along this path. After the swap, the blue matching avoids both and , while the red edges still form a matching of .
We now show that the map is injective. In the image, there is a red edge incident to u if and only if a swap occurred. In this case, the component containing u is the same alternating path, and swapping its colors again recovers the original pair. If there is no red edge at u, the map was the identity. The map preserves the multiset of edges, and hence preserves the product weight . Summing over all input pairs gives (2.6).
Now let and note that
Dividing both sides of (2.6) by , we have
Hence, for every edge e,
Summing over the edges incident to a vertex gives
Finally, every matching is obtained by letting each vertex in L choose either no edge or one incident edge, subject to the constraint that the chosen edges form a matching. Dropping the matching constraint gives the upper bound
The empty matching gives , completing the proof.
Remark 2.6. The bound on the edge weights in is related to a result of Kahn and Kayll . They showed that if
where is the matching polytope and , then each edge weight is bounded by a constant depending only on .
In our setting, write . Since for every vertex and is bipartite, belongs to the perfect matching polytope. Thus , and their result applies with . The argument above gives the explicit bound in (2.7) on the sum of the edge weights at each vertex, which we will use in constructing the polynomial approximation.
2.3. Completing the upper bound. We now complete the proof of the upper bound. We work with finite differences, avoiding the need to establish differentiability of or continuity of .
Proof of the upper bound in Theorem 2.1. Fix , and let be a minimizer of . By Lemma 2.3,
whereas the variational bound at t gives
Dividing by s and t, respectively, and subtracting gives
Fix and an equipartition
Applying (2.8) to each pair and using (2.5) gives
Letting gives
Next, we show the endpoint bound
Choose such that , and let attain . Since is compact, after passing to a subsequence, converges to a probability measure on . For every vertex , continuity gives is matched) = , so . Since is finite, both and are continuous functions of . Hence
Finally, letting in (2.9) and using (2.10), we obtain
Multiplying by t proves the upper bound.
3. A CONVEX POLYNOMIAL APPROXIMATION
Let be a finite simple graph with , and let be positive edge weights. We will approximate by a low-degree polynomial . In the application, , so the logarithmic edge weights are affine functions of the vertex fields. Since we will later optimize over the vertex fields , we seek an approximation for which is convex.
Fix a rational , and define the convex set
Throughout this section, derivatives are taken with respect to the logarithmic weights y, whereas polynomial degrees refer to the weights w. In particular, with , we write
Theorem 3.1. For rational and , there is an explicit polynomial with rational coefficients and degree at most
such that is convex on and
The polynomial can be constructed using arithmetic operations. Given , its value and any fixed-order derivatives of can also be evaluated using arithmetic operations.
3.1. The polynomial approximation. We first construct a polynomial approximating . To ensure convexity in the logarithmic weights, we will also bound the Hessian of the approximation error and add a small multiple of
The same correction will make the approximation an upper bound.
One could try expanding at and evaluating the Taylor polynomial at . However, zeros of may lie too close to the origin for the Taylor series to converge at . We instead make the change of variables
Then and . This change of variables is a rescaled version of Barvinok's transformation [4, Lemma 2.4]. We will show below that, for , the function is analytic on , with the logarithm chosen to vanish at .
For , define
where denotes the coefficient of in the Taylor expansion of at zero. Thus is the Taylor polynomial in , evaluated at the point corresponding to the original weights. The next lemma shows that can be computed by enumerating matchings with at most edges.
Lemma 3.2. For , the function is a polynomial with rational coefficients and degree at most . It can be constructed using arithmetic operations. Given , its value and any fixed-order derivatives of can be evaluated using arithmetic operations.
Proof. Let
be the total weight of the matchings with edges. Since , the coefficients through degree in
depend only on . Write
Expanding gives
Differentiating the two series with respect to z and using gives the recurrence
It follows inductively that has rational coefficients and degree at most . Hence has rational coefficients and degree at most .
The matchings with at most edges can be enumerated in poly operations. The recurrence then constructs in operations since all intermediate polynomials have degree at most in at most variables, and therefore have monomials. Finally, for a monomial ,
Thus evaluation and any fixed-order derivatives can also be computed in operations. ☐
We next state the error bounds needed to prove Theorem 3.1. Let
Lemma 3.3. For every and ,
(3.3)
Moreover, for every edge e,
We first deduce the theorem from this lemma. The value and Hessian bounds suffice for this deduction; the gradient bound will also be used in the numerical minimization.
Proof of Theorem 3.1. If , take . Otherwise, choose
and set
Since and , we have
By Lemma 3.2, U has rational coefficients, degree at most m, and the claimed construction and evaluation costs.
To prove convexity, write , and let indicate that . Differentiating the finite sum defining gives
Consequently, for every ,
Also, . Since , the Hessian bound in Lemma 3.3 gives
Thus is convex on the convex set .
For the error bound, use and (3.3) to obtain
Since
it follows that
This proves the theorem.
3.2. Path trees. We now turn to the proof of Lemma 3.3. We will bound derivatives of by expressing them through ratios of partition functions.
For an induced subgraph of , a vertex , and , define
whenever the denominator is nonzero. For , removing e from a matching containing it leaves a matching of . Thus
and hence
This identity holds wherever the expressions are defined. To bound these ratios, we represent them using a matrix associated with a tree.
For an induced subgraph and , the path tree has as its vertices the simple paths in starting at . Two paths are adjacent if one is obtained from the other by adding one edge at the end. The root is , the path consisting only of . Every other path has a unique parent, obtained by deleting its last edge, so this graph is indeed a tree. See Figure 1.

FIGURE 1. The graph (left) and its path tree rooted at (right). Edge labels indicate the corresponding edges of .
Let be the real symmetric matrix indexed by the vertices of , with
The following lemma expresses in terms of and shows that whenever .
Lemma 3.4. For every induced subgraph of and , let and be as above. Then
whenever both sides are defined. If with , then
Proof. We prove the weighted resolvent form of Godsil's path-tree identity [14] directly for completeness. Every matching of H either leaves v unmatched or contains exactly one edge vu. Thus
and hence
We now show that the diagonal entry of corresponding to the root satisfies the same recurrence, with .
Write for the weighted adjacency matrix of , and set
For now, take sufficiently close to zero that all inverses below exist. Deleting the root of leaves one component for each neighbor of . Removing the initial vertex from each path identifies this component with . Order the matrix indices with the root first, followed by these components. Then
where is block diagonal with blocks for , and , with all other entries of zero. Taking the Schur complement of gives
By the block structure of M and the definition of b,
SO
Observe that this is also the recurrence satisfied by . Since when is isolated, induction on gives
To express this in terms of , let D be diagonal, with entries 1 and -1 on the two bipartition classes of the path tree. Since and ,
The two inverses therefore have the same entry. Averaging gives
Setting proves (3.6) near . Both sides are rational functions of , so the identity holds wherever both sides are defined.
For the norm bound, write , where
Each vertex has at most one parent, so distinct rows of P have disjoint supports. Thus is diagonal. If a path p ends at u, its children extend it along distinct edges incident to u, giving
where the last inequality uses and . Hence and . It follows that
The path tree is used only in the proof; the algorithm computes by the matching enumeration in Lemma 3.2. Since is real symmetric, the norm bound in Lemma 3.4 gives
for every induced subgraph and root , where denotes the spectrum of . We will use this inclusion to bound for complex .
3.3. The approximation estimates. Fix and write . We will estimate the Taylor coefficients on a circle of radius
so that . From the definitions of and , we have
(3.7)
The change of variables is illustrated in Figure 2.

FIGURE 2. The map sends the unit disk to the half-plane , whereas can be singular only for real . The Taylor series is evaluated at and estimated on the larger circle . The figure is schematic.
To control the Hessian of the approximation error, we will also need bounds on certain second derivatives. For , define
We will use bounds on to bound the sum of the absolute values of the entries in each row of .
Lemma 3.5. For every induced subgraph H of G, for . In particular, there is a holomorphic logarithm
with . For every edge , every , and ,
Proof. For ,
so . Let be the matrix associated with any path tree . By Lemma 3.4, , so every eigenvalue of lies in . Hence
Since is real symmetric,
We next prove that for every induced subgraph , by induction on . The empty graph has partition function 1. For nonempty , choose and let be the matrix of , with root . By (3.6),
as an identity of rational functions in . By the inverse bound above, the inverse exists at , so the identity holds there. Its right-hand side is nonzero by induction, and therefore .
The unit disk is simply connected, so admits a holomorphic logarithm there. Since , we may choose it to satisfy . By continuity and compactness, remains nonzero on a common disk containing for all sufficiently close to . On this disk, choose each logarithm to satisfy . These logarithms depend smoothly on , so we may differentiate with respect to , using the usual rule
For any induced subgraph and vertex , the path-tree representation (3.6) and the inverse norm bound above give
For , differentiating the partition function gives
Since on by (3.7), it follows that
This proves (3.8).
To bound , we first differentiate the matrix expression for . Write , where the derivative is taken entrywise. If the edge joining and corresponds to , then
As in the path-tree proof, write , where when is the parent of , and all other entries of are zero. Let , so that
As before, is diagonal. Its diagonal entries are one quarter of those of , because each entry of has half the absolute value of the corresponding entry of P. Hence
It follows that
Differentiating the identity gives
The ratio is the entry of this inverse. Therefore, using the bounds on the inverse, , , and , we obtain
Finally, for , let
Since and , the product rule gives
On , each ratio has absolute value at most 2 by the bounds established above, and each of its signed derivatives has absolute value at most 36K by the derivative bound above. Thus,
where the last inequality uses . This proves (3.9).
With these bounds in hand, we return to the approximation error.
Proof of Lemma 3.3. Write the Taylor expansion of as
By Cauchy's integral formula,
In the preceding proof, we showed that the logarithms can be chosen on a common disk containing this contour for all sufficiently close to y, and that they depend smoothly on . We may therefore differentiate under the integral:
Thus is the coefficient of in the Taylor expansion of . The same argument applies to second derivatives.
The approximation uses the terms of through degree m, evaluated at . Therefore,
By (3.8), we have on . Applying this bound in the contour integral gives
Recall from (3.7) that . Hence,
This proves (3.4).
For the Hessian estimate, we first apply the same argument to . By (3.9), its absolute value on is at most . Hence
It follows that, for every ,
We now choose the signs to turn this into a bound on a row of the Hessian. Write
which is a real symmetric matrix. Fix a row and choose so that ; either sign may be chosen when . By the definition of ,
The bound just proved therefore gives
To deduce the required quadratic-form bound, let . Using , we obtain
For the last equality, symmetry of shows that the terms containing have the same sum as those containing . Applying this row-sum bound now gives
This proves the Hessian estimate.
Finally, we bound by integrating the derivative along the segment from 0 to w. For , let
Scaling all weights by preserves the defining inequalities of , so . Since for every edge , the chain rule gives
The gradient bound (3.4), applied at , says that
Hence,
Integrating from to 1, for , gives
Since and , continuity gives as . Letting , we conclude that
which proves (3.3).
4. THE ALGORITHM
Our algorithm is described in Algorithm 1. The subroutine SCALEANDROUND scales and rounds A to a matrix C whose entries have bit length polynomial in n and . The subroutine MINIMIZESURROGATE uses the polynomial from Section 3 to approximate by convex minimization.
For , choose for an integer with . The parameters used below are
Algorithm 1 Deterministic approximation of the nonnegative permanent
Input: and .
Output: satisfying per per .
1: If , return 1; if , return .
2: If the support graph has no perfect matching, return 0.
3: Set for every support edge belonging to no perfect matching.
4: Choose with , and set by (4.1).
5:
▷ Lemma 4.1
6: Construct for the support of using Theorem 3.1 with parameters .
7:
▷ error , rounded up
8: Compute a rational with .
9: return .
4.1. SCALEANDROUND. The following lemma combines the preprocessing result of Linial, Samorodnitsky, and Wigderson [21] with a simple rounding step.
Lemma 4.1. Let , let have positive permanent, and let for an integer . There is an algorithm SCALEANDROUND that, given and , returns , an integer , and a matrix with the same support as , satisfying
The entries of C are multiples of for , and the running time is .
Proof. The LSW preprocessing procedure [21, Section 3.1 and Theorem 3.1] computes a positive diagonal matrix Y and a permutation such that for every . Since per , each selected entry is positive. Set
Then and for every , so per . Every term in the permanent contains one entry from each row and each column, so
For an integer to be chosen later, round each entry of upward to the nearest multiple of , obtaining . This preserves the support and keeps all entries in . Each summand in the definition of the permanent increases by at most ; to see this, replace each of the factors one at a time, using that all other factors are at most one. Summing over the permutations gives
Choose the smallest nonnegative integer such that . Then , and since per ,
Together with per per A, this proves the lemma.
The preprocessing of LSW takes polynomial time. It takes additional operations to (1) find by successive halving, and (2) round each entry of by binary search. For rational input, the intermediate bit lengths are polynomial in the input length and , by the LSW bound [21, proof of Theorem 3.4] and the bound on .
4.2. MINIMIZESURROGATE. This subroutine approximates for the matrix produced by Algorithm 1. Let be the support graph of , with , and let be the precision returned by SCALEANDROUND. We first bound the norm of a minimizer.
Lemma 4.2. The infimum of is attained at a vector satisfying
Proof. Every edge in the support of belongs to a perfect matching, so Lemma 2.3 guarantees that the infimum is attained at some . Comparing with gives
where the last inequality uses and the fact that has at most matchings. Each matching has at most edges, so for every matching , and hence, . Since , (2.3) gives
Applying this at and using , we obtain
We now bound the coordinates . Since has a perfect matching, every connected component contains equally many left and right vertices. In each component , choose arbitrarily. The transformation
leaves unchanged and makes . Along any simple path , (4.3) gives
Thus . Every vertex can be reached by such a path. Using and , we conclude that
Write for the total weight of the edges incident to . Recall from (2.7) that every minimizer of satisfies
The minimizer from Lemma 4.2 also satisfies . We may therefore restrict the minimization to
We now replace by the polynomial constructed in Section 3, with chosen by (3.5), and minimize
For , set . This map is affine, , and . Moreover, is convex, being the intersection of a box with the affine preimage of . Thus Theorem 3.1, applied with , shows that is convex on and satisfies there. Taking minima over gives
The following lemma shows that this minimum can be efficiently approximated with an additional error of at most .
Lemma 4.3. There is an algorithm MINIMIZESURROGATE that, given as above, returns a rational number satisfying
The running time, including the construction of , is poly. The output has bit length .
We prove Lemma 4.3 in Section A.
4.3. Proof of the main theorem
Proof of Theorem 1.1. If or the support graph has no perfect matching, the algorithm returns per A. We may therefore assume and per A > 0. Deleting edges that belong to no perfect matching preserves per A.
By Theorem 2.1 and Lemma 4.3,
where the last inequality follows from
and the fact that . Indeed, and
so . Together with and , this gives the claim.
Since , rounding upward by at most in Algorithm 1 gives
Combining this with Lemma 4.1, the returned value satisfies
The last two inequalities use , , which gives
and .
Running time. We first test whether the support graph has a perfect matching. An edge uv belongs to a perfect matching precisely when deleting u and v leaves a graph with a perfect matching. Thus the preprocessing uses bipartite perfect matching tests, followed by SCALEANDROUND, and takes poly(n, s) time. By Lemma 4.3, constructing U and computing take poly(p, m) time, where and
Since also by the bounds above, evaluating to additive accuracy takes time, by Lemma A.3. This gives the claimed running time.
For rational input, the implementations in Lemmas 4.1 and 4.3 and Section A and the final division by S also give the claimed bound on intermediate bit length.
REFERENCES
[1] N. Anari, Beyond the Bethe approximation of the permanent, arXiv:2608.28031, 2026, Version 2, revised 1 September 2026. 1, 5
[2] N. Anari and A. Rezaei, A tight analysis of Bethe approximation for permanent, SIAM Journal on Computing 54 (2025), FOCS19-81–FOCS19-101, Published online in 2021. 1
[3] A. Barvinok, Combinatorics and complexity of partition functions, Algorithms and Combinatorics, vol. 30, Springer, 2017. 2, 5
[4] A. Barvinok, Approximating real-rooted and stable polynomials, with combinatorial applications, Online Journal of Analytic Combinatorics 14 (2019), 1–13, Paper No. 8. 2, 5, 12
[5] Alexander Barvinok, Computing the permanent of (some) complex matrices, Foundations of Computational Mathematics 16 (2016), 329–342. 2
[6] Alexander Barvinok, Approximating permanents and hafnians, Discrete Analysis (2017), 34 pp. 2
[7] Alexander Barvinok and Alex Samorodnitsky, Computing the partition function for perfect matchings in a hypergraph, Combinatorics, Probability and Computing 20 (2011), 815–835. 2
[8] Mohsen Bayati, David Gamarnik, Dmitriy Katz, Chandra Nair, and Prasad Tetali, Simple deterministic approximation algorithms for counting matchings, Proceedings of the 39th Annual ACM Symposium on Theory of Computing, ACM, 2007, pp. 122–127. 2, 3
[9] S. Boyd, Subgradient methods, EE364b lecture notes, Stanford University, May 2014, With help from J. Park. 24, 25
[10] Péter Csikvári, Matchings in vertex-transitive bipartite graphs, Israel Journal of Mathematics 215 (2016), 99–134. 4, 5
[11] 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 (2017), 1811–1844. 4
[12] D. Dong and V. Jain, Optimal girth-dependent bounds for the Bethe approximation of the permanent, arXiv:2609.02017, 2026. 2, 5
[13] 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 (2010), 879–883. 2, 3
[14] C. D. Godsil, Matchings and walks in graphs, Journal of Graph Theory 5 (1981), 285–297. 14
[15] Leonid Gurvits, Unleashing the power of Schrijver's permanental inequality with the help of the Bethe approximation, arXiv:1106.2844, 2011, Version 11, revised 20 June 2012. 1, 2
[16] Leonid Gurvits and Alex Samorodnitsky, Bounds on the permanent and some applications, Proceedings of the 55th Annual IEEE Symposium on Foundations of Computer Science, IEEE Computer Society, 2014, pp. 90–99. 1
[17] O. J. Heilmann and E. H. Lieb, Theory of monomer-dimer systems, Communications in Mathematical Physics 25 (1972), 190–232, Erratum: Communications in Mathematical Physics 27 (1972), no. 2, 166; doi:10.1007/BF01645620. 2, 5, 9
[18] M. Jerrum, A. Sinclair, and E. Vigoda, A polynomial-time approximation algorithm for the permanent of a matrix with nonnegative entries, Journal of the ACM 51 (2004), 671–697. 1
[19] Jeff Kahn and P. Mark Kayll, On the stochastic independence properties of hard-core distributions, Combinatorica 17 (1997), 369–391. 10
[20] Sergei Kudria, Jason Luo, and Mahbod Majid, Subexponential approximation of the permanent in deterministic polynomial time, arXiv:2609.10516, 2026. 2
[21] N. Linial, A. Samorodnitsky, and A. Wigderson, A deterministic strongly polynomial algorithm for matrix scaling and approximate permanents, Combinatorica 20 (2000), 545–568. 1, 2, 4, 5, 20, 21
[22] Mokshay Madiman and Prasad Tetali, Information inequalities for joint distributions, with interpretations and applications, IEEE Transactions on Information Theory 56 (2010), 2699–2713. 7
[23] I. Narang and W. Perkins, Structural corrections to the Bethe approximation of the permanent, arXiv:2608.31061, 2026. 1, 5
[24] Yurii Nesterov, Implementable tensor methods in unconstrained convex optimization, Mathematical Programming 186 (2021), 157–183. 5
[25] Viresh Patel and Guus Regts, Deterministic polynomial-time approximation algorithms for partition functions and graph polynomials, SIAM Journal on Computing 46 (2017), 1893–1919. 2
[26] Mohit Singh and Nisheeth K. Vishnoi, Entropy, optimization and counting, Proceedings of the Forty-Sixth Annual ACM Symposium on Theory of Computing, STOC '14, ACM, 2014, pp. 50–59. 4, 7
[27] Leslie G. Valiant, The complexity of computing the permanent, Theoretical Computer Science 8 (1979), 189–201. 1
[28] Pascal O. Vontobel, The Bethe permanent of a nonnegative matrix, IEEE Transactions on Information Theory 59 (2013), 1866–1901. 1, 2
[29] Martin J. Wainwright and Michael I. Jordan, Graphical models, exponential families, and variational inference, Foundations and Trends in Machine Learning 1 (2008), 1–305. 7
[30] Zihong Yi, Diffuse Gaussian truncation for deterministic approximate counting, arXiv:2609.04079, 2026, Version 1, 3 September 2026. 2
APPENDIX A. NUMERICAL OPTIMIZATION
We prove Lemma 4.3 using gradient steps followed by projection onto a box. At each step, we use the gradient of if the estimated degree of some vertex is too large, and the gradient of otherwise. This is an inexact version of the constrained subgradient method of [9, Sections 6–7]; we give the argument below, including the errors from numerical evaluation.
Let be the minimizer from Lemma 4.2, and put . Since , the bounds in (2.7), (4.2), and (4.4) give
Recall that we are given the polynomial as in Theorem 3.1, with degree . Let denote coordinatewise clipping, .
The following procedure returns a number such that . Recall the choice of parameters in (4.1) and (4.2).
We remark that in the above procedure, we never compute exactly; instead, we always use the dyadic approximation .
A.1. Correctness. In this subsection, we show that Algorithm 2 returns the desired . Observe that, for each round :
-
If we enter Line 5, then for the chosen with , we have . In particular, .
-
If we enter Line 7, then all vertices have , and thus . In particular, since the projection Line 12 ensures that for all , we get that .
Lemma A.1. For all k, we have .
Algorithm 2 MINIMIZESURROGATE
Input:
Output: An approximation to
1: Set and .
2: Set and .
3: for do
4: For each , compute an estimate satisfying .
5: if there exists such that then
6: Pick any such and set .
7: else
8: Set , and add to .
9: Compute and record an approximation satisfying .
10: end if
11: Compute a dyadic vector such that .
12: Set .
13: end for
14: Return
Proof. For each edge , let . If we enter Line 5,
is a convex combination of vectors of norm , so . If we enter Line 7, . By (2.4), (3.4), and (3.5), using and , we have
Thus in either case.
Lemma A.2. Fix . Suppose in round we enter Line 5, or we enter Line 7 with . Then we have .
Proof. If we enter Line 5, convexity of gives ; if we enter Line 7, convexity of on , which contains and , gives the lower bound . In either case, we have . Since ,
Hence . The preceding Lemma A.1 also gives .
Projection onto cannot increase distance from . The standard projected-step inequality [9, Section 6] therefore gives
where the last equality uses .
We can now show the correctness of Algorithm 2.
Proof of correctness. Since , the decrease in Lemma A.2 cannot occur in all iterations. Thus some satisfies . Every recorded value is at least by (4.4), since its iterate lies in . Consequently,
A.2. Running time and bit length of output. We now show that Algorithm 2 finishes in poly time, outputting with . We will use the following two estimates.
Lemma A.3. Let be a rational number of bit length , let be an integer with , and let be an integer. In poly bit operations, one can compute a nonnegative dyadic number such that .
Proof. Set , , and compute . Taylor's remainder bound and give
where we used and . Put and round downward to the nearest multiple of . Then , and
There are Taylor terms. If , their denominators divide , whose bit length is . Every partial sum has absolute value at most , so its numerator requires only additional bits with this denominator. Thus the rational arithmetic and final rounding take bit operations.
We now introduce the following notation on the polynomial U.
Definition A.4. Write U as a sum of its distinct nonzero monomials,
where each and . Substituting and setting and , we get
Furthermore, let and .
Lemma A.5. We have
The denominators of the coefficients divide , and those of the coefficients divide .
Proof. Put , and let denote the sum of the absolute values of the coefficients of a polynomial . Recall from the construction of that
Since has at most monomials, each with coefficient 1, and , we have . Expanding the formal logarithm gives
There are terms in the inner sum. Since the coefficient norm is submultiplicative,
Now , where and . Thus
We have chosen to be an integer. The coefficient denominators of divide , so the formal logarithm formula shows that those of divide . Since
the coefficient denominators of U divide . Consequently, every coefficient of U has bit length
Every is a multiple of , and each monomial has degree at most , giving the stated denominator bound for . Also, because .
There are at most monomials of degree at most , as each can be represented by factors chosen from . The graph has an edge, and the linear coefficient of each in is , so . Finally,
The last identity gives on .
We now introduce the following accuracy parameters that will be used in the execution of Algorithm 2.
Definition A.6. Let
Put
In particular, we have , , and .
Further, let throughout Algorithm 2. We will eventually give an upper bound on .
Proof of upper bounds on running time and . We know from Theorem 3.1 that can be constructed in time. We now describe more concretely how one can execute each computational step in Algorithm 2.
Recall that for every , we perform a subset of the following.
(1) Line 4. In this step, we compute satisfying , as follows:
• For every , find a nonnegative dyadic number with .
Running time. Since , By Lemma A.3, this takes poly time. Also, the resulting .
• For every , take .
Running time. Since and , this takes time. Also, the resulting .
Correctness. The above procedure gives
(2) Line 11 after Line 5. In this step, we choose a dyadic vector such that , as follows:
• Compute , where we recall that .
Running time. Combining the bit length bounds in (1), we get that this takes time. The resulting has pointwise.
- Round to the nearest dyadic vector , with . Running time. This takes time.
Correctness. Recall that and . The coordinate at equals 1 both in and in , and the coordinates outside equal 0 in both vectors. For every , we have
Hence . Together with , this gives .
(3) Line 11 after Line 7. In this step, we choose a dyadic vector such that , as follows:
- For each , compute a dyadic number with . Running time. Since are integers, , and , we know from Lemma A.3 that this takes time. Furthermore, we have .
• For every , compute the rational number .
Running time. Recall from Lemma A.5 that and . Also recall that . Combining with the previous bound on , we know that this takes
time. Also, the resulting has pointwise.
• As before, round to the nearest dyadic vector , with .
Running time. This takes poly( , , , , , , , , ) time.
Correctness. Since , , and , we have
which gives . Together with , this gives .
(4) Line 9 (after Line 7). In this step, we compute an approximation such that , as follows:
• With as in (3), let
Running time. Since , combining with the previous bounds, this takes
time. Also, the resulting has bit length poly( , , , , , , , , , ). This follows from fact that (i) the denominators of every divides , (ii) , (iii) , and (iv) each . Correctness. We have
and thus .
(5) Line 12. In this step, we take . Recall that , , , and all . Thus, we can deduce inductively that every coordinate of every has denominator bit length , and thus,
And thus, Line 12 takes
time.
We iterate the above loop for times. After that, we go into the final step Line 14 that outputs . Since each and taking the minimum requires at most comparisons, we know that Line 14 takes
time.
Finally, we know from (4.1), (4.2), Theorem 3.1, Lemma 4.1, Lemma A.5, and Definition A.6 that
This gives
Thus, the above analysis shows that Algorithm 2 finishes in poly( ) time, with the final output satisfying .
DEPARTMENT OF MATHEMATICS, CALIFORNIA INSTITUTE OF TECHNOLOGY, PASADENA, CA 91125, USA
Email address: ddong124@caltech.edu
DEPARTMENT OF MATHEMATICS, STATISTICS, AND COMPUTER SCIENCE, UNIVERSITY OF ILLINOIS CHICAGO, CHICAGO, IL 60607, USA
Email address: visheshj@uic.edu