arXiv:2608.26599cs.DMAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.26599

Faster FPRAS for the Permanent via Restricted Poincaré Inequalities and Coupled Flows

Xiaoyu Chen, Eric Vigoda, Xiongxin Yang

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

Abstract

The permanent of an n×nn \times n 0/1 matrix AA equals the number of perfect matchings in the bipartite graph with edges defined by AA. Jerrum, Sinclair, and Vigoda (2004) presented an FPRAS for approximating the permanent of any nonnegative matrix using a novel simulated-annealing algorithm. The running time was improved by Bezáková, Štefankovič, Vazirani, and Vigoda (2008) to O(n7log⁡4n)O(n^7 \log^4 n) for 0/1 matrices, for any fixed approximation and success parameters. We present the first asymptotic improvement over this running time bound, obtaining an O(n6log⁡5n)O(n^6 \log^5 n)-time algorithm. As in the previous works, our algorithm extends to arbitrary nonnegative matrices.

The analysis of Bezáková et al. yields an O(n4)O(n^{4}) relaxation time bound for the JSV Markov chain on perfect and near-perfect matchings with ideal hole weights, under which each hole pattern (the unmatched vertices, if any) is equally likely in the stationary distribution. We introduce a restricted Poincaré inequality for the partition into hole patterns and prove an O(n3)O(n^{3}) bound on the corresponding restricted relaxation time. Our proof uses a coupled multicommodity flow argument inspired by a recent transport-flow argument of Chen et al. (2025) for the Jerrum-Sinclair chain on all matchings.

1 Introduction

The permanent of an n×nn \times n matrix A=(aij)A = (a_{ij}) is

per(A)=∑σ∈Sn∏i=1nai,σ(i),\mathrm{per}\left(A\right)=\sum_{\sigma\in S_{n}}\prod_{i=1}^{n}a_{i,\sigma(i)},

where the sum ranges over all permutations of [n]={1,…,n}[n] = \{1, \ldots, n\}. For a 0/1 matrix AA, per (A)(A) counts the perfect matchings of the bipartite graph whose bipartite adjacency matrix is AA, equivalently, the close-packed configurations of the classical dimer model of statistical physics. Beyond this central role in combinatorics and statistical physics, the permanent has found applications in areas such as computer vision and statistics [AZDP16, ORS09]. Valiant [Val79] proved that exact evaluation is #P-complete even for 0/1 matrices. Approximation is therefore the natural recourse.

The dominant approach has been the Markov chain Monte Carlo (MCMC) method, made possible by the polynomial-time equivalence between approximate sampling and approximate counting for

*Email: xiaoyu@mit.edu, Massachusetts Institute of Technology. Supported by the NSF CAREER grant CCF-2443045, and the Reed Fund at MIT.

†^{\dagger}Emails: {vigoda, xiongxinyang}@ucsb.edu, University of California, Santa Barbara. Supported in part by NSF grant CCF-2147094.

self-reducible problems [JVV86]. Broder [Bro86] proposed a natural Markov chain on all perfect and near-perfect matchings whose stationary distribution is uniform; a near-perfect matching is a matching with exactly two unmatched vertices. Jerrum and Sinclair [JS89] analyzed the convergence of this chain and obtained an FPRAS for every class of 0/1 matrices in which near-perfect matchings do not outnumber perfect matchings by more than a polynomial factor; this includes all dense matrices and almost all random matrices. Karmarkar, Karp, Lipton, Lovász, and Luby [KKL +^{+}93] gave a Monte Carlo algorithm based on an easily computed unbiased estimator, which can require exponentially many trials on adversarial inputs but performs well on almost every random matrix. Two further lines of attack were pursued in the 1990s: Jerrum and Vazirani [JV96] obtained a subexponential algorithm running in time exp⁡(O(n))\exp(O(\sqrt{n})), and Barvinok [Bar99] gave polynomial-time algorithms approximating the permanent within a simply exponential factor. Deterministic quasipolynomial algorithms are also known [Bar17], but only for matrices whose entries lie in a fixed interval [δ,1][\delta, 1].

The breakthrough came with the celebrated FPRAS of Jerrum, Sinclair, and Vigoda [JSV04], the first to handle arbitrary matrices with nonnegative entries. Their algorithm is a simulated-annealing process. For a bipartite graph G=(V1∪V2,E)G = (V_1 \cup V_2, E), let P\mathcal{P} denote the collection of perfect matchings in the complete bipartite graph on V1∪V2V_1 \cup V_2, and, for u∈V1u \in V_1 and v∈V2v \in V_2, let N(u,v)\mathcal{N}(u, v) denote the collection of near-perfect matchings whose unmatched vertices are uu and vv. In graph-theoretic terms, per (A)(A) is the number of matchings in P\mathcal{P} whose edges all lie in EE. For activities λ:V1×V2→(0,1]\lambda : V_1 \times V_2 \to (0, 1], a matching MM, and a collection SS of matchings, write

λ(M):=∏{u,v}∈Mλ(u,v),λ(S):=∑M∈Sλ(M).\lambda(M):=\prod_{\{u,v\}\in M}\lambda(u,v),\qquad\lambda(S):=\sum_{M\in S}\lambda(M).

The simulated annealing algorithm of [JSV04] starts from the complete bipartite graph by setting λ(u,v)=1\lambda(u,v) = 1 for all u∈V1u \in V_1 and v∈V2v \in V_2. At this initial stage, λ(P)=n!\lambda(\mathcal{P}) = n!. The algorithm gradually decreases the activities of the nonedges to 1/n!1/n!; throughout, it maintains hole weights w(u,v)w(u,v) approximating the ideal weights, defined by

