<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Log-concave polynomials IV: approximate exchange, tight mixing times, and near-optimal sampling of forests</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>06/15/2021</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10314373</idno>
					<idno type="doi">10.1145/3406325.3451091</idno>
					<title level='j'>Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Nima Anari</author><author>Kuikui Liu</author><author>Shayan Oveis Gharan</author><author>Cynthia Vinzant</author><author>Thuy-Duong Vuong</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[We prove tight mixing time bounds for natural random walks on bases of matroids, determinantal distributions, and more generally distributions associated with log-concave polynomials. For a matroid of rank k on a ground set of n elements, or more generally distributions associated with log-concave polynomials of homogeneous degree k on n variables, we show that the down-up random walk, started from an arbitrary point in the support, mixes in time O(k log k). Our bound has no dependence on n or the starting point, unlike the previous analyses of Anari et al. (STOC 2019), Cryan et al. (FOCS 2019), and is tight up to constant factors. The main new ingredient is a property we call approximate exchange, a generalization of well-studied exchange properties for matroids and valuated matroids, which may be of independent interest. In particular, given a distribution µ over size-k subsets of [n], our approximate exchange property implies that a simple local search algorithm gives a k O(k) -approximation of max S µ(S) when µ is generated by a log-concave polynomial, and that greedy gives the same approximation ratio when µ is strongly Rayleigh.As an application, we show how to leverage down-up random walks to approximately sample random forests or random spanning trees in a graph with n edges in time O(n log 2 n). The best known result for sampling random forest was a FPAUS with high polynomial runtime recently found by Anari et al. (STOC  2019), Cryan et al. (FOCS 2019). For spanning tree, we improve on the almost-linear time algorithm by Schild (STOC 2018). Our analysis works on weighted graphs too, and is the first to achieve nearly-linear running time for these problems. Our algorithms can be naturally extended to support approximately sampling from random forests of size between k 1 and k 2 in time O(n log 2 n), for fixed parameters k 1 , k 2 .]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Let &#181; : ( [n]  k ) &#8594; R &#8805;0 be a density function on size k subsets of [n] = {1, . . . , n}, defining a distribution P[S] &#8733; &#181;(S). The generating polynomial of &#181; is the multivariate k-homogeneous polynomial defined as follows:</p><p>We say that g &#181; is log-concave if log(g &#181; ) is a concave function over R n &#8805;0 . The study of log-concave polynomials has recently enabled breakthroughs on old conjectures about matroids, including the resolution of a conjecture of Mihail and Vazirani <ref type="bibr">[MV89]</ref> on the expansion of the bases-exchange graphs <ref type="bibr">[Ana+19]</ref>, and Mason's ultra-log-concavity conjecture <ref type="bibr">[Ana+18;</ref><ref type="bibr">BH18]</ref>. These results rely on the log-concavity of the generating polynomial for various distributions associated with matroids, most importantly the uniform distribution on the set of bases <ref type="bibr">[AOV18]</ref>.</p><p>Besides distributions associated with matroids, several other classes of distributions possess a log-concave generating polynomial. An important subclass consists of strongly Rayleigh distributions <ref type="bibr">[BBL09]</ref> which includes determinantal point processes, distributions that have found numerous applications in machine learning [see KT12, for a survey]. A well-studied example belonging to all classes mentioned so far consists of the uniform distribution over spanning trees of a graph G = (V, E). Here n is the number of edges |E| in the graph and k is the number of edges in a spanning tree, i.e., |V| -1. Spanning trees of a graph form bases of a matroid called the graphic matroid [see, e.g., Oxl06] and they can also be viewed as a determinantal point process because of the matrix-tree theorem [see, e.g., BBL09], and are consequently strongly Rayleigh.</p><p>The motivation behind the conjecture of Mihail and Vazirani <ref type="bibr">[MV89]</ref> was to solve the problem of approximately sampling from bases of a matroid. After this conjecture was made, efficient sampling algorithms were developed for various special classes of matroids [FM92; Gam99; JS02; Jer+04; Jer06; Clo10; CTY15; GJ18] until Anari, Liu, Oveis Gharan, and Vinzant <ref type="bibr">[Ana+19]</ref> showed an efficient approximate sampling algorithm for all matroids. This algorithm used a variant of random walks on the so-called "basesexchange" graphs of matroids, that is known as the "down-up" random walk studied in the context of high-dimensional expanders [KM16; DK17; KO20]. For a distribution defined by &#181; : ( [n]  k ) &#8594; R &#8805;0 , the down-up random walk P starts from a set S 0 &#8712; ( [n]  k ) and produces the Markovian sequence S 0 , S 1 , S 2 , . . . as follows:</p><p>Algorithm 1: Down-up Walk for t = 0, 1, 2, . . . do Let T t &#8712; ( S t k-1 ) be a subset of S t obtained by dropping one element of S t uniformly at random. Let S t+1 = T t &#8746; {e}, where the element e is chosen with probability &#8733; &#181;(T t &#8746; {e}).</p><p>The random walk P has &#181; as its stationary distribution and can be efficiently implemented by probing &#181; on at most n different sets each time. Thus assuming oracle access to &#181;, or in the case of matroids, an independence oracle for the matroid, each step of P takes O(n) time. The challenging part has been establishing the mixing time of P, i.e., bounds on the time t such that the distribution of S t is &#1013;-close in total variation distance to the one defined by &#181;: t mix (P, S 0 , &#1013;) := min {&#65025; t &#8403; &#8403; &#8741;P t (S 0 , &#8226;)&#181;(&#8226;)&#8741; TV &#8804; &#1013; }&#65025; .</p><p>Anari, Liu, Oveis Gharan, and Vinzant <ref type="bibr">[Ana+19]</ref> proved that when &#181; has a log-concave generating polynomial, the spectral gap of the random walk P is at least 1/k. This implied that</p><p>Later, Cryan, Guo, and Mousa <ref type="bibr">[CGM19]</ref> proved a Modified Log-Sobolev Inequality (MLSI) for the same random walk which resulted in a tighter mixing time:</p><p>These results lead to efficient algorithms assuming that the mass of the starting set, P &#181; [S 0 ], is not terribly small; this can often be achieved in practice. For example, for matroids, any starting basis S 0 will satisfy P &#181; [S 0 ] &#8805; 1/( n k ) &#8805; n -k , because the number of bases is at most ( n k ). Consequently the above bounds turn into t mix (P, S 0 , &#1013;) &#8804; O(k(k log(n) + log(1/&#1013;))) and t mix (P, S 0 , &#1013;) &#8804; O(k(log k + log log n + log(1/&#1013;))) respectively. However, for other distributions &#181; with a log-concave generating polynomial, even in the very special case of determinantal point processes, there is no control on min {P &#181; [S 0 ] | S 0 &#8712; supp(&#181;)}, so one has to rely on clever tricks to find a good starting set S 0 ; even then, the best hope is to find a set S 0 with P &#181; [S 0 ] &#8819; 1/( n k ), which results in a mixing time mildly depending on n. Historically, earlier works on a subclass of matroids, called balanced matroids, followed a similar development, where initially a spectral gap result was proved, resulting in a running time 1 of O(nk(k log n + log(1/&#1013;))) followed by MLSI which resulted in a mixing time of O(k(log k + log log n + log(1/&#1013;))) [see MT06, for a survey]. Noting that the term log log n seems unnecessary, Montenegro and Tetali <ref type="bibr">[MT06]</ref> raised the question of proving a better inequality that would result in a running time of O(nk log(k/&#1013;)). They specifically hoped for the possibility of proving a Nash inequality, an advanced type of functional inequality used to derive very tight mixing times for some Markov chains <ref type="bibr">[MT06]</ref>. We believe there are barriers to using functional inequalities in general to prove O(k log(k/&#1013;)) mixing time for the down-up random walk; we defer an explanation of this to a future version of this paper. However, without proving new functional inequalities, we manage to sidestep this barrier and improve the running time to the conjectured O(nk log(k/&#1013;)) for not just balanced matroids, but the class of all matroids.</p><p>Our first result is a tight analysis of the mixing time, entirely removing the dependence on P &#181; [S 0 ] and n.</p><p>Theorem 1. For any distribution defined by &#181; : ( [n]  k ) &#8594; R &#8805;0 with a log-concave generating polynomial g &#181; , the mixing time of the down-up random walk P, starting from any S 0 in the support of &#181; is</p><p>Note that generally we cannot hope for a better mixing time than k log k; each step of the random walk P replaces one element of the current set, and by a coupon collector argument, at least &#8771; k log k steps are needed to replace every element of the starting set S 0 . As long as k is not too close to n, say k &lt; 0.99n, replacing every starting element is needed for sufficient mixing, even for the simple distribution &#181; which is uniform over ( [n]  k ). Our mixing time bound is an asymptotic improvement over prior work for k = O(1), or more generally when k is smaller than log(n) &#1013; for all &#1013; &gt; 0. Another consequence of the new mixing time bound is that it enables the analysis of the down-up random walk when n is infinitely large; for example, this is the case for continuous determinantal point processes [see, e.g., OR18]. <ref type="foot">2</ref> To avoid complicating the notation, we do not consider infinitely large ground sets in this paper, but note that the results do generalize to such cases.</p><p>Our next result is the first quasi-linear time algorithm to sample from the uniform distribution over forests of a graph G = G(V, E). This improves upon the recent result by Anari, Liu, Oveis Gharan, and Vinzant <ref type="bibr">[Ana+19]</ref> which gives a polynomial time algorithm to sample random forest, but the run-time of this algorithm is far from being linear in the number of edges. Their algorithm samples and counts forests of fixed-size k for each k &#8804; |V| -1, thus takes at least &#8486;(|V| |E|) time. Moreover, they employ the approximate sampling to approximate counting reduction [JVV86; AD20], which introduces large polynomial blow-up in run-time. For applications of sampling random forests, see e.g. <ref type="bibr">[Goe+]</ref>.</p><p>In addition, we show a similar algorithm that also runs in quasi-linear time and samples from the uniform distribution over spanning trees of G. Much attention has been paid to the problem of sampling random spanning trees over the years, starting from the seminal works of Aldous <ref type="bibr">[Ald90]</ref> and Broder <ref type="bibr">[Bro89]</ref> who proposed a simple routine to extract a random spanning tree from the trace of a random walk on G itself. Subsequent works introduced improved algorithms [Wil96; CMN96; KM09; MST14; Dur+17a; Dur+17b] until finally Schild <ref type="bibr">[Sch18]</ref> managed to obtain an almost-linear time algorithm running in time n 1+o(1) on graphs with n edges. This algorithm and that of several prior works were all based on the original work of Aldous <ref type="bibr">[Ald90]</ref> and Broder <ref type="bibr">[Bro89]</ref>; they achieved an improved running time by employing several clever, but complicated, tricks to shortcut the trace of a random walk over G. Our algorithms to sample a random spanning tree or random forest is wholly different, based on the down-up random walk, that achieves a nearly-linear running time of n log 2 (n), while being arguably much simpler to describe and implement. Our algorithms can be naturally extended to sample from weighted distributions over forests or spanning trees as well.</p><p>Theorem 2. There is an algorithm that takes a weighted graph G = G(V, E) on n edges with weight function w : E &#8594; R &#8805;0 , parameters q &#8805; 0 and &#1013; &gt; 0 as input and outputs a forest F &#8838; E in time O(n log(n) log(n/&#1013;)); the distribution of F is guaranteed to be &#1013;-close in total variation distance to the distribution &#181; over forests of G defined by</p><p>where k is the rank of the graphic matroid of G, and |F| denotes the number of edges in F.</p><p>In particular, when w(e) = 1 for all e, &#181; is the uniform distribution on forests of G if q = 1, and is the uniform distribution on spanning trees of G if G is connected and q = 0.</p><p>In fact, we can extend Theorem 2 to allow sampling from the uniform distribution over forests of size between k 1 and k 2 , for any parameters k 1 , k 2 , in quasi-linear time.</p><p>Theorem 3. There is an algorithm that takes a weighted graph G = G(V, E) on n edges with weight function w : E &#8594; R &#8805;0 , parameters q &#8805; 0, k 1 , k 2 &#8712; N and &#1013; &gt; 0 as input and outputs a forest F &#8838; E in time O(n log(n) log(n/&#1013;)); the distribution of F is guaranteed to be &#1013;-close in total variation distance to the distribution</p><p>Since our algorithms are based on the MCMC method, they can only approximately sample from the forest or spanning tree distribution. In contrast, some of the prior works, including <ref type="bibr">[Sch18]</ref>, can sample exactly from the spanning tree distribution. This is mostly an inconsequential difference in practice, as no polynomial-time user of the algorithm can sense a difference between exact sampling and approximate sampling; one simply needs to set &#1013; to be inverse-polynomially small.</p><p>We remark that our technique also leads to algorithm(s) that perform the more general task of approximately sampling from the uniform distribution over the family of independent sets of an arbitrary matroid, given access to suitable oracles. Specifically, for a matroid M = ([n], I) of rank k, an algorithm similar to the one from Theorem 2 samples from a distribution that is &#1013;-close to the uniform distribution over the independent set I using O(n log n &#1013; ) calls to a data structure O &#8242; that maintains a set S &#8838; [n], guaranteed to contain at most one circuit and allows for &#8226; Addition, and removal of an element from S, provided we maintain the property that S contains at most one circuit.</p><p>&#8226; Outputing a uniformly random element from the unique circuit in S if, such a circuit exists.</p><p>For graphic matroids, we can implement O &#8242; with amortized quasi-constant query time using link-cut trees. In general, since the input S is guaranteed to have size at most k + 1, we can implement each call to O &#8242; using O(k) calls to the more familiar independence oracle O I for M, resulting in a O(kn log n &#1013; )-time algorithm.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">Techniques</head><p>In order to prove Theorem 1, our strategy is to combine a new analysis of the initial steps of the down-up random walk with the previously known Modified Log-Sobolev Inequality <ref type="bibr">[CGM19]</ref>. Specifically we show that conditioned on having replaced every element of the starting set S 0 at least once by time t, the set at time t can be used as a warm start for the rest of the steps. Specifically, we show that the density of the set at time t w.r.t. &#181;, conditioned on this event, is upper-bounded by only a function of k.</p><p>In order to prove this, we introduce a new property of functions &#181; : ( [n]  k ) &#8594; R &#8805;0 that we call &#945;-approximate exchange. This property says that for every S, T &#8712; ( [n]  k ), and i &#8712; S, there exists j &#8712; T such that</p><p>Note that when &#181; takes values in {0, 1} and &#945; &#8805; 1, this property becomes equivalent to the famous strong basis exchange axiom of matroids <ref type="bibr">[Oxl06]</ref>; if B = &#181; -1 (1) is the family of sets indicated by &#181;, this property says that for every S, T &#8712; B and i &#8712; S, there exists j &#8712; T such that Si + j &#8712; B and T + ij &#8712; B. This property can be seen as a quantitative variant of strong basis exchange. Alternatively, it can be viewed as an approximate and multiplicative form of M &#9838; -concavity, a cornerstone of discrete convex analysis <ref type="bibr">[MS99]</ref>.</p><p>We prove that every &#181; with a log-concave generating polynomial satisfies 2 O(k) -approximate exchange. Crucially, our &#945; does not depend on n. We remark that Br&#228;nd&#233;n and Huh <ref type="bibr">[BH18]</ref> showed a result that can be thought of as a partial converse to this. They proved that M &#9838; -concavity of log &#181;, equivalent to 1-approximate exchange property, implies that the generating polynomial of &#181; is log-concave.</p><p>We show that a similar approximate exchange property implies that a simple local search algorithm gives a k 2k -approximation on the problem of maximizing &#181;(S) for &#181; : ( [n] k ) &#8594; R &#8805;0 generated by a log-concave polynomial. If the generating polynomial of &#181; : ( [n]  k ) &#8594; R &#8805;0 is moreover strongly Rayleigh, then &#181; satisfies a slightly stronger exchange property (see Lemma 24) that in turn implies greedy gives a k 2kapproximation of max S &#181;(S) (see Lemma 25). This is a generalization of Khachiyan <ref type="bibr">[Kha95]</ref>'s classical result that greedy produces a k O(k) -approximation of the (sub)determinant maximization problem [Kha95; Di +14; Nik15], as well as [Pac04; &#199;M10]'s more recent result that greedy gives k O(k) -approximation for the largest j-dimensional simplex problem. The best result on the largest j-dimensional simplex problem is a 2 O(k) -approximation by Nikolov <ref type="bibr">[Nik15]</ref>, matching the lower bound given by [Di +14; &#199;M10].</p><p>We discuss the high-level ideas for proving Theorem 2. For the sake of simplicity, we consider the unweighted case, i.e., w(e) = 1 for all e &#8712; E. It would be illuminating to first discuss the special case where q = 0, G is connected, and &#181; is uniformly distributed over spanning trees of G. We would like to use the down-up random walk from Theorem 1 to sample from &#181;. Though the down-up walk on the support of &#181; mixes in nearly-linear time, we do not see a way to implement each step of it in polylogarithmic time. Fortunately, the down-up random walk on an equivalent family of sets, the dual of the graphic matroid of G, which consists of the complements of spanning trees, also mixes fast, and we can implement each step in amortized O(log n)-time using the link-cut tree data structure [ST83; RTF18].</p><p>For q &#824; = 0, the distribution &#181; over forests of G is not homogeneous, i.e., the support of &#181; contains different-size subsets of E, so we cannot immediately apply Theorem 1. Let &#181; &#175;be the complement distribution of &#181; i.e. &#181; &#175;(E \ F) = &#181;(F) if F is a forest, then sampling from &#181; and from &#181; &#175;are equivalent. We add auxiliary elements to each F &#8712; supp(&#181; &#175;) to obtain a homogeneous distribution. More precisely, we design a homogeneous distribution &#181; &#8593; :</p><p>where Y is the set of auxiliary elements, such that the generating polynomial of &#181; &#8593; is log-concave. Specifically, in Lemma 26, we prove, using results of Br&#228;nd&#233;n and Huh <ref type="bibr">[BH19]</ref>, that for any matroid M of rank r over ground set</p><p>\S is strongly log-concave, and then use polarization (see Proposition 16) to transform f M into a multi-affine homogeneous log-concave polynomial</p><p>The fact that f M is strongly log-concave could be of independent interest.</p><p>The distribution &#181; &#8593; is generated by f &#8593; M . Our algorithm runs the down-up random walk on &#181; &#8593; , which mixes rapidly by Theorem 1, and then outputs E \ (T t &#8745; E) where T t &#8712; supp(&#181; &#8593; ) is the random set we obtained after t = O(n log n &#1013; ) down-up steps. Each step of the walk, even in the weighted case, can again be implemented in amortized O(log n)-time using link-cut trees [ST83; RTF18].</p><p>If we only consider the effect of the down-up walk on T t,E := E \ (T t &#8745; E), then each step of the down-up walk can be viewed as follows:</p><p>&#8226; With probability 1 -|T t,E | n , sample an edge e &#824; &#8712; T t,E uniformly at random and add e to T t,E .</p><p>&#8226; If there is a cycle formed in T t,E by the previous operation, remove an edge uniformly at random from the cycle. Else, with probability q 1+q , remove an edge uniformly at random from T t,E . Note that this has no effects if T t,E is already empty.</p><p>Observe that if q = 0, we never remove an edge from T t,E unless T t,E contains a cycle, thus if T 0,E is a spanning tree then so is T t,E for all t. For q = 0, our algorithm (to sample random spanning trees) is the same as the one proposed by Russo, Teixeira, and Francisco <ref type="bibr">[RTF18]</ref>. Despite not having the tight mixing time analysis, they empirically observed fast mixing times for the proposed algorithm, and additionally showed how link-cut trees can be used to implement each step.</p><p>To prove Theorem 3, we only need to show that the following polynomial is strongly log-concave:</p><p>Then, we apply this for the matroid M whose bases are the size-k 2 forests of graph G. Next, we employ the polarization trick then running down-up walk framework which we use to prove Theorem 2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2">Structure of the Paper</head><p>In Section 2 we provide some background on Markov chains and geometry of polynomials. In Section 3 we prove Theorem 1. In Section 4 we prove certain approximate exchange properties, and their algorithmic implications. In Section 5 we prove Theorems 2 and 3, as well as other results on sampling independent sets of an arbitrary matroid. The results in Section 5 can be read independently of Sections 3 and 4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Preliminaries</head><p>We use <ref type="bibr">[n]</ref> to denote the set {1, . . . , n} and ( [n]  k ) to denote the family of size k subsets of [n]. When n is clear from context, we use 1 S &#8712; R n to denote the indicator vector of the set S &#8838; [n], having a coordinate of 0 everywhere except for elements of S, where the coordinate is 1. We use conv to denote the operator that maps a set of points to their convex hull.</p><p>We use z S as shorthand for {z i | i &#8712; S} and z S as shorthand for &#8719; i&#8712;S z i . For polynomial f = &#8721; S c S z S &#8712; C[z 0 , &#8226; &#8226; &#8226; , z n ], we let the support of f be supp( f ) := {S : c S &#824; = 0}, and write &#8706; i f as shorthand for &#8706; f &#8706;z i .</p><p>We use e k (z 1 , &#8226; &#8226; &#8226; , z n ) to denote the k-th symmetric polynomial in z 1 , &#8226; &#8226; &#8226; , z n . We sometimes abuse notation and write e k (u, z S ) to denote the k-th symmetric polynomial in variables z S &#8746; {u} .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Matroids</head><p>In this paper we use one of the many cryptomorphic definitions of a matroid in terms of the polytope of its bases. For equivalence to other prominent definitions of a matroid, and more generally references to facts stated here see <ref type="bibr">[Oxl06]</ref>. Definition 4. We say that a family B &#8838; ( [n]  k ) is the family of bases of a matroid if the polytope conv {1 B | B &#8712; B} has only edges of the minimum possible length, namely &#8730; 2. We call k the rank of the matroid, and [n] the ground set of the matroid.</p><p>We let the family of independent sets of the matroid be I =</p><p>A well-known fact about matroids, that can be easily derived from Definition 4, is that the dual of a matroid, defined below, is another matroid.</p><p>is the family of bases of a matroid, then the following is also the family of bases of another matroid, called the dual matroid:</p><p>In this paper we will use a famous class of matroids constructed from graphs, called graphic matroids.</p><p>Proposition 6. Let G = (V, E) be a graph. Then the following is the family of bases of a matroid, called the graphic matroid of G:</p><p>{T &#8838; E | T forms a spanning forest}.</p><p>Note that the rank of the graphic matroid is &#8804; |V| -1 and the ground set is E. If G is connected, then the bases are spanning trees of G, and the rank is exactly |V| -1.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">M-Convex Sets</head><p>Definition 7 (M-convex sets). We define a subset J &#8838; N n to be M-convex if it satisfies any one of the following equivalent conditions:</p><p>&#8226; For any &#945;, &#946; &#8712; J and any index i satisfying &#945; i &gt; &#946; i , there is an index j satisfying &#945; j &lt; &#946; j and &#945;e i + e j &#8712; J.</p><p>&#8226; For any &#945;, &#946; &#8712; J and any index i satisfying &#945; i &gt; &#946; i , there is an index j satisfying &#945; j &lt; &#946; j and &#945;e i + e j &#8712; J and &#946;e j + e i &#8712; J.</p><p>We note that any M-convex set J must be a subset of</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Stable Polynomials</head><p>Definition 8 (Half-plane stable). Consider an open half-plane</p><p>We say a polynomial g(z</p><p>In particular, the zero polynomial is H &#952; -stable.</p><p>We call H 0 and H &#960;/2 the upper-half and right-half plane respectively. We say g is Hurwitz stable if it is H &#960;/2 -stable. We say g is real stable if it is H 0 -stable and has real coefficients.</p><p>We observe that for homogeneous polynomials, the definition of H &#952; -stable is equivalent for all angles &#952;.</p><p>A distribution &#181; : 2 [n] &#8594; R &#8805;0 is strongly Rayleigh if and only if its generating polynomial is real stable [see BBL09]. Real stability is preserved under differentiation, and identification:</p><p>is real stable, then the following are also real stable</p><p>We will need the following classical fact [see e.g. BBL09, Proposition 3.1 for a proof].</p><p>Theorem 10. For k &#8804; n, the k-th symmetric polynomial in n variables e k (z 1 , &#8226; &#8226; &#8226; , z n ) is real stable.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4">Log-Concave Polynomials</head><p>For a distribution or density function &#181; : ( [n]  k ) &#8594; R &#8805;0 we denote by g &#181; the generating polynomial of &#181; defined as</p><p>We call a polynomial g &#8712; R[z 1 , . . . , z n ] with nonnegative coefficients log-concave when viewed as a function, it is log-concave over the positive orthant, i.e., for x, y &#8712; R n &#8805;0 and &#955; &#8712; (0, 1)</p><p>For a multiaffine polynomial g, its derivatives can be obtained as</p><p>This shows that the derivatives of a multiaffine log-concave polynomial are limits of log-concave polynomials, which themselves are log-concave. It follows that a multiaffine homogeneous log-concave polynomial satisfies the seemingly stronger notions of strong log-concavity <ref type="bibr">[Gur09]</ref> and complete log-concavity [AOV18; Ana+18; BH19]. The latter means that such polynomials are also closed under directional derivatives Lemma 11. Let g &#8712; R[z 1 , . . . , z n ] be a multiaffine homogeneous polynomial with nonnegative coefficients. If g is log-concave, then it is completely log-concave as well, which means that for any k &#8712; Z &#8805;0 and directions v 1 , . . . , v k &#8712; R n &#8805;0 , the following polynomial is log-concave:</p><p>We will use an alternative characterization of strongly/completely log-concave homogeneous polynomial </p><p>In particular, if g is strongly log-concave then its support supp(g) is M-convex, and all its (directional) derivatives are strongly log-concave as well. For the equivalence of strongly log-concave, completely log-concave, and Lorentzian homoegeneous polynomials, see <ref type="bibr">[BH19]</ref>.</p><p>An important class of polynomials are those associated with uniform distributions over bases of a matroid.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Theorem 13 ([AOV18] based on [AHK18]). If B &#8838; ( [n]</head><p>k ) is the family of bases of a matroid, then the following polynomial is log-concave:</p><p>Theorem 14 ([BH19; Ana+18]). For any matroid M with family of independent sets I, the polynomial</p><p>We will use the following simple fact about log-concave polynomials:</p><p>Proposition 15 ([see Ana+18; BH18]). If g is a log-concave polynomial with nonnegative coefficients, then &#8711; 2 g evaluated at any point in the positive orthant has at most one positive eigenvalue.</p><p>One of the basic operations preserving (complete) log-concavity is composition with a linear map. That is if T : R m &#8594; R n is an affine linear map for which T(R m &#8805;0 ) &#8838; R n &#8805;0 , then g &#8226; T is (completely) log-concave as well. We state other operations that preserve strong log-concavity/Lorentzian property.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proposition 16 ([BH19, Polarization]). For an element</head><p>The polarization map &#8719; &#8593; &#954; is a linear map that sends monomial z &#945; = &#8719; n i=1 z</p><p>where e &#945; i ({z ij } 1&#8804;j&#8804;&#954; i ) is the elementary symmetric polynomial of degree &#945; i in the variables {z ij } 1&#8804;j&#8804;&#954; i and</p><p>1&#8804;i&#8804;n is strongly log-concave then &#8719; &#8593; &#954; (g) is also strongly log-concave. Proposition 17. The product of two strongly log-concave polynomials is also strongly log-concave.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.5">Down-Up Random Walk</head><p>For two distributions &#957;, &#181; we define the Kullback-Leibler divergence, KL-divergence for short, D KL (&#957; &#8741; &#181;) as</p><p>]&#65027; , and the total variation distance between &#957; and &#181; as &#8741;&#957; -</p><p>The two are related by Pinsker's inequality:</p><p>Proposition 18 ([see, e.g., CT12]). KL-divergence and the total variation distance are related by the following inequality</p><p>Cryan, Guo, and Mousa <ref type="bibr">[CGM19]</ref> proved shrinkage of the KL-divergence under the down-up random walk. Coupled with Pinsker's inequality, this resulted in a mixing time bound.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Lemma 19. [CGM19] If &#957;, &#181; : ( [n]</head><p>k ) &#8594; R &#8805;0 are distributions where &#181; has a log-concave generating polynomial, and P is the down-up random walk operator whose stationary distribution is &#181;, then</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Mixing Time Analysis</head><p>In this section we prove Theorem 1 by analyzing the down-up random walk for distributions &#181; that have a log-concave generating polynomial. As a reminder, in each step, the down-up random walk transitions from a set S &#8712; ( [n]  k ) to S &#8242; &#8712; ( [n] k ) as follows: &#8226; From S choose a subset T &#8838; S of size k -1 uniformly at random.</p><p>&#8226; From all supersets S &#8242; &#8839; T, choose one with probability &#8733; &#181;(S &#8242; ).</p><p>Notice that the first step above simply drops a uniformly random element, and the second step replaces it with a new one (potentially the same element). Our high-level strategy is to prove that in O(k log k) steps, every element of the initial set is replaced at least once, and when this happens the distribution becomes a warm start and converges to &#181; in an additional O(k log k) steps.</p><p>Let &#964; be the first time such that every element in our initial set has been replaced at least once. In other words think of initial elements as unmarked, and every time we replace an element we mark the new element brought in. Then &#964; is the first time that every element is marked.</p><p>We will prove the following: Lemma 20. Let S t be the set at time t in the down-up random walk. Then for any X &#8712; ( [n]  k ) and any time t,</p><p>Note that without 2 O(k 2 ) , the r.h.s. is simply the stationary distribution. So this statement can be understood to say that as long as we have replaced each element at least once, we cannot be too far off from the stationary distribution.</p><p>Before proving Lemma 20, let us finish the proof of Theorem 1 assuming it.</p><p>Proof of Theorem 1 assuming Lemma 20. Note that for any fixed time t, we can simply bound P[&#964; &gt; t] by k(1 -1/k) t &#8804; ke -t/k . In particular this probability rapidly converges to 0 after about k log k steps. Now let t 1 &lt; t 2 be two time indices. Let &#957; t denote the distribution of the state of random walk, i.e., S t , at time t. Our goal is to bound &#8741;&#957; t -&#181;&#8741; TV , where for simplicity of notation, we assume &#181; is properly normalized to be a probability distribution. Let &#957; &#8242; t be the distribution of S t conditioned on &#964; &#8804; t, and let &#957; &#8242;&#8242; t be the distribution of S t conditioned on &#964; &#8805; t. Then we can write</p><p>If P denotes the random walk operator, then note that &#957; t 2 = &#957; t 1 P t 2 -t 1 . So we get</p><p>Using the triangle inequality we can bound</p><p>Here we used the fact that P[&#964; &#8804; t 1 ] &#8804; 1, and &#8741;&#957; &#8242;&#8242; t 1 P t 2 -t 1 -&#181;&#8741; TV &#8804; 1; the latter inequality is because &#8741;&#8226;&#8741; TV is always upper bounded by 1.</p><p>We can bound the second term in the above inequality by ke -t 1 /k as stated before. For the first term, note that the KL-divergence between &#957; &#8242; t 1 and &#181; is at most O(k 2 ) by Lemma 20. This is because</p><p>So by Lemma 19 in t 2t 1 steps this KL-divergence decreases to (1</p><p>. By Pinsker's inequality, Proposition 18, we get that</p><p>So in the end we get the following bound</p><p>In order for this to be at most &#1013;, it is enough to make sure that min {t 1 , t 2t 1 } = &#8486;(k log k + k log 1 &#1013; ). So we can simply let t 1 = t 2 /2, and then make sure that t 2 = &#8486;(k log(k/&#1013;)).</p><p>As the main tool we use to prove Lemma 20, we introduce a new inequality for log-concave polynomials, that we call approximate exchange. We state the inequality below and defer its proof to Section 4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Lemma 21. Any &#181; : ( [n]</head><p>k ) &#8594; R &#8805;0 with a log-concave generating polynomial satisfies a 2 O(k) -exchange property. That is, for every S, T &#8712; ( [n]  k ) and i &#8712; S there exists j &#8712; T such that</p><p>Armed with Lemma 21, let us prove Lemma 20.</p><p>Proof of Lemma 20. Let's look at the down-up walk process with orders. This means that we start with some elements e 1 , . . . , e k that together form the starting set. In each time step we replace one of the e i 's. But we keep track of the ordering and do not convert these to sets. So we can talk about e t i as the i-th element at time t. In particular S t is simply the unordered collection {e t 1 , . . . , e t k }. Let's say that X = { f 1 , . . . , f k }. Then to have S t = X, there must be some permutation of f 1 , . . . , f k that equals e t 1 , . . . , e t k . We will show that for any such permutation the promised bound in Lemma 20 holds. Since there are k! = 2 O(k log k) many permutations, this extra factor of k! can be absorbed into the factor of 2 O(k 2 ) without any loss. So we fix an arbitrary permutation, w.l.o.g. the identity permutation, and try to bound the following</p><p>Since we are conditioning on &#964; &#8804; t, note that there must be some time &#964; i &#8804; t, which is the last time before t where the i-th element gets replaced by the down-up random walk. We will bound the above probability, even conditioned on &#964; 1 , . . . , &#964; k having any set of fixed values up to t. Note that the index of the element that gets replaced in every step is uniformly random and independent of everything else that happens in the random walk, in particular the identity of the elements that come in as replacements. In the rest of the proof, we condition on the indices of the elements that get replaced at every step up to time t; note that this also uniquely determines &#964; 1 , . . . , &#964; k , so we assume &#964; 1 , . . . , &#964; k are some fixed time indices. W.l.o.g. assume that &#964; 1 &lt; &#964; 2 &lt; &#8226; &#8226; &#8226; &lt; &#964; k . We will use induction to prove the following statement for i = 0, . . . , k:</p><p>Notice that for i = 0, both sides are trivially equal to 1, and for i = k, this inequality is the main statement we want to prove.</p><p>It remains to show the inductive step. We will show that going from i -1 to i, the l.h.s. gets multiplied by a smaller quantity compared to the r.h.s. If we have below inequality in hand, then it is not hard to see that we can complete the induction, since the factors that get multiplied on each side are the two sides of this inequality.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>P[e</head><p>Instead of conditioning only on f 1 , . . . , f i-1 being chosen at the appropriate times on the l.h.s., we will refine the conditioning and condition on the history of the random walk up to time &#964; i -1. This means we can in particular assume that the elements e &#964; i i+1 , . . . , e &#964; i k are fixed, that e</p><p>, and the only uncertain thing is what the i-th element is being replaced by at time &#964; i .</p><p>Let S = { f 1 , . . . , f i , e &#964; i i+1 , . . . , e &#964; i k }. Then the conditional probability of choosing f i at time &#964; i is:</p><p>On the other hand</p><p>So we have to show the following:</p><p>We will give an injection from the terms on the l.h.s. to the terms in the expanded form of the r.h.s. Choose some set T &#8715; f 1 , . . . , f i-1 . Apply Lemma 21 to S and T with the element f i &#8712; S. We get that there must be some element e &#8712; T such that</p><p>Note that V := Sf i + e contains Sf i , and</p><p>appears on the r.h.s. of the desired inequality. So for each T appearing on the l.h.s. of the desired inequality we produced a pair of U and V. Note that this mapping from T to (X, Y) is injective. This is because given (X, Y), we can recover T as the xor/symmetric difference of the other three sets, that is T = S&#8710;U&#8710;V.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Approximate Exchange Property</head><p>In this section we prove Lemma 21. In addition, we show other variant(s) of approximate exchange property (Lemma 24) with implication for the approximation guarantee of local search and greedy on the problem of max S &#181;(S) given a log-concave/strongly-Rayleigh distribution &#181; :</p><p>Definition 22. We say that &#181; : ( [n] k ) &#8594; R &#8805;0 has an &#945;-approximate exchange property, or &#945;-exchange for short, if for every S, T &#8712; ( [n]  k ) and every i &#8712; S, there exists j &#8712; T such that</p><p>Note that if &#181; is the indicator of bases of a matroid, then it has a 1-exchange property, also known as the strong basis exchange property <ref type="bibr">[Oxl06]</ref>.</p><p>Although we do not directly need it, we give another example where approximate exchange can be proven by elementary means. This is the class of k-determinantal point processes [BBL09; KT12].</p><p>Proposition 23. Suppose that &#181; :</p><p>for some vectors v 1 , . . . , v n &#8712; R k . Then &#181; has a k 2 -exchange property.</p><p>Proof. It is enough to consider the case where S and T are disjoint; otherwise, the problem can be reduced to lower values of k by taking out the intersection, and projecting all vectors on the orthogonal complement of the space spanned by the intersection.</p><p>Define the number &#946; j as &#8730;&#65025; &#181;(Si + j)&#181;(T + ij) and let &#945; be &#8730;&#65025; &#181;(S)&#181;(T). The Pl&#252;cker relations for the Grassmanian [see, e.g., Abe80] say that a signed sum of &#945; and &#946; j is zero:</p><p>This means that there is at least one j such that |&#946; j | &#8805; 1 k &#945;, and this concludes the proof.</p><p>Next we take steps to prove Lemma 21, namely that if &#181; : ( [n] k ) &#8594; R &#8805;0 has a log-concave generating polynomial g &#181; , then &#181; has a 2 O(k) -exchange property. We conjecture that a k O(1) -exchange property should hold, but even if true, this will not improve the mixing time results in this paper beyond constants hidden in the O(&#8226;) notation.</p><p>Our strategy is to prove the case of k = 2 of Lemma 21 by using log-concavity of g &#181; (note that k = 1 is trivial). We will then use an induction to prove the general case. We remark that this type of induction is a standard procedure used in many other places, such as in the context of proving Pl&#252;cker relations and M &#9838; -concavity <ref type="bibr">[MS18]</ref>.</p><p>Before delving into the proof, note that we can always assume S &#8745; T = &#8709;. This is because we can always condition the distribution &#181; on having any set of elements, and then throwing out those elements; this operation corresponds to taking partial derivatives of g &#181; which results in a log-concave polynomial by Lemma 11. In particular, we can condition &#181; on having S &#8745; T, and then throwing out S &#8745; T from the ground set.</p><p>Proof of Lemma 21 for k = 2. When k = 2, we might as well assume that n = 4, because no element outside of S &#8746; T is important, and we can condition the distribution &#181; on not having those elements. This corresponds to substituting 0 for variables outside S &#8746; T in g &#181; which preserves log-concavity.</p><p>So our goal now is to show that for a log-concave quadratic polynomial in four variables</p><p>we have an O(1)-exchange property. W.l.o.g. assume that S = {1, 2} and T = {3, 4}.</p><p>Let us consider &#8711; 2 g &#181; . This is a constant matrix, which has at most one positive eigenvalue by Proposition 15. On the other hand it is a matrix with nonnegative entries, so it must have at least one nonnegative eigenvalue as well. Analyzing the possible signs of the eigenvalues, we see that their product, i.e., the determinant is nonpositive: det(&#8711; 2 g &#181; ) &#8804; 0.</p><p>This determinant can be written in a special way. Let us define:</p><p>Notice that approximate exchange for S, T any any i &#8712; S is equivalent to saying that A &#8804; O(1) &#8226; max {B, C}.</p><p>We can write det(&#8711; 2 g &#181; ) = A 2 + B 2 + C 2 -2(AB + AC + BC). So we get the inequality</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>This is the same as</head><p>Taking square-roots we get</p><p>which is the same as saying A &#8804; (</p><p>Taking square-roots again we get</p><p>In particular one of &#8730; B and &#8730; C must be at least 1 2 &#8730; A. This proves that &#181; satisfies a 2 2 = 4-approximate exchange property for S = {1, 2} and T = {3, 4}.</p><p>We now complete the proof by inducting on k.</p><p>Proof of Lemma 21 for the general case. We can assume that for any S, T such that |S &#8745; T| &#8805; 1, we have a 2 O(k-|S&#8745;T|) -approximate exchange property. This is because by the arguments we had, such nonempty intersections can be reduced to smaller values of k by conditioning and throwing out S &#8745; T. Now let S &#8745; T = &#8709; and let i &#8712; S be given. Our goal is to find j such that &#181;(S)&#181;(T) &#8804; 2 O(k) &#181;(Si + j)&#181;(T + ij).</p><p>Let i &#8242; &#824; = i be another, arbitrary, element of S. We will exchange i &#8242; with an element j &#8242; &#8712; T and use induction on Si &#8242; + j &#8242; and T. We need to be careful how we choose j &#8242; though. Let us choose j &#8242; to be the element of T that maximizes the expression &#181;(T + ij &#8242; )&#181;(Si &#8242; + j &#8242; ). The reason for this choice will become apparent in the rest of he proof.</p><p>Then the sets Si &#8242; + j &#8242; and T have an intersection of one element, so by induction we know an approximate exchange property for them. Therefore, there must be a j &#8712; T such that</p><p>(4)</p><p>We will apply approximate exchange a second time. The sets S and Sii &#8242; + j + j &#8242; have a very large intersection. In particular their exchange property reduces to the case of k = 2 of Lemma 21, which we have already proven. By this exchange property, we have</p><p>If the first term in Eq. (5) achieves the maximum, then we are done, because multiplying Eqs. (4) and (5) yields</p><p>which simplifies to &#181;(S)&#181;(T) &#8804; 2 O(k) &#181;(Si + j)&#181;(T + ij), showing that i can be exchange for j.</p><p>So assume that the second term in Eq. (5) achieves the maximum. We will show that in this case i can be exchanged for j &#8242; . Multiplying Eqs. (4) and (5) yields</p><p>Notice that by our choice of j &#8242; , the fraction appearing on the r.h.s. is &#8804; 1. So we can conclude that</p><p>If we require the stricter assumption that &#181; is generated by a real-stable polynomial, then we obtain an exponentially improved k 2 -exchange. This is a generalization of Proposition 23.</p><p>Lemma 24. Consider &#181; : ( [n] k ) &#8594; R &#8805;0 that is generated by a real-stable polynomial. For every S, T &#8712; (</p><p>Consequently, there exists j &#8712; T \ S such that</p><p>Thus &#181; satisfies a k 2 -exchange property. Moreover, for S &#8712; ( [n]  k ) and j &#824; &#8712; S,</p><p>where &#181;(t) = &#8721; T&#8712;( [n] k ):t&#8712;T &#181;(T) for t &#8712; {j, e} . A consequence of Lemma 24 is that natural local search and greedy algorithms for finding the maximum of &#181; : ( [n]  k ) &#8594; R &#8805;0 (i.e., MAP inference) give a (k!) 2 &#8771; k O(k) -approximation of max {&#181;(S)}, assuming &#181;'s generating polynomial g &#181; (z 1 , &#8226; &#8226; &#8226; , z n ) = &#8721; S &#181;(S)z S is real-stable/strongly Rayleigh. This generalizes similar results for determinantal &#181; to the class of strongly Rayleigh distributions [see, e.g., KD16], giving further evidence for the efficacy of local search and greedy methods [see also <ref type="bibr">Fed13]</ref>.</p><p>Algorithm 2: Greedy Initialize S &#8592; &#8709; while |S| &lt; k do Pick i &#824; &#8712; S that maximizes &#181;(S &#8746; {i}), and update S &#8592; S &#8746; {i} end Lemma 25. If &#181; is strongly Rayleigh, then the output S &#8712; (</p><p>k ) &#181;(T). We leave the proof of Lemmas 24 and 25 to the full version. We remark that similar guarantees can be obtained for a closely related local search algorithm, which moves between sets of size k, each time replacing one element by another. Note that our improved exchange property for strongly Rayleigh distributions is crucial in obtaining k O(k) -approximation. For arbitrary log-concave distributions, we can show the approximate exchange property in Lemma 24 with approximation factor 2 O(k) instead of k 2 , thus proving a 2 O(k 2 ) -approximation guarantee for greedy. Furthermore, we show that local search yields k O(k) -approximation. We leave the proof of these statements to the full version.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Sampling Forests/Spanning Trees</head><p>In this section we prove Theorems 2 and 3. <ref type="foot">3</ref>Let &#181; be the distribution over forests of G defined in Theorem 2. In Lemma 26, we show a homogeneous multiaffine log-concave polynomial f &#8593; M,q,w that generates a homogeneous distribution &#181; &#8593; :</p><p>and (v &#8407;&#945;)e i + e j and (v &#8407;&#946;)e j + e i are in supp(g). This implies &#945; j &gt; &#946; j and &#945;e j + e i and &#946;e i + e j are in supp( f ).</p><p>We proceed using induction on n. Obviously, for n = 1, f is a linear function in w 0 , w 1 with positive coefficient, which is trivially completely log-concave. Suppose the statement is true for matroids M &#8242; on ground set [n -1] with n &#8805; 2.</p><p>We only need to verify &#8706; &#945; f is log-concave for all &#945; with |&#945;| = n -2. Note that for i &#8712; [n],</p><p>is strongly log-concave (and of degree 2, thus real-stable), since it is the sum over the bases of dual matroid M * of M (Theorem 13).</p><p>For</p><p>where T &#8838; [n] is such that B(M) = {[n] \ i | i &#8712; T} are the bases of M, e k is elementary symmetric polynomial of degree k, and z S is shorthand for {z</p><p>Note that e 2 is real-stable (Theorem 10), and that u &#8712; H whenever (z 0 , z</p><p>is the dual or complement of the strongly log-concave polynomial</p><p>We remark that while the dual of a real-stable polynomial is real-stable, the dual of a strongly log-concave polynomials is not in general necessarily strongly log-concave.</p><p>We are ready to prove Theorem 2.</p><p>Proof of Theorem 2. Let M be the graphic matroid on graph G = G(V, E) on n edges. Let k := rank(M). W.l.o.g., we can label the edges by 1, 2 &#8226; &#8226; &#8226; , n and assume E = [n]. Let &#181; be the distribution over independent sets of M (i.e. forest of G) where &#181;(F) &#8733; q k-|F| w F for F &#8712; I(M). Note that we can remove all edge of weight 0 from E without changing &#181;. W.l.o.g., we assume this is already done; thus w(e) &gt; 0 for all e &#8712; E.</p><p>Let Y := {y 1 , &#8226; &#8226; &#8226; , y k } , Z := {z 1 , &#8226; &#8226; &#8226; , z n } . We identify the variable z i with the edge labeled by i. Let f := f &#8593; M,q,w then f is multi-affine, homogeneous, and completely log-concave by Lemma 26. Observe that f is the generating polynomial for distribution &#181; &#8593; : ( Y&#8746;Z n ) &#8594; R &#8805;0 defined by &#181; &#8593; (T) &#8733; q k-|T&#8745;Y| ( k |T&#8745;Y| )</p><p>w Z\T if Z \ T &#8712; I(M), and 0 otherwise.</p><p>We run the down-up walk starting from T 0 &#8712; supp(&#181; &#8593; ) (for e.g. T 0 = (Z \ F ) &#8746; Y for some spanning forest F ). Let &#957; &#8593; be the distribution of the set T &#8712; sup(&#181; &#8593; ) we obtained after O(n log(n/&#1013;)) steps; Theorem 1 implies &#8741;&#181; &#8593;&#957; &#8593; &#8741; TV &#8804; &#1013;. We then remove all y j from S i.e. collapse T &#8838; Y &#8746; Z to T Z := Z \ (T &#8745; Z). Let &#957; be the distribution of T Z . Clearly, supp(&#957;) = I(M), and if &#957; &#8593; is the same distribution as &#181; &#8593; , then &#957; is the same as &#181;. By the data processing inequality, the total variation between &#957; and &#181; is at most &#1013; since &#8741;&#181; -&#957;&#8741; &#8804; &#8741;&#181; &#8593;&#957; &#8593; &#8741; TV &#8804; &#1013;.</p><p>We show each step of the random walk can be implemented in O(log n) time. In the down step, we keep track of whether the level (n -1) set S still satisfies S Z := Z \ S is a forest. Note that if we dropped an y j in the down step to arrive at S, then S Z is always a forest; if, instead, we dropped a z i (equivalently, added z i to S Z ), then we can check whether S Z stays a forest in O(log n) amortized time using link-cut tree [ST83; RTF18]. If S Z is not a forest, then let cycle S be the unique cycle in S Z which contains the edge z i that was added to S Z . When we perform an up-step from S, if S Z is not a forest, select z f among the edges in cycle S with probability &#8733; 1/w f and add it to S (equivalently, remove z f from S Z ). This can be done in O(log n)-amortized time (see <ref type="bibr">[RTF18]</ref>). If S Z is empty, then we can only add y j which is not already in S Y := S &#8745; Y with uniform probability. If S Z is a nonempty forest, then we can add any variable y j &#824; &#8712; S Y or z i &#8712; S Z . In this case, the probability of adding variable can be explicitly computed i.e. uniform among y j &#824; &#8712; S Y , and P[z i ]/ P[y j ] = q k-(&#8467;-1) w -1 i /( k &#8467;-1 )</p><p>where &#8467; := |S Z | = |S Y | + 1. We can perform these operations in O(log n) time by</p><p>&#8226; With probability 1/(1 + &#964;) where</p><p>sample y j uniformly at random from Y \ S Y and add y j to S Y . Note that this action will always be performed if q = 0.</p><p>&#8226; Maintain an array of cumulative sums s t := &#8721; t h=1 w -1 i h for t &#8712; [&#8467;] where w i 1 , w i 2 , &#8226; &#8226; &#8226; , w i &#8467; are the weights corresponding to the edges in S Z ; this data structure supports amortized O(log n)-time insertion and deletion from S Z and binary search in the sorted array [s t ] &#8467; t=1 . This data structure can be implemented using a splay tree where each node stores the sum of all leaves in its rooted subtree. With probability &#964;/(1 + &#964;), sample z f from S Z with probability &#8733; 1/w f by: sample uniformly random p &#8712; [0, s &#8467; ], find minimum t &#8712; [&#8467;] where p &#8804; s t , and remove z i t from S Z . This removal will split a tree in the forest S Z , and we update the link-cut tree representation of S Z accordingly in O(log n) time.</p><p>See Fig. <ref type="figure">1</ref> for a visualization of how one up-then-down step may change the set T Z = Z \ T.</p><p>For completeness, we briefly summarize how to handle sampling and removing an edge from cycle S , which was described in <ref type="bibr">[RTF18]</ref>. We represent S Z as a forest of link-cut trees. When we add an edge e = (u, v) that forms a cycle, splay u to be the root of its tree T u , then access v (which is also in T u ) so that the entire path P u,v from u to v in T u is stored in one auxiliary tree. This auxiliary splay tree can be augmented to support  </p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>Note that the running time is n times the mixing time for the down-up walk.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>We note however that one still needs to be able to implement each step of the random walk efficiently when n is infinitely large. For examples where this is possible see<ref type="bibr">[OR18]</ref>.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2"><p>We remark that reliance on Theorem 1 in this section is not mandatory and the results of this section would have been possible even without Theorem 1.</p></note>
		</body>
		</text>
</TEI>
