arXiv:2609.11049cs.DSSep 2026

Manuscript Offprint

arXiv:2609.11049

A deterministic (1+ε)n(1+\varepsilon)^n approximation for the permanent of a nonnegative matrix

Dingding Dong, Vishesh Jain

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

1. INTRODUCTION

Let A=(Aij)∈R≥0n×nA = (A_{ij}) \in \mathbb{R}_{\geq 0}^{n \times n}. Its permanent is

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

where SnS_n denotes the symmetric group on nn elements. The permanent counts perfect matchings in the bipartite support graph of AA when AA is a 0–1 matrix. For general nonnegative AA, it is the total weight of perfect matchings, where a matching MM has weight ∏ij∈MAij\prod_{ij \in M} A_{ij}.

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 C≥1C \geq 1 approximation 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\mathrm{and}\qquad U(A)\leq CL(A).

Linial, Samorodnitsky, and Wigderson [21] obtained a factor ene^n 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 2n2^n. Their analysis also yields an approximation factor of approximately 1.9022n1.9022^n, as noted in [2, Footnote 3]. Anari and Rezaei [2] proved that the Bethe permanent approximates the permanent within a factor 2n/22^{n/2}, 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 (2−δ)n(\sqrt{2} - \delta)^n for a small absolute constant δ>0\delta > 0 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 0<ε≤10 < \varepsilon \leq 1, there is a deterministic algorithm that, given A∈R≥0n×nA \in \mathbb{R}_{\geq 0}^{n \times n}, returns Q∈R≥0Q \in \mathbb{R}_{\geq 0} satisfying

perA≤Q≤(1+ε)nperA.(1.1)\mathrm{per}A\leq Q\leq(1+\varepsilon)^{n}\mathrm{per}A. \tag{1.1}

For each fixed ε\varepsilon, the algorithm is strongly polynomial, using nO(ε−2log⁡3(2/ε))n^{O(\varepsilon^{-2}\log^{3}(2/\varepsilon))} 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 nO(ε−1log⁡2(2/ε))n^{O(\varepsilon^{-1}\log^2(2/\varepsilon))} 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 ε\varepsilon fixed.

The bit length of a rational number rr, denoted as ℓ(r)\ell(r), 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 (1+ε)n(1+\varepsilon)^n 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 exp⁡(O(ε−1/2n2/3log⁡3n))\exp(O(\varepsilon^{-1/2}n^{2/3}\log^3 n)). Their algorithm uses the approximation scheme of Bayati, Gamarnik, Katz, Nair, and Tetali [8] for the matching partition function ∑Mλ∣M∣\sum_M \lambda^{|M|}, where the sum is over all matchings. For fixed activity λ\lambda 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 λ\lambda is sufficiently large.

For matrices satisfying a≤Aij≤1a \leq A_{ij} \leq 1 for all i,ji,j, where a>0a > 0 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 a≤Aij≤1a \leq A_{ij} \leq 1 [6]. In the latter setting, his algorithm approximates log per AA to additive error ζ∈(0,1)\zeta \in (0,1) in time nOa(log⁡n+log⁡(1/ζ))n^{O_a(\log n + \log(1/\zeta))}. Recently, Yi [30] gave an FPTAS for matrices with entries in {0}∪[a,1]\{0\} \cup [a,1], where a>0a > 0 is fixed, provided every row and column has at least (1/2+γ)n(1/2 + \gamma)n nonzero entries for a fixed γ>0\gamma > 0.

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 ZG(z)=∑Mz∣M∣Z_G(z) = \sum_M z^{|M|}, where the sum is over all matchings of GG, 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 ZGZ_G. 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 2n/22^{n/2} to 22n/g2^{2n/g} if the support graph has girth at least g, for even g≥4g \geq 4. 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 exp⁡(o(n))\exp(o(n))-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 0log⁡0=00 \log 0 = 0. An empty product equals one.

For a finite graph GG, let M(G)\mathcal{M}(G) denote the set of its matchings, including the empty matching. For edge weights w=(we)e∈E(G)w = (w_e)_{e \in E(G)}, write

wM=∏e∈Mwe,ZG(w)=∑M∈M(G)wM.w^{M}=\prod_{e\in M}w_{e},\qquad Z_{G}(w)=\sum_{M\in\mathcal{M}(G)}w^{M}.

For nonnegative weights, the associated Gibbs measure is

μw(M)=wMZG(w).\mu_{w}(M)=\frac{w^{M}}{Z_{G}(w)}.

For an induced subgraph HH of GG, ZH(w)Z_{H}(w) uses the restrictions of the same weights. We write G−vG - v for the graph obtained by deleting vv, and similarly for several vertices.

For a nonnegative matrix AA, its bipartite support graph GAG_A has a left vertex for each row, a right vertex for each column, and an edge ijij whenever Aij>0A_{ij} > 0. We assign this edge weight AijA_{ij}, write Ae=AijA_e = A_{ij} when e=ije = ij, and use AMA^M with the convention above.

For a finite set Ω\Omega, let Δ(Ω)\Delta(\Omega) denote the set of probability distributions on Ω\Omega. For ν∈Δ(Ω)\nu \in \Delta(\Omega), its entropy is