w∗(u,v)=λ(P)λ(N(u,v)).(1)w^{*}(u,v)=\frac{\lambda(\mathcal{P})}{\lambda(\mathcal{N}(u,v))}. \tag{1}

With these weights, the perfect block P\mathcal{P} and each of the n2n^2 near-perfect blocks N(u,v)\mathcal{N}(u,v) carry equal stationary mass. Jerrum, Sinclair, and Vigoda [JSV04] proved that the Metropolis chain on perfect and near-perfect matchings weighted by the ideal weights (or a constant-factor approximation) has polynomial mixing time; this yielded a polynomial-time FPRAS for the permanent.

Building on this framework, Bezáková, Štefankovič, Vazirani, and Vigoda [BŠVV08] redesigned the cooling schedule so that it accelerates as the temperature decreases, thereby reducing the number of annealing phases from O(n2log⁡n)O(n^2 \log n) to O(nlog⁡2n)O(n \log^2 n); they also proved new structural inequalities about perfect matchings in bipartite graphs which reduced the relaxation-time bound to O(n4)O(n^4). Their FPRAS for estimating the permanent runs in time

O(n7log⁡4n+n6log⁡5nε−2),O(n^{7}\log^{4}n+n^{6}\log^{5}n\varepsilon^{-2}),

which remained the best known bound for nearly two decades. The breakdown of the running time is roughly the following: O(nlog⁡2n)O(n \log^2 n) intermediate temperatures to change the activity λ(u,v)\lambda(u, v) for each nonedge {u,v}∉E\{u, v\} \notin E from 1 to 1/n!1/n!; O(n2log⁡n)O(n^2 \log n) samples at each temperature to recalibrate the weights; and O(n4log⁡n)O(n^4 \log n) to generate each sample after accounting for the logarithmic total-variation overhead beyond the O(n4)O(n^4) relaxation-time bound.

The weight-recalibration term is the bottleneck in this bound; reducing it by a factor of n yields our main theorem.

Theorem 1. For all 0<ε,δ<10 < \varepsilon, \delta < 1, there exists a randomized algorithm that, with probability at least 1−δ1 - \delta, approximates the permanent of an n×nn \times n 0/1 matrix A within a factor (1±ε)(1 \pm \varepsilon) in time O(n6ε−2log⁡5nlog⁡(2/δ))O\left(n^6 \varepsilon^{-2} \log^5 n \log(2/\delta)\right). The algorithm extends to arbitrary matrices with nonnegative entries.

To explain the source of the improvement in running time, consider the weight-recalibration step in [BŠVV08]. Given weights w(u,v)w(u, v) on all hole patterns (u,v)∈V1×V2(u, v) \in V_1 \times V_2 that approximate the ideal weights w∗(u,v)w^*(u, v) within a constant factor, we recalibrate the weights by generating sufficiently many samples from the Markov chain and then adjusting the weights so that the stationary masses of the n2+1n^2 + 1 hole patterns are approximately uniform. This recalibration step only observes the hole pattern of each sampled matching, namely, whether it is perfect, and if not, which pair (u,v)∈V1×V2(u, v) \in V_1 \times V_2 is unmatched; it does not consider the entire matching.

Motivated by the local Poincaré inequalities of Chen et al. [CFJ +^{+}25], we consider a Poincaré inequality restricted to a partition of the state space; for the application to the permanent, the partition is the n2+1n^2 + 1 hole patterns. Whereas the relaxation time τrel\tau_{\text{rel}} (or equivalently the spectral gap) measures the decay rate of variance for any functional on the entire state space, the new restricted Poincaré inequality only considers functions that are averaged within each block of the partition (e.g., hole pattern). We denote this weaker notion of relaxation time, which is restricted to hole-pattern observables, by τholes\tau_{\text{holes}}. We prove that τholes=O(n3)\tau_{\text{holes}} = O(n^3), improving on the best known bound of τrel=O(n4)\tau_{\text{rel}} = O(n^4) for the full chain. As a consequence, we obtain a factor-n improvement in the correlation scale governing the hole-pattern frequency estimates in the [BŠVV08] weight-refinement step; this gives Theorem 1.

It remains to bound this restricted relaxation time. For this purpose, we refine the classical multicommodity-flow argument used to bound the spectral gap of the chain. A classical canonical-path or multicommodity-flow analysis of this chain must consider all pairs of states independently. For instance, for a near-perfect matching I and a perfect matching F, the flow from I to F follows the augmenting path and the even alternating cycles in their symmetric difference. Here, we couple the conditional distribution of each near-perfect block N(u,v)\mathcal{N}(u,v) with that of the perfect block P and route a canonical path between the two coupled matchings only along their unique augmenting path. By avoiding the even cycles entirely, we save a factor of order n in the subsequent congestion bound. Our construction is inspired by the coupling-based canonical-path arguments developed in [CCFV25, CFJ +^{+}25], though the setting and the functional inequality we target are different.

Organization. In the following section, we present an overview of the FPRAS for the permanent and our improved running time. In Section 3, we recall the classical Poincaré inequality and relaxation time, introduce their restricted analogues, and present the coupled multicommodity-flow technique for bounding the restricted relaxation time. In Sections 4 and 5, we apply this technique to the permanent algorithm.

AI Assistance. The high-level algorithmic ideas originated with the authors. GPT-5.6 Pro was used in exploratory discussions that helped formulate the partition-restricted relaxation time and conceptualize the general restricted-Poincaré and coupled-flow framework presented in Section 3. The core text, final proofs, and permanent-specific arguments were written independently by the human authors, with ChatGPT utilized during the writing process to refine phrasing and provide editorial suggestions. The authors independently verified all mathematical claims and take full responsibility for the final content.