Deterministic Approximation for the Volume of the Truncated Fractional Matching Polytope
Abstract
We give a deterministic polynomial-time approximation scheme (FPTAS) for the volume of the truncated fractional matching polytope for graphs of maximum degree , where the truncation is by restricting each variable to the interval , and for some constant . We also generalise our result to the fractional matching polytope for hypergraphs of maximum degree and maximum hyperedge size , truncated by as well, where for some constant . The latter result generalises both the first result for graphs (when ), and a result by Bencs and Regts (2024) for the truncated independence polytope (when ). Our approach is based on the cluster expansion technique.
Keywords and phrases:
deterministic volume computation, cluster expansion, explicit polytopesCopyright and License:
2012 ACM Subject Classification:
Theory of computation Random walks and Markov chains ; Theory of computation Computational geometry ; Theory of computation Pseudorandomness and derandomizationFunding:
This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No. 947778).Editors:
Raghu MekaSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The evaluation of volume is a classic computing task. The pioneer work of Dyer, Frieze, and Kannan [11] showed that given a membership oracle, the volume of a convex body can be approximated to arbitrary accuracy in randomised polynomial time. On the other hand, in the same model, deterministic approximation takes at least exponential time [12, 2]. This marked an early milestone that distinguished the computational power of deterministic algorithms from that of randomized algorithms.
Nonetheless, computing volumes might still be interesting for other models and/or more restricted cases, where the lower bound of [12, 2] does not apply, and interesting deterministic volume algorithms may still exist. In particular, there appears to be no run-time lower bound for deterministically approximating the volume of a polytope given by facets. In this case, as the membership oracle is trivial to implement, the randomised algorithm of Dyer, Frieze, and Kannan [11] achieves an -approximation in time polynomial in the input size and . The deterministic counterpart of such an algorithm is called fully polynomial-time approximation scheme (FPTAS). Unfortunately, the best deterministic algorithmic technique for polytope volumes appears to fall short of achieving FPTAS. They either require exponential time [18, 5]111The algorithms of [18, 5] are in fact exact algorithms and the dominating term in their run-time is linear in the number of vertices of the polytope. or yield exponential approximation [3, 4]. In the hope of getting an FPTAS, we may focus on even more restricted cases, such as the independence polytope or matching polytope for graphs.
Along this direction, Gamarnik and Smedira [13] considered the relaxed independence polytope. Given a graph , it is defined as . Clearly, if we further restrict every to the interval , this polytope degenerates to a cube of side length and its volume is simply . Gamarnik and Smedira [13] showed that we can push beyond this trivial case, namely, if we truncate the relaxed independence polytope by the interval for graphs of maximum degree , a quasi-polynomial-time approximation scheme exists. Their technique is based on the correlation decay approach [22, 1]. Subsequently, Bencs and Regts [8] improved the interval to and the run-time to polynomial-time, based on the zeros of polynomial approach [6, 20]. The bound on this interval appears to be where the limit of the current methods is.
In this paper, we explore what other polytopes may admit efficient deterministic volume approximation. In particular, we consider the natural dual of the independence polytope, namely the matching polytope, or more precisely, its standard relaxation, the fractional matching polytope. Note that although it is the dual of the relaxed independence polytope, its volume might be drastically different.
Definition 1 (Fractional matching polytope).
Given a graph , the fractional matching polytope is defined as follows
where if the edge is adjacent to .
For the fractional matching polytope, the trivial truncation is with the interval . Similar to [13, 8], we also truncate by an interval that is slightly longer, multiplicatively, than the trivial truncation.
Definition 2 (Truncated fractional matching polytope).
For and a graph of maximum degree , the truncated fractional matching polytope is defined as follows
Denote the interval by . Then . Additionally, for any , the constraint is denoted by . We are interested in computing the volume of , i.e. the quantity
| (1) |
where is the Lebesgue measure and the indicator function outputs if and only if the constraint is satisfied, i.e. when .
Our main result regarding is the following. Interestingly, similar to [8], the relative margin for the truncation interval we get is also .
Theorem 3.
For graphs of maximum degree and for some constant , there is a fully polynomial-time approximation scheme (FPTAS) for .
The proof of Theorem 3 relies on the algorithmic cluster expansion approach [14, 16]. This is very closely related to the zeros of polynomial approach Bencs and Regts [8] took. The first step is to rewrite as the partition function of a polymer model on the graph . Roughly speaking, each polymer corresponds to a set of connected vertices where the constraints on these vertices are violated. For the algorithmic approach of the polymer model to work, we need to show that the total weights of these violations decay rapidly, or more technically, the so-called Kotecký-Preiss criterion [17] holds. Intuitively, when we truncate with the trivial interval , none of the violation may happen. With a longer truncation interval, violations can happen, but the small relative margin we allow implies that violations can only happen with small probability. Our method involves some careful estimates of these violation probabilities. We also note that it appears difficult to apply the correlation decay method here, and a direct application of the argument of Bencs and Regts [8] would yield a smaller margin for some constant .
As mentioned earlier, the volumes of the relaxed independence polytope and the fractional matching polytope do not appear to be related, and thus Theorem 3 is not directly comparable to the main result of [8]. To put both results under a unified framework, we also consider hypergraph matchings. Let be a hypergraph. Consider the following polytope:
| (2) |
where if the hyperedge contains . This is a relaxation of the hypergraph matching polytope and a natural generalisation of the fractional matching polytope for graphs in Definition 1. We denote it by the fractional hypergraph matching polytope.
We consider hypergraphs of maximum degree and maximum hyperedge size . In this case, the polytope is indeed defined by a set of linear constraints where each variable appears at most times, and each constraint has at most variables. When , this degenerates to the fractional matching polytope, and when , this degenerates to the relaxed independence polytope. Similar to Definition 2, we truncate it by a cube of side length . Recall that denotes the interval . Define the truncated polytope . Our result regarding is the following.
Theorem 4.
For hypergraphs of maximum degree and maximum hyperedge size , and for some constant , there is an FPTAS for .
The bound recovers Theorem 3. Namely, when , . Moreover, when , and the interval length is , which recovers the result of [8].
The proof of Theorem 4 also relies on the algorithmic cluster expansion approach. It combines our technique for proving Theorem 3 and a generalisation of the technique in [8]. In particular, we introduce a different polymer model in this case, which requires a new generalisation of the classic broken circuit theory [23, 21] to hypergraphs.
An immediate open problem is if Theorem 4 holds with , which is discussed in more detail in Section 4. A much more challenging question is if we can obtain deterministic volume approximation for these polytopes without truncation, or with truncation by the interval for some small . For the closely related problems of approximating the number of independent sets or matchings, deterministic algorithms [22, 20, 7] match their randomised counterparts, at least for bounded degree graphs. In particular, in bounded degree graphs, an efficient deterministic algorithm exists to approximately count the number of matchings [7]. However, these methods do not seem to carry over to volume approximation. When there is no or little truncation, volume approximation appears to be out of reach for current deterministic methods.
2 Cluster Expansion
In this section, we briefly review the polymer model and the algorithmic cluster expansion approach, and apply it to to show Theorem 3. Let be a finite set, whose elements we call polymers. We endow with a symmetric and reflexive incompatibility relation between any two polymers, and also a weight function 222The weight function can be complex-valued, but in this paper we will focus on real-valued weight functions. that assigns a weight to the polymer . Given two polymers and , we write if and are incompatible, and otherwise. For a set of polymers, we say it is compatible if for any two , . Additionally, there is a size function for polymers, and we use to denote the size of .
Definition 5 (Polymer partition function).
The partition function of the polymer model above is
where the sum is over compatible .
We will be interested in the cluster expansion which is an infinite series representation of . Given a multiset of polymers from , we define the incompatibility graph where we have a vertex for every polymer and an edge between every pair of vertices corresponding to an incompatible pair of polymers. A multiset is called a cluster if the incompatibility graph is connected. We also denote the set of all clusters from as . Given , let and define the Ursell function
| (3) |
Definition 6 (Cluster Expansion).
The cluster expansion of is
We refer the interested reader to the survey by Jenssen [15] for various algorithmic (and beyond) applications of the cluster expansion. The cluster expansion is a good approximation to the logarithm of the partition function under various conditions. One of the most well-known conditions is the following.
Proposition 7 (Kotecký-Preiss Criterion [17]).
Let be a “decay function”. Suppose that for all , we have,
| (4) |
Then, the cluster expansion converges absolutely.
We note that the condition in Proposition 7 is not the most general, but this particular form will be convenient for our use later.
We are going to recast (1) into a polymer partition function. Let be a graph of maximum degree . For , let be the set of connected components in the induced subgraph .
Denote by the constraint . Using the indicator function for the constraint , and the fact that , we can expand (1) as
We then continue by pushing the integral inside:
| (5) |
where, for a subset of vertices, denotes the set of edges adjacent to it. Note that we swapped the integral with the product in (5). This is valid because the constraint regarding each rely on disjoint set of edges. There is also an extra factor of to account for the edges that are not adjacent to . As , we have
| (6) |
where
| (7) |
The redistribution of the factor is valid because is a partition of .
To fit (6) into Definition 5, we call a subset a polymer if the induced subgraph is connected. Two polymers and are compatible if , namely when they are not adjacent. The size of a polymer is simply the number of vertices it contains. In addition, equipped with the weight function in (7), we then have that
| (8) |
The polymer model is useful thanks to the following theorem by Jenssen, Keevash, and Perkins [16] (building upon the works of [9, 20, 14]).
Proposition 8 ([16, Theorem 8]).
Fix an integer and let be a class of graphs of maximum degree at most . Suppose the following conditions hold for a given polymer model with decay function as in Proposition 7:
-
1.
There exist constants such that given a connected subgraph , determining whether is a polymer, and then computing and can be done in time ;
-
2.
There exists such that for every and every polymer , ;
-
3.
The Kotecký-Preiss criterion as in Proposition 7 holds for .
Then there exists an FPTAS for for every .
The algorithm in Proposition 8 is as follows. Given and a graph on vertices, let . For a cluster , extend by defining . Moreover, recall the Ursell function in (3). Then,
-
1.
Enumerate all clusters with ;
-
2.
For each such , compute , , and ;
-
3.
Compute
-
4.
Output .
Roughly speaking, this yields a good approximation because the KP criterion in Proposition 7 holds. All the computation is efficient because of the algorithmic techniques in [9, 20, 14].
2.1 Verifying the Kotecký-Preiss Criterion
The most important condition in Proposition 8 is the Kotecký-Preiss criterion as in Proposition 7. Let for some sufficiently small constant . For any , let be the extended neighbourhood of , namely, . Then we have,
| (9) |
Note that . Moreover, Borgs, Chayes, Kahn, and Lovász showed the following lemma.
Lemma 9 ([10, Lemma 2.1]).
For a graph of maximum degree , the number of connected subgraphs containing of size is at most .
Thus we need an upper bound of for any polymer of a fixed size .
Lemma 10.
For a polymer of size and ,
Proof.
Note that we can reinterpret (7) as
where the probability is over the product distribution of where each is uniform over . Let be a maximal independent set of . Then , and
| (10) |
Recall that is the constraint that .
If there is some such that , then as In this case and the lemma follows.
Therefore we can assume that for all . Let . Then
where each is uniform over .
Denote by the simplex .
Then, as .
Thus,
where we used the fact that a standard simplex of dimension has volume and . Plugging it back to (10),
Now we can verify the Kotecký-Preiss criterion.
Lemma 11.
For graphs of maximum degree , , and sufficiently small , the Kotecký-Preiss criterion (4) holds.
Proof.
2.2 Proof of Theorem 3
With the KP criterion verified, we can prove Theorem 3 now.
Proof of Theorem 3.
We apply Proposition 8. Let for a sufficiently small constant , which then satisfies Item (2). The Item (3) follows from Lemma 11. For Item (1), determining if is a polymer is trivial, and computing is trivial too.
For computing , recall (7). It is easy to see that is in fact the volume of a polytope with variables for each , and constraints for each and for each . This polytope has at most vertices, as . Using the polytope volume algorithm by Lawrence [18] or by Barvinok [5], we can thus compute in time for some constant that depends on .
Remark 12.
The bit complexity of the volume of a polytope can be exponential in the size of the polytope. Recall the algorithm (described after Proposition 8) of [16]. The polytopes for which we apply the algorithm of [18] or [5] essentially have size . Thus the bit complexity of their volumes is at most a polynomial in .
Moreover, Lawrence’s algorithm [18] is only stated for simple polytopes. To get around this issue, one may employ a small perturbation, such as the one from [19], to make the polytope simple. Doing so incurs an exponentially small additive error on the volume. On the other hand, Barvinok’s algorithm [5] does not require simple polytopes, but it also incurs exponentially small additive errors. It is easy to observe that, as these volumes are in the exponent of the final estimate, small additive errors translate to small multiplicative errors in the end. Thus, for input error tolerance , we can set in the algorithm of [16] to accommodate the extra small error in volume computation.
3 Hypergraph Matching Polytope
Now we turn our attention to the hypergraph case and show Theorem 4. Let be a hypergraph. We will assume throughout this section that, for some constants , vertices of have maximum degree , and hyperedges of have maximum size . Recall that the fractional hypergraph matching polytope is defined in (2), and the truncated version is defined by intersecting with .
Our will satisfy that , in which case, if the degree of some is at most , the corresponding constraint is always satisfied. Thus, we may assume that for all .
Let be the flattened graph of , namely its vertex set is still , and for , and are adjacent if they appear in the same hyperedge for some . In other words, we replace each hyperedge by a clique on the vertex set of . Notice that the maximum degree of is at most . Similar to (5), we have
| (11) |
where denote the connected components of the induced subgraph . Thus, we have a similar polymer model partition function
| (12) |
where
| (13) |
While (12) and (13) look identical to (6) and (7), the underlying graph is different and consequently Lemma 10 no longer applies. We may view this as a polymer model over , by treating connected induced subgraphs of as polymers.
Directly applying the method of Lemma 10 would yield
This bound can only validate the Kotecký-Preiss criterion up to . To get a better bound, we need a different polymer model.
3.1 A Different Polymer Model
Let be the incidence graph of , where the vertex set is , and for and , in if in . Then, is a bipartite graph, and is exactly projected on the side. For each subset of vertices, let be the neighbours of in . Note that , namely the set of hyperedges that contain at least one vertex in .
We rewrite (12) into a different polymer model. For a connected induced subgraph of , we map it to a minimal connected subgraph (MCS) as follows. Fix an arbitrary ordering of . We consider vertices of in order one at a time, to potentially add them to . Initialise to be the first vertex of and remove it from . Given the current , we find the first vertex in that is adjacent to the current in . Add to if . In other words, we only add if it introduces a new hyperedge to . Whether is added to or not, we remove from . We keep doing this until is empty. Denote this mapping by . We also extend the mapping to any (not necessarily connected) subset by defining if is not connected. We call a non-empty image of an MCS, namely, is an MCS if there is a connected such that . Equivalently, a connected is an MCS if and only if .
Lemma 13.
Let be an MCS. Then,
-
1.
;
-
2.
is connected in .
Proof.
Both claims are straightforward by an induction on the number of vertices of .
While an MCS is connected in , it is not necessarily a tree. Indeed, an MCS is determined by and not by alone.
Our new model have MCSes as polymers. As before two MCSes are incompatible if their distance is at most . For this model, define a new weight function
We rewrite (12) as
| (14) |
where the sum is over whose every component is an MCS.
For an MCS , a vertex is said to be broken if . Let be the set of broken vertices with respect to . This notion is a hypergraph generalisation of the well-known broken circuit theory for graphs [23, 21].
Lemma 14.
For , if and only if .
Proof.
If , the inclusion follows directly from the definition of . For the other inclusion, we induct on the size of . If , the claim holds trivially. For the inductive step, let be the first vertex that is not added to during . Then, clearly , and thus by the induction hypothesis . We claim that as well. This is because the mapping would behave the same as until is considered (and then dropped), as before all vertices considered in are added to . As is dropped next, the rest of the process just processes vertices of and add them. It implies that , and thus . This finishes the inductive step and shows that .
For the other direction, suppose . We also do an induction on . The base case of is trivial. For the inductive step, consider the first that is processed during . Note that up to all processed vertices are in , and the process is identical to the process of up to this point. Thus, would be discarded then. The rest of is identical to , and by the induction hypothesis, . Thus, .
Next we give an upper bound for .
Lemma 15.
Let be a MCS of size . For ,
Proof.
By (15),
Thus,
where the probability is over the product distribution of ’s for , and each is uniform over . Notice that means , which is equivalent to where . As , this implies that for all . Since is connected in , if , then for all , .
Moreover, for a maximal independent set of (in ), we have that , as the maximum degree of is . Note that for , the constraints are independent from each other. Then we have
where we use the fact that the volume of a standard simplex of dimension is . (Recall that we can assume that all vertices have degree , as vertices of smaller degrees correspond to a constraint that trivially holds.) As is an independent set, . Together with and , we have
As is a MCS, by Lemma 13, . Then, as ,
Given Lemma 15, the verification of the Kotecký-Preiss criterion (4) is very similar to previous arguments.
Lemma 16.
For hypergraphs of maximum degree and maximum hyperedge size , , and sufficiently small , the Kotecký-Preiss criterion (4) holds for MCSes and .
Proof.
Let be a MCS. Any MCS incompatible with must contain at least a vertex of or a neighbour of in . By Lemma 13, every MCS is a connected subgraph in . For any , by Lemma 9, the number of MCSes of size that contains is at most . As , the number of MCSes of size and incompatible with is at most . Using this bound, for , , and sufficiently small constant ,
3.2 Proof of Theorem 4
With the KP criterion verified, we can prove Theorem 4 now.
Proof of Theorem 4.
We apply Proposition 8 on . For a polymer (MCS) , let for a sufficiently small constant , which then satisfies Item (2). Item (3) follows from Lemma 16. For Item (1), computing is trivial. To determine if is a polymer is trivial, we just check if . This takes time linear in .
For computing , we use the expression (15). The integral in (15) is the volume of a polytope defined by the constraints for , for , and for . To find the defining constraints of this polytope, we need to compute . Note that by definition, only if is connected, which implies that . Then we just need to go through every and check if . As , this takes at most time.
There are constraints and variables. Note that . Recall that and by Lemma 13, . Thus, the number of vertices of this polytope is at most
Using the polytope volume algorithm by Lawrence [18] or by Barvinok [5], we can compute in time for some constant that depends on and . This verifies Item (1) of Proposition 8 and finishes the proof.
4 Concluding Remarks
Our work leaves open the question of whether, under the setting of Theorem 4, an FPTAS exists for for some constant . The most straightforward potential approach to this bound is to strengthen the bound in Lemma 15 to . However, this strengthening does not appear to hold, at least for some parameters and , when . To see this, consider of size . Let the hyperedges . Moreover, for each , introduce such that but for any . Namely, each contains only from (and possibly other vertices from outside of ). Note that is an MCS and let . Then, and . We have
where we substitute for all . Then,
Plug in and let such that (for example ). Then,
for some constant and any constant when . Thus, to achieve an FPTAS for , some new ideas are required.
References
- [1] Antar Bandyopadhyay and David Gamarnik. Counting without sampling: new algorithms for enumeration problems using statistical physics. In SODA, pages 890–899. ACM, 2006. URL: http://dl.acm.org/citation.cfm?id=1109557.1109655.
- [2] Imre Bárány and Zoltán Füredi. Computing the volume is difficult. Discrete Comput. Geom., 2(4):319–326, 1987. doi:10.1007/BF02187886.
- [3] Alexander Barvinok. Asymptotic estimates for the number of contingency tables, integer flows, and volumes of transportation polytopes. Int. Math. Res. Not., 2009(2):348–385, 2009.
- [4] Alexander Barvinok and Mark Rudelson. A quick estimate for the volume of a polyhedron. arXiv, 2021. arXiv:2112.06322.
- [5] Alexander I. Barvinok. Computing the volume, counting integral points, and exponential sums. Discrete Comput. Geom., 10(2):123–141, 1993. doi:10.1007/BF02573970.
- [6] Alexander I. Barvinok. Combinatorics and Complexity of Partition Functions, volume 30 of Algorithms and combinatorics. Springer, 2016. doi:10.1007/978-3-319-51829-9.
- [7] Mohsen Bayati, David Gamarnik, Dimitriy A. Katz, Chandra Nair, and Prasad Tetali. Simple deterministic approximation algorithms for counting matchings. In STOC, pages 122–127. ACM, 2007. doi:10.1145/1250790.1250809.
- [8] Ferenc Bencs and Guus Regts. Approximating the volume of a truncated relaxation of the independence polytope. arXiv, 2024. doi:10.48550/arXiv.2404.08577.
- [9] Andreas Björklund, Thore Husfeldt, Petteri Kaski, and Mikko Koivisto. Computing the Tutte polynomial in vertex-exponential time. In FOCS, pages 677–686. IEEE Computer Society, 2008. doi:10.1109/FOCS.2008.40.
- [10] Christian Borgs, Jennifer T. Chayes, Jeff Kahn, and László Lovász. Left and right convergence of graphs with bounded degree. Random Struct. Algorithms, 42(1):1–28, 2013. doi:10.1002/RSA.20414.
- [11] Martin E. Dyer, Alan M. Frieze, and Ravi Kannan. A random polynomial time algorithm for approximating the volume of convex bodies. J. ACM, 38(1):1–17, 1991. doi:10.1145/102782.102783.
- [12] György Elekes. A geometric inequality and the complexity of computing volume. Discrete Comput. Geom., 1(4):289–292, 1986. doi:10.1007/BF02187701.
- [13] David Gamarnik and Devin Smedira. Computing the volume of a restricted independent set polytope deterministically. arXiv, 2023. doi:10.48550/arXiv.2312.03906.
- [14] Tyler Helmuth, Will Perkins, and Guus Regts. Algorithmic Pirogov-Sinai theory. Probab. Theory Related Fields, 176(3-4):851–895, 2020.
- [15] Matthew Jenssen. The cluster expansion in combinatorics. In Surveys in combinatorics 2024, volume 493 of London Math. Soc. Lecture Note Ser., pages 55–88. Cambridge Univ. Press, Cambridge, 2024.
- [16] Matthew Jenssen, Peter Keevash, and Will Perkins. Algorithms for #BIS-hard problems on expander graphs. SIAM J. Comput., 49(4):681–710, 2020. doi:10.1137/19M1286669.
- [17] Roman Kotecký and David Preiss. Cluster expansion for abstract polymer models. Comm. Math. Phys., 103(3):491–498, 1986.
- [18] Jim Lawrence. Polytope volume computation. Math. Comp., 57(195):259–271, 1991.
- [19] Nimrod Megiddo and Ramaswamy Chandrasekaran. On the -perturbation method for avoiding degeneracy. Oper. Res. Lett., 8(6):305–308, 1989.
- [20] Viresh Patel and Guus Regts. Deterministic polynomial-time approximation algorithms for partition functions and graph polynomials. SIAM J. Comput., 46(6):1893–1919, 2017. doi:10.1137/16M1101003.
- [21] William T. Tutte. A contribution to the theory of chromatic polynomials. Canad. J. Math., 6:80–91, 1954.
- [22] Dror Weitz. Counting independent sets up to the tree threshold. In STOC, pages 140–149. ACM, 2006. doi:10.1145/1132516.1132538.
- [23] Hassler Whitney. A logical expansion in mathematics. Bull. Amer. Math. Soc., 38(8):572–579, 1932.
