<?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'>Fit Like You Sample: Sample-Efficient Generalized Score Matching from Fast Mixing Diffusions</title></titleStmt>
			<publicationStmt>
				<publisher>Conference on Learning Theory (COLT), 2024</publisher>
				<date>06/30/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10568830</idno>
					<idno type="doi"></idno>
					
					<author>Y Qin</author><author>A Risteski</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Score matching is an approach to learning probability distributions parametrized up to a constant of proportionality (e.g. Energy-Based Models). The idea is to fit the score of the distribution, rather than the likelihood, thus avoiding the need to evaluate the constant of proportionality. While there's a clear algorithmic benefit, the statistical "cost'' can be steep: recent work by Koehler et al. 2022 showed that for distributions that have poor isoperimetric properties (a large Poincaré or log-Sobolev constant), score matching is substantially statistically less efficient than maximum likelihood. However, many natural realistic distributions, e.g. multimodal distributions as simple as a mixture of two Gaussians in one dimension -- have a poor Poincaré constant.In this paper, we show a close connection between the mixing time of a broad class of Markov processes with generator  and an appropriately chosen generalized score matching loss that tries to fit pp. This allows us to adapt techniques to speed up Markov chains to construct better score-matching losses. In particular, ``preconditioning'' the diffusion can be translated to an appropriate ``preconditioning'' of the score loss. Lifting the chain by adding a temperature like in simulated tempering can be shown to result in a Gaussian-convolution annealed score matching loss, similar to Song and Ermon, 2019. Moreover, we show that if the distribution being learned is a finite mixture of Gaussians in d dimensions with a shared covariance, the sample complexity of annealed score matching is polynomial in the ambient dimension, the diameter of the means, and the smallest and largest eigenvalues of the covariance -- obviating the Poincaré constant-based lower bounds of the basic score matching loss shown in Koehler et al. 2022.]]></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>Score matching is a method introduced by <ref type="bibr">Hyv&#228;rinen (2005)</ref> for learning the parameters of a distribution from data, useful for parametric families in which evaluating the likelihood is intractable. An illustrative example are energy-based models (EBMs), parametric families of the form p &#952; (x) &#8733; exp(E &#952; (x)), for which evaluating and optimizing the likelihood is comutationally hard due to the partition function Z &#952; = x exp(E &#952; (x)) <ref type="bibr">(Pabbaraju et al., 2023)</ref>. Score matching obviates evaluating the partition function by instead fitting the score of the distribution (i.e., &#8711; x log p(x)). While there is algorithmic gain, the statistical cost can be substantial. In recent work, <ref type="bibr">Koehler et al. (2022)</ref> show that score matching is statistically much less efficient (i.e., the estimation error, given the same number of samples is much bigger) than maximum likelihood when the distribution being estimated has poor isoperimetric properties (i.e. a large Poincar&#233; constant). However, even very simple multimodal distributions like a mixture of two Gaussians with far away means&#208;have a very large Poincar&#233; constant. As many distributions of interest (e.g., images) are multimodal in nature, the score matching estimator is likely to be statistically untenable.</p><p>In the generative models literature, the seminal paper by <ref type="bibr">Song and Ermon (2019)</ref> proposes a way to deal with multimodality and manifold structure in the data by annealing: namely, estimating the scores of convolutions of the data distribution with different levels of Gaussian noise. The intuitive explanation they propose is that the distribution smoothed with more Gaussian noise is easier to estimate (as there are no parts of the distribution that have low coverage by the training data), which should help estimate the score at lower levels of Gaussian noise. However, making this quantitative or formal seems very challenging.</p><p>In this paper, we show that there is a deep connection between the mixing time of broad classes of continuous, time-homogeneous Markov processes with stationary distribution p and generator L, and the statistical efficiency of an appropriately chosen generalized score matching loss <ref type="bibr">(Lyu, 2012)</ref> that tries to match Op p . In the case that L is the generator of Langevin diffusion, and O = &#8711; x , we recover the results of <ref type="bibr">Koehler et al. (2022)</ref>. This &#170;dictionary&#186; allows us to design score losses with better statistical behavior, by &#170;translating&#186; techniques for speeding up Markov chain convergence &#208; e.g. preconditioning a diffusion and lifting the chain by introducing additional variables.</p><p>Our contributions are as follows:</p><p>1. A general framework for designing generalized score matching losses with good asymptotic sample complexity from fast-mixing diffusions. Precisely, for a broad class of diffusions with generator L and Poincar&#233; constant C P , we can choose a linear operator O, such that the generalized score matching loss</p><p>1 2 E p Op p -Op &#952; p &#952; 2 2</p><p>has statistical complexity that is a factor C 2 P worse than that of maximum likelihood. (Recall, C P characterizes the mixing time of the Markov process with generator L in chi-squared distance.) In particular, for diffusions that look like &#170;preconditioned&#186; Langevin, this results in &#170;appropriately preconditioned&#186; score loss.</p><p>2. We analyze a lifted diffusion, which introduces a new variable for temperature, and we provably show statistical benefits of annealing for score matching. Precisely, we exhibit continuouslytempered Langevin (CTLD), a Markov process which mixes in time poly(D, d, 1/&#955; min , &#955; max ) for finite mixtures of Gaussians in ambient dimension d with identical covariances whose smallest and largest eigenvalues are lower and upper bounded by &#955; min and &#955; max respectively, and means lying in a ball of radius D. (Note, the bound has no dependence on the number of components.) Moreover, the corresponding generalized score matching loss is a form of the annealed score matching loss introduced in <ref type="bibr">(Song and Ermon, 2019;</ref><ref type="bibr">Song et al., 2020)</ref>, with a particular choice of weighing for the different amounts of Gaussian convolution. This is the first result formally showing the statistical benefits of annealing for score matching. Technically, this result involves bounding the mixing time of a &#170;continuously tempered&#186; version of Langevin dynamics for mixtures, using functional decomposition theorems.</p><p>On a conceptual level, our work draws on and brings together theoretical developments in understanding score matching, as well as designing and analyzing faster-mixing Markov chains based on strategies in annealing. An in-depth review of related prior work is included in Appendix I.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Preliminaries</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">Generalized Score Matching</head><p>The conventional score-matching objective <ref type="bibr">(Hyv&#228;rinen, 2005)</ref> is defined as</p><p>Note, the expression is asymmetric: p is the data distribution, p &#952; is the distribution that is being fit.</p><p>Written like this, it is not clear how to minimize this loss, when we only have access to data samples from p. The main observation of <ref type="bibr">Hyv&#228;rinen (2005)</ref> is that the objective can be rewritten (under suitable decay conditions using integration by parts) in a form that is easy to fit given samples:</p><p>where K p is some constant independent of q. To turn this into an algorithm given samples, one simply solves</p><p>where p denotes the uniform distribution over the samples from p. This objective can be calculated efficiently given samples from p, so long as the gradient and Hessian of the log-pdf of p &#952; can be efficiently calculated. 1  Generalized Score Matching, first introduced in Lyu (2012), generalizes &#8711; x to an arbitrary linear operator O:</p><p>Definition 1 The Generalized Score Matching (GSM) loss with a linear operator O acting on density functions is defined as</p><p>Again, for the special case of the family of operators O in (3), the integration by parts form of the objective can be easily written down explicitly (the proof is provided in Appendix B):</p><p>Lemma 2 (Integration by parts for the GSM in (3)) The generalized score matching objective in (3) satisfies the equality</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">Continous-time Markov Processes</head><p>In this section, we introduce the key definitions related to continuous-time Markov chains and diffusion processes:</p><p>Definition 2 (Markov semigroup) We say that a family of functions {P t (x, y)} t&#8805;0 on a state space &#8486; is a Markov semigroup if P t (x, &#8226;) is a distribution on &#8486; and P t+s (x, dy) = &#8486; P t (x, dz)P s (z, dy) for all x, y &#8712; &#8486; and s, t &#8805; 0.</p><p>Definition 3 (Time-homogeneous Markov processes) A time-homogeneous Markov process (X t ) t&#8805;0 on state space &#8486; is defined by a Markov semigroup {P t (x, y)} t&#8805;0 as follows: for any measurable A &#8838; &#8486;, Pr(X s+t &#8712; A|X s = x) = P t (x, A) = A P t (x, dy). Moreover, P t can be thought of as acting on a function g as</p><p>A particularly important class of time-homogeneous Markov processes is given by It&#244; diffusions, namely stochastic differential equations of the form dX t = b(X t )dt + &#963;(X t )dB t for a drift function b, and a diffusion coefficient function. In fact, a classical result due to Dynkin <ref type="bibr">(Rogers and Williams (2000)</ref>, Theorem 13.3) states that any &#170;sufficiently regular&#186; time-homogeneous Markov process (specifically, a process whose semigroup is Feller-Dynkin) can be written in the above form.</p><p>We will be interested in It&#244; diffusions whose stationary distribution is a given distribution p(x) &#8733; exp(-f (x)). Perhaps the most well-known example of such a diffusion is Langevin diffusion, namely dX t = -&#8711;f (X t )dt + &#8730; 2dB t , where B t is standard Brownian motion in R d . In fact, a completeness result due to <ref type="bibr">Ma et al. (2015)</ref> states that we can characterize all It&#244; diffusions whose stationary distribution is p(x) &#8733; exp(-f (x)) as &#170;preconditioned&#186; Langevin diffusion. Precisely:</p><p>Theorem 3 (Characterization of It&#244; diffusions w/ given stationary distribution, <ref type="bibr">Ma et al. (2015)</ref>) Any It&#244; diffusion with stationary distribution p(x) &#8733; exp(-f (x)) can be written in the form:</p><p>Intuitively, D(x) can be viewed as &#170;reshaping&#186; the diffusion, whereas Q and &#915; are &#170;correction terms&#186; to the drift so that the stationary distribution is preserved.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3.">Dirichlet forms and Poincar&#233; inequalities</head><p>Definition 4 The generator L corresponding to Markov semigroup is Lg = lim t&#8594;0 Ptg-g t . Moreover, if p is the unique stationary distribution, the Dirichlet form and the variance are</p><p>respectively. We will use the shorthand E(g) := E(g, g). By It&#244;'s Lemma, the generator of diffusions of the form (5) have the form:</p><p>The Dirichlet form for diffusions of the form (5) also has a very convenient form:</p><p>Lemma 4 (Dirichlet form of continuous Markov Process) An It&#244; diffusion of the form (5) has a Dirichlet form</p><p>Notably, for Langevin diffusion, the Dirichlet form is just the l 2 norm of &#8711;g:</p><p>For a general diffusion of the form (5), we can think of D(x) as a (point-specific) preconditioner, specifying the norm with respect to which to measure &#8711;g. The proof of this lemma is given in Appendix B. Finally, we define the Poincar&#233; constant:</p><p>Definition 5 (Poincar&#233; inequality) A continuous-time Markov process satisfies a Poincar&#233; inequality with constant C if for all functions g such that E(g) is defined (finite), we have<ref type="foot">foot_0</ref> E(g) &#8805; 1 C Var p (g). We will abuse notation, and for a Markov process with stationary distribution p, denote by C P the Poincar&#233; constant of p, the smallest C such that above Poincar&#233; inequality is satisfied.</p><p>The Poincar&#233; inequality implies exponential ergodicity for the &#967; 2 -divergence, namely &#967; 2 (p t , p) &#8804; e -2t/C P &#967; 2 (p 0 , p), where p is the stationary distribution of the chain and p t is the distribution after running the Markov process for time t, starting at p 0 .</p><p>We will analyze mixing times using a decomposition technique similar to the ones employed in <ref type="bibr">Ge et al. (2018)</ref>; <ref type="bibr">Moitra and Risteski (2020)</ref>. Intuitively, these results &#170;decompose&#186; the Markov chain by partitioning the state space into sets, such that: (1) the mixing time of the Markov chain inside the sets is good; (2) the &#170;projected&#186; chain, which transitions between sets with probability equal to the probability flow between sets, also mixes fast. An example of such a result is Theorem 6.1 from <ref type="bibr">Ge et al. (2018)</ref>:</p><p>Theorem 5 (Decomposition of Markov Chains, Theorem 6.1 in <ref type="bibr">Ge et al. (2018)</ref>) Let M = (&#8486;, L) be a continuous-time Markov chain with stationary distribution p and Dirichlet form E(g, g) = -&#10216;g, Lg&#10217; p . Suppose the following hold.</p><p>1. The Dirichlet form for L decomposes as &#10216;f, Lg&#10217; p = m j=1 w j &#10216;f, L j g&#10217; p j , where p = m j=1 w j p j and L j is the generator for some Markov chain M j on &#8486; with stationary distribution p j .</p><p>2. (Mixing for each M j ) The Dirichlet form E j (f, g) = -&#10216;f, Lg&#10217; p j satisfies the Poincar&#233; inequality Var p j (g) &#8804; CE j (g, g). [&#7713;(k)&#7713;(j)] P (j, k), where P (j, k) = w k max{&#967; 2 (p j , p k ), &#967; 2 (p k , p j ), 1} .</p><p>Let p be the stationary distribution of M . Suppose M satisfies the Poincar&#233; inequality Var p(&#7713;) &#8804; C &#274;(g, g).</p><p>Then M satisfies the Poincar&#233; inequality:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.">Asymptotic efficiency</head><p>We will also use some classical results about asymptotic normality of M-estimators, under standard identifiability and differentiability conditions. Namely, we will be considering estimators defined as</p><p>In general, we will denote by n the number of samples, and &#202; will denote an empirical average, that is the expectation over the n training samples. Finally, &#952;n will denote min &#952;&#8712;&#920; &#202;[&#8467; &#952; (x)] when the number of samples is n. In Section A.2 we recall sufficient conditions for &#952;n to be asymptotically normal, and an expression for the asymptotic covariance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Main Results: A Framework for Analyzing Generalized Score Matching</head><p>The goal of this section is to provide a general framework that provides a bound on the sample complexity of a generalized score matching objective with operator O, under the assumption that some Markov process with generator L mixes fast. Precisely, we will show:</p><p>Theorem 6 (Main, sample complexity bound) Consider an It&#244; diffusion of the form (5) with stationary distribution p(x) &#8733; exp(-f (x)) and Poincar&#233; constant C P with respect to the generator of the It&#244; diffusion. Consider the generalized score matching loss with operator (Og)(x) :=</p><p>. Suppose we are optimizing this loss over a parametric family {p &#952; : &#952; &#8712; &#920;} that satisfies:</p><p>1. (Asymptotic normality) Let &#920; * be the set of global minima of the generalized score matching loss D GSM , that is</p><p>Suppose the generalized score matching loss is asymptotically normal: namely, for every &#952; * &#8712; &#920; * , and every sufficiently small neighborhood S of &#952; * , there exists a sufficiently large n, such that there is a unique minimizer &#952;n of &#202;l &#952; (x) in S, where:</p><p>Furthermore, assume &#952;n satisfies</p><p>2. (Realizibility) At any &#952; * &#8712; &#920; * , we have p &#952; * = p.</p><p>Then, we have:</p><p>Remark 7 The two terms on the right hand sides qualitatively capture two intuitive properties necessary for a good sample complexity: the factor involving the covariances can be thought of as a smoothness term capturing how regular the score is as we change the parameters in the family we are fitting; the C P term captures how the error compounds as we &#170;extrapolate&#186; the score into a probability density function.</p><p>Remark 8 This theorem generalizes Theorem 2 in Koehler et al. (2022), who show the above only in the case of L being the generator of Langevin diffusion and O = &#8711; x , i.e. when D GSM is the standard score matching loss. Furthermore, they only consider the case of p &#952; being an exponential family, i.e. p &#952; (x) &#8733; exp(&#10216;&#952;, T (x)&#10217;) for some sufficient statistics T (x). Finally, just as in Koehler et al. (2022), we can get a tighter bound by replacing C P by the restricted Poincar&#233; constant, which is the Poincar&#233; constant when considering only the functions of the form &#10216;w, &#8711; &#952; log p &#952; (x) | &#952;=&#952; * &#10217;. Remark 9 Note that if we know &#8730; n( &#952;n&#952; * ) d -&#8594; N (0, &#915; SM ), we can extract bounds on the expected &#8467; 2 2 distance between &#952;n and &#952; * . Namely, from Markov's inequality (see e.g., Remark 4 in Koehler et al. ( <ref type="formula">2022</ref>)), we have for sufficiently large n, with probability at least 0.99 it holds that</p><p>Some conditions for asymptotic normality can be readily obtained by applying standard results from asymptotic statistics (e.g. <ref type="bibr">Van der Vaart (2000)</ref>, Theorem 5.23, reiterated as Lemma 19 for completeness).From that lemma, when an estimator &#952; = arg min &#202;l &#952; (x) is asymptotically normal, we</p><p>, where L(&#952;) = E &#952; l(x). Therefore, to bound the spectral norm of &#915; SM , we need to bound the Hessian and covariance terms in the expression above. The latter is a fairly straightforward calculation, which results in the following Lemma, proven in Appendix C.</p><p>Lemma 10 (Bound on smoothness) For l &#952; (x) defined in Theorem 6,</p><p>The bound on the Hessian is where the connection to the Poincar&#233; constant manifests. Namely, we show:</p><p>Lemma 11 (Bounding Hessian) Let the operators O, L be such that for every vector w, the function g</p><p>Proof To reduce notational clutter, we will drop | &#952;=&#952; * since all the functions of &#952; are evaluated at &#952; * . Consider an arbitrary direction w. We have:</p><p>1 follows from a straightforward calculation (in Lemma 5), 2 follows from the definition of Poincar&#233; inequality of a diffusion process with Dirichlet form derived in Lemma 4, applied to the function &#10216;w, &#8711; &#952; log p &#952; &#10217;, and 3 follows since</p><p>Fisher matrix ( <ref type="bibr">Van der Vaart, 2000)</ref>). Since this holds for every vector w, we have</p><p>. By monotonicity of the matrix inverse operator (Toda, 2011), the claim of the lemma follows.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Main Results: Benefits of Annealing</head><p>In this section, we instantiate the framework from the previous section to the specific case of a Markov process, Continuously Tempered Langevin Dynamics, which is a close relative of simulated tempering <ref type="bibr">(Marinari and Parisi, 1992)</ref>, where the number of &#170;temperatures&#186; is infinite, and we temper by convolving with Gaussian noise. We show that the generalized score matching loss corresponding to this Markov process mixes in time poly(D, d) for a mixture of K Gaussians (with identical covariance) in d dimensions, and means in a ball of radius D. More precisely, in this section, we will consider the following family of distributions: Assumption 1 Let p 0 be a d-dimensional Gaussian distribution with mean 0 and covariance &#931;. We will assume the data distribution p is a K-Gaussian mixture, namely p = K i=1 w i p i , where p i (x) = p 0 (x&#181; i ), i.e. a shift of the distribution p 0 so its mean is &#181; i . We will assume the means &#181; i lie within a ball with diameter D. We will denote the min and max eigenvalues of covariance with &#955; min (&#931;) = &#955; min and &#955; max (&#931;) = &#955; max . We will denote the min and max mixture proportion with min i w i = w min and max i w i = w max . Let &#931; &#946; = &#931; + &#946;&#955; min I d be the shorthand notation of the covariance of individual Gaussian at temperature &#946;.</p><p>Mixtures of Gaussians are one of the most classical distributions in statistics&#208;and they have very rich modeling properties. For instance, they are universal approximators in the sense that any distribution can be approximated (to any desired accuracy), if we consider a mixture with sufficiently many components <ref type="bibr">(Alspach and Sorenson, 1972)</ref>. A mixture of K Gaussians is also the prototypical example of a distribution with K modes &#208; the shape of which is determined by the covariance of the components.</p><p>Note at this point we are just saying that the data distribution p can be described as a mixture of Gaussians, we are not saying anything about the parametric family we are fitting when optimizing the score matching loss&#208;we need not necessarily fit the natural unknown parameters (the means, covariances and weights). The primary reason this family of distributions is convenient for technical analysis is a closure property under convolutions: a convolution of a Gaussian mixture with a Gaussian produces another Gaussian mixture. Namely, the distributivity property of the convolution operator implies:</p><p>Proposition 1 (Convolution with Gaussian) Under Assumption 1, the distribution p * N (x; 0, &#963;<ref type="foot">foot_1</ref> I) satisfies p * N (x; 0, &#963; 2 I) = i w i p 0 (x&#181; i ) * N (x; 0, &#963; 2 I) and (p 0 (x&#181; i ) * N (x; 0, &#963; 2 I)) is a multivariate Gaussian with mean &#181; i and covariance &#931; + &#963; 2 I.</p><p>The Markov process we will be analyzing (and the corresponding score matching loss) is a continuous-time analog of the Simulated Tempering Langevin chain introduced in Ge et al. ( <ref type="formula">2018</ref>):</p><p>Definition 6 (Continuously Tempered Langevin Dynamics (CTLD)) We will consider an SDE over a temperature-augmented state space, that is a random variable 1+&#946;) and</p><p>&#955; min -1. Let p &#946; := p * N (0, &#946;&#955; min I d ) denotes the distribution p convolved with a Gaussian of covariance &#946;&#955; min I d . Furthermore, L(dt) is a measure supported on the boundary of the interval [0, &#946; max ] and &#957; t is the unit normal at the endpoints of the interval, such that the stationary distribution of this SDE is p(x, &#946;) = r(&#946;)p &#946; (x) <ref type="bibr">(Saisho, 1987)</ref> <ref type="foot">foot_2</ref> .</p><p>If we ignore the boundary reflection term, the updates for CTLD are simply Langevin dynamics applied to the distribution p(x, &#946;), and r(&#946;) specifies the distribution over the different levels of noise. CTLD can be readily seen as a &#170;continuous-time&#186; analogue of the usual simulated tempering chain. Namely, in the usual (discrete-time) simulated tempering <ref type="bibr">(Lee et al., 2018;</ref><ref type="bibr">Ge et al., 2018)</ref>, the tempering chain has two types of moves: one which evolves the position in the current temperature, and one which tries to change the temperatures, followed by a Metropolis Hastings filtering step.</p><p>We point out several similarities and crucial differences with the chain proposed in <ref type="bibr">Ge et al. (2018)</ref>. The chain in <ref type="bibr">Ge et al. (2018)</ref> has a finite number of temperatures and the distribution in each temperature is defined as scaling the log-pdf, rather than convolution with a Gaussian&#208;this is because the mode of access in <ref type="bibr">Ge et al. (2018)</ref> is the gradient of the log-pdf, whereas in score matching, we have samples from the distribution. The distributions in <ref type="bibr">Ge et al. (2018)</ref> are geometrically spaced out&#208;so &#946; being distributed as exp(-&#920;(&#946;)) in our case can be thought of as a natural continuous analogue.</p><p>Since CTLD amounts to performing (reflected) Langevin dynamics on the appropriate joint distribution p(x, &#946;), the corresponding generator L for CTLD is also readily written down (Proposition 6). The operator O that corresponds to the CTLD is also easy to derive:</p><p>Proof The first equality follows as a special case of Langevin on the lifted distribution. The second equality follows by writing &#8711; &#946; log p(x|&#946;) and &#8711; &#946; log p &#952; (x|&#946;) through the Fokker-Planck equation for p(x|&#946;) (see Lemma 28).</p><p>This loss was derived from first principles from the Markov Chain-based framework in Section 3, however, it is readily seen that this loss is a &#170;second-order&#186; version of the annealed losses in <ref type="bibr">Song and Ermon (2019)</ref>; <ref type="bibr">Song et al. (2020)</ref> &#208; the weights being given by the distribution r(&#946;).</p><p>With this setup in mind, we can proceed to the main technical results of this section.</p><p>Theorem 12 (Poincar&#233; constant of CTLD) Under Assumption 1, the Poincar&#233; constant of CTLD C P enjoys the upper bound</p><p>Note that perhaps surprisingly, the above result has no dependence on the number of components, or on the smallest component weight w min &#208;only on the diameter D, the ambient dimension d, and &#955; min and &#955; max . The results in <ref type="bibr">Ge et al. (2018)</ref> have a dependence on w min , but in their model, it's not possible to query convolutions of the pdf with a Gaussian. This result can be seen as a &#170;time-homogenous&#186; analogue of recent results <ref type="bibr">(Lee et al., 2023</ref>) that the reverse SDE (which is timeinhomogenous) converges to the data distribution in polynomial time under minimal assumptions (Lipschitzness of the score). This result is of independent technical interest as it illustrates the power of having an oracle for convolutions of the target distribution.</p><p>To get a complete bound on the asymptotic sample complexity of generalized score matching, according to the framework from Lemma 3, we also need to bound the smoothness terms as in Lemma 10. These terms of course depend on the choice of parametrization for the family of distributions we are fitting &#208; in particular, there is no &#170;canonical&#186; parametrization for multimodal distributions. To get a quantitative sense for how the smoothness might scale, we will consider one natural parametrization for a mixture:</p><p>Assumption 2 Consider the case of learning unknown means<ref type="foot">foot_3</ref> , such that the parameters to be learned are a vector &#952; = (&#181; 1 , &#181; 2 , . . . , &#181; K ) &#8712; R dK .</p><p>With this parametrization, the smoothness term can be bounded as follows:</p><p>Theorem 13 (Smoothness under the natural parameterization) Under Assumptions 1 and 2, the smoothness defined in Theorem 6 enjoys the upper bound</p><p>Finally, we show that the generalized score matching loss is asymptotically normal. The proof of this is in Appendix F, and proceeds by verifying the conditions of Lemma 19. Putting this together with the Poincar&#233; inequality bound Theorem 12 and Theorem 6, we get a complete bound on the sample complexity of the generalized score matching loss with O: Theorem 14 (Main, Polynomial Sample Complexity Bound of CTLD)</p><p>Let the data distribution p satisfy Assumption 1. Then, the generalized score matching loss defined in Proposition 7 with parametrization as in Assumption 2 satisfies:</p><p>1. The set of optima</p><p>satisfies:</p><p>2. Let &#952; * &#8712; &#920; * and let C be any compact set containing &#952; * . Denote</p><p>Finally, let D be any closed subset of C not intersecting C 0 . Then, we have:</p><p>3. For every &#952; * &#8712; &#920; * and every sufficiently small neighborhood S of &#952; * , there exists a sufficiently large n, such that there is a unique minimizer &#952;n of &#202;l &#952; (x) in S. Furthermore, &#952;n satisfies:</p><p>We provide some brief comments the theorem:</p><p>&#8226; The goal of this result is not to provide a new algorithm for learning mixtures of Gaussians, but to provide a paradigm case in which annealing improves the statistical behavior of score matching. In fact, the generalized score matching loss is not necessarily convex, and our result is only statistical in nature. Moreover, from the point of view of score matching, the statistical complexity relative to MLE worsens when the modes are well-separated &#208; which is exactly the case when many algorithms for learning mixtures of Gaussians tend to work. (Appendix I).</p><p>&#8226; Condition (1) is the standard identifiability condition (Yakowitz and Spragins, 1968) for mixtures of Gaussians: the means are identifiable up to &#170;renaming&#186; the components. This is inevitable if some of the weights are equal; if all the weights are distinct, &#920; * would in fact only consist of one point, s.t. &#8704;i &#8712; [K], &#181; i = &#181; * i . Condition (2) says that asymptotically, the empirical minimizers of D GSM are the points in &#920; * . It can be viewed as (and follows from) a uniform law of large numbers.</p><p>&#8226; Condition (3) characterizes the sample complexity of minimizers in the neighborhood of each of the points in &#920; * , and is a consequence of the CTLD Poincar&#233; inequality estimate (Theorem 12) and the smoothness estimate (Theorem 13). Note that in fact the RHS of point 3 has no dependence on the number of components. This makes the result extremely general: the loss compared to MLE is very mild even for distributions with a large number of modes.<ref type="foot">foot_4</ref> </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">Proof Sketch: Bounding the Poincar&#233; Constant of CTLD</head><p>In this section, we will sketch the proof of Theorem 12. By slight abuse of notation, we will define the distribution of the &#170;individual components&#186; of the mixture at a particular temperature, namely for</p><p>Correspondingly, we will denote the conditional distribution for the i-th component by p(x, &#946;|i) &#8733; r(&#946;)N (x; &#181; i , &#931; + &#946;&#955; min I d ).</p><p>The proof will proceed by applying the decomposition Theorem 5 to CTLD. Towards that, we denote by E i the Dirichlet form corresponding to Langevin with stationary distribution p(x, &#946;|i). By Propositions 6, it's easy to see that the generator for CTLD satisfies E = i w i E i . This verifies condition (1) in Theorem 5. To verify condition (2), we will show Langevin for each of the distributions p(x, &#946;|i) mixes fast (i.e. the Poincar&#233; constant is bounded). To verify condition (3), we will show the projected chain &#170;between&#186; the components (as defined in Theorem 5) mixes fast. We will expand on each of these parts in turn. Fast mixing within a component: The first claim we will show is that we have fast mixing &#170;inside&#186; each of the components of the mixture. Formally, we show:</p><p>The proof of this lemma proceeds via another (continuous) decomposition theorem. Intuitively, what we show is that for every &#946;, p(x|&#946;, i) has a good Poincar&#233; constant; moreover, the marginal distribution of &#946;, which is r(&#946;), is log-concave and supported over a convex set (an interval), so has a good Poincar&#233; constant. Putting these two facts together via a continuous decomposition theorem (Theorem D.3 in Ge et al. ( <ref type="formula">2018</ref>)), we get the claim of the lemma. The details are in Appendix E.1.</p><p>Fast mixing between components: Next, we show the &#170;projected&#186; chain between the components mixes fast (full proofs are in Appendix E.2):</p><p>Lemma 16 (Poincar&#233; constant of projected chain) Define the projected chain M over [K] with transition probability</p><p>where &#967; 2 max (p, q) = max{&#967; 2 (p, q), &#967; 2 (q, p)}. If j&#824; =i T (i, j) &lt; 1, the remaining mass is assigned to the self-loop T (i, i). The stationary distribution p of this chain satisfies p(i) = w i . Furthermore, the projected chain has Poincar&#233; constant C &#8818; D 2 &#955; -1 min .</p><p>The intuition for this claim is that the transition probability graph is complete, i.e. T (i, j) &#824; = 0 for every pair i, j &#8712; [K]. Moreover, the transition probabilities are lower bounded, since the &#967; 2 distances between any pair of &#170;annealed&#186; distributions p(x, &#946;|i) and p(x, &#946;|j) can be upper bounded. The reason for this is that at large &#946;, the Gaussians with mean &#181; i and &#181; j are smoothed enough so that they have substantial overlap; moreover, the distribution r(&#946;) is set up so that enough mass is placed on the large &#946;. The precise lemma bounding the &#967; 2 divergence between the components is:</p><p>Lemma 17 For every i, j &#8712; [K], we have &#967; 2 (p(x, &#946;|i), p(x, &#946;|j)) &#8804; 14D 2 &#955; -1 min .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Proof Sketch: Bounding the Smoothness Terms</head><p>To obtain Theorem 13, we note &#8741;Cov (O&#8711; &#952; log p &#952; ) &#8741; OP and &#8741;Cov ((O + O)&#8711; &#952; log p &#952; ) &#8741; OP can be completely characterized by bounds on the higher-order derivatives with respect to x and &#181; i of the log-pdf, since derivatives with respect to &#946; can be related to derivatives with respect to x via the Fokker-Planck equation (Lemma 28). The main technical tools involved are: (1) the convexity of the perspective map to relate derivatives of the mixture to derivatives of the components (Lemma 37);</p><p>(2) bounds on derivatives of the components via Hermite polynomial machinery (Lemma 38); (3) bounds on logarithmic derivatives via higher-order versions of the Fa&#225; di Bruno formula <ref type="bibr">(Constantine and Savits, 1996)</ref>. The complete proofs are in Appendix G.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Conclusion</head><p>In this paper, we provide a general framework about designing statistically efficient generalized score matching losses from fast-mixing Markov Chains. As a demonstration of the power of the framework, we provide the first formal analysis of the statistical benefits of annealing for score matching for multimodal distributions. A core technical result of this part is bounding the mixing time for a continuously tempered version of Langevin diffusion. The framework can be likely used to analyze other common continuous and discrete Markov Chains (and corresponding generalized score losses), like underdamped Langevin dynamics and Gibbs samplers. Contents 1 Introduction 2 Preliminaries 2.1 Generalized Score Matching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 Continous-time Markov Processes . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3 Dirichlet forms and Poincar&#233; inequalities . . . . . . . . . . . . . . . . . . . . . . . 2.4 Asymptotic efficiency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Main Results: A Framework for Analyzing Generalized Score Matching 4 Main Results: Benefits of Annealing 4.1 Proof Sketch: Bounding the Poincar&#233; Constant of CTLD . . . . . . . . . . . . . . 4.2 Proof Sketch: Bounding the Smoothness Terms . . . . . . . . . . . . . . . . . . . 5 Conclusion A Preliminaries A.1 Continuous Markov Chain Decomposition . . . . . . . . . . . . . . . . . . . . . . A.2 Asymptotic normality of M-estimators . . . . . . . . . . . . . . . . . . . . . . . . A.3 Hermite Polynomials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.4 Logarithmic derivatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.5 Moments of mixtures and the perspective map . . . . . . . . . . . . . . . . . . . . B Derivations of generators and score losses for diffusions C A Framework for Analyzing Generalized Score Matching D Overview of Continuously Tempered Langevin Dynamics E Polynomial mixing time bound: proof of Theorem 12 E.1 Mixing inside components: proof of Lemma 15 . . . . . . . . . . . . . . . . . . . E.2 Mixing between components: proof of Lemma 16 . . . . . . . . . . . . . . . . . F Asymptotic normality of generalized score matching for CTLD G Polynomial smoothness bound: proof of Theorem 13 G.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G.2 Detailed proofs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H Technical Lemmas H.1 Moments of a chi-squared random variable . . . . . . . . . . . . . . . . . . . . . I Related work A.3. Hermite Polynomials</p><p>To obtain polynomial bounds on the moments of derivatives of Gaussians, we will use the known results on multivariate Hermite polynomials.</p><p>Definition 7 (Hermite polynomial, <ref type="bibr">(Holmquist, 1996</ref>)) The multivariate Hermite polynomial of order k corresponding to a Gaussian with mean 0 and covariance &#931; is given by the Rodrigues formula:</p><p>where &#981;(x; &#931;) is the pdf of a d-variate Gaussian with mean 0 and covariance &#931;, and &#8855; denotes the Kronecker product.</p><p>Note that &#8711; &#8855;k x can be viewed as a formal Kronecker product, so that &#8711; &#8855;k x f (x), where f : R d &#8594; R is a C k -smooth function gives a d k -dimensional vector consisting of all partial derivatives of f of order up to k.</p><p>Proposition 3 (Integral representation of Hermite polynomial, <ref type="bibr">(Holmquist, 1996</ref>)) The Hermite polynomial H k defined in Definition 7 satisfies the integral formula:</p><p>where &#981;(x; &#931;) is the pdf of a d-variate Gaussian with mean 0 and covariance &#931;.</p><p>Note, the Hermite polynomials are either even functions or odd functions, depending on whether k is even or odd:</p><p>This property can be observed from the Rodrigues formula, the fact that &#981;(&#8226;; &#931;) is symmetric around 0, and the fact that &#8711; -x = -&#8711; x .</p><p>We establish the following relationship between Hermite polynomial and (potentially mixed) derivatives in x and &#181;, which we will use to bound several smoothness terms appearing in Section G.</p><p>Lemma 20 If &#981;(x; &#931;) is the pdf of a d-variate Gaussian with mean 0 and covariance &#931;, we have:</p><p>where the left-hand-side is understood to be shaped as a vector of dimension R d k 1 +k 2 .</p><p>Proof Using the fact that &#8711; x-&#181; = &#8711; x in Definition 7, we get:</p><p>Since the Kronecker product satisfies the property (A &#8855; B)(C &#8855; D) = (AC) &#8855; (BD), we have (&#931;&#8711; x ) &#8855;k = &#931; &#8855;k &#8711; &#8855;k x . Thus, we have:</p><p>Since &#981;(&#181;x; &#931;) is symmetric in &#181; and x, taking derivatives with respect to &#181; we get:</p><p>Rearranging again and using (7), we get:</p><p>Combining ( <ref type="formula">8</ref>) and ( <ref type="formula">9</ref>), we get:</p><p>Applying the integral formula from Proposition 3, we have:</p><p>as we needed.</p><p>Now we are ready to obtain an explicit polynomial bound for the mixed derivatives for a multivariate Gaussian with mean &#181; and covariance &#931;. We have the following bounds:</p><p>Lemma 21 (Lemma 38 restated) If &#981;(x; &#931;) is the pdf of a d-variate Gaussian with mean 0 and covariance &#931;, we have:</p><p>where the left-hand-side is understood to be shaped as a vector of dimension R d k 1 +k 2 .</p><p>Proof We start with Lemma 20 and use the convexity of the norm</p><p>Bounding the right-hand side, we have:</p><p>Applying Lemma 46 yields the desired result.</p><p>Similarly, we can bound mixed derivatives involving a Laplacian in x:</p><p>Lemma 22 If &#981;(x; &#931;) is the pdf of a d-variate Gaussian with mean 0 and covariance &#931;, we have:</p><p>Proof By the definition of a Laplacian, and the AM-GM inequality, we have, for any function</p><p>Thus, we have</p><p>Applying Lemma 21, the result follows.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.4. Logarithmic derivatives</head><p>Finally, we will need similar bounds for logarithic derivatives&#208;that is, derivatives of log p(x), where p is a multivariate Gaussian.</p><p>We recall the following result, which is a consequence of the multivariate extension of the Fa&#225; di Bruno formula: Proposition 4 <ref type="bibr">(Constantine and Savits (1996)</ref>, Corollary 2.10) Consider a function f : R d &#8594; R, s.t. f is N times differentiable in an open neighborhood of x and f (x) &#824; = 0. Then, for any multi-index I &#8712; N d , s.t. |I| &#8804; N , we have:</p><p>The &#8826; ordering on multi-indices is defined as follows: (a 1 , a 2 , . . . As a straightforward corollary, we have the following:</p><p>Corollary 23 (Restatement of Lemma 39) For any multi-index I &#8712; N d , s.t. |I| is a constant, we have</p><p>|I| where J &#8712; N d is a multi-index, and J &#8804; I iff &#8704;i &#8712; d, J i &#8804; I i .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A.5. Moments of mixtures and the perspective map</head><p>The main strategy in bounding moments of quantities involving a mixture will be to leverage the relationship between the expectation of the score function and the so-called perspective map. In particular, this allows us to bound the moments of derivatives of the mixture score in terms of those of the individual component scores, which are easier to bound using the machinery of Hermite polynomials in the prior section. Note in this section all derivatives are calculated at &#952; = &#952; * and therefore p(x, &#946;) = p &#952; (x, &#946;).</p><p>Lemma 24 (Convexity of perspective, Boyd and Vandenberghe ( <ref type="formula">2004</ref>)) Let f be a convex function.</p><p>Then, its corresponding perspective map g(u, v)</p><p>We will apply the following lemma many times, with appropriate choice of differentiation operator D and power k.</p><p>Lemma 25 (Restatement of Lemma 37) Let D : F 1 &#8594; F m be a linear operator that maps from the space of all scalar-valued functions to the space of m-variate functions of x &#8712; R d and let &#952; be such that p = p &#952; . For k &#8712; N, and any norm &#8741; &#8226; &#8741; of interest</p><p>Note that since any norm is convex by definition, so is g, by Lemma 24. Then, we proceed as follows:</p><p>where (10) follows by linearity of D, and ( <ref type="formula">11</ref>) by convexity of the function g.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Appendix B. Derivations of generators and score losses for diffusions</head><p>First, we derive the Dirichlet form of It&#244; diffusions of the form (5). Namely, we show:</p><p>Lemma 26 (Dirichlet form of continuous Markov Process) For an It&#244; diffusion of the form (5), its Dirichlet form is:</p><p>Proof By It&#244;'s Lemma, the generator L of the It&#244; diffusion (5) is:</p><p>The Dirichlet form is given by</p><p>Expanding and using the definition of &#915;, term I can be written as:</p><p>We will simplify term II via a sequence of integration by parts:</p><p>The term 16 cancels out with term 12, i,j</p><p>The term 17 cancels out with the term 14.</p><p>For term 13,</p><p>Combining term 13 and term 15,</p><p>In the end, we are only left with term 18:</p><p>We also calculate the integration by parts version of the generalized score matching loss for (3).</p><p>Lemma 27 (Integration by parts for the GSM in (3)) The generalized score matching objective in (3) satisfies the equality</p><p>Proof Expanding the squares in (3), we have:</p><p>The cross-term can be rewritten using integration by parts (under suitable decay at infinity):</p><p>Appendix C. A Framework for Analyzing Generalized Score Matching Proposition 5 (Hessian of GSM loss) The Hessian of D GSM satisfies</p><p>Proof By a straightforward calculation, we have:</p><p>, the second term vanishes at &#952; = &#952; * .</p><p>By Lemma 2 in <ref type="bibr">Koehler et al. (2022)</ref>, we also have</p><p>which completes the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Appendix D. Overview of Continuously Tempered Langevin Dynamics</head><p>Proposition 6 (Dirichlet form for CTLD) The Dirichlet form corresponding to CTLD has the form</p><p>where E &#946; is the Dirichlet form corresponding to the Langevin diffusion (Lemma 4) with stationary distribution p(x|&#946;).</p><p>Proof Equation 19 follows from the fact that CTLD is just a (reflected) Langevin diffusion with stationary distribution p(x, &#946;). Equation 20 follows from the tower rule of expectation and the definition of the Dirichlet form for Langevin from Proposition 4.</p><p>Lemma 28 (&#946; derivatives via Fokker Planck) For any distribution p &#946; such that p &#946; = p * N (0, &#955; min &#946;I) for some p, we have the following PDE for its log-density:</p><p>As a consequence, both p(x|&#946;, i) and p(x|&#946;) follow the above PDE.</p><p>Proof Consider the SDE dX t = &#8730; 2&#955; min dB t . Let q t be the law of X t . Then, q t = q 0 * N (0, &#955; min tI). On the other hand, by the Fokker-Planck equation, d dt q t (x) = &#955; min &#8710; x q t (x). From this, it follows that</p><p>Hence, by the chain rule,</p><p>Furthermore, by a straightforward calculation, we have</p><p>Plugging this in ( <ref type="formula">21</ref>), we have</p><p>as we needed.</p><p>Proposition 7 (Integration-by-part Generalized Score Matching Loss for CTLD) The loss D GSM in the integration by parts form (Lemma 1) as:</p><p>Moreover, all the terms in the definition of l 1 &#952; (x, &#946;) and l 2 &#952; (x, &#946;) can be written as a sum of powers of partial derivatives of &#8711; x log p &#952; (x|&#946;).</p><p>r(&#946;)&#8711; &#946; log p &#952; (x|&#946;) + &#8710; &#946; log p &#952; (x|&#946;)] + C By Lemma 28, &#8711; &#946; log p &#952; (x|&#946;) is a function of partial derivatives of the score &#8711; x log p &#952; (x|&#946;). Similarly, &#8711; 2 &#946; log p &#952; (x|&#946;) can be shown to be a function of partial derivatives of the score &#8711; x log p &#952; (x|&#946;) as well:</p><p>Appendix E. Polynomial mixing time bound: proof of Theorem 12</p><p>Proof The proof will follow by applying Theorem 5. Towards that, we need to verify the three conditions of the theorem:</p><p>1. (Decomposition of Dirichlet form) The Dirichlet energy of CTLD for p(x, &#946;), by the tower rule of expectation, decomposes into a linear combination of the Dirichlet forms of Langevin with stationary distribution p(x, &#946;|i). Precisely, we have </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>. Mixing inside components: proof of Lemma 15</head><p>Proof The proof will follow by an application of a continuous decomposition result <ref type="bibr">(Theorem D.3 in Ge et al. (2018)</ref>, repeated as Theorem 18) , which requires three bounds:</p><p>1. A bound on the Poincar&#233; constants of the distributions p(&#946;|i): since &#946; is independent of i, we have p(&#946;|i) = r(&#946;). Since r(&#946;) is a log-concave distribution over a convex set (an interval), we can bound its Poincar&#233; constant by standard results <ref type="bibr">(Bebendorf, 2003)</ref>. The details are in Lemma 29, C &#946; &#8804; 14D 2 &#960;&#955; min . 2. A bound on the Poincar&#233; constant C x|&#946;,i of the conditional distribution p(x|&#946;, i): We claim C x|&#946;,i &#8804; &#955; max + &#946;&#955; min . This follows from standard results on Poincar&#233; inequalities for strongly log-concave distributions. Namely, by the Bakry-Emery criterion, an &#945;-strongly log-concave distribution has Poincar&#233; constant 1 &#945; (Bakry and &#201;mery, 2006). Since p(x|&#946;, i) is a Gaussian whose covariance matrix has smallest eigenvalue lower bounded by &#955; max</p><p>3. A bound on the &#170;rate of change&#186; of the density p(x|&#946;, i), i.e.</p><p>L &#8734; : This is done via an explicit calculation, the details of which are in Lemma 30. By Theorem D.3 in <ref type="bibr">Ge et al. (2018)</ref>, the Poincar&#233; constant C x,&#946;|i of p(x, &#946;|i) enjoys the upper bound:</p><p>which completes the proof.</p><p>Lemma 29 (Bound on the Poincar&#233; constant of r(&#946;)) Let C &#946; be the Poincar&#233; constant of the distribution r(&#946;) with respect to reflected Langevin diffusion. Then,</p><p>Proof We first show that r(&#946;) is a log-concave distribution. By a direct calculation, the second derivative in &#946; satisfies:</p><p>Since the interval is a convex set, with diameter &#946; max , by <ref type="bibr">Bebendorf (2003)</ref> we have</p><p>from which the Lemma immediately follows.</p><p>Lemma 30 (Bound on &#170;rate of change" of the density p(x|&#946;, i))</p><p>We can apply Lemma 28 to derive explicit expressions for the right-hand side:</p><p>In 1 , we use (a + b) 2 &#8804; 2(a 2 + b 2 ) for a, b &#8805; 0; in 2 we apply the moment bound for the Chi-Squared distribution of degree-of-freedom d in Lemma 46; and in 3 we plug in the bound on &#946; max .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E.2. Mixing between components: proof of Lemma 16</head><p>Proof The stationary distribution follows from the detailed balance condition w i T (i, j) = w j T (j, i).</p><p>We upper bound the Poincar&#233; constant using the method of canonical paths <ref type="bibr">(Diaconis and Stroock, 1991)</ref>. For all i, j &#8712; [K], we set &#947; ij = {(i, j)} to be the canonical path. Define the weighted length of the path</p><p>where the inequality comes from Lemma 17 which provides an upper bound for the chi-squared divergence. Since D is an upper bound and &#955; min is a lower bound, we may assume without loss of generality that &#967; 2 max &#8805; 1. Finally, we can upper bound the Poincar&#233; constant using Proposition 1 in <ref type="bibr">Diaconis and Stroock (1991)</ref> </p><p>Next, we will prove a bound on the chi-square distance between the joint distributions p(x, &#946;|i) and p(x, &#946;|j). Intuitively, this bound is proven by showing bounds on the chi-square distances between p(x|&#946;, i) and p(x|&#946;, j) (Lemma 32) &#208; which can be explicitly calculated since they are Gaussian, along with tracking how much weight r(&#946;) places on each of the &#946;. Moreover, the Gaussians are flatter for larger &#946;, so they overlap more &#208; making the chi-square distance smaller.</p><p>Lemma 31 (&#967; 2 -divergence between joint &#170;annealed&#186; Gaussians)</p><p>Proof Expanding the definition of &#967; 2 -divergence, we have:</p><p>where in Line 22, we apply our Lemma 32 to bound the &#967; 2 -divergence between two Gaussians with identical covariance. By a change of variable &#946; :=</p><p>we can rewrite the integral as:</p><p>Since D is an upper bound and &#955; min is a lower bound, we can assume D 2 &#955; min &#8805; 1 without loss of generality. Plugging in</p><p>Finally, we get the desired bound</p><p>The next lemma bounds the &#967; 2 -divergence between two Gaussians with the same covariance.</p><p>Lemma 32 (&#967; 2 -divergence between Gaussians with same covariance)</p><p>Proof Plugging in the definition of &#967; 2 -distance for Gaussians, we have:</p><p>In Equation <ref type="formula">23</ref>, we apply Lemma G.7 from <ref type="bibr">Ge et al. (2018)</ref> for the chi-square divergence between two Gaussian distributions. In Equation <ref type="formula">24</ref>, we use the fact that &#931; -1 &#946; is PSD. 3. For every &#952; * &#8712; &#920; * and every sufficiently small neighborhood S of &#952; * , there exists a sufficiently large n, such that there is a unique minimizer &#952;n of &#202;l &#952; (x) in S. Furthermore, &#952;n satisfies:</p><p>for some matrix &#915; SM .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof</head><p>Part 1 is shown in Lemma 34: the claim roughly follows by classic results on the identifiability of the parameters of a mixture (up to permutations of the components) <ref type="bibr">(Yakowitz and Spragins, 1968)</ref>.</p><p>Part 2 is shown in Lemma 36: it follows from a uniform law of large numbers. Finally, Part 3 follows from an application of Lemma 19&#208;so we verify the conditions of the lemma are satisfied. The gradient bounds on l &#952; are verified Lemma 35&#208;and it largely follows by moment bounds on gradients of the score derived in Section G. Uniform law of large numbers is shown in Lemma 36, and the the existence of Hessian of L = D GSM is trivially verified.</p><p>For the sake of notational brevity, in this section, we will slightly abuse notation and denote D GSM (&#952;) := D GSM (p, p &#952; ).</p><p>Lemma 34 (Uniqueness of optima) Suppose for &#952; := (&#181; 1 , &#181; 2 , . . . , &#181; K ) there is no permutation</p><p>Proof For notational convenience, let D SM denote the standard score matching loss, and let us denote D SM (&#952;) := D SM (p, p &#952; ). For any distributions p &#952; , by Proposition 1 in <ref type="bibr">Koehler et al. (2022)</ref>, it holds that</p><p>where LSI(q) denotes the Log-Sobolev constant of the distribution q. If &#952; = (&#181; 1 , &#181; 2 , . . . , &#181; K ) is such that there is no permutation &#960; :</p><p>, by Yakowitz and Spragins (1968) we have KL(p &#952; * , p &#952; ) &gt; 0. Furthermore, the distribution p &#952; , by virtue of being a mixture of Gaussians, has a finite log-Sobolev constant (Theorem 1 in <ref type="bibr">Chen et al. (2021)</ref>). Therefore, D SM (&#952;) &gt; D SM (&#952; * ).</p><p>However, note that D GSM (p &#952; ) is a (weighted) average of D SM losses, treating the data distribution as p &#946; &#952; * , a convolution of p &#952; * with a Gaussian with covariance &#946;&#955; min I d ; and the distribution being fitted as p &#946; &#952; . Thus, the above argument implies that if &#952; &#824; = &#952; * , we have D GSM (&#952;) &gt; D GSM (&#952; * ), as we need.</p><p>We proceed to bound the right hand sides above. We have:</p><p>Where (25) follows by <ref type="bibr">Lemma 25,</ref><ref type="bibr">and (26)</ref> follows by combining Corollaries 41 and 23. The same argument, along with Lemma 28, and the fact that max &#946; (&#8711; &#946; log r(&#946;)) 4 &#8818; D 8 &#955; -4 min by a direct calculation shows that</p><p>Lemma 36 (Uniform convergence) The generalized score matching loss satisfies a uniform law of large numbers:</p><p>Proof The proof will proceed by a fairly standard argument, using symmetrization and covering number bounds. Precisely, let T = {(x i , &#946; i )} n i=1 be the training data. We will denote by &#202;T the empirical expectation (i.e. the average over) a training set T .</p><p>We will first show that</p><p>from which the claim will follow. First, we will apply the symmetrization trick, by introducing a &#170;ghost training set&#186;</p><p>. Precisely, we have:</p><p>)</p><p>where ( <ref type="formula">28</ref>) follows by noting the population expectation can be expressed as the expectation over a choice of a (fresh) training set T &#8242; , (29) follows by applying Jensen's inequality. Next, consider Rademacher variables {&#949; i } n i=1 . Since a Rademacher random variable is symmetric about 0, we have</p><p>For notational convenience, let us denote by</p><p>We will bound this supremum by a Dudley integral, along with covering number bounds. Considering T as fixed, with respect to the randomness in {&#949; i }, the process</p><p>In other words, we have</p><p>The proof of this is as follows: since &#949; i is 1-subgaussian, and</p><p>The Dudley entropy integral then gives</p><p>where N (&#1013;, &#920;, d) denotes the size of the smallest possible &#1013;-cover of the set of parameters &#920; in the metric d.</p><p>Note that the &#1013; in the integral bigger than the diameter of &#920; in the metric d does not contribute to the integral, so we may assume the integral has an upper limit</p><p>Plugging this estimate back in (31), we get</p><p>Taking expectations over the set T (keeping in mind that R is a function of T ), by Lemma 35 we get</p><p>This completes the proof of (27). By Markov's inequality, (27) implies that for every &#1013; &gt; 0,</p><p>Thus, for every &#1013; &gt; 0,</p><p>Lemma 39 For any multi-index I &#8712; N d , s.t. |I| is a constant, we have</p><p>For more details, and proof, see Appendix A.4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G.2. Detailed proofs</head><p>First, we need several easy consequences of the machinery developed in Section A.3, specialized to Gaussians appearing in CTLD.</p><p>Lemma 40 For all k &#8712; N, we have:</p><p>where the last inequality follows by Lemma 46.</p><p>Combining this Lemma with Lemmas 21 and 22, we get the following corollary:</p><p>Finally, we will need the following simple technical lemma:</p><p>Lemma 42 Let X be a vector-valued random variable with finite Var(X). Then, we have</p><p>where (32) follows from the subadditivity of the spectral norm, (33) follows from the fact that</p><p>for any two vectors x, y, as well as the fact that by Jensen's inequality, &#8741;E</p><p>Given this lemma, it suffices to bound E&#8741;(O&#8711; &#952; log p &#952; ) Op &#952; p &#952; &#8741; 2 2 and E&#8741;(O + O)&#8711; &#952; log p &#952; &#8741; 2 2 , which are given by Lemma 43 and Lemma 44, respectively.</p><p>Lemma 43</p><p>where each &#181; i is a d-dimensional vector, and we are viewing &#952; as a dK-dimensional vector.</p><p>where the last step follows by Cauchy-Schwartz. To bound both factors above, we will essentially first use Lemma 25 to relate moments over the mixture, with moments over the components of the mixture. Subsequently, we will use estimates for a single Gaussian, i.e. Corollaries 41 and 23.</p><p>Proceeding to the first factor, we have:</p><p>where (34) follows from the fact that Of = (&#8711; x f, &#8711; &#946; f ) T , (35) follows from Lemma 25, and (36) follows by combining Corollaries 41 and 23 and Lemma 28.</p><p>The second factor is handled similarly<ref type="foot">foot_5</ref> . We have:</p><p>where (37) follows from Lemma 25, and (38) follows by combining Corollaries 41 and 23 and Lemma 28, as well as the fact that max &#946; (&#8711; &#946; log r(&#946;)) 4 &#8818; D 8 &#955; -4 min by a direct calculation. Together the estimates ( <ref type="formula">36</ref>) and ( <ref type="formula">38</ref>) complete the proof of the lemma.</p><p>Lemma 44</p><p>where (39) follows by exchanging the order of derivatives, (40) since &#946; is a scalar, so the Laplacian just equals to the Hessian, (41) by dropping the derivatives that are zero in the prior expression.</p><p>To bound both summands above, we will essentially first use Lemma 25 to relate moments over the mixture, with moments over the components of the mixture. Subsequently, we will use estimates for a single Gaussian, i.e. Corollaries 23 and 41. Precisely, we have:</p><p>of maximum likelihood only when the distribution satisfies a Poincar&#233; inequality. In particular, even simple bimodal distributions in 1 dimension (like a mixture of 2 Gaussians) can significantly worsen the sample complexity of score matching (exponential with respect to mode separation).</p><p>For restricted parametric families (e.g. exponential families with sufficient statistics consisting of bounded-degree polynomials), recent work <ref type="bibr">(Pabbaraju et al., 2023)</ref> showed that score matching can be comparably efficient to maximum likelihood, by leveraging the fact that a &#170;restricted&#186; form of the Poincar&#233; inequality suffices for good sample complexity. On the empirical side, <ref type="bibr">Song and Ermon (2019)</ref> proposed an annealed version of score matching, in which they proposed fitting the scores of the distribution convolved with multiple levels of Gaussian noise. They also proposed using the learned scores to sample via annealed Langevin dynamics, which uses samples from Langevin at higher levels of Gaussian convolution as a warm start for running a Langevin at lower levels of Gaussian convolution. Subsequently, this line of work developed into score-based diffusion models <ref type="bibr">(Song et al., 2020)</ref>, which can be viewed as a &#170;continuously annealed&#186; version of <ref type="bibr">(Song and Ermon, 2019)</ref>.</p><p>Theoretical understanding of annealed versions of score matching is still very impoverished. A recent line of work <ref type="bibr">(Lee et al., 2022</ref><ref type="bibr">(Lee et al., , 2023;;</ref><ref type="bibr">Chen et al., 2022)</ref> explores how accurately one can sample using a learned (annealed) score, if the (population) score loss is successfully minimized. This line of work can be viewed as a kind of &#170;error propagation&#186; analysis: namely, how much larger the sampling error with a score learned up to some tolerance. It does not provide insight on when the score can be efficiently learned, either in terms of sample complexity or computational complexity.</p><p>Sampling by annealing There are a plethora of methods proposed in the literature that use temperature heuristics <ref type="bibr">(Marinari and Parisi, 1992;</ref><ref type="bibr">Neal, 1996;</ref><ref type="bibr">Earl and Deem, 2005)</ref> to alleviate the slow mixing of various Markov Chains in the presence of multimodal structure or data lying close to a low-dimensional manifold. A precise understanding of when such strategies have provable benefits, however, is fairly nascent. Most related to our work, in <ref type="bibr">Ge et al. (2018)</ref>; <ref type="bibr">Lee et al. (2018)</ref>, the authors show that when a distribution is (close to) a mixture of K Gaussians with identical covariances, the classical simulated tempering chain <ref type="bibr">(Marinari and Parisi, 1992)</ref> with temperature annealing (i.e. scaling the log-pdf of the distribution) mixes in time poly(K).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Decomposition theorems and mixing times</head><p>The mixing time bounds we prove for CTLD rely on decomposition techniques. At the level of the state space of a Markov Chain, these techniques &#170;decompose&#186; the Markov chain by partitioning the state space into sets, such that: (1) the mixing time of the Markov chain inside the sets is good; (2) the &#170;projected&#186; chain, which transitions between sets with probability equal to the probability flow between sets, also mixes fast. These techniques also can be thought of through the lens of functional inequalities, like Poincar&#233; and Log-Sobolev inequalities. Namely, these inequalities relate the variance or entropy of functions to the Dirichlet energy of the Markov Chain: the decomposition can be thought of as decomposing the variance/entropy inside the sets of the partition, as well as between the sets.</p><p>Most related to our work are <ref type="bibr">Ge et al. (2018)</ref>; <ref type="bibr">Moitra and Risteski (2020)</ref>; <ref type="bibr">Madras and Randall (2002)</ref>, who largely focus on decomposition techniques for bounding the Poincar&#233; constant. Related &#170;multiscale&#186; techniques for bounding the log-Sobolev constant have also appeared in the literature <ref type="bibr">Otto and Reznikoff (2007)</ref>; <ref type="bibr">Leli&#232;vre (2009)</ref>; <ref type="bibr">Grunewald et al. (2009)</ref>.</p><p>Learning mixtures of Gaussians Even though not the focus of our work, the annealed scorematching estimator with the natural parametrization (i.e. the unknown means) can be used to learn the parameters of a mixture from data. This is a rich line of work with a long history. Identifiability of the parameters from data has been known since the works of <ref type="bibr">Teicher (1963)</ref>; <ref type="bibr">Yakowitz and Spragins (1968)</ref>. Early work in the theoretical computer science community provided guarantees for clustering-based algorithms <ref type="bibr">(Dasgupta, 1999;</ref><ref type="bibr">Sanjeev and Kannan, 2001)</ref>; subsequent work provided polynomial-time algorithms down to the information theoretic threshold for identifiability based on the method of moments <ref type="bibr">(Moitra and Valiant, 2010;</ref><ref type="bibr">Belkin and Sinha, 2010)</ref>; even more recent work tackles robust algorithms for learning mixtures in the presence of outliers <ref type="bibr">(Hopkins and Li, 2018;</ref><ref type="bibr">Bakshi et al., 2022)</ref>; finally, there has been a lot of interest in understanding the success and failure modes of practical heuristics like expectation-maximization <ref type="bibr">(Balakrishnan et al., 2017;</ref><ref type="bibr">Daskalakis et al., 2017)</ref>.</p><p>Techniques to speed up mixing time of Markov chains SDEs with different choices of the drift and covariance term are common when designing faster mixing Markov chains. A lot of such schemas &#170;precondition&#186; by a judiciously chosen D(x) in the formalism of equation (5). A particularly common choice is a Newton-like method, which amounts to preconditioning by the Fisher matrix <ref type="bibr">(Girolami and Calderhead, 2011;</ref><ref type="bibr">Li et al., 2016;</ref><ref type="bibr">Simsekli et al., 2016)</ref>, or some cheaper approximation thereof. More generally, non-reversible SDEs by judicious choice of D, Q have been shown to be quite helpful practically <ref type="bibr">(Ma et al., 2015)</ref>.</p><p>&#170;Lifting&#186; the Markov chain by introducing new variables is also a very rich and useful paradigms. There are many related techniques for constructing Markov Chains by introducing an annealing parameter (typically called a &#170;temperature&#186;). Our chain is augmented by a temperature random variable, akin to the simulated tempering chain proposed by <ref type="bibr">Marinari and Parisi (1992)</ref>. In parallel tempering <ref type="bibr">(Swendsen and Wang, 1986;</ref><ref type="bibr">Hukushima and Nemoto, 1996)</ref>, one maintains multiple particles (replicas), each evolving according to the Markov Chain at some particular temperature, along with allowing swapping moves. Sequential Monte Carlo <ref type="bibr">(Yang and Dunson, 2013</ref>) is a related technique available when gradients of the log-likelihood can be evaluated.</p><p>Analyses of such techniques are few and far between. Most related to our work, Ge et al. ( <ref type="formula">2018</ref>) analyze a variant of simulated tempering when the data distribution looks like a mixture of (unknown) Gaussians with identical covariance, and can be accessed via gradients to the log-pdf. We compare in more detail to this work in Section 4. In the discrete case (i.e. for Ising models), <ref type="bibr">Woodard et al. (2009b,a)</ref> provide some cases in which simulated and parallel tempering provide some benefits to mixing time.</p><p>Another way to &#170;lift&#186; the Markov chain is to introduce a velocity variable, and come up with &#170;momentum-like&#186; variants of Langevin. The two most widely known ones are underdamped Langevin and Hamiltonian Monte Carlo. There are many recent results showing (both theoretically and practically) the benefit of such variants of Langevin, e.g. <ref type="bibr">(Chen and Vempala, 2019;</ref><ref type="bibr">Cao et al., 2023)</ref>. The proofs of convergence times of these chains is unfortunately more involved than merely a bound on a Poincar&#233; constant (in fact, one can prove that they don't satisfy a Poincar&#233; constant) &#208; and it's not so clear how to &#170;translate&#186; them into a statistical complexity analysis using the toolkit we provide in this paper. This is fertile ground for future work, as score losses including a velocity term have already shown useful in training score-based models <ref type="bibr">(Dockhorn et al., 2021)</ref>.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_0"><p>We will implicitly assume this condition whenever we discuss Poincar&#233; inequalities.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>2</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2"><p>The existence of the boundary measure is a standard result of reflecting diffusion processes via solutions to the Skorokhod problem<ref type="bibr">(Saisho, 1987)</ref>.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_3"><p>In this parametrization, we assume that the weights {wi} K i=1 and shared covariance matrix &#931; are known, though the results can be straightforwardly generalized to the natural parametrization in which we are additionally fitting a vector {wi} K i=1 and matrix &#931;, at the expense of some calculational complexity.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_4"><p>Of course, in the parametrization in Assumption 2, &#8741;&#915;MLE&#8741;OP itself will generally have dependence on K, which has to be the case since we are fitting &#8486;(K) parameters.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="6" xml:id="foot_5"><p>Note, &#8711; &#946; f (&#946;) for f : R &#8594; R is a scalar, since &#946; is scalar.</p></note>
		</body>
		</text>
</TEI>