H(ν)=−∑x∈Ων(x)log⁡ν(x).H(\nu)=-\sum_{x\in\Omega}\nu(x)\log\nu(x).

We also write H(X)H(X) for the entropy of the distribution of a random variable X, and

h(t)=−tlog⁡t−(1−t)log⁡(1−t),t∈[0,1],h(t)=-t\log t-(1-t)\log(1-t),\qquad t\in[0,1],

for the binary entropy function. For ν,μ∈Δ(Ω)\nu, \mu \in \Delta(\Omega), their relative entropy is

D(ν∥μ)=∑x∈Ων(x)log⁡ν(x)μ(x),D(\nu\|\mu)=\sum_{x\in\Omega}\nu(x)\log\frac{\nu(x)}{\mu(x)},

with zero summands when ν(x)=0\nu(x) = 0 and value +∞+ \infty if ν(x)>0=μ(x)\nu(x) > 0 = \mu(x) for some xx.

We write x+=max⁡{x,0}x_{+} = \max\{x, 0\} and 1A\mathbf{1}_{\mathcal{A}} for the indicator of an event A\mathcal{A}. The vector 1\mathbf{1} has all entries equal to one, with dimension determined by context. Exponentials and logarithms of vectors are taken coordinatewise. For vectors, ∥⋅∥2\|\cdot\|_2 and ∥⋅∥∞\|\cdot\|_\infty denote the Euclidean and maximum norms; for matrices, ∥⋅∥2\|\cdot\|_2 denotes the Euclidean operator norm. We write B2(x,r)B_2(x, r) for the Euclidean ball of radius rr centered at xx. For real symmetric matrices, B⪯CB \preceq C means that C−BC - B is positive semidefinite.

1.4. Proof overview. Consider the partition function at activity λ>0\lambda > 0, given by

ZG(λA)=∑M∈M(G)λ∣M∣AM=λnper⁡A+∑M∈M(G)∣M∣<nλ∣M∣AM.Z_{G}(\lambda A)=\sum_{M\in\mathcal{M}(G)}\lambda^{|M|}A^{M}=\lambda^{n}\operatorname{per}A+\sum_{\substack{M\in\mathcal{M}(G)\\ |M|<n}}\lambda^{|M|}A^{M}.

For sufficiently large λ\lambda, the contribution of perfect matchings dominates, so ZG(λA)/λnZ_G(\lambda A)/\lambda^n 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 λ\lambda depending only on ε\varepsilon, the expansion constant, and the degree bound. In particular, λ\lambda is independent of nn. The correlation-decay algorithm of [8] approximates ZG(λA)Z_G(\lambda A) in polynomial time for fixed λ\lambda 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 λ\lambda can be arbitrarily large, even for a graph consisting of two disjoint edges. Indeed, consider A=diag(L,L−1)A = \text{diag}(L, L^{-1}). Then, per A=1A = 1 whereas

ZG(λA)λ2=1+L+L−1λ+1λ2,\frac{Z_{G}(\lambda A)}{\lambda^{2}}=1+\frac{L+L^{-1}}{\lambda}+\frac{1}{\lambda^{2}},

so that in order for ZG(λA)/λ2Z_G(\lambda A)/\lambda^2 to approximate per AA within a fixed factor, λ\lambda must grow at least proportionally to LL.

Instead of using a uniform activity λ\lambda, we rescale the rows and columns of A separately. Specifically, we assign an activity eθve^{\theta_v} to each vertex and replace the edge weight AuvA_{uv} by

wA(θ)uv=Auveθu+θv.w_{A}(\theta)_{u v}=A_{u v}e^{\theta_{u}+\theta_{v}}.

Since every perfect matching uses each vertex exactly once,

perwA(θ)=e∑vθvperA.\mathrm{p e r}w_{A}(\theta)=e^{\sum_{v}\theta_{v}}\mathrm{p e r}A.

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 θ\theta for which

perwA(θ)≤ZG(wA(θ))≤eεnperwA(θ),\mathrm{p e r}w_{A}(\theta)\leq Z_{G}(w_{A}(\theta))\leq e^{\varepsilon n}\mathrm{p e r}w_{A}(\theta),

while the total edge weight incident to each vertex is Oε(1)O_{\varepsilon}(1). It therefore remains to find such θ\theta and approximate log⁡ZG(wA(θ))\log Z_G(w_A(\theta)) efficiently. The function θ↦log⁡ZG(wA(θ))\theta \mapsto \log Z_G(w_A(\theta)) 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 Oε(1)O_{\varepsilon}(1), the function log⁡ZG(wA(θ))\log Z_G(w_A(\theta)) has an efficiently computable approximation that remains convex in θ\theta. This allows us to find a suitable θ\theta by using deterministic convex optimization.

Existence of θ\theta. We adapt the approach of Csikvári [11, 10]. We assume that per A>0A > 0 and that every edge in the support of AA belongs to a perfect matching; removing edges violating this can be accomplished in polynomial time and does not change per AA. Consider the distribution on matchings corresponding to the weights wA(θ)w_A(\theta),

