Manuscript Offprint
arXiv:2610.38164Separations between and
Separations between #BIS and #IS
Ijay Narang*
Abstract
We give complexity-theoretic separations between #BIS and #IS. Given a graph , and a fugacity , the hard-core model is given by , where denotes the independent sets of . For , an -factor approximation to is an estimate satisfying . Let denote the class of -regular graphs and the class of -regular bipartite graphs. We give two separation results.
- There exist an integer , a sufficiently large fugacity , and a constant so that the following hold:
-
For every , deterministic -factor approximation on is possible in time poly.
-
Under the Gap-Exponential Time Hypothesis, there exists no deterministic algorithm running in time poly on that gives an -factor approximation.
- For every fixed and , for all sufficiently large fugacities , the following hold:
-
There exists an algorithm which outputs a deterministic -factor approximation to on in polynomial time.
-
Under the assumption , there exists no deterministic polynomial-time algorithm on that gives a -factor approximation.
Both our algorithmic results follow from a new spanning-tree encoding of independent sets that enables an efficient representation of large independent sets.
A note on OpenAI's disproof of ETH. On October 26, 2026, OpenAI announced a refutation of the Exponential Time Hypothesis. We have nevertheless decided to release this paper as originally planned, because we believe our spanning-tree encoding provides a useful technique for approximate counting and sampling at high fugacity, even beyond bipartite graphs (see Corollary 1.6). Our polynomial-time separation result remains unaffected by this development.
*School of Computer Science, Georgia Institute of Technology, inarang3@gatech.edu
where the normalizing constant is referred to as the partition function.
Exact evaluation of is #P-hard in general [Val79], motivating the study of efficient approximation algorithms. For , an -factor approximation to is an estimate satisfying
An FPTAS is a deterministic algorithm that, given , returns a -factor approximation in time polynomial in and . An FPRAS is a randomized algorithm with the same running-time bound whose estimate satisfies this guarantee with probability at least . A -approximate sampler for produces an independent set whose distribution satisfies . Such a sampler is efficient if its running time is polynomial in and . Here TV denotes total variation distance.
Let denote the set of all graphs of maximum degree at most . The hard-core model on the infinite -regular tree has a uniqueness threshold . When , there is no efficient approximate sampler or FPRAS on unless NP = RP [Sly10, SS14, GŠV16]; when , efficient approximate counting and sampling are possible through correlation decay and the self-avoiding-walk tree method [Wei06].
For bipartite graphs, however, the situation is less well understood. Let denote the class of all bipartite graphs with maximum degree at most . Even at , approximately counting independent sets in bipartite graphs gives rise to the canonical problem #BIS, which is neither known to admit an FPRAS nor known to be NP-hard to approximate [DGGJ04, CGG+16]. Moreover, many natural approximate counting problems have been shown to be #BIS-hard [DGGJ04], making the complexity of #BIS a central open problem in approximate counting. More generally, Cai, Galanis, Goldberg, Guo, Jerrum, Štefanković, and Vigoda [CGG+16] showed that, for every fixed and , approximating on graphs is #BIS-hard. Thus, obtaining efficient approximation algorithms beyond uniqueness on general bipartite graphs remains a major open problem.
The study of approximate counting and sampling on bipartite graphs has led to several distinct algorithmic approaches. We shall briefly discuss the main approaches and their guarantees.
Correlation decay. The seminal correlation-decay approach of Weitz gives efficient approximate counting on graphs of bounded maximum degree below the tree uniqueness threshold [Wei06]. For bipartite graphs, stronger guarantees are possible: Liu and Lu established an FPTAS for #BIS when the maximum degree on one side is at most five, with no restriction on degrees on the other side [LL15]. Chen, Liu, and Yin extended this direction to general fugacities, characterizing the uniqueness condition under a degree bound on one side and obtaining efficient sampling algorithms up to the corresponding threshold [CLY23].
The Polymer Model Framework. A second approach exploits the phase structure of the hard-core model at high fugacity. On bipartite expanders, typical independent sets favor one side of the bipartition, and deviations from these ordered phases can be represented by polymers. Indeed, this idea was utilized by Jenssen, Keevash, and Perkins to obtain efficient counting and sampling algorithms for #BIS-hard problems on expander graphs [JKP20]. Jenssen, Perkins, and Potukuchi subsequently combined graph containers with cluster expansion methods to obtain counting algorithms under weaker expansion conditions [JPP23]. Most recently, Narang and Perkins showed that the cluster expansion framework also yields efficient counting and sampling algorithms at high fugacity on bipartite spectral expanders [NP26].
Un-bipartifying the model. On bipartite graphs, transitions between configurations favoring opposite sides can create a bottleneck for Glauber dynamics [MWW09]. This motivates decomposing the partition function to effectively “un-bipartify” the model. Kocurek, Oveis Gharan, and Tjowasi decomposed the partition function into fixed slices to obtain efficient counting and sampling at all fugacities on random regular bipartite graphs [KOT26]. Narang and Perkins obtained efficient counting and sampling at all fugacities on bipartite spectral expanders using a discrete Hubbard–Stratonovich transform [NP26] in combination with the Glauber mixing criterion of [CCC⁺25]. These methods primarily address the medium-fugacity regime; the all-fugacity guarantees combine them with high-fugacity polymer algorithms.
Despite this progress, the above results all require additional structural assumptions on the bipartite graph, meaning that no separation between the classes and is known in full generality.
1.1 Our Contributions
1.1.1 Separation between #BIS and #IS under Gap-ETH
Our results establish an exponential-time separation between regular bipartite graphs and general regular graphs for approximate counting under the Gap-Exponential Time Hypothesis (Gap-ETH), and for sampling under its randomized version. We use the following formulation of Gap-ETH [CCK⁺17, Conjecture 2.5 and the subsequent discussion].
Definition 1.1 (Gap-ETH). There exist constants , , and such that no deterministic algorithm running in time can distinguish between the following two cases for a 3-CNF formula on variables and clauses:
-
is satisfiable.
-
Every assignment satisfies at most clauses.
The randomized Gap-ETH asserts that no randomized algorithm with the same running time distinguishes these cases with probability at least 2/3 on every promised input.
Gap-ETH was introduced in work of Dinur [Din16] and Manurangsi and Raghavendra [MR17] to study hardness of approximation in subexponential time. It has since yielded strong inapproximability results for problems such as Clique and Dominating Set [CCK⁺17].
We instead use it to analyze the hardness of approximate counting and sampling problems. Our first result is the following theorem.
Theorem 1.2. Assume Gap-ETH (Definition 1.1). There exists an integer and constants and such that the following holds. Fix any odd integer and set
For every fixed , no deterministic algorithm produces an 11/10-factor approximation to in time on the class .
Under randomized Gap-ETH, the constants can be chosen so that no sampler with total variation error at most 1/10 runs in time on the same graph class.
At sufficiently high fugacity, we complement this hardness result with algorithms on regular bipartite graphs whose exponential running-time rate can be made arbitrarily small.
Theorem 1.3. Fix and . For every and every fugacity satisfying
there exists a deterministic algorithm that produces a -factor approximation to in time poly on the class . There also exists a -approximate sampling algorithm for with the same running time.
We note that though Theorem 1.3 does not apply at , it still applies to #BIS-hard problems (see Lemma B.1). More interesting, however is the comparison between Theorem 1.3 and the complexity of approximating the partition function of the hard-core model on general -regular graphs.
In particular, Theorems 1.2 and 1.3 separate approximation algorithms on regular bipartite graphs and general regular graphs at the same degree and fugacity. Indeed, fix , , and as in Theorem 1.2, choose with , and fix . An 11/10-factor approximation on -regular bipartite graphs admits a deterministic poly-time algorithm, whereas Gap-ETH rules out an poly-time deterministic algorithm on all -regular graphs.
Having obtained an exponential-scale separation under Gap-ETH, we next ask whether a corresponding separation can be shown for polynomial-time algorithms. We show this in the next subsection.
1.1.2 Separation Between #BIS and #IS for polynomial-time algorithms
To analyze polynomial-time algorithms, we allow the approximation factor in (1.1) to grow with the size of the graph, taking for . Our next result shows that at sufficiently large fugacity, one can attain a sufficiently good exponential approximation on the class in polynomial time.
Theorem 1.4. Fix and . For every fixed , there is a deterministic polynomial-time -factor approximation to on the class .
We now complement the above result with the corresponding result on the class of graphs .
Theorem 1.5. Fix , , and set . For every fixed , producing a -factor approximation on the class is NP-hard.
1.2 Discussion
A driving question of this paper was separation between optimization and approximate sampling. We observe that in the case of the hard-core model, one can construct simple examples which establish separation between these problems.
Indeed, let be some class of graphs on which approximating is hard. For each , form by attaching a new leaf to every vertex. Let be the resulting graph class.
It is easy to see that for all , . However, for the partition function, we have that
and thus hardness of approximation persists. However, the algorithm and analysis underlying Theorems 1.3 and 1.4 are simple and follow from enumerating independent sets with few defects along a spanning tree. Here, a defect refers to an edge with both endpoints unoccupied. As such, the simplicity of the approach enables its extension to regular graphs where .
For , let
Corollary 1.6. Fix and . There exist and such that, for every and every fixed fugacity , there exists a deterministic algorithm that produces a -factor approximation to in time poly on the class . There also exists a -approximate sampling algorithm for with the same running time.
A natural question is whether the condition that can be replaced by a suitable assumption on optimization. The preceding example shows that efficient optimization alone is insufficient, but is artificial in the sense that we made optimization easy by adding vertices. This motivates asking whether a stronger optimization guarantee can yield fast approximate counting and sampling.
Question 1. Given a polynomial-time oracle for maximum independent set on every induced subgraph, can we obtain a -factor approximation to and a -approximate sampler for on the class in time poly, for every and at sufficiently large fugacity?
The above formulation is natural due to the role of self-reducibility in approximate sampling and counting. Jerrum, Valiant, and Vazirani, and subsequently Sinclair and Jerrum, established that randomized approximate counting and almost-uniform sampling are equivalent for self-reducible problems [JVV86, SJ89]. These reductions rely on access to counting or sampling on conditioned instances. On the hard-core model, this corresponds to induced subgraphs.
One natural setting for the above question is perfect graphs. Every induced subgraph of a perfect graph is perfect, and furthermore, maximum independent set can be solved in polynomial time on this class [GLS84].
Question 2. Does Corollary 1.6 extend to all -regular perfect graphs, without the assumption that is close to ?
2 Bipartite versus general graphs under Gap-ETH
2.1 Approximation algorithm for bipartite graphs
Before we describe the algorithm underlying Theorem 1.3, we introduce the “cut” representation of the hard-core model on bipartite graphs. Let be a -regular bipartite graph. For an independent set , define
These labels express the standard bipartite order for the hard-core model as coordinatewise order [vdBS94, Section 3]. In this encoding, the measure satisfies the FKG lattice condition and hence is positively associated by the FKG inequality [FKG71].
Let denote the set of binary labelings which correspond to a feasible independent set, and write . The only permitted disagreeing pair is , corresponding to neither endpoint belonging to . Since is independent and is -regular,
Expressing in terms of therefore gives
Call an edge a defect of an independent set if neither endpoint belongs to . We first assume that is connected and handle disconnected graphs at the end of the proof. Fix a rooted spanning tree of . Our key observation is that the root label and the set of defective edges of determine all vertex labels (for a feasible independent set). Thus, we can simply enumerate both root labels and all sets of at most defective tree edges and discard labelings that do not encode independent sets.
To see why this works, set and . Letting denote the number of edges of with neither endpoint in , the algorithm then follows immediately by the following simple chain of inequalities.
The last inequality holds whenever . Since we only discard positive terms, , so is an -factor approximation. The formal description of the algorithm is given below.
Algorithm 1 Approximation by spanning-tree enumeration
Require: A connected -vertex -regular bipartite graph , approximation factor , a fugacity , and with and .
Ensure: .
1: Compute a rooted spanning tree of .
2: Set and .
3: for do
4: for all with do
5: Assign the root label and flip labels across precisely the edges in .
6: .
7: if is independent in then
8: .
9: end if
10: end for
11: end for
12: return .
Proof of Theorem 1.3. Put , , and , where satisfies . Set . We may assume is sufficiently large that , since smaller instances are absorbed by the poly factor. Algorithm 1 tests at most labelings, each in polynomial time. Let denote the binary entropy function. We have
giving running time . To obtain the stated bound, set and . The fugacity assumption gives , while
Taking therefore gives running time .
Now we show correctness. The root label and the set of tree defects uniquely determine a labeling, so every retained independent set is counted exactly once. A labeling with tree defects has , and there are such labelings. Since the two constant labelings are feasible, . We can thus bound the omitted weight by
Since , this gives , and hence the claimed -factor approximation.
For sampling, run the enumeration with factor , and let be the kept independent sets. Compute and sample with probability . The resulting law is , so
This weighted selection can be implemented in a second enumeration pass with at most additional total variation error, preserving the running time.
For a graph with connected components, run the connected counting algorithm on each component with factor and multiply the estimates. The resulting factor is at most
The sampling argument then follows in the exact same manner.
2.2 Hardness on general graphs
We reduce gap 3-SAT to the problem of approximating at large fugacity. The proof follows from standard reduction techniques, but adapted to the counting setting.
Proof of Theorem 1.2. We shall reduce from the bounded-occurrence form of Gap-ETH, which is equivalent to Gap-ETH up to a change of constants [CCK 17, Section 5.4].
This formulation states that there exist an integer and constants and such that no deterministic algorithm running in time distinguishes satisfiable 3-CNF formulas with clauses from those in which every assignment satisfies at most clauses, even when each variable has at most literal occurrences. Under randomized Gap-ETH, the corresponding statement holds for randomized algorithms with success probability at least 2/3.
Fix these constants, and let be such a bounded-occurrence instance with variables and clauses , where and each literal is either or for some .
Construct a graph with vertex set , where represents the literal occurrence . We connect two distinct vertices and if , or if one of the literals and is and the other is for some . Thus each clause induces a triangle, and and .
An independent set selects at most one literal occurrence per clause and never selects both a variable and its negation, so its selections extend to an assignment satisfying at least that many clauses. Conversely, choosing one true literal occurrence from each satisfied clause gives an independent set. Hence .
To make regular, we use the following graph . Start with the complete graph on vertices , and delete the edges , and for . Then has degree , while every other vertex has degree . The deleted edges form a three-vertex path and a matching, so no three vertices of are pairwise nonadjacent. Since is independent and avoids , we have .
Attach fresh copies of to each , joining to in each copy. This produces a -regular graph in polynomial time. Writing for the number of copies, we have
as every independent set of H extends by two nonport vertices from each copy, and no copy contributes more than two vertices.
For counting, put and use . If is satisfiable, then . If every assignment to satisfies at most clauses, then
since . Thus an 11/10-factor approximation is at least in the first case and at most in the second.
An poly-time approximation algorithm would therefore solve the promise problem in time
contradicting Gap-ETH. The same argument applies to randomized counting under randomized Gap-ETH.
For sampling, fix and accept an output if it is independent and . In the unsatisfiable promised case, , so the test always rejects. In the satisfiable case, and
A sampler with total variation error at most 1/10 therefore gives acceptance probability at least . The test takes polynomial time, so the preceding running-time bound contradicts randomized Gap-ETH.
3 Bipartite versus general graphs under
3.1 General approximation algorithm
We begin with a bound for connected regular graphs whose independence number is known, using the same spanning-tree encoding as in the previous section.
Lemma 3.1. Fix and a fugacity . Let be a connected -vertex -regular graph, and suppose is known. Put
Then , and the geometric midpoint is an -factor approximation with
Proof. A maximum independent set contributes to the partition function, giving the lower bound. For the upper bound, choose a rooted spanning tree of .
The tree has edges, and the root occupancy and tree defects determine an independent set. Thus at most independent sets have tree defects. Let be the total number of defects of . Regularity gives , and a set with tree defects has . Since , its weight is at most . Summing over gives
For every , both and are at most , giving the approximation guarantee.
The proof of Theorem 1.4 now follows immediately.
Proof of Theorem 1.4. As the hard-core model factorizes over connected components, we may assume that is connected. Put . The two bipartition classes have size , giving . Together with (3.1) and , this gives
Taking , we have , so outputting gives an -factor approximation. For a disconnected graph, the component factors multiply to , where are the component sizes.
3.2 Hardness on general graphs
Our proof will follow by transferring a gap in the independence number of cubic graphs to -regular graphs. At sufficiently large fugacity, the resulting gap in the partition function will exceed the allowed approximation factor.
Proof of Theorem 1.5. We use the following consequence of Chlebík-Chlebíková [CC06, Theorems 2, 16–17 and Corollary 18]: there exist fixed with such that distinguishing from is NP-hard on simple cubic graphs. For completeness, their fixed-gadget construction has and , where is fixed. Applying their source gap versus gives
We raise the degree from 3 to using a gadget with two attachment vertices. Let , and obtain by adding the chord 03 to the cycle and then taking the complement. Vertices 0,3 are ports of degree in and all others have degree . The cycle with the added chord is triangle-free, since 0,3 have disjoint cycle-neighbor sets . Thus , and is an independent set of size two avoiding both ports.
As the cubic graph has even cardinality, pair its vertices arbitrarily. For each pair , attach fresh copies of , joining port 0 to and port 3 to in each copy. The resulting graph is simple and -regular. With gadgets,
Indeed, any independent set uses at most two vertices per gadget, and any independent set of extends by selecting in every gadget. Now, set , . The promises become and , with . For fixed , this construction has linear size and takes polynomial time.
It remains to recover this gap from an approximate count. Since , a maximum independent set contributes , and each of at most independent sets contributes no more. Therefore . An -factor approximation consequently satisfies
The fugacity assumption makes these intervals disjoint, since
To implement the comparison for any fixed , note that and are fixed multiples of , so and are independent of the input. Choose a fixed satisfying
which exists by the preceding inequality. Raising to the th power gives
Thus every valid estimate lies above in the yes case and below it in the no case. Since is fixed, the threshold can be computed in polynomial time. Accepting exactly when therefore decides the original NP-hard promise problem.
4 Acknowledgements
The author thanks Pedro Paredes, as the conjecture that #BIS could be separated from #IS under a variant of the Exponential Time Hypothesis first arose during a conversation while visiting Princeton. The author is also grateful to Will Perkins for helpful feedback on initial versions of this work and for many insightful conversations about #BIS over the last year.
Statement of AI Use. The positive algorithmic results and proofs, based on leveraging spanning trees, are entirely due to the author. ChatGPT 6 Astra and Codex were used to assist with the hardness proofs and with typesetting, polishing, and verifying the correctness of the results. The author assumes responsibility for all content.
References
[CC06] Miroslav Chlebík and Janka Chlebíková. Complexity of approximating bounded variants of optimization problems. Theoretical Computer Science, 354(3):320–338, 2006. Theorem numbering cited in the text follows the linked author manuscript.
[CCC+25] Xiaoyu Chen, Zejia Chen, Zongchen Chen, Yitong Yin, and Xinyuan Zhang. Rapid mixing on random regular graphs beyond uniqueness. In Proceedings of the 66th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2025), pages 2170–2193. IEEE, 2025.
[CCK+17] Parinya Chalermsook, Marek Cygan, Guy Kortsarz, Bundit Laekhanukit, Pasin Manurangsi, Danupon Nanongkai, and Luca Trevisan. From Gap-ETH to FPT-inapproximability: Clique, Dominating Set, and more. arXiv:1708.04218, 2017. See Section 5.4 for the bounded-occurrence formulation of Gap-ETH.
[CGG+16] Jin-Yi Cai, Andreas Galanis, Leslie Ann Goldberg, Heng Guo, Mark Jerrum, Daniel Štefanković, and Eric Vigoda. #BIS-hardness for 2-spin systems on bipartite bounded degree graphs in the tree non-uniqueness region. Journal of Computer and System Sciences, 82(5):690–711, 2016.
[CLY23] Xiaoyu Chen, Jingcheng Liu, and Yitong Yin. Uniqueness and rapid mixing in the bipartite hardcore model (extended abstract). In Proceedings of the 64th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2023), pages 1991–2005. IEEE, 2023.
[DGGJ04] Martin Dyer, Leslie Ann Goldberg, Catherine Greenhill, and Mark Jerrum. The relative complexity of approximate counting problems. Algorithmica, 38(3):471–500, 2004.
[Din16] Irit Dinur. Mildly exponential reduction from gap 3SAT to polynomial-gap label-cover. Electronic Colloquium on Computational Complexity, Report TR16-128, 2016.
[FKG71] C. M. Fortuin, P. W. Kasteleyn, and J. Ginibre. Correlation inequalities on some partially ordered sets. Communications in Mathematical Physics, 22:89–103, 1971.
[GLS84] Martin Grötschel, László Lovász, and Alexander Schrijver. Polynomial algorithms for perfect graphs. Annals of Discrete Mathematics, 21:325–356, 1984.
[GŠV16] Andreas Galanis, Daniel Štefanković, and Eric Vigoda. Inapproximability of the partition function for the antiferromagnetic Ising and hard-core models. Combinatorics, Probability and Computing, 25(4):500–559, 2016.
[JKP20] Matthew Jenssen, Peter Keevash, and Will Perkins. Algorithms for #BIS-hard problems on expander graphs. SIAM Journal on Computing, 49(4):681–710, 2020.
[JPP23] Matthew Jenssen, Will Perkins, and Aditya Potukuchi. Approximately counting independent sets in bipartite graphs via graph containers. Random Structures & Algorithms, 63(1):215–241, 2023.
[JVV86] Mark Jerrum, Leslie G. Valiant, and Vijay V. Vazirani. Random generation of combinatorial structures from a uniform distribution. Theoretical Computer Science, 43:169–188, 1986.
[KOT26] Nicholas Kocurek, Shayan Oveis Gharan, and Dante Tjowasi. Sampling from the hardcore model on random regular bipartite graphs above the uniqueness threshold. arXiv:2604.21847, 2026.
[LL15] Jingcheng Liu and Pinyan Lu. FPTAS for #BIS with degree bounds on one side. In Proceedings of the 47th Annual ACM Symposium on Theory of Computing (STOC 2015), pages 549–556. ACM, 2015.
[MR17] Pasin Manurangsi and Prasad Raghavendra. A birthday repetition theorem and complexity of approximating dense CSPs. In 44th International Colloquium on Automata, Languages, and Programming (ICALP 2017), volume 80 of Leibniz International Proceedings in Informatics (LIPIcs), pages 78:1–78:15. Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2017.
[MWW09] Elchanan Mossel, Dror Weitz, and Nicholas Wormald. On the hardness of sampling independent sets beyond the tree threshold. Probability Theory and Related Fields, 143(3–4):401–439, 2009.
[NP26] Ijay Narang and Will Perkins. The hard-core model on bipartite spectral expanders: Counting and sampling at all fugacities. arXiv:2608.03848, 2026.
[SJ89] Alistair Sinclair and Mark Jerrum. Approximate counting, uniform generation and rapidly mixing Markov chains. Information and Computation, 82(1):93–133, 1989.
[Sly10] Allan Sly. Computational transition at the uniqueness threshold. In Proceedings of the 51st Annual IEEE Symposium on Foundations of Computer Science (FOCS 2010), pages 287–296. IEEE, 2010.
[SS14] Allan Sly and Nike Sun. Counting in two-spin models on d-regular graphs. The Annals of Probability, 42(6):2383–2416, 2014.
[Val79] Leslie G. Valiant. The complexity of enumeration and reliability problems. SIAM Journal on Computing, 8(3):410–421, 1979.
[vdBS94] J. van den Berg and Jeffrey E. Steif. Percolation and the hard-core lattice gas model. Stochastic Processes and their Applications, 49(2):179–197, 1994.
[Wei06] Dror Weitz. Counting independent sets up to the tree threshold. In Proceedings of the 38th Annual ACM Symposium on Theory of Computing (STOC 2006), pages 140–149. ACM, 2006.
A Regular graphs with independence ratio near one half
For completeness, we give the algorithm and proof underlying Corollary 1.6. The algorithm is almost identical to Algorithm 1.
Algorithm 2 Approximation by spanning-tree enumeration on regular graphs
Require: A connected -vertex -regular graph , , approximation factor satisfying , and with , at fixed fugacity .
Ensure: , hence an -factor approximation.
1: Compute a rooted spanning tree of .
2: Set and .
3: for do
4: for all with do
5: Set the root occupancy to and proceed from the root to the leaves.
6: For each parent-child edge , set if ; otherwise require and set .
7: Discard the candidate if a requirement fails.
8: .
9: if is independent in then
10: .
11: end if
12: end for
13: end for
14: return .
Proof of Corollary 1.6. Put . Choose with , and set
Set . We may assume is sufficiently large so that , since smaller instances are absorbed by the poly factor. First suppose is connected. As in Section 2.1, call an edge a defect if both endpoints are unoccupied. The root occupancy and the set of tree defects determine all occupancies: they alternate across nondefective edges, while both endpoints of a defective edge must be unoccupied. Thus every retained independent set is counted exactly once.
Algorithm 2 tests at most
candidates, each in polynomial time. This gives running time .
For correctness, every omitted independent set has more than tree defects. By regularity, its total number of defects is . Since , this gives
There are at most omitted sets, and , so
Consequently, , giving the claimed -factor approximation.
For a disconnected graph, let be its components and put . In each , use the same encoding to enumerate independent sets with at most tree defects, where is the order of the whole graph. Let be their total weight, and return . The total number of candidates is at most
so the running-time bound is unchanged. Every omitted independent set has more than tree defects in some component, and hence more than defects in total. The preceding tail bound therefore applies using the independence-ratio promise on .
For sampling, run the enumeration with factor and sample a retained independent set with probability proportional to its weight. Writing for the retained sets, the resulting law is , with
This weighted selection can be implemented in a second enumeration pass with at most additional total variation error. For disconnected , sample independently in each component, allocating additional error to each selection. This gives total error at most and preserves the running-time bound.
B #BIS-Hardness on regular bipartite graphs
Lemma B.1. Fix and a fugacity . Approximating on the class is #BIS-hard under approximation-preserving reductions.
Proof. We combine Theorem 2 of [CGG16] with the degree-completion argument from Section 3.2. For (to be chosen below), consider the two-spin model with interaction matrix and activity
To verify that this model lies in the tree non-uniqueness region, let denote the occupation odds at the root of a subtree, where is its partition function with the root fixed to spin i. At a vertex with children, each having occupation odds R, the odds are
Writing and using , we obtain
which is the hard-core tree recursion at activity . Since , our model also lies in the tree non-uniqueness region. Theorem 2 of [CGG16] therefore implies that approximating its partition function on is BIS-hard.
For , write and . Since , its configurations are independent sets, and their weights give
To choose and fill missing degrees, take , with the endpoints of as ports. Join copies by connecting each copy's right port to the next copy's left port. The two free ports lie on opposite sides and have degree and all other vertices have degree .
Let be the total hard-core weight in one copy of with port occupancies , including their fugacity factors. The port-weight and hard-core interaction matrices are
Attach the remaining ports by edges to two external vertices. Including these edges but excluding the external-vertex fugacities, the resulting gadget contributes when the external occupancies are i, j, where
Let . Since has strictly positive entries, the Perron–Frobenius theorem gives a dominant eigenvalue and a positive right eigenvector, which we normalize as . Because the first row of is strictly larger than the second entrywise, implies and thus .
Perron–Frobenius also implies that converges exponentially fast to a positive rank-one matrix whose columns are proportional to . Since is symmetric, this limit is a positive multiple of . Consequently, setting , we obtain
uniformly for , where is a constant depending only on and .
Take the disjoint union of and a copy with its bipartition classes exchanged. Each side then has vertices and missing incidences. Pair the missing incidences across the bipartition and attach one gadget consisting of copies of to each pair. The resulting graph is bipartite and -regular.
Up to the approximation error, the gadgets contribute a common factor and one factor for each missing incidence at an occupied vertex. Since , for any we may choose so that the accumulated multiplicative error is at most . Summing over the independent sets in the two copies of therefore gives
The graph has vertices, so the construction has polynomial size. Given a -factor approximation to , the estimate is a -factor approximation to , completing the approximation-preserving reduction.