μθ(M)=μwA(θ)(M)=wA(θ)MZG(wA(θ)).\mu_{\theta}(M)=\mu_{w_{A}(\theta)}(M)=\frac{w_{A}(\theta)^{M}}{Z_{G}(w_{A}(\theta))}.

The probability of a perfect matching under this distribution is per wA(θ)/ZG(wA(θ))w_A(\theta)/Z_G(w_A(\theta)). Thus, the approximation we desire is equivalent to requiring that the probability of a matching being perfect is at least e−εne^{-\varepsilon n}. In particular, this probability may be exponentially small in nn. We will use this flexibility to allow each vertex to be unmatched with a small probability depending only on ε\varepsilon, rather than on nn.

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 θ\theta so that

Pμθ(vismatched)=tforeveryv∈V,(1.2)\mathbb{P}_{\mu_{\theta}}(v is matched)=t\qquad for every v\in V, \tag{1.2}

where t<1t < 1 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 t=1t = 1 is impossible for finite θ\theta, since the empty matching has positive probability under μθ\mu_\theta. Since log⁡per A\log \text{per } A is the maximum of H(ν)+Eνlog⁡AMH(\nu) + \mathbb{E}_\nu \log A^M over distributions on perfect matchings, it is natural to consider

FA(t)=max⁡ν{H(ν)+Eνlog⁡AM},F_{A}(t)=\max_{\nu}\left\{H(\nu)+\mathbb{E}_{\nu}\log A^{M}\right\},

where the maximum is over distributions on matchings which match every vertex with probability t. For 0<t<10 < t < 1, a standard Lagrange multiplier argument shows that the maximizing distribution has the form μθ\mu_{\theta} for some finite θ\theta; see [26].

In Section 2, we prove the following entropy inequality, which may be of independent interest

nh(t)≤FA(t)−tlog⁡perA≤2nh(t).nh(t)\leq F_{A}(t)-t\log per A\leq2nh(t).

Since h(t)→0h(t) \to 0 as t→1t \to 1, this gives the required approximation by choosing t<1t < 1 sufficiently close to one in terms of ε\varepsilon.

Finally, as in Csikvári [10], a correlation inequality of Heilmann–Lieb [17] implies that, for any θ\theta satisfying (1.2),

∑e∋vwA(θ)e≤t(1−t)2for every v∈V.(1.3)\sum_{e\ni v}w_{A}(\theta)_{e}\leq\frac{t}{(1-t)^{2}}\qquad\mathrm{f o r~e v e r y~}v\in V. \tag{1.3}

Thus, the choice of t above also bounds the total edge weight at each vertex by Oε(1)O_{\varepsilon}(1).

Convex approximation. To find θ\theta, we use the dual formulation

FA(t)=min⁡θ∈RV{log⁡ZG(wA(θ))−t∑vθv}.F_{A}(t)=\min_{\theta\in\mathbb{R}^{V}}\left\{\log Z_{G}(w_{A}(\theta))-t\sum_{v}\theta_{v}\right\}.

By (1.3), we can restrict the minimum to parameters for which the total edge weight at each vertex is at most K=Oε(1)K = O_{\varepsilon}(1). We need an approximation to log⁡ZG(wA(θ))\log Z_G(w_A(\theta)) that is both efficiently computable and convex in θ\theta, so that we can minimize the resulting objective.

Barvinok’s interpolation method [3, 4] constructs a polynomial approximation Tm(w)T_m(w) to log⁡ZG(w)\log Z_G(w) from the total weights of matchings with at most mm edges. These quantities can be computed by enumeration, so TmT_m can be evaluated in nO(m)n^{O(m)} time. However, the polynomial obtained this way is generally not convex in θ\theta. 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

U(w)=Tm(w)+βm∑ewe.U(w)=T_{m}(w)+\beta_{m}\sum_{e}w_{e}.

By (1.3), the regularizer changes Tm(w)T_m(w) by at most βmnK\beta_m n K on the region we are optimizing over, whereas a direct computation shows that ∇θ2∑ewe⪰0\nabla_\theta^2 \sum_e w_e \succeq 0. The remaining task is therefore to choose βm\beta_m large enough to compensate for the negative curvature of TmT_m, but small enough to preserve the required accuracy.

In Section 3, we prove that

∇θ2Tm(wA(θ))⪰−γm∇θ2(∑ewA(θ)e),\nabla_{\theta}^{2}T_{m}(w_{A}(\theta))\succeq-\gamma_{m}\nabla_{\theta}^{2}\left(\sum_{e}w_{A}(\theta)_{e}\right),

where γm\gamma_m depends only on KK and mm and decreases exponentially with mm for fixed KK. Taking βm≥γm\beta_m \geq \gamma_m and m=O(Klog⁡(2K/η))m = O(K \log(2K/\eta)), we get that U(wA(θ))U(w_A(\theta)) is convex and satisfies

0≤U(w)−log⁡ZG(w)≤ηn0\leq U(w)-\log Z_{G}(w)\leq\eta n

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 log⁡(2/ε)\log(2/\varepsilon). This makes the number of operations required for the convex minimization independent of the magnitudes of the original entries; see Section 4.