July 14, 2026
We study the parallel complexity of sampling from the high-temperature Ising mixed \(p\)-spin Gibbs measure, a canonical instance of a mean-field spin glass on the hypercube \(\{\pm 1\}^n\). We propose two different algorithms for this problem, corresponding to two different regimes of accuracy.
Our first algorithm is a parallel implementation of a Markov chain known as block dynamics, combined with an approximate rejection sampling step that uses an Ising model in a novel way as a proposal distribution to approximate the quadratic interaction terms of the \(p\)-spin Hamiltonian. For any \(\varepsilon > 0\), this algorithm runs in \(n^{\frac{1}{3}}\mathrm{polylog}(\frac{n}{\varepsilon})\) parallel time with \(\operatorname{poly}(n, \log(\frac{1}{\varepsilon}))\) work, and outputs a sample whose law is \(\varepsilon\)-close to the \(p\)-spin measure in total variation distance.
Our second algorithm uses Picard iterations to parallelize the Algorithmic Stochastic Localization (ASL) process of El Alaoui, Montanari, and Sellke (2025), and for any \(\varepsilon > \varepsilon_n\), takes \(\mathrm{polylog}(\frac{n}{\varepsilon})\) parallel time and \(\poly(\frac{n}{\varepsilon})\) work to produce a sample that is \(\varepsilon\)-close to the \(p\)-spin measure in the normalized 2-Wasserstein metric. Here, \(\varepsilon_n > 0\) is a threshold that goes to \(0\) as \(n \to \infty\). Our result constitutes a doubly exponential improvement in the \(\varepsilon\) dependence of the runtime and an exponential improvement in the \(\varepsilon\) dependence of the total work when compared to naïve ASL, whose runtime scales as \(\exp(\poly(\frac{1}{\varepsilon}))\).
Efficient sampling from a probability distribution which is specified only up to an unknown normalizing constant is a central algorithmic problem across computer science, statistical physics, and machine learning. Generally, given a finite state space \(\Omega\) and a Hamiltonian \(H : \Omega \to \mathbb{R}\), the target distribution is a Gibbs measure of the following form: \[\begin{align} \mu(x) = \frac{1}{Z} \exp(H(x)), \qquad Z = \sum_{x \in \Omega} \exp(H(x)) \end{align}\] where the normalizing constant \(Z\), also known as the partition function, is unknown and typically hard to compute. This setting includes classical problems in approximate counting [1] and randomized algorithms such as approximating the volume of convex bodies [2] and approximating matrix permanents [3], Markov-chain Monte Carlo methods in statistical physics [4], and posterior sampling in high-dimensional statistical models.
Our work studies the problem of sampling from the Gibbs measure of the Ising mixed \(p\)-spin model, which is a Gibbs measure on the hypercube \(\{\pm 1\}^n\) whose Hamiltonian is a random polynomial with Gaussian coefficients. \[\begin{align} \label{eq:p-spin-model} H(x) = \sum_{p=2}^{P} \frac{\beta_p \sqrt{p!}}{n^{\tfrac{p-1}{2}}} \cdot \sum_{J \subseteq [n], |J|=p} G_J \;\prod_{k \in J}x_k + \;\langle x, h \rangle, \qquad \mu(x) = \frac{1}{Z}\exp(H(x)) \end{align}\tag{1}\] Here, \(P \geq 2\) is an integer, the disorder \(G_{J} \stackrel{i.i.d}{\sim} \mathcal{N}(0,1)\) for every choice of \(J\), and \(h\) is an arbitrary external field independent of \(G\). The \(p\)-spin Hamiltonian can be equivalently characterized as a Gaussian process on \(\{\pm 1\}^n\) with \(\mathbb{E}_G{H(x)} = \left\langle h, x \right\rangle\) and \(\operatorname{Cov}[H(x)H(y)] = N \xi(\frac{\left\langle x, y \right\rangle}{N})\), where \(\xi(t) = \sum_{p=2}^{P} \beta^2_p t^p\) denotes the mixture function. The mixed \(p\)-spin model is a canonical instance of a mean-field spin glass, which plays a central role in several areas of probability, mathematical physics, and average-case complexity [5]–[8]. Notable special cases include the pure \(p\)-spin model where only one \(\beta_p\) is nonzero, and the Sherrington-Kirkpatrick (SK) model where \(P=2\).
We consider the problem of approximate sampling from the \(p\)-spin Gibbs measure in the quenched setting, where the disorder \(G\) is sampled once and then fixed, and the algorithm is tasked with approximately sampling from \(\mu\) given random access to the disorder coefficients (which can be stored with \(\poly(n)\) memory). Given an error parameter \(\varepsilon > 0\), the goal is to design an algorithm that runs in time \(\poly(n, \frac{1}{\varepsilon})\) for any realization of \(G\), and produces an output distributed as \(\hat{\mu}\) such that \(\operatorname{dist}(\hat{\mu}, \mu) \leq \varepsilon\) for typical realizations of \(G\). Here, \(\operatorname{dist}\) denotes any appropriate metric between probability distributions.
Under this setting, [9] and [10] analyze Glauber dynamics [11], a canonical Markov chain for sampling from discrete distributions, which, at every step, resamples a randomly chosen coordinate according to its conditional marginal, while fixing the remaining coordinates. The authors identify a high-temperature regime for the \(p\)-spin model under which Glauber dynamics efficiently samples from \(\mu\). Specifically, they show that when \(\sum_{p=2}^{P} \beta_p \sqrt{p^3 \ln(p)} = O(1)\), Glauber dynamics takes \(O(n \ln(\frac{n}{\varepsilon}))\) time to output a sample distributed as \(\hat{\mu}\) satisfying \(d_{\mathrm{TV}}(\hat{\mu}, \mu) \leq \varepsilon\) with high probability over the randomness of \(G\). Since the error parameter \(\varepsilon > 0\) can be made as small as desired, we refer to such a guarantee as a High Accuracy Guarantee.
In another line of work, [12] propose a different approximate sampler for the \(p\)-spin model with a zero external field (i.e., \(h=0\) in 1 ) based on an approximate discretization of an Itô diffusion process known as Eldan’s stochastic localization [13]. Their algorithm, named Algorithmic Stochastic Localization (ASL), offers a weaker sampling guarantee, albeit supporting a broader range of temperatures than that covered by the high-temperature condition defined above. Concretely, there exists an error threshold \(\varepsilon_n = o_n(1)\) such that for any \(\varepsilon > \varepsilon_n\), ASL runs in time \(O(\poly(n)\exp(\poly(\frac{1}{\varepsilon})))\) and with high probability over \(G\), approximately samples from \(\mu\) up to error \(\varepsilon\) in the normalized 2-Wasserstein metric. In other words, the output \(\hat{x}\) of their algorithm can be coupled with some \(x^{\star} \sim \mu\) such that \(n^{-1} \mathbb{E}{\|\hat{x} - x^{\star}\|} \leq \varepsilon^2\). We call such a guarantee a Low Accuracy Guarantee for two key reasons. Firstly, for a fixed problem instance, the accuracy of ASL can only be certified above a threshold \(\varepsilon > \varepsilon_n\). Secondly, their guarantees are presented in the normalized 2-Wasserstein metric, which is strictly weaker than the total variation metric for the range of \(\varepsilon\) tolerated by their algorithm.
A common drawback of both algorithms considered above is that they are inherently sequential. Indeed, Glauber dynamics sequentially updates one coordinate after another in a random order, while Algorithmic Stochastic Localization discretizes the trajectory of a continuous Markov process, which naturally evolves in a sequential fashion. Consequently, these algorithms fail to utilize the full potential of modern hardware, which is generally capable of massive parallelism, both in terms of parallel computation and parallel memory access. This motivates the central problem of our work:
Can we design an efficient approximate sampling algorithm for the Ising \(p\)-spin model that can take advantage of parallel hardware?
Specifically, we consider the problem of sampling from the \(p\)-spin Gibbs measure in the model of computation, where the algorithm is allowed to query the disorder \(G\) in multiple rounds, with each round comprising polynomially many synchronous queries that are executed in parallel. Given an error tolerance \(\varepsilon > 0\), our goal is to design an algorithm that approximately samples from \(\mu\) up to error \(\varepsilon\) in some suitable metric for typical realizations of \(G\), while also optimizing for two criteria: Parallel Runtime or Round Complexity, which denotes the number of rounds of parallel queries made to \(G\), and Work, which denotes the total number of queries made to \(G\). Ideally, for every realization of \(G\), we want the parallel runtime to scale at most sublinearly in \(n\) and \(\varepsilon^{-1}\), and the work to scale at most polynomially in \(n\) and \(\varepsilon^{-1}\).
Compared to the complexity of sequential sampling, the theory of parallel sampling for mean-field spin glasses is far less developed. To our knowledge, the only prior parallel algorithm for sampling from the \(p\)-spin Gibbs measure is the work of [14], which considers the \(p\)-spin model in the high-temperature regime and achieves a high-accuracy guarantee with a parallel runtime of \(O(\sqrt{n} \cdot\mathrm{polylog}(\frac{n}{\varepsilon}))\) and \(O(\poly(\frac{n}{\varepsilon}))\) work. Beyond this, for the special case of the high-temperature SK model (i.e., \(P=2\) and \(\beta_2 < \frac{1}{4}\)), [15] show that the Restricted Gaussian Dynamics algorithm of [16] is a high-accuracy approximate parallel sampler with parallel runtime \(O(\mathrm{polylog}(\frac{n}{\varepsilon}))\) and \(O(\poly(\frac{n}{\varepsilon}))\) work.
In this work, we develop two different algorithms for parallel sampling from the Ising mixed \(p\)-spin Gibbs measure. The first is a high-accuracy algorithm which samples from the \(p\)-spin model up to \(\varepsilon\) total variation error in \(O(n^{\frac{1}{3}} \mathrm{polylog}(\frac{n}{\varepsilon}))\) parallel time and \(O(\poly(n, \log(\frac{1}{\varepsilon})))\) work. To our knowledge, this constitutes an improvement both in terms of parallel runtime and work compared to the previous best known result of [14], which exhibits a parallel runtime of \(O(\sqrt{n}\mathrm{polylog}(\frac{n}{\varepsilon}))\) with \(O(\poly(\frac{n}{\varepsilon}))\) work.
Theorem 1 (High-Accuracy Parallel \(p\)-spin Sampler, Informal Version of Theorem 7). Let \(\mu\) denote the Ising \(p\)-spin Gibbs measure as defined in 1 . Assume the model is in the high-temperature regime, i.e., \(\sum_{p=2}^{P} \beta_p \sqrt{p^3 \ln(p)} \leq C\) for some \(C=\Theta(1)\). Then, there exists a parallel sampling algorithm ([alg:parallel-p-spin-sampler]) satisfying the following for any \(\varepsilon > 0\).
The algorithm runs in parallel time \(\widetilde{O}(n^{\frac{1}{3}} \ln(\frac{1}{\varepsilon}))\) with \(O(\poly(n, \log(\frac{1}{\varepsilon})))\) work.
With probability at least \(1-\exp(-cn)\) over the randomness of the disorder \(G\), the algorithm outputs \(\hat{x} \sim \hat{\mu}\) such that \(d_{\mathrm{TV}}(\hat{\mu}, \mu) \leq \varepsilon\).
Our second algorithm obtains a low-accuracy approximate sampling guarantee in the normalized 2-Wasserstein metric, and enjoys a parallel runtime of \(O(\mathrm{polylog}(\frac{n}{\varepsilon}))\) with \(O(\poly(\frac{n}{\varepsilon}))\) work. This significantly improves upon the \(O(\poly(n) \cdot\exp(\poly(\frac{1}{\varepsilon})))\) runtime of [12] and constitutes the first parallel algorithm for sampling from the \(p\)-spin model with \(\mathrm{polylog}(\frac{n}{\varepsilon})\) parallel runtime in any metric.
Theorem 2 (Low-Accuracy Parallel \(p\)-spin Sampler, Informal Version of Theorem 16). Let \(\mu\) denote the Ising \(p\)-spin Gibbs measure as defined in 1 with \(h=0\). Assume the model is in the high-temperature regime, i.e., \(\sum_{p=2}^{P} \beta_p \sqrt{p^3 \ln(p)} \leq C\) for some \(C=\Theta(1)\). Then, there exists an \(\varepsilon_n > 0\) such that \(\varepsilon_n \to 0\) as \(n \to \infty\), and a parallel sampling algorithm ([alg:picard-asl]) which satisfies the following for any \(\varepsilon > \varepsilon_n\):
The algorithm runs in parallel time \(O(\mathrm{polylog}(\frac{n}{\varepsilon}))\) with \(O(\poly(\frac{n}{\varepsilon}))\) work.
With probability at least \(1-o(1)\) over the randomness of the disorder \(G\), the output \(\hat{x}\) of the algorithm can be coupled to some \(x^{\star} \sim \mu\) such that \(n^{-1} \mathbb{E}{\|\hat{x}-x^{\star}\|^2} \leq \varepsilon^2\).
For the special case of the SK model, our low-accuracy algorithm satisfies the above guarantee for \(\beta_2 \leq 0.375\). To the best of our knowledge, this constitutes the only parallel sampler for the SK model running in \(O(\mathrm{polylog}(\frac{n}{\varepsilon}))\) time with \(O(\poly(\frac{n}{\varepsilon}))\) work in this regime of inverse temperatures.
For the Sherrington–Kirkpatrick model (\(P=2\)), classical mixing criteria such as Dobrushin’s condition [17] imply \(\widetilde{O}(n^2)\) mixing time of Glauber dynamics only up to the vanishing window \(\beta_2 = O(n^{-\frac{1}{2}})\). This falls short of the dimension-free \(\beta_2\) regime predicted in the statistical physics literature and leads to algorithmically unsatisfactory guarantees. The first major breakthrough was the work of [18] which used stochastic localization to prove that Glauber dynamics mixes in \(\widetilde{O}(n^2)\) time up to \(\beta_2 < \frac{1}{4}\). The mixing time was subsequently sharpened to \(\widetilde{O}(n)\) by [19] and [16], and the range of \(\beta_2\) was improved to \(\beta_2 < 0.295\) by [20]. For the Ising \(p\)-spin model, [9] proved an \(\widetilde{O}(n^2)\) mixing time for Glauber dynamics in the high-temperature regime \(\sum_{p=2}^{P} \beta_p \sqrt{p^3 \ln(p)} = O(1)\). The mixing time was later improved to \(\widetilde{O}(n)\) by [10].
In a different direction, [21] (see also [22]) introduced Algorithmic Stochastic Localization (ASL) for the SK model with zero external field. For any \(\varepsilon > \varepsilon_n\) for a fixed \(\varepsilon_n = o_n(1)\), their algorithm runs in time \(O(\poly(n)\exp(\poly(\frac{1}{\varepsilon})))\) and obtains a low-accuracy guarantee: sampling up to \(\varepsilon\)-error in the normalized \(2\)-Wasserstein distance. Their algorithm works up to \(\beta_2 < 1\), which is conjectured to be the sharp threshold up to which the SK model admits a polynomial-time approximate sampler. Their framework was later extended to the Ising \(p\)-spin model in [12], obtaining a similar low-accuracy guarantee but covering a broader range of temperatures than that of [9] and [10].
There also exists a parallel line of work on the spherical \(p\)-spin model, where the Gibbs measure \(\mu\) is supported on the sphere \(\{ x \in \mathbb{R}^n \;| \;\|x\|^2 = n \}\), a setting that is often more analytically tractable than the hypercube. In the high-temperature regime, [23] proved that a continuous-time diffusion process known as Langevin dynamics samples from the spherical \(p\)-spin model in total variation in \(\widetilde{O}(1)\) time. Beyond the high-temperature regime considered in [23], the recent breakthrough of [24] designed an improved version of ASL for the spherical \(p\)-spin model with zero external field that samples up to \(o(1)\) error in total variation in \(O(\poly(n))\) time beyond the high-temperature regime considered by [23]. Building upon their techniques, [25] proved that continuous-time annealed Langevin dynamics samples up to total variation error \(\exp(-\Omega(n^{-\frac{1}{5}}))\) in \(O(\poly(n))\) time beyond the high-temperature regime.
Parallel sampling has been a longstanding topic of interest in theoretical computer science, and more recently, in machine learning, where diffusion-based generative models are often deployed on massively parallel hardware [26]–[28]. In theoretical computer science, the problem dates back to at least [29], who developed an RNC algorithm (i.e., running in \(O(\mathrm{polylog}(n))\) parallel time on a with \(O(\poly(n))\) work) for finding a perfect matching, and asked whether one can also sample a uniform random perfect matching in parallel; this remains a major open problem to date.
Recent works study parallel sampling assuming access to global counting oracles. One such model is the weighted counting oracle, where one has access to the log Laplace transform \(L(w)=\ln \mathbb{E}*_{\mu}{\exp(\left\langle w, x \right\rangle)}\). A weaker model is the unweighted counting oracle, which returns conditional marginals \(\mathbb{P}_{X\sim\mu}\!\left[X_i=a \,\middle|\, X_S=\omega_S\right]\) for \(S\subseteq[n]\), \(i\notin S\), \(a\in\{\pm1\}\), and \(\omega_S\in\{\pm1\}^S\). Such models are of interest for several combinatorial distributions such as spanning trees, Eulerian tours, planar perfect matchings, and determinantal point processes, where such oracles can be implemented on a in \(O(\mathrm{polylog}(n))\) time and \(O(\poly(n))\) work [30]. Assuming access to weighted counting oracles, [31], [32] obtained RNC samplers for distributions satisfying \(\|\nabla^2 L(w)\|_{\mathrm{op}}=O(1)\). For more general distributions that do not satisfy such a regularity condition, [28] developed an algorithm running in \(\widetilde{O}(n^{\frac{2}{3}})\) parallel time with polynomial work. The parallel runtime was later improved to \(\widetilde{O}(\sqrt{n})\) by [33]. In the weaker unweighted counting model, [34] developed an \(O(n^{\frac{2}{3}})\) time parallel sampler with \(O(\poly(n))\) work. The parallel runtime was later improved to \(O(\sqrt{n})\) by [33].
Contrary to the above, our work falls under the more challenging local oracle setting, where one has to design a parallel sampler for a Gibbs measure given access to its Hamiltonian. This constitutes a far weaker form of access compared to the global counting oracles described above. In fact, the problem of computing a counting oracle of a Gibbs measure given its Hamiltonian is NP-hard in the worst case [35], and highly nontrivial even for specialized Hamiltonians like the SK model. In this setting, [36], [37] develop RNC samplers for Ising models satisfying a Dobrushin-type condition. For mean-field spin glass models, this only covers a vanishing window of temperatures, e.g., \(\beta_2 = O(n^{-\frac{1}{2}})\) for the SK model. More recently, [15] show that the Restricted Gaussian Dynamics algorithm of [16] is an RNC sampler for the SK model. For general Ising \(p\)-spin models, much less is known. To our knowledge, the only parallel sampler in this setting prior to our work is [14], which runs in \(\widetilde{O}(\sqrt{n})\) parallel time with polynomial work.
Sample \(X^{(0)}\) from \(\mu_0 \propto e^{\langle h, x\rangle}\)
Set \(y = X_S\) and decompose the conditional Hamiltonian \(H_{S,\tau}(y) = H(y, \tau)\) on \(S\) as follows \[\begin{align} H(y) &= \,\langle b_{S,\tau}, y\rangle + \frac{1}{2}\, y^\top A_{S,\tau} y + R_{S,\tau}(y). \end{align}\]
Set the rejection parameter \(\bar c = \Theta(1)\), \(L = \Theta(\bar{c} \ln(\frac{1}{\varepsilon_{\mathrm{step}}}))\), \(\varepsilon_{\mathrm{RGD}} = \Theta(\frac{\varepsilon_{\mathrm{step}}}{L})\), \(\eta = \Theta(1)\), and \(\delta = \Theta(\varepsilon_{\mathrm{step}})\)
\(\hat{h} = \mathrm{\small CenteringExternalField}(A_{S,\tau}, b_{S,\tau}, R_{S,\tau}, \eta, \delta) \qquad\) (see 1)
(In Parallel)\(\ell = 1\) \(L\)
\(U_\ell, V_\ell \stackrel{\mathrm{iid}}{\sim} \mathrm{\small RGD}\!\left(A_{S,\tau},\, b_{S,\tau}+\hat{h},\, \varepsilon_{\mathrm{RGD}}\right)\)
\(W_\ell \sim \mathsf{Uniform}[0,1]\)
Accept \(U_\ell\) if \(W_\ell \le \min\!\left\{1, \bar c^{-1} \exp(\psi(U_\ell) - \psi(V_\ell))\right\}\) where \(\psi(y) = R_{S,\tau}(y) - \left\langle \hat{h}, y \right\rangle\)
Based on the prior work of [14], our high-accuracy sampler for the \(p\)-spin model, stated in [alg:parallel-p-spin-sampler], is a computationally efficient implementation of a Markov chain called \(s\)-Glauber dynamics (also known as \(s\)-block dynamics), whose kernel \(P_s(X^{(t)}, \cdot)\) is defined as follows:
Sample \(S\) uniformly at random from all subsets of \([n]\) of size \(s\).
Sample \(X^{(t+1)}\) from the posterior \(\mu\parens*{ X^{(t+1)} \given X^{(t+1)}_S=X^{(t)}_S}\)
The above Markov chain is reversible with respect to \(\mu\) and, for \(s=1\), it corresponds to Glauber dynamics, a canonical sampling algorithm for discrete spaces. When \(\mu\) is the \(p\)-spin Gibbs measure at high temperature, \(s\)-Glauber dynamics is known to exhibit a mixing time of \(\widetilde{O}(\frac{n}{s})\) [10], [14]. Although this mixing time improves upon increasing \(s\), the computational complexity of implementing each step of \(s\)-Glauber dynamics worsens significantly as \(s\) grows. Indeed, a naïve implementation of the posterior sampling step (i.e., Step 2 above) takes \(O(2^s)\) time, which is computationally prohibitive, and completely negates the potential benefits of any mixing time improvements for \(s > 1\).
To circumvent this, our [alg:parallel-p-spin-sampler] replaces the posterior sampling step in \(s\)-Glauber dynamics with an approximate rejection sampler ([alg:parallel-ising-rejection-sampler]), whose proposal distribution is a carefully chosen Ising model. The idea of using rejection sampling in the posterior sampling step also appears in the work of [14], which approximates the posterior sampling step with a product proposal. While this enables computational efficiency (as product measures can be sampled in \(O(1)\) parallel time), their rejection sampling procedure fails to correctly approximate the posterior when \(s=\omega(\sqrt{n})\), and obtains a parallel runtime of \(\widetilde{O}(n^{\frac{1}{2}})\). In contrast, the choice of our Ising proposal, which serves as the key technical innovation underlying our parallel speedup, can be made to approximate the posterior to arbitrary accuracy as long as \(s=O(n^{\frac{2}{3}})\), leading to an improved parallel runtime of \(\widetilde{O}(n^{\frac{1}{3}})\).
To motivate the construction of our Ising proposal, we observe that the conditional posterior distribution \(\mu_{S,\tau}(y) \coloneq \mu(x_S=y \;| x_{\bar{S}} = \tau) \propto \exp(H_{S,\tau}(y))\) is also a \(p\)-spin Gibbs measure whose Hamiltonian, \(H_{S,\tau}(y) = H(x)\) for \(x_{S} = y\) and \(x_{\bar{S}}=\tau\), is obtained by restricting \(H\) to the coordinates in \(S\) and pinning the coordinates in \(\bar{S}\) according to \(\tau\). \(H_{S,\tau}\) is then a polynomial of the underlying disorder \(G\), and admits the following decomposition: \[\begin{align} H_{S,\tau}(y) = \left\langle b_{S,\tau}, y \right\rangle + \frac{1}{2}\left\langle y, A_{S,\tau} y \right\rangle + R_{S,\tau}(y) \end{align}\] where \(b_{S,\tau}\), \(A_{S,\tau}\), and \(R_{S,\tau}\) depend on \(G\). Motivated by this decomposition, our rejection sampler uses a proposal distribution \(\pi_{S,\tau}\) such that \(\ln \pi_{S,\tau}\) serves as a quadratic approximation to \(H_{S,\tau}\), i.e., \(\pi_{S,\tau}(x) \propto \exp\parens*{\tfrac{1}{2}\left\langle y, A_{S,\tau} y \right\rangle + \left\langle b_{S,\tau} + \hat{h}, y \right\rangle}\)1. The performance and accuracy of our algorithm are governed by two key problems: 1.How easily can we sample from the proposal? 2.How well does our rejection sampler approximate the posterior? Below, we discuss how we address each of these questions in our proof of 1.
Analyzing the parallel complexity of our algorithm is a delicate problem due to the choice of our proposal distribution. Indeed, sampling from an Ising model is in itself a nontrivial problem, which can even be -hard in the worst case [38], [39]. To resolve this, we use the concentration properties of the \(p\)-spin Hamiltonian to prove that sampling from \(\pi_{S,\tau}\) is computationally tractable. In particular, the Hamiltonian of \(\pi_{S,\tau}\) satisfies a spectral condition which ensures that a Markov chain known as Restricted Gaussian Dynamics (or RGD, see [alg:rgd-ising-parallel]) approximately samples from \(\pi_{S,\tau}\) in total variation, with \(\widetilde{O}(1)\) mixing time [16]. Moreover, each step of RGD can be implemented in \(\widetilde{O}(1)\) parallel time with \(O(\poly(n))\) work [15]. Thus, to ensure parallel efficiency, our rejection sampler uses approximate samples from the proposal distribution, drawn via \(\widetilde{O}(1)\) parallel calls to RGD, thereby implying an \(\widetilde{O}(1)\) parallel runtime for [alg:parallel-ising-rejection-sampler], which in turn leads to an \(\widetilde{O}(\frac{n}{s})\) parallel runtime for [alg:parallel-p-spin-sampler].
Initialize \(X^{(0)} \in \{\pm 1\}^m\) arbitrarily
Set \(T = \Theta(\log(\frac{m}{\epsilon}))\)
Finally, the optimal choice of \(s\) is determined by the approximation error of our rejection sampler. There are two main sources of this error, namely, the approximate sampling error of RGD (which can be controlled to arbitrary precision without sacrificing algorithmic efficiency), and the error due to mismatch between the proposal \(\pi_{S,\tau}\) and the conditional posterior \(\mu_{S,\tau}\), which is governed by the log-density \(\psi(y) = \ln \tfrac{\d \mu_{S,\tau}}{\d \pi_{S,\tau}}(y)\). We show that this error can be controlled by proving exponential tail bounds on \(\psi\) under \(\pi_{S,\tau}\), which we establish via the concentration properties of the \(p\)-spin Hamiltonian and the isoperimetric properties of the proposal, and conclude that [alg:parallel-ising-rejection-sampler] uniformly approximates the posterior sampling step of \(s\)-Glauber dynamics for \(s \leq O(n^{\frac{2}{3}})\), leading to an overall runtime of \(\widetilde{O}(n^{\frac{1}{3}})\) for [alg:parallel-p-spin-sampler].
Adapting the framework of [12], [21], our low-accuracy parallel sampler, presented in [alg:picard-asl], is based on Eldan’s Stochastic Localization (SL) [13], which we briefly introduce. For any probability measure \(\mu\) supported on \(\{\pm 1\}^n\), the associated SL process \((y_t)_{t \geq 0}\) is defined by the following stochastic differential equation on \(\mathbb{R}^n\). \[\begin{align} \label{eq:sl-process} \d y_t = m(y_t) \d t + \d B_t, \;\;y_0=0, \qquad \;m(y)= \frac{\mathbb{E}*_{x \sim \mu}{x \cdot \exp(\left\langle y, x \right\rangle)}}{\mathbb{E}*_{x \sim \mu}{\exp(\left\langle y, x \right\rangle)}} \end{align}\tag{2}\] Here, \((B_t)_{t \geq 0}\) denotes the standard Brownian motion on \(\mathbb{R}^n\), and \(m(y)\) corresponds to the mean of the exponential tilt of the measure \(\mu\), which we call the tilted mean. A key property of SL is that \(t^{-1} y_t\) is marginally distributed as \(x^{\star} + \zeta_t\) where \(x^{\star} \sim \mu\) and \(\zeta_t \sim \mathcal{N}(0,t^{-1} I)\). Intuitively, \(t^{-1}y_t\) is approximately distributed as \(\mu\) for large enough \(t\), and thus, a suitable discretization of 2 , such as the Euler discretization below, can be used to approximately sample from \(\mu\). \[\begin{align} \label{eq:sl-euler} \widetilde{y}_{(k+1)h} = \widetilde{y}_{kh} + h m(\widetilde{y}_{kh}) + (B_{(k+1)h} - B_{kh}), \;0 \leq k < K, \qquad y_0 = 0 \end{align}\tag{3}\] Being the Euler discretization of a continuous Markov process, the discrete dynamical system specified by 3 naturally evolves in a sequential fashion, and thus, naively simulating \(K\) steps requires \(\Theta(K)\) calls to an oracle for the tilted mean \(m\), even on a . To circumvent this, we employ a parallelization technique based on the concept of Picard iteration, a classical technique for proving the existence and uniqueness of ODE solutions [40], which was later used algorithmically by [32] to develop parallel algorithms for sampling from continuous log-concave densities in \(\mathbb{R}^n\). The key idea behind Picard iteration is to view the trajectory defined by 3 as the solution to the following fixed point problem defined by an operator \(\mathcal{T} : \mathbb{R}^{n \times K} \to \mathbb{R}^{n \times K}\) over discrete trajectories: \[\begin{align} \mathcal{T}(z) \coloneq z^{\prime}; \qquad z^{\prime}_{kh} = h \sum_{i=0}^{k-1} m(z_{ih}) \;+ B_{kh} \;\forall \;k \in [K], \qquad z^{\prime}_0 = 0 \end{align}\] By unrolling the recurrence, one can observe that the trajectory defined by 3 is a fixed point of the operator \(\mathcal{T}\), i.e., \(\mathcal{T}(\widetilde{y}) = \widetilde{y}\). Consequently, the discretized SL process can be approximated via the following fixed point iteration over discrete trajectories, which we call Picard iteration. \[\begin{align} \label{eq:picard-sl} \widetilde{y}^{(r)}_{kh} = h \sum_{i=0}^{k-1}m(\widetilde{y}^{(r-1)}_{ih}) + B_{kh}, \;\forall \;k \in [K], \qquad \widetilde{y}^{(r)}_{0} = 0 \end{align}\tag{4}\]
\(B_0 \gets 0\)
(In Parallel)\(k \gets 0\) \(K-1\)
\(B_{(k+1)h} \gets B_{kh} + \varepsilon_k\), where \(\varepsilon_k \sim \mathcal{N}(0,hI)\)
\(\hat{y}_{kh}^{(0)} \gets 0\)
The key algorithmic benefit of this reformulation lies in its inherent parallelizability, albeit at the cost of introducing some mild approximation error. Indeed, 4 turns the problem of sequentially evaluating the recurrence in 3 into a highly parallelizable fixed point computation over the whole trajectory: given access to a parallel oracle for the tilted mean \(m\), each Picard iteration can be implemented efficiently in parallel across all time points. In particular, at depth \(r\), \((\widetilde{y}^{(r-1)}_{kh})_{k \in [K]}\) can be computed simultaneously in one parallel oracle call, after which the cumulative drift terms in 4 can be computed via parallel prefix sums in \(O(\log(k))\) time and \(O(k)\) work. However, to guarantee the effectiveness of this approach as a parallel sampler, one needs to quantify how well the Picard iterate \(\widetilde{y}^{(R)}\) approximates its limiting trajectory \(\widetilde{y}\). To this end, one can show (see 3) that Lipschitzness of the tilted mean (which can be guaranteed in the high-temperature regime) suffices to ensure that the Picard iterates converge to the discretized SL process exponentially fast. In particular, \(R=\widetilde{\Theta}(Kh)\) iterations suffice to approximate the discrete SL trajectory in 3 to arbitrary accuracy.
The key challenge in algorithmically implementing the Picard iteration in 4 arises from the approximate computation of the tilted mean \(m\), which is highly nontrivial and is known to be -hard even for worst-case Hamiltonians [35]. To circumvent this, we make use of the TAP-AMP algorithm of [41] ([alg:tap-amp]), which constructs an estimator \(\hat{m}\) of the tilted mean for points along the continuous SL trajectory. This results in the following inexact fixed point iteration, which we call Picard Algorithmic Stochastic Localization ([alg:picard-asl]). \[\begin{align} \label{eq:picard-asl} \hat{y}^{(r)}_{kh} = h \sum_{i=0}^{k-1}\hat{m}(\hat{y}^{(r-1)}_{ih}) + B_{kh}, \;\forall \;k \in [K], \;\;\hat{y}^{(r)}_{0} = 0 \end{align}\tag{5}\] While standard perturbation-based analyses of inexact fixed point iterations rely on uniformly controlling the deviation between the ideal and the inexact iterates, such a strategy is not applicable to 5 due to the absence of uniform guarantees on the estimation error of \(\hat{m}\). In fact, the current best known analysis of the tilted mean estimator can certify only a very weak error bound of the form \(\| \hat{m}(y_t) - m(y_t) \|^2 \leq n \varepsilon^2_n\) for points along the continuous SL trajectory. Here, \(\varepsilon_n\) is a fixed error threshold which converges to \(0\) as \(n \to \infty\). This subtle distinction constitutes a major obstacle in our analysis since the Picard trajectories at low depth (i.e., low values of \(r\)) are expected to deviate significantly from the continuous SL trajectory. Consequently, the currently available guarantees are insufficient for controlling \(\|\hat{m}(\hat{y}^{(r)}_{kh})-m(\hat{y}^{(r)}_{kh})\|\).
To circumvent this obstacle, we depart from the standard perturbation-based analysis of inexact fixed point iteration, and instead analyze 5 directly. In particular, we prove that in the high-temperature regime, the tilted mean estimator \(\hat{m}(y)\) itself is uniformly \(O(1)\)-Lipschitz. Hence, the inexact Picard iteration in 5 converges exponentially fast to the discrete process \(\hat{y}_{(k+1)h} = \hat{y}_{kh} + h \hat{m}(y_{kh}) + (B_{(k+1)h} - B_{kh})\) in \(R = \widetilde{O}(Kh)\) iterations. We then prove a sign rounding stability guarantee for the limiting discrete trajectory \(\hat{y}\), and show that for any \(\varepsilon \geq \varepsilon_n\), the distribution of \(\operatorname{sign}(\frac{\hat{y}^{(R)}_{Kh}}{Kh})\) approximates the \(p\)-spin measure \(\mu\) up to \(\varepsilon\) error in normalized 2-Wasserstein distance whenever \(Kh=O(\log(\frac{n}{\varepsilon}))\) and \(h=O(\poly(\frac{1}{\varepsilon}))\). Since the \(K\) iterations are executed in parallel in each round, [alg:picard-asl] exhibits a parallel runtime of \(O(\mathrm{polylog}(\frac{n}{\varepsilon}))\) with \(O(\poly(\frac{n}{\varepsilon}))\) work. Compared to the \(O(\poly(n) \exp(\poly(\frac{1}{\varepsilon})))\) runtime of Algorithmic Stochastic Localization, this constitutes a doubly exponential improvement in runtime and an exponential improvement in work in terms of \(\varepsilon\).
\(\hat{m}^{-1} \gets 0\), \(z^0 \gets 0\)
\(u^0 \gets z^{K_{\mathrm{AMP}}}\), \(\hat{m}^{+,0} \gets \hat{m}^{K_{\mathrm{AMP}}}\)
For differentiable functions \(g : \mathbb{R}^d \to \mathbb{R}\), we use \(\nabla g\) and \(\nabla^2g\) to denote their Euclidean gradient and Hessian, respectively. For functions \(f : \{ \pm 1 \}^m \to \mathbb{R}\), we define the discrete partial derivative, and the associated discrete gradient and discrete Hessian as follows: \[\begin{align} \label{eq:discrete-partial} \partial_i f(x) = \frac{1}{2} \cdot [f(x_{\neg i} \;; \;x_i = +1) - f(x_{\neg i} \;; \;x_i = -1)], \qquad (\nabla f(x))_{i} = \partial_i f(x), \qquad (\nabla^2 f(x))_{ij} = \partial_i \partial_j f(x) \end{align}\tag{6}\] For any \(x \in \mathbb{R}^m\) and multi-set \(J \subseteq [n]\), we define \(x^J = \prod_{k \in J}x_k\). For any two distributions \(P\) and \(Q\) on a state space \(\Omega\), we denote their total variation distance as \[\begin{align} d_{\mathsf{TV}}(P,Q) = \frac{1}{2} \sum_{x \in \Omega}|P(x)-Q(x)| \end{align}\] When clear from the context, for random variables \(x, y\) we use \(d_{\mathsf{TV}}(x,y)\) to denote \(d_{\mathsf{TV}}(\mathsf{Law}(x),\mathsf{Law}(y))\).
Definition 1 (Normalized 2-Wasserstein distance). For probability measures \(\mu, \nu\) on \(\mathbb{R}^d\) with a finite second moment, which shall always be equipped with the Euclidean metric unless stated otherwise, we define the \(2\)-Wasserstein distance \(W_2(\mu, \nu)\) and its normalized variant \(W_{2,d}(\mu,\nu)\) as follows: \[\begin{align} W_2(\mu,\nu) = \left(\inf \limits_{\mathcal{C} \in \Pi(\mu,\nu)} \mathbb{E}*_{(X,Y) \sim \mathcal{C}}{\|X-Y\|^2}\right)^{\frac{1}{2}}, \qquad {W}_{2, d}(\mu,\nu) = \frac{1}{\sqrt{d}} \cdot W_2(\mu,\nu) \end{align}\] where \(\Pi(\mu,\nu)\) denotes the set of all couplings of the measures \(\mu\) and \(\nu\).
Throughout, we use \(H\) and \(\mu\) to denote the Ising \(p\)-spin Hamiltonian and its associated Gibbs measure as defined in 1 . We use \(\xi(t) = \sum_{p=2}^{P} \beta_p^2 t^p\) to denote its mixture function. We also define the coefficients \(\mathfrak{C}(\beta)\) and \(\mathfrak{D}(\beta)\) as follows: \[\begin{align} \label{eq:temp-coeffs} \mathfrak{C}(\beta) \mathrel{\vcenter{:}}= \sum_{p=2}^{P} \beta_p \sqrt{p^3 \ln(p)} \;; \qquad \mathfrak{D}(\beta) \mathrel{\vcenter{:}}= \sum_{p=2}^{P} \beta_p \sqrt{2^{p} p^3 \ln(p)} \end{align}\tag{7}\]
Definition 2 (Poincaré and Log-Sobolev Inequalities). A measure \(\pi\) on \(\{\pm 1\}^m\) is said to satisfy a Poincaré inequality with constant \(\lambda_{\mathrm{PI}}\) if for any \(f : \{\pm 1\}^m \to \mathbb{R}\), \[\begin{align} \mathsf{Var}_{\pi}[f] \leq \lambda_{\mathrm{PI}} \, \mathbb{E}_{\pi}\!\left[\|\nabla f\|^2\right]. \end{align}\]
\(\pi\) is said to satisfy a Log-Sobolev inequality with constant \(\lambda_{\mathrm{LSI}}\) if for any \(f : \{\pm 1\}^m \to \mathbb{R}\), \[\begin{align} \mathsf{Ent}_{\pi}[f^2] \leq \lambda_{\mathrm{LSI}} \, \mathbb{E}_{\pi}\!\left[\|\nabla f\|^2\right]. \end{align}\]
Furthermore, LSI implies PI with \(\lambda_{\mathrm{PI}} \leq \lambda_{\mathrm{LSI}}.\)
Definition 3 (Approximate Tensorization of Entropy). A measure \(\pi\) on \(\{\pm 1\}^m\) is said to satisfy \(C\)-approximate tensorization of entropy (or \(C\)-ATE) if for any \(f : \{\pm 1\}^m \to \mathbb{R}\), \[\begin{align} \mathsf{Ent}_{\pi}[f^2] \leq C \sum_{i=1}^m \mathbb{E}_{\pi}\!\left[\mathsf{Ent}_{\mu(x_i \mid x_{-i})}[f^2]\right]. \end{align}\]
It is easy to show that any probability measure on \(\{\pm 1\}\) satisfies an LSI with a constant of \(\frac{1}{2}\) [42]. Hence, any measure \(\pi\) satisfying \(C\)-approximate tensorization of entropy also satisfies an LSI with \(\lambda_{\mathrm{LSI}} = \frac{C}{2}\).
The following Lipschitz concentration guarantee for measures satisfying an LSI is standard, and follows directly from the Herbst argument [43].
Theorem 3 (Lipschitz Concentration under LSI). Let \(\pi\) be a measure on \(\{\pm 1\}^m\) satisfying an LSI. Then, for any \(f : \{\pm 1\}^m \to \mathbb{R}\), which satisfies \(\max \limits_{x \in \{\pm 1\}^m} \|\nabla f(x)\| \leq G\), the following holds: \[\begin{align} \pi\!\left(\left|f - \mathbb{E}_{\pi}[f]\right| \ge t\right) \le 2 \exp\left(-\frac{t^2}{2 \lambda_{\mathrm{LSI}}G^2}\right) \end{align}\]
The following Bernstein-type concentration bound for measures satisfying an ATE follows from Propositions 2.16 and 2.18 of [44].
Theorem 4 (Bernstein-Type Concentration for ATE Measures). Let \(\pi\) be a measure on \(\{\pm 1\}^m\) satisfying \(C\)-approximate tensorization of entropy. Then, for any \(f : \{\pm 1\}^m \to \mathbb{R}\), \[\begin{align} \pi\!\left(\left|f - \mathbb{E}_{\pi}[f]\right| \ge t\right) \le 2 \exp\!\left( -\frac{c_1}{C} \min\left\{ \frac{t^2}{\mathbb{E}_{\pi}\!\left[\|\nabla f\|^2\right]}, \frac{t}{\max\limits_{x \in \{\pm 1\}^m} \|\nabla^2 f(x)\|_{F}} \right\} \right). \end{align}\]
The following theorem establishing ATE for high-temperature Ising models is implicit in [10] and also appears as Theorem 4.1 in [14].
Theorem 5 (ATE for High-Temperature Ising Models). Let \(\nu_{J,h}(x) \propto \exp\!\left(\frac{1}{2}\langle x,Jx\rangle + \langle h,x\rangle\right)\) be an Ising model on \(\{\pm 1\}^m\) with \(\|J\|_{\mathsf{op}} < 1\). Then, \(\nu_{J,h}\) satisfies \(C\)-ATE with \(C = (1-\|J\|_{\mathsf{op}})^{-1}\). Consequently, \(\nu_{J,h}\) satisfies an LSI (and hence, PI), with \(\lambda_{\mathrm{LSI}} = \tfrac{1}{2} \cdot (1-\|J\|_{\mathsf{op}})^{-1}\).
Let \(\mu\) denote any arbitrary measure on \(\mathbb{R}^n\) with a finite second moment. Stochastic localization, introduced by [13], denotes the following diffusion process: \[\begin{align} \label{eq:sl-full} \d y_t &= m(y_t,t) \d t + \d B_t, \qquad y_0=0 \nonumber \\ m(y,t) &= \mathbb{E}*_{x \sim \mu, \zeta \sim \mathcal{N}(0,1)}{x \given tx + \sqrt{t}\zeta = y} \end{align}\tag{8}\] Stochastic localization exhibits several interesting properties that have found innumerable applications in areas such as convex geometry and the analysis of Markov chains [16], [18], [45]. Among these, the following property, which appears in [46], will be of particular importance to us.
Theorem 6 (Equivalent Characterization of SL [46]). Let \((y_t)_{t \geq 0}\) denote the stochastic localization process associated with the measure \(\mu\), as defined in 8 . Then, there exists an \(x^{\star} \sim \mu\) and a standard Brownian motion \((W_t)_{t \geq 0}\) such that for any \(t \geq 0\), \(y_t = t x^{\star} + W_t\). Consequently, the marginal law of \(t^{-1}y_t\) is equal to that of \(x^{\star} + \zeta_t\) where \(\zeta_t \sim \mathcal{N}(0,t^{-1} I)\).
The following lemmas, which follow from 6, are vital for analyzing the rounding scheme used in [alg:picard-asl].
Lemma 1 (Rounding SL for the hypercube). Let \(\mu\) be a measure supported on \(\{\pm 1\}^n\), and let \((y_t)_{t \ge 0}\) denote the associated SL process. For any \(T > 0\), define \(\hat{x}_T = \operatorname{sign}(T^{-1} y_T)\). Then, \(W_{2, n}^2(\mathsf{Law}(\hat{x}_T), \mu) \le 8 \exp(-\frac{T}{2}).\)
Proof. By 6, there exist \(x^* \sim \mu\) and \(z \sim \mathcal{N}(0,T^{-1}I)\) such that \(T^{-1} y_T = x^* + z.\) Then, \[\begin{align} W_{2, n}^2\bigl(\mathsf{Law}(\hat{x}_T), \mu\bigr) &\le \frac{1}{n} \mathbb{E}\bigl[\|\hat{x}_T - x^*\|^2\bigr] \\ &= \frac{1}{n}\sum_{i=1}^n \mathbb{E}\Bigl[\bigl(x_i^* - \operatorname{sign}(x_i^* + z_i)\bigr)^2\Bigr] \\ &= \frac{1}{n} \sum_{i=1}^n 4 \mathbb{P}\Bigl[x_i^* \neq \operatorname{sign}(x_i^* + z_i)\Bigr] \\ &\le \frac{1}{n} \sum_{i=1}^n 4 \mathbb{P}\bigl[|z_i| \ge 1\bigr] \\ &\le 8 e^{-T/2}. \end{align}\] ◻
Lemma 2 (Stability of SL Rounding). Let \(\mu\) be a distribution on \(\{\pm 1\}^n\), and let \((y_t)_{t \ge 0}\) denote the associated SL process. For any \(T > 0\), let \(\hat{z}_T\) be a random variable satisfying \(W_2^2(\hat{z}_T, T^{-1} y_T) \le n \Delta^2.\) Then, \[\begin{align} W_{2, n}^2\bigl(\operatorname{sign}(\hat{z}_T), \operatorname{sign}(T^{-1} y_T)\bigr) \le 8 e^{-T/8} + 16 \Delta^2. \end{align}\]
Proof. By 6, there exist \(x^* \sim \mu\) and \(\zeta \sim \mathcal{N}(0,T^{-1}I)\) such that \(T^{-1} y_T = x^* + \zeta\). Couple \(\hat{z}_T\) and \(T^{-1} y_T\) \(W_2\)-optimally such that \(\mathbb{E}\bigl[\|\hat{z}_T - T^{-1} y_T\|^2\bigr] \le n \Delta^2.\) Then, \[\begin{align} W_2^2\bigl(\operatorname{sign}(\hat{z}_T), \operatorname{sign}(T^{-1} y_T)\bigr) &\le \mathbb{E}\bigl[\|\operatorname{sign}(\hat{z}_T) - \operatorname{sign}(T^{-1} y_T)\|^2\bigr] \nonumber \\ &= 4 \sum_{i=1}^n \mathbb{P}\bigl[\operatorname{sign}(\hat{z}_{T,i}) \neq \operatorname{sign}(T^{-1} y_{T,i})\bigr]. \label{eq:sl-rounding-coordinate} \end{align}\tag{9}\]
Observe that if \(|T^{-1} y_{T,i}| > 1/2\) and \(|\hat{z}_{T,i} - T^{-1} y_{T,i}| < 1/2\), then \(\operatorname{sign}(\hat{z}_{T,i}) = \operatorname{sign}(T^{-1} y_{T,i}).\) It follows that, \[\begin{align} \mathbb{P}\bigl[\operatorname{sign}(\hat{z}_{T,i}) \neq \operatorname{sign}(T^{-1} y_{T,i})\bigr] &\le \mathbb{P}\bigl[|T^{-1} y_{T,i}| \le 1/2\bigr] + \mathbb{P}\bigl[|\hat{z}_{T,i} - T^{-1} y_{T,i}| \ge 1/2\bigr] \\ &\le \mathbb{P}\bigl[|x_i^* + \zeta_i| \le 1/2\bigr] + 4 \mathbb{E}\bigl[(\hat{z}_{T,i} - T^{-1} y_{T,i})^2\bigr] \\ &\le \mathbb{P}\bigl[|\zeta_i| \ge 1/2\bigr] + 4 \mathbb{E}\bigl[(\hat{z}_{T,i} - T^{-1} y_{T,i})^2\bigr] \\ &\le 2 e^{-T/8} + 4 \mathbb{E}\bigl[(\hat{z}_{T,i} - T^{-1} y_{T,i})^2\bigr]. \end{align}\] Substituting the above into 9 , \[\begin{align} W_{2, n}^2\bigl(\operatorname{sign}(\hat{z}_T), \operatorname{sign}(T^{-1} y_T)\bigr) &\le 8 e^{-T/8} + \frac{16}{n}\mathbb{E}\bigl[\|\hat{z}_T - T^{-1} y_T\|^2\bigr] \\ &\le 8 e^{-T/8} + 16 \Delta^2. \end{align}\] ◻
In its canonical form, Picard iteration is a well-known analytic technique for proving the existence and uniqueness of solutions to well-posed ordinary differential equations [40]. Recently, it has been used as a technique for parallelizing Langevin-type algorithms for continuous sampling [32] as well as denoising diffusion models in machine learning [27]. In this section, we present a concise introduction to the discrete-time analog of Picard iterations, which is the version used throughout this work.
Consider a discrete-time dynamical system \((x_{kh})_{0 \leq k \leq K}\) on \(\mathbb{R}^n\) defined by the following iteration: \[\begin{align} \label{eq:discrete-diff} x_{(k+1)h} = x_{kh} + h f(kh, x_{kh}) + g(kh), \qquad k \in \{0, \dots, K-1\} \end{align}\tag{10}\] where \(h > 0\) denotes the step-size and \(T=Kh\) denotes the time horizon, and the functions \(f\) and \(g\) can potentially be random. We observe that solving the difference equation above is an inherently sequential task. Concretely, given an initialization \(x_0\) and access to an oracle for computing \(f\) and \(g\), computing the trajectory \((x_{kh})_{0 \leq k \leq K}\) requires \(\Theta(K)\) oracle calls.
The key idea in Picard iteration is to view the entire trajectory \((x_{kh})_{0 \leq k \leq K}\) as the fixed point of a trajectory-level iteration in \(\mathbb{R}^{n \times K}\) such that, given access to a parallel oracle for computing \(f\) and \(g\), each round of this trajectory-level iteration can be computed in \(\Theta(1)\) oracle calls. To begin, we unroll the recurrence in 10 and observe that the solution \((x_{kh})_{0 \leq k \leq K}\) satisfies the following: \[\begin{align} \label{eq:trajectory-fp} x_{kh} = x_0 + \sum_{j=0}^{k-1} \left(hf(jh, x_{jh}) + g(jh)\right), \qquad 0 \leq k \leq K \end{align}\tag{11}\] The Picard iteration associated with 10 is the following sequence of trajectories \((x^{(r)}_{kh})_{0 \leq k \leq K}, \;r \in \N\). \[\begin{align} \label{eq:picard-itr} x^{(r+1)}_{kh} = x_0 + \sum_{j=0}^{k-1} \left(h f(jh, x^{(r)}_{jh}) + g(jh)\right) \end{align}\tag{12}\] We make two key observations regarding the above trajectory sequence:
The solution \(x_{kh}\) to 10 is a fixed point of 12 . Indeed, setting \(x^{(r)}_{kh} = x_{kh}\) for every \(k\) and using 11 , we conclude that \(x^{(r+1)}_{kh} = x_{kh}\).
Each round of the iteration in 12 can be computed using \(\Theta(1)\) calls to a parallel oracle for computing \(f\) and \(g\). Indeed, the values of \(g(jh), \;0 \leq j < K\) can be precomputed using one parallel oracle call, and in each round, the values of \(f(jh, x^{(r)}_{jh}), \;0 \leq j < K\) can be computed via one call to a parallel oracle to \(f\).
The parallel efficiency of Picard iteration then depends on how fast the sequence of trajectories in Picard iteration converges to its fixed point trajectory. Below, we prove that Picard iteration exhibits an exponential convergence rate whenever \(f(t,x)\) is uniformly \(L\)-Lipschitz in \(x\).
Lemma 3 (Exponential convergence of Picard iteration under Lipschitzness). Let \((x_{kh})_{0 \le k \le K}\) denote the solution to 10 , where \(T = Kh\), and let \((x_{kh}^{(r)})_{0 \le k \le K,\;r \ge 0}\) denote the associated Picard iteration as defined in 12 . Suppose \(f(t,\cdot)\) is uniformly \(L\)-Lipschitz in \(x\) and define \(M = \max_{0 \le k \le K} \|x_{kh}^{(0)} - x_{kh}\|.\) Then, for any \(r \ge 0\) and \(0 \le k \le K\), \[\begin{align} \|x_{kh}^{(r)} - x_{kh}\| \le \frac{(khL)^r}{r!} \cdot M. \end{align}\] In particular, \(R = \max\{e^2 LT, \ln(\frac{M}{\varepsilon})\}\) Picard iterations suffice to ensure the following: \[\begin{align} \max_{k \in \{0,\ldots,K\}} \|x_{kh}^{(R)} - x_{kh}\| \le \varepsilon. \end{align}\]
Proof. Let \(\Delta_{k,r} = \|x_{kh}^{(r)} - x_{kh}\|.\) We shall prove that \(\Delta_{k,r} \le \frac{(khL)^r}{r!} \cdot M\) by induction on \(r\). Clearly, this is true for \(r=0\). Now, suppose this holds for \(j=1,\ldots,r\). Then, by the uniform \(L\)-Lipschitzness of \(f(t,\cdot)\), \[\begin{align} \Delta_{k,r+1} &= \|x_{kh}^{(r+1)} - x_{kh}\| \nonumber\\ &\le h \sum_{j=0}^{k-1} \|f(jh,x_{jh}^{(r)}) - f(jh,x_{jh})\| \nonumber\\ &\le hL \sum_{j=0}^{k-1} \Delta_{j,r} \nonumber\\ &\le M \frac{(hL)^{r+1}}{r!} \sum_{j=0}^{k-1} j^r \nonumber\\ &\le M \frac{(hL)^{r+1}}{r!} \int_0^k t^r\,dt \nonumber\\ &\le \frac{(khL)^{r+1}}{(r+1)!}\, M. \end{align}\] Hence, by induction, \(\Delta_{k,r} \le \frac{(khL)^r}{r!}\, M.\) Now, for \(R \ge \max\{e^2LT,\ln(\frac{M}{\varepsilon})\},\) \[\begin{align} \max_{0 \le k \le K} \Delta_{k,R} \le M \cdot \frac{(KhL)^R}{R!} \le M \cdot \Bigl(\frac{eLT}{R}\Bigr)^R \le M e^{-R} \le \varepsilon. \end{align}\] ◻
Generally, given some accuracy parameter \(\varepsilon\), \(T = \tilde{\Theta}(1)\) and \(h = O(\poly(\frac{1}{\varepsilon}))\). Hence, the naive sequential algorithm for solving 10 requires \(K = \widetilde{O}(\poly(\frac{1}{\varepsilon}))\) oracle calls. In contrast, when \(f\) is \(\widetilde{O}(1)\)-Lipschitz, approximately solving 10 to \(O(\poly(\varepsilon))\) error (which generally suffices for downstream applications) requires \(R = \widetilde{O}(\ln(\frac{1}{\varepsilon}))\) parallel oracle calls, leading to a significant parallel speedup at the cost of a benign (and easily tunable) approximation error.
The construction of the tilted mean estimator ([alg:tap-amp]) of [12] is motivated by a deep structural property of the \(p\)-spin model: The mean of the tilted Gibbs measure at high temperature is an approximate stationary point of the Thouless–Anderson–Palmer (TAP) free energy [5], [6], [47], which we briefly introduce below.
Recall that the mixture function of the \(p\)-spin model is defined as \(\xi(t) = \sum_{p=2}^{P} \beta^2_p t^p\). For any \(t \geq 0\), the asymptotic overlap \(q^{\star}(t)\) is defined as follows: \[\begin{align} \label{eq:asymptotic-overlap} q_{k+1}(t) = \mathbb{E}*_{W \sim N(0,1)}{\operatorname{tanh}\left(t + \xi^{\prime}(q_k) +W \sqrt{\xi^{\prime}(q_k) + t}\right)^2}, \qquad q_k(t) = 0, \qquad q^{\star}(t) = \lim_{k \to \infty} q_k(t) \end{align}\tag{13}\] Since \(q_k(t)\) is independent of \(G\), computable to high accuracy via a one-dimensional Gaussian integral, and approaches the limit \(q^{\star}(t)\) exponentially fast, we assume, for simplicity, that \(q^{\star}(t)\) is known exactly for \(t=kh, k \in [K]\).
The TAP free energy associated with the \(p\)-spin Hamiltonian in 1 is defined as follows: \[\begin{align} \mathscr{F}_{\mathrm{TAP}}(m,y) &= -H(m) - \left\langle y, m \right\rangle - \sum_{i=1}^{n} h(m_i) - \operatorname{ONS}(Q(m)) \\ \operatorname{ONS}(q) &= \frac{n}{2}\left[\xi(1)-\xi(Q)-(1-Q)\xi^{\prime}(Q)\right] \\ Q(m) &= n^{-1}\|m\|^2, \qquad h(m) = -\frac{1+m}{2}\ln\left(\frac{1+m}{2}\right) - \frac{1-m}{2}\ln\left(\frac{1-m}{2}\right) \end{align}\] For the sake of tractability, [12] also define an approximate version of the TAP free energy which replaces the \(\operatorname{ONS}(Q(m))\) term by a quadratic approximation. \[\begin{align} \label{eq:approx-tap} \hat{\mathscr{F}}_{\mathrm{TAP}}(m \;;y, q) &= -H(m) - \left\langle y, m \right\rangle - \sum_{i=1}^{n} h(m_i) - \operatorname{ONS}(q) - \operatorname{ONS}^{\prime}(q)(Q(m)-q) + \frac{n \Gamma}{8}(Q(m)-q)^2 \end{align}\tag{14}\] where \(q\) is set to be the asymptotic overlap \(q^{\star}(t)\) for \(t=kh\), and \(\Gamma = \Theta(1)\) is a tunable parameter depending only on \(\xi\). [12] show that the mean of the tilted Gibbs measure continues to be an approximate stationary point of \(\hat{\mathscr{F}}_{\mathrm{TAP}}\). The tilted mean estimator in [alg:tap-amp] then works in two phases. The first phase runs a series of AMP updates to compute an approximate stationary point \(\hat{m}^{K_{\mathrm{AMP}}}\) for \(\hat{\mathscr{F}}_{\mathrm{TAP}}\) around which it is locally strongly convex. The second stage exploits this local strong convexity to refine the AMP estimate via natural gradient descent.
Lemma 4 (\(\tanh\) is 1-Lipschitz). For all \(a,b\in\mathbb{R}^n\), \[\norm{\tanh(a)-\tanh(b)} \le \norm{a-b}.\]
Lemma 5 (\(\mathop{\mathrm{sech}}^2\) is globally 1-Lipschitz on \(\mathbb{R}\)). For all \(s,t\in\mathbb{R}\), \[\big|\mathop{\mathrm{sech}}^2(s)-\mathop{\mathrm{sech}}^2(t)\big| \le |s-t| \frac{4}{3\sqrt{3}}.\]
In this section, we analyze [alg:parallel-p-spin-sampler] and prove the following Theorem.
Theorem 7 (Analysis of [alg:parallel-p-spin-sampler]). For any \(\varepsilon > 0\), the output \(X^{(T)}\) of [alg:parallel-p-spin-sampler] run with \(s = \Theta(n^{\frac{2}{3}} \log(\frac{n}{\varepsilon})^{-\frac{2}{3}})\) and \(T = \Theta(n^{1/3}\log(\frac{n}{\varepsilon})^{\frac{5}{3}})\) satisfies \(d_{\mathsf{TV}}(\mathsf{Law}(X^{(T)}), \mu) \leq \varepsilon\) with probability at least \(1 - e^{-cn}\). Moreover, [alg:parallel-p-spin-sampler] has a parallel runtime of \(O(n^{1/3}\mathrm{polylog}(\frac{n}{\varepsilon}))\) with \(O(\poly(n, \log(\frac{n}{\varepsilon})))\) work.
To analyze the mixing time of [alg:parallel-p-spin-sampler], we use the following result on the rapid mixing of \(s\)-Glauber dynamics for the \(p\)-spin model at high temperature. This result is implicit in [10] and also appears in [14].
Theorem 8 (Rapid Mixing of \(s\)-Glauber Dynamics). Let \(P_s\) denote the kernel of \(s\)-Glauber dynamics for the \(p\)-spin Gibbs measure. Then, there exists an absolute constant \(C > 0\) such that if \(\mathfrak{C}(\beta) \leq C\), then the following holds with probability at least \(1-\exp(-\Omega(n))\) for any initial law \(\nu\) \[\begin{align} D_\mathsf{KL}\left(\nu P_s^{t} \ || \ \mu\right) \leq \exp(-\tfrac{\alpha s t}{n}) D_\mathsf{KL}\left(\nu \ || \ \mu\right) \end{align}\] where \(\alpha\) is a constant depending only on \(\mathfrak{D}(\beta)\).
We also use the following result, which proves that Restricted Gaussian Dynamics samples from an Ising model on \(\{ \pm 1 \}^{m}\) up to \(\varepsilon\) accuracy in total variation in \(\mathrm{polylog}(\frac{m}{\varepsilon})\) time and \(\poly(m, \log(\frac{1}{\varepsilon}))\) work. This result appears in [15], but with a suboptimal work dependence of \(\poly(\frac{m}{\varepsilon})\).
Theorem 9 (RNC Sampling of Ising Models via Restricted Gaussian Dynamics). Consider the Ising model \(\nu_{J,h}(x) \propto \exp(\tfrac{1}{2}\left\langle x, Jx \right\rangle + \left\langle h, x \right\rangle)\) where \(J \in \mathbb{R}^{m \times m}\) satisfies \(\|J\|_{\mathsf{op}} \leq 1-c\) for some numerical constant \(c\). Then, [alg:rgd-ising-parallel] outputs a sample \(X^{(T)}\) satisfying \(d_\mathsf{TV}\left(X^{(T)},\nu_{J,h}\right) \leq \epsilon\) in \(O(\log^3(\frac{m}{\varepsilon}) )\) parallel time using \(O(\poly(m, \log(\frac{m}{\varepsilon})))\) work.
Proof. By adding a constant multiple of the identity if necessary (which does not change the distribution \(\nu_{J,h}\)), we can assume that \(\tfrac{c}{2} I \preceq J \preceq (1-\tfrac{c}{2})I\). By Proposition 16, Proposition 27, and Theorem 49 of [16], taking \(T = \Theta(\log(\frac{m}{\varepsilon}))\) suffices to ensure \(d_\mathsf{TV}\left(X^{(T)},\nu_{J,h}\right) \leq \epsilon\). By [30], computing \(J^{-1}\) and sampling from the Gaussian density \(\mathcal{N}(X^{(t)}, J^{-1})\) can be performed on a in \(O(\log^2(m))\) parallel time and \(O(m^{\omega})\) work, where \(2 \leq \omega \leq 3\) is the matrix multiplication exponent. Sampling from the product measure \(p(x) \propto \exp(\left\langle x, h+Jy \right\rangle)\) can be done in \(O(1)\) parallel time on a with \(O(m)\) work. Hence, the overall parallel runtime is \(O(\log^3(\frac{m}{\varepsilon}))\) with work \(O(\poly(m, \log(\frac{m}{\varepsilon})))\). ◻
Consider any arbitrary \(S \in \binom{[n]}{s}\). For any \(x \in \{\pm 1\}^n\), let \(x = (y,\tau)\) where \(y = x_S\) denotes the block spins in \(S\) and \(\tau = x_{\Bar{S}}\) denotes the pinning outside \(S\). Then the conditional distribution \(\mu_{S,\tau}(y) = \mu(y \;| x_{\Bar{S}} = \tau)\) of the spins in \(S\) satisfies \(\mu_{S,\tau}(y) \propto \exp(H_{S,\tau}(y))\) where: \[\begin{align} \label{eqn:conditional-hamiltonian-decomposition} H_{S,\tau}(y) = \left\langle b_{S,\tau}, y \right\rangle + \tfrac{1}{2} \left\langle y, A_{S,\tau} y \right\rangle + R_{S,\tau}(y) \end{align}\tag{15}\] Here, \(A_{S,\tau}\) is a symmetric matrix with zero diagonals with: \[\begin{align} \label{eqn:Ast-entries} (A_{S,\tau})_{ij} = \sum_{p=2}^{P} \frac{\beta_p \sqrt{p!}}{n^{\tfrac{p-1}{2}}} \sum_{K \subseteq \Bar{S}, \abs{K} = p-2 } G_{K \cup \{i,j\}} \tau^K, \qquad i,j \in S, \;i\neq j \end{align}\tag{16}\] The remainder term is given by \[\begin{align} \label{eq:remainder-term} R_{S,\tau}(y) = \sum_{p=3}^P \frac{\beta_p\sqrt{p!}}{n^{(p-1)/2}} \sum_{\substack{J\subseteq [n], \abs{J}=p,\\ \abs{J\cap S}\ge 3}} G_J \; \,y^{J\cap S} \; \,\tau^{J\cap \Bar{S}}\, \end{align}\tag{17}\] As discussed earlier, each step of \(s\)-Glauber dynamics requires sampling from \(\mu_{S,\tau}\), which can be computationally expensive. We address this via a parallelized implementation of rejection sampling in [alg:parallel-ising-rejection-sampler] where \(\mu_{S,\tau}(y)\) is approximated by an Ising model of the form \(\pi_{S,\tau}(y) \propto \exp(\tfrac{1}{2} \left\langle y, A_{S,\tau} y \right\rangle + \left\langle b_{S,\tau} + \hat{h}, y \right\rangle)\), where \(\hat{h}\) is an external field that satisfies \(\hat{h} \approx \mathbb{E}_{y \sim \pi_{S,\tau}}{\nabla R_{S,\tau}(y)}\).
To ensure the parallel efficiency of [alg:parallel-ising-rejection-sampler], we generate approximate samples from the Ising proposal \(\pi_{S,\tau}\) using Restricted Gaussian Dynamics ([alg:rgd-ising-parallel]). To this end, the following theorem proves that \(\|A_{S,\tau}\|_{\mathsf{op}} \leq \frac{1}{4}\) holds with high probability uniformly over all choices of \(S\) and \(\tau\) whenever \(s = O(n^{\frac{2}{3}})\). Hence, [alg:rgd-ising-parallel] can approximately sample from the proposal in \(\widetilde{O}(1)\) parallel time.
Theorem 10 (Uniform Operator Norm Bound for Ising Proposal). There exists a numerical constant \(C > 0\) such that for \(\mathfrak{C}(\beta) \leq C\) and \(s = o(n)\), the following holds with probability at least \(1-\exp(-cn)\): \[\begin{align} \|A_{S,\tau}\|_{\mathsf{op}} \leq \frac{1}{4}, \qquad \forall \;S \in \binom{[n]}{s}, \; \tau \in \{\pm 1\}^{\Bar{S}} \end{align}\]
Proof. From 16 , \[\begin{align} (A_{S,\tau})_{ij} = \sum_{p=2}^{P} \frac{\beta_p \sqrt{p!}}{n^{(p-1)/2}} \sum_{\substack{K \subseteq \bar S \\ |K| = p-2}} G_{K \cup \{i,j\}} \tau^K, \qquad i,j \in S,\;i \neq j. \end{align}\]
Since \(\tau \in \{\pm 1\}^{\bar S}\) and \(g_{K \cup \{i,j\}} \stackrel{\mathrm{iid}}{\sim} \mathcal{N}(0,1)\) for each \(K\) and \(p\), \((A_{S,\tau})_{ij}\) are independent centered Gaussians with \[\begin{align} \mathsf{Var}\bigl[(A_{S,\tau})_{ij}\bigr] &= \sum_{p=2}^{P} \frac{\beta_p^2 p!}{n^{p-1}} \binom{n-s}{p-2} \leq \frac{1}{n} \sum_{p=2}^{P} \beta_p^2 \frac{p!}{(p-2)!} \leq \frac{\mathfrak{C}(\beta)^2}{n}. \end{align}\]
Let \(\mathcal{N}\) be a \(1/4\)-net of the unit sphere in \(\mathbb{R}^S\). By a standard covering argument, \(\|A_{S,\tau}\| \leq 2 \max_{u,v \in \mathcal{N}} u^\top A_{S,\tau} v\). Since \((A_{S,\tau})_{ij}\) are independent centered Gaussians for \(i \neq j\), and \((A_{S,\tau})_{ii} = 0\), \(u^\top A_{S,\tau} v\) is a centered Gaussian for any \(u, v \in \mathcal{N}\) with, \[\begin{align} \mathsf{Var}\bigl[u^\top A_{S,\tau} v\bigr] = \sum_{i \neq j} \mathsf{Var}\bigl[(A_{S,\tau})_{ij}\bigr] (u_i v_j)^2 \leq \frac{\mathfrak{C}(\beta)^2}{n}. \end{align}\]
Since \(|\mathcal{N}| \leq 9^s\), by a union bound \[\begin{align} \mathbb{P}\bigl[\|A_{S,\tau}\|_{\mathrm{op}} \geq t\bigr] \leq 9^{2s} \exp\bigl(- \tfrac{n t^2}{\mathfrak{C}(\beta)^2}\bigr). \end{align}\]
Taking a union bound over all \((S,\tau)\) and choosing \(\mathfrak{C}(\beta) = O(1)\) sufficiently small, \[\begin{align} \mathbb{P}\bigl[\exists\,(S,\tau)\;\text{s.t.}\;\|A_{S,\tau}\|_{\mathrm{op}} \geq \tfrac{1}{4}\bigr] &\leq \binom{n}{s} 2^{n-s} 9^{2s} \exp\bigl(- \tfrac{cn}{\mathfrak{C}(\beta)^2}\bigr) \\ &\leq \exp\bigl[n \ln 2 + c_1 s \ln n - \tfrac{cn}{\mathfrak{C}(\beta)^2}\bigr] \leq \exp(-c_2 n). \end{align}\] ◻
Naturally, the success probability of our rejection sampling procedure is governed by how well the Ising proposal \(\pi_{S,\tau}\) approximates the conditional distribution \(\mu_{S,\tau}\), or, in other words, how large the influence of the remainder term \(R_{S,\tau}\) is. We quantify this via a uniform bound on the discrete Hessian of \(R_{S,\tau}\).
Theorem 11 (Uniform Bound on Hessian of Remainder Term). There exists a numerical constant \(C > 0\) such that for \(\mathfrak{C}(\beta) \leq C\), the following holds with probability at least \(1-\exp(-cn)\) whenever \(\Omega(\sqrt{n}) \leq s \leq o(n)\) \[\begin{align} \|\nabla^2 R_{S,\tau}(y)\|^2_{F} \leq \frac{C_1 \mathfrak{C}(\beta)^2 s^3}{n^2}, \qquad \forall \;S \in \binom{[n]}{s}, \; (y,\tau) \in \{\pm 1\}^n \end{align}\]
Moreover, there exists a \(C_P = \Theta(1)\) such that the following holds with probability at least \(1-\exp(-cn)\) \[\begin{align} \|\nabla R_{S,\tau}(y)\|_{\infty} \leq n^{C_P}, \qquad \forall \;S \in \binom{[n]}{s}, \; (y,\tau) \in \{\pm 1\}^n \end{align}\]
Proof. We first derive a uniform Frobenius norm bound on the Hessian. From 17 , \[\begin{align} \bigl(\nabla^2 R_{S,\tau}\bigr)_{ij} = \sum_{p=3}^P \frac{\beta_p \sqrt{p!}}{n^{\tfrac{p-1}{2}}} \sum_{\substack{J \subseteq [n],\, |J| = p \\ |J \cap S| \ge 3 \\ \{i,j\} \subseteq J}} G_J \tau^{J \cap \overline{S}} y^{J \cap S \setminus \{i,j\}}. \end{align}\] Let \(\mathcal{J} = \{J \subseteq [n] : 3 \le |J| \le P\}\) and let \(g = (G_J)_{J \in \mathcal{J}}\). Note that \(g\) is a standard Gaussian in \(\mathbb{R}^{\mathcal{J}}\). Writing \(x = (y,\tau)\), define the matrix \(B = (B_{I,J})_{I \in \binom{S}{2},\, J \in \mathcal{J}}\) by \[\begin{align} \label{eq:B-matrix-elements} B_{I,J} = \frac{\beta_{|J|}\sqrt{|J|!}}{n^{\tfrac{|J|-1}{2}}} \mathbb{1}(I \subseteq J,\, |J \cap S| \ge 3)\, x^{J}. \end{align}\tag{18}\] Note that for \(I = \{i,j\}\), \(i,j \in S\), \[\begin{align} \bigl(\nabla^2 R_{S,\tau}(y)\bigr)_{ij} &= \sum_{J \in \mathcal{J}} \frac{\beta_{|J|}\sqrt{|J|!}}{n^{\tfrac{|J|-1}{2}}} \mathbb{1}(I \subseteq J,\, |J \cap S| \ge 3)\, x^{J \setminus I} g_J = \frac{1}{x^I}\sum_{J \in \mathcal{J}} B_{I,J} g_J = \frac{1}{x^I}(Bg)_I. \end{align}\] Since \(x \in \{\pm 1\}^n\), \(\|\nabla^2 R_{S,\tau}(y)\|_F^2 = \|Bg\|^2\). Let \(M = BB^\top\). Then, by the Hanson-Wright inequality ([48], Theorem 6.2.1), \[\begin{align} \label{eq:hanson-wright-bound} \mathbb{P}\bigl[\|\nabla^2 R_{S,\tau}(y)\|_F^2 \ge 2 \mathsf{Tr}(M)\bigr] \le \exp\Bigl( -c \min\Bigl\{ \frac{\mathsf{Tr}(M)^2}{\|M\|_F^2}, \frac{\mathsf{Tr}(M)}{\|M\|_{\mathsf{op}}} \Bigr\} \Bigr). \end{align}\tag{19}\] We now compute \(\mathsf{Tr}(M)\), \(\|M\|_{\mathsf{op}}\) and \(\|M\|_F\).
Since \(x \in \{\pm 1\}^n\), we obtain the following from 18 for any \(I_1,I_2 \in \binom{S}{2}\), \[\begin{align} \label{eq:M-matrix-def} M_{I_1,I_2} &= \sum_{J \in \mathcal{J}} B_{I_1,J} B_{I_2,J} = \sum_{p=3}^P \frac{\beta_p^2 p!}{n^{p-1}}\, N_p(I_1,I_2), \\ N_p(I_1,I_2) &= \#\Bigl\{ J \in \binom{[n]}{p} : I_1 \cup I_2 \subseteq J,\, |J \cap S| \ge 3 \Bigr\}. \end{align}\tag{20}\] Clearly, \(N_p(I_1,I_2)\) depends only on \(|I_1 \cap I_2| \in \{0,1,2\}\). Hence, we consider three cases.
Case 1: \(I_1 = I_2 = I\).
Write \(J = I \cup L\) where \(L \cap I = \varnothing\). Since \(|J \cap S| \ge 3\), we have \(|L \cap S| \ge 1\), i.e. \(|L \cap (S \setminus I)| \ge 1\). Hence, \[\begin{align} N_p(I_1,I_2) &= \#\{L \subseteq [n] \setminus I : |L| = p-2\} - \#\{L \subseteq [n] \setminus I : L \cap (S \setminus I) = \varnothing,\;|L| = p-2\} \nonumber \\ &= \binom{n-2}{p-2} - \binom{n-s}{p-2}. \label{eq:case1-bound} \end{align}\tag{21}\]
Case 2: \(|I_1 \cap I_2| = 1\).
Since \(I_1 \cup I_2 \subseteq S\) and \(|I_1 \cup I_2| = 3\), any \(p\)-set \(J \supseteq I_1 \cup I_2\) satisfies \(|J \cap S| \ge 3\). Hence, \[\begin{align} \label{eq:case2-bound} N_p(I_1,I_2) = \#\{J \in \binom{[n]}{p} : I_1 \cup I_2 \subseteq J\} = \binom{n-3}{p-3}. \end{align}\tag{22}\]
Case 3: \(I_1 \cap I_2 = \varnothing\).
Then \(I_1 \cup I_2 \subseteq S\) and \(|I_1 \cup I_2| = 4\). If \(p=3\), no such \(J\) can exist. If \(p \ge 4\), any \(p\)-set \(J\) containing \(I_1 \cup I_2\) satisfies \(|J \cap S| \ge 3\). Hence, \[\begin{align} \label{eq:case3-bound} N_p(I_1,I_2) = \begin{cases} \binom{n-4}{p-4}, & p \ge 4,\\ 0, & \text{otherwise}. \end{cases} \end{align}\tag{23}\]
To combine the three cases, we define \[\begin{align} \Gamma_0 &= \sum_{p=4}^P \frac{\beta_p^2 p!}{n^{p-1}} \binom{n-4}{p-4}, \\ \Gamma_1 &= \sum_{p=3}^P \frac{\beta_p^2 p!}{n^{p-1}} \binom{n-3}{p-3}, \\ \Gamma_2 &= \sum_{p=3}^P \frac{\beta_p^2 p!}{n^{p-1}} \Biggl[ \binom{n-2}{p-2} - \binom{n-s}{p-2} \Biggr]. \end{align}\] Then, by 20 , 21 , 22 and 23 , we obtain the following: \[\begin{align} \label{eq:M-matrix-elements} M_{I_1,I_2} = \begin{cases} \Gamma_2, & I_1 = I_2,\\ \Gamma_1, & |I_1 \cap I_2| = 1,\\ \Gamma_0, & I_1 \cap I_2 = \varnothing. \end{cases} \end{align}\tag{24}\] It follows that, \[\begin{align} \label{eq:trace-M} \mathsf{Tr}(M) = \sum_{I \in \binom{S}{2}} M_{I,I} = \binom{s}{2} \Gamma_2. \end{align}\tag{25}\] From 24 , we observe that \(M\) is symmetric with non-negative entries and constant row sums. Hence, by the Perron-Frobenius theorem, \[\begin{align} \|M\|_{\mathsf{op}} = \max_{I_1} \sum_{I_2} M_{I_1,I_2}. \end{align}\] For any \(I_1 \in \binom{S}{2}\), there are exactly \(2(s-2)\) possible \(I_2\) such that \(|I_1 \cap I_2| = 1\) and \(\binom{s-2}{2}\) possible \(I_2\) such that \(I_1 \cap I_2 = \varnothing\). Hence, \[\begin{align} \label{eq:op-M} \|M\|_{\mathsf{op}} = \Gamma_2 + 2(s-2)\Gamma_1 + \binom{s-2}{2} \Gamma_0. \end{align}\tag{26}\] By a similar argument, \[\begin{align} \label{eq:frob-M} \|M\|_F^2 &= \sum_{I_1,I_2} M_{I_1,I_2}^2 \\ &= \binom{s}{2} \Biggl[ \Gamma_2^2 + 2(s-2)\Gamma_1^2 + \binom{s-2}{2} \Gamma_0^2 \Biggr]. \end{align}\tag{27}\]
To apply 19 , we need to lower bound \(\mathsf{Tr}(M)/\|M\|_{\mathsf{op}}\) and \(\mathsf{Tr}(M)^2/\|M\|_F^2\). To this end, define \[\begin{align} A_3 = \sum_{p=2}^P \beta_p^2 p(p-1)(p-2) \le \mathfrak{C}(\beta)^2. \end{align}\] Then, \[\begin{align} \label{eq:gamma1-ub} \Gamma_1 = \sum_{p=3}^P \frac{\beta_p^2 p!}{n^{p-1}} \binom{n-3}{p-3} \le \frac{1}{n^2} \sum_{p=3}^P \beta_p^2 \frac{p!}{(p-3)!} = \frac{A_3}{n^2}, \end{align}\tag{28}\] \[\begin{align} \label{eq:gamma0-ub} \Gamma_0 = \sum_{p=4}^P \frac{\beta_p^2 p!}{n^{p-1}} \binom{n-4}{p-4} \le \frac{1}{n^3} \sum_{p=4}^P \beta_p^2 \frac{p!}{(p-4)!} \le \frac{P A_3}{n^3}. \end{align}\tag{29}\]
To control \(\Gamma_2\), recall the identity \[\begin{align} Q_p := \binom{n-2}{p-2} - \binom{n-s}{p-2} = \sum_{i=0}^{s-3} \binom{n-s+i}{p-3}. \end{align}\] Then, \[\begin{align} (s-2)\binom{n-s}{p-3} \le Q_p \le (s-2)\binom{n-3}{p-3}. \end{align}\] It follows that, \[\begin{align} \label{eq:gamma2-ub} \Gamma_2 = \sum_{p=3}^P \frac{\beta_p^2 p!}{n^{p-1}} Q_p \le (s-2)\sum_{p=3}^P \frac{\beta_p^2 p!}{n^{p-1}} \binom{n-3}{p-3} \le \frac{s A_3}{n^2}. \end{align}\tag{30}\] Similarly, we can lower bound \(\Gamma_2\) as follows: \[\begin{align} \label{eq:gamma2-lb} \Gamma_2 \ge (s-2)\sum_{p=3}^P \frac{\beta_p^2 p!}{n^{p-1}} \binom{n-s}{p-3} \ge \frac{s-2}{n^2} \sum_{p=3}^P \frac{\beta_p^2 p!}{(p-3)!} \prod_{j=0}^{p-4} \Bigl(1 - \frac{s+j}{n}\Bigr). \end{align}\tag{31}\] For \(n \ge \Theta(P)\), since \(s = o(n)\), \(\tfrac{s+j}{n} \leq \frac{1}{2}\) for any \(j \leq P-4\). Hence, from 30 and 31 , we conclude: \[\begin{align} \label{eq:gamma2-bothsides} c_P \frac{s A_3}{n^2} \le \Gamma_2 \le \frac{s A_3}{n^2}. \end{align}\tag{32}\]
From 25 , 26 , 27 28 , 29 and 32 , we obtain: \[\begin{align} \mathsf{Tr}(M) \ge c_P \frac{s^3 A_3}{n^2}, \qquad \|M\|_{\mathsf{op}} \le C_P \frac{s A_3}{n^2}, \qquad \|M\|_F^2 \le C_P \frac{s^4 A_3^2}{n^4}. \end{align}\] It follows that, \[\begin{align} \label{eq:exponent-bound} \min\Bigl\{ \frac{\mathsf{Tr}(M)}{\|M\|_{\mathsf{op}}}, \frac{\mathsf{Tr}(M)^2}{\|M\|_F^2} \Bigr\} \ge c_P s^2. \end{align}\tag{33}\] Moreover, by 25 and 32 \[\begin{align} \label{eq:tail-bound} \mathsf{Tr}(M) = \binom{s}{2} \Gamma_2 \le \frac{s^3 A_3}{n^2} \le \frac{s^3 \mathfrak{C}(\beta)^2}{n^2}. \end{align}\tag{34}\]
Substituting 33 and 34 into 19 , we obtain: \[\begin{align} \mathbb{P}\Bigl[ \|\nabla^2 R_{S,\tau}(y)\|_F^2 \ge \frac{s^3 \mathfrak{C}(\beta)^2}{n^2} \Bigr] \le \exp(-c_P s^2). \end{align}\]
Finally, taking a union bound over all \(S \subseteq [n]\), \(|S|=s\), and \((y,\tau) \in \{\pm 1\}^n\) and using \(s \geq \Omega(\sqrt{n})\), we obtain: \[\begin{align} \mathbb{P}\Biggl[ \max_{S \in \binom{[n]}{s}} \max_{(y,\tau) \in \{\pm 1\}^n} \|\nabla^2 R_{S,\tau}(y)\|_F^2 \ge \frac{s^3 \mathfrak{C}(\beta)^2}{n^2} \Biggr] &\le \binom{n}{s} 2^n \exp(-c_P s^2) \\ &\le \exp(-c_P s^2 + c_1 n + c_2 s \log n) \\ &\le \exp(-c_P s^2), \end{align}\]
To derive the uniform bound on the gradient, we observe that. \[\begin{align} \bigl|\{J \subseteq [n] : 2 \le |J| \le P\}\bigr| = \sum_{p=2}^P \binom{n}{p} \le C_P n^P. \end{align}\] Then, by a union bound and Gaussian concentration, \[\begin{align} \mathbb{P}\Bigl[\max_{\substack{J \subseteq [n] \\ 2 \le |J| \le P}} |G_J| > n\Bigr] \le C_P n^P e^{-n^2/2} \le e^{-cn}. \end{align}\] Then, by 17 , \[\begin{align} \partial_i R_{S,\tau}(y) = \sum_{p=3}^P \frac{\beta_p \sqrt{p!}}{n^{\tfrac{p-1}{2}}} \sum_{\substack{J \subseteq [n],\, |J| = p \\ |J \cap S| \ge 3,\;J \ni i}} G_J \tau^{J \cap \overline{S}} y^{(J \cap S)\setminus \{i\}}. \end{align}\] Thus, on the event \(\max_J |g_J| \le n\), \[\begin{align} |\partial_i R_{S,\tau}(y)| \le \sum_{p=3}^P \frac{\beta_p \sqrt{p!}}{n^{\tfrac{p-1}{2}}} \sum_{\substack{J \subseteq [n] \\ |J| = p,\;i \in J}} |g_J| \le n \sum_{p=3}^P \frac{\beta_p \sqrt{p!}}{n^{\tfrac{p-1}{2}}} \binom{n-1}{p-1} \le n^{C_P}. \end{align}\] Since the above bound holds uniformly in \((S,\tau,y,i)\), we conclude that there exists a \(C_P = \Theta(1)\) such that \(\sup_{S,\tau,y} \|\nabla R_{S,\tau}(y)\|_\infty \le n^{C_P}.\) ◻
In this section, we shall establish the accuracy and parallel efficiency of [alg:parallel-ising-rejection-sampler]. Henceforth, we condition on the event \(\mathcal{E}\) that the bounds in 10 and 11 hold uniformly over all \(S\) and \(\tau\).
Theorem 12 (Analysis of Parallel Rejection Sampler). For any \(S \in \binom{[n]}{s}\) and \(\tau \in \{\pm 1\}^{\overline{S}}\), let \(\tilde{\mu}_{S,\tau}\) denote the law of the sample output by [alg:parallel-ising-rejection-sampler]. Conditioned on the event \(\mathcal{E}\), the following holds whenever \(s = \Theta(n^{\frac{2}{3}})\): \[\begin{align} d_{\mathsf{TV}}\!\left(\tilde{\mu}_{S,\tau}, \mu_{S,\tau}\right) \leq \varepsilon_{\mathrm{step}} \qquad \forall S \in \binom{[n]}{s},\; \tau \in \{\pm 1\}^{\overline{S}} . \end{align}\] Moreover, [alg:parallel-ising-rejection-sampler] has parallel runtime \(O(\mathrm{polylog}(\frac{n}{\varepsilon_{\mathrm{step}}}))\) with \(O(\poly(n, \log(\frac{1}{\varepsilon_{\mathrm{step}}})))\) work.
The proof of 12, which is presented in 3.3.1, involves several technical components, the first of which is an accuracy guarantee for the approximate rejection sampling step in [alg:parallel-ising-rejection-sampler]. This result appears as Lemma 4.4 in [14] and Lemma 2 in [49].
Lemma 6 (Accuracy of Rejection Sampling). Let \(P\) and \(Q\) be probability measures satisfying \(\frac{dP}{dQ}(y) \propto e^{\psi(y)}\). Let \(Y,Z \stackrel{\mathrm{iid}}{\sim} Q\), and define \(R = \exp(\psi(Y)-\psi(Z))\). Consider the following rejection sampling procedure: Draw \(U \sim \mathsf{Uniform}[0,1]\) and accept \(Y\) if \(U \leq \min \{ 1, \frac{R}{c} \}\) for some \(c \geq 1\). Let \(\tilde{P}\) denote the law of the accepted sample. Then, \[\begin{align} d_\mathsf{TV}\left(P, \tilde{P}\right) \leq \frac{1}{\mathbb{E}[R]} \cdot \mathbb{E}[\max\{R-c,0\}], \qquad \mathbb{P}\left[Y \textrm{ is accepted}\right] = \frac{1}{c} \cdot \mathbb{E}[\min\{R,c\}]\geq \tfrac{1}{2c} \end{align}\] In addition, suppose \(\psi(Y) - \psi(Z)\) exhibits subexponential tails of the form \(\mathbb{P}[\psi(Y) - \psi(Z) \geq t] \leq a\exp(-bt)\) for \(b > 1\). Then, the following holds: \[\begin{align} d_\mathsf{TV}\left(P,\tilde{P}\right) \leq \frac{a}{b-1} \cdot c^{-(b-1)} \end{align}\]
In [alg:parallel-ising-rejection-sampler], \((X,Z)\) corresponds to \((U_\ell,V_\ell)\), both of which are approximately distributed as \(\pi_{S,\tau}\) (modulo the negligible sampling error of [alg:rgd-ising-parallel], which we ignore for now). Since \(\tfrac{d\mu_{S,\tau}}{d\pi_{S,\tau}}(y) \propto e^{\psi(y)}\), where \(\psi(y) = R_{S,\tau}(y) - \langle \hat{h}, y\rangle\), 6 suggests that we can bound the TV error of [alg:parallel-ising-rejection-sampler] by controlling the sampling error of [alg:rgd-ising-parallel] and proving a subexponential tail bound for \(|\psi(\widetilde{U})-\psi(\widetilde{V})|\), where \(\widetilde{U},\widetilde{V} \stackrel{\mathrm{iid}}{\sim} \pi_{S,\tau}\), or equivalently, for \(|\psi(Y)-\mathbb{E}[\psi(Y)]|\) under \(Y \sim \pi_{S,\tau}\). Now, by 5 and 10, \(\pi_{S,\tau}\) satisfies \(\frac{4}{3}\)-ATE with high probability. Thus, 4 gives us the following concentration bound: \[\begin{align} \mathbb{P}_{Y \sim\pi_{S,\tau}}\left[|\psi(Y) - \mathbb{E}_{\pi_{S,\tau}}[\psi(Y)]|\right] \leq 2 \exp(-c \min\{\frac{t^2}{\mathbb{E}_{\pi_{S,\tau}}[\|\nabla \psi\|^2]}, \frac{t}{\max\limits_{y \in \{\pm 1\}^S} \|\nabla^2 \psi(y)\|_F} \}) \end{align}\] Since \(\|\nabla^2 \psi(y)\|^2_F = \|\nabla^2 R_{S,\tau}(y)\|_F \lesssim \mathfrak{C}(\beta) \cdot \tfrac{s^3}{n^2}\) holds whp uniformly for any \(S,\tau\) and \(y\) by 11. Hence, setting \(s = \Theta(n^{\frac{2}{3}})\) and \(\mathfrak{C}(\beta)\) sufficiently small, \(\max\limits_{y \in \{\pm 1\}^S} \|\nabla^2 \psi(y)\|_F \leq \delta\) for any \(\delta = O(1)\). To control \(\mathbb{E}_{\pi_{S,\tau}}[\|\nabla \psi\|^2]\), we note that: \[\begin{align} \label{eq:mean-decomposition} \mathbb{E}_{\pi_{S,\tau}}[\|\nabla \psi\|^2] = \| \;\hat{h} - \mathbb{E}_{\pi_{S,\tau}}[\nabla R_{S,\tau}] \;\|^2 + \mathbb{E}_{\pi_{S,\tau}}\left[\| \;\nabla R_{S,\tau} - \mathbb{E}[\nabla R_{S,\tau}] \;\|^2\right] \end{align}\tag{35}\] Using the Poincare Inequality for \(\pi_{S,\tau}\) and 11, the second term in 35 can be made \(O(\delta^2)\) for any \(\delta = O(1)\) by setting \(s=\Theta(n^{\frac{2}{3}})\) and \(\mathfrak{C}(\beta)\) sufficiently small. The centering field \(\hat{h}\) must be chosen so as to make the first term \(\|\hat{h} - \mathbb{E}_{\pi_{S,\tau}}[\nabla R_{S,\tau}]\|^2\) as small as possible. Since \(\pi_{S,\tau} = \nu_{A_{S,\tau},\, b_{S,\tau}+\hat{h}}\) where \(\nu_{J,v}(y) \propto \exp(\frac{1}{2}\langle y, Jy\rangle + \langle v, y\rangle),\) the optimal choice of \(\hat{h}\) is given by the solution to the following fixed point problem: \[\begin{align} \label{eq:centering-fixed-point} h = \mathbb{E}_{\nu_{A_{S,\tau},\, h + b_{S,\tau}}}[\nabla R_{S,\tau}]. \end{align}\tag{36}\]
As we shall demonstrate, 36 admits a unique solution which can be efficiently approximated by an inexact fixed point iteration, namely 1, which replaces the expectation in 36 by an empirical average over approximate samples drawn via RGD. In particular, we prove the following guarantee in 3.5
Theorem 13 (Analysis of 1). Conditioned on the event \(\mathcal{E}\), the output \(\hat{h}\) of 1 satisfies \(\|\hat{h} - \mathbb{E}_{\pi_{S,\tau}}[\nabla R_{S,\tau}]\| \leq \eta\) with probability at least \(1-\delta\). Moreover, 1 runs in \(O(\mathrm{polylog}(n, \eta^{-1}, \delta^{-1}))\) parallel time with \(O\bigl(\poly(\tfrac{n}{\eta},\ln(\frac{1}{\delta}))\bigr)\) work.
Proof. Recall that \(\pi_{S,\tau}(y) \propto \exp\bigl(\tfrac{1}{2}\langle y, A_{S,\tau} y\rangle + \langle b_{S,\tau} + \hat{h}, y\rangle\bigr)\) where \(\hat{h}\) is the output of 1. Let \((\widetilde{U}_\ell,\widetilde{V}_\ell)_{\ell \in [L]} \stackrel{\mathrm{iid}}{\sim} \pi_{S,\tau}\). Then, by 9, setting \(\varepsilon_{\mathrm{RGD}} = \Theta(\frac{\varepsilon_{\mathrm{step}}}{L})\) suffices to ensure the following: \[\begin{align} \label{eq:perfect-sampling-event} \mathbb{P}\bigl[(U_\ell,V_\ell) = (\widetilde{U}_\ell,\widetilde{V}_\ell)\;\forall \ell \leq L\bigr] \geq 1 - \tfrac{\varepsilon_{\mathrm{step}}}{100}. \end{align}\tag{37}\] Henceforth, condition on the above event, and treat \((U_\ell,V_\ell)\) as if they were exact i.i.d.samples from \(\pi_{S,\tau}\). Now, define \(\psi(y) = R_{S,\tau}(y) - \langle \hat{h}, y\rangle\). As discussed in 3.3, since we condition on the event \(\mathcal{E}\) that the bounds in 10 and 11 hold, the following holds for some universal constant \(\Delta = \Theta(1)\) by setting \(s= (n \Delta)^{\frac{2}{3}} \ln(\frac{1}{\varepsilon_{\mathrm{step}}})^{-\frac{2}{3}}\) and \(\mathfrak{C}(\beta) = O(1)\) sufficiently small. \[\begin{align} \max \limits_{y \in \{\pm 1\}^s} \|\nabla^2 \psi(y)\|_F^2 = \max \limits_{y \in \{\pm 1\}^s} \|\nabla^2 R_{S,\tau}(y)\|_F^2 \leq C_1 \frac{\mathfrak{C}(\beta)^2 s^3}{n^2} \leq \frac{\Delta^2}{\ln(\frac{1}{\varepsilon_{\mathrm{step}}})^2} \end{align}\]
By 13, setting \(\eta \leq \Delta/8\) and \(\delta = \frac{\varepsilon_{\mathrm{step}}}{100}\), \[\begin{align} \label{eq:centering-event} \mathbb{P}\Bigl[\bigl\|\hat{h} - \mathbb{E}_{\pi_{S,\tau}}[\nabla R_{S,\tau}]\bigr\| \leq \frac{\Delta}{8\ln(\frac{1}{\varepsilon_{\mathrm{step}}})} \Bigr] \geq 1 - \frac{\varepsilon_{\mathrm{step}}}{100}. \end{align}\tag{38}\] Henceforth, we condition on the above event as well. Now, \[\begin{align} \mathbb{E}_{\pi_{S,\tau}}\bigl[\|\nabla \psi\|^2\bigr] &= \bigl\|\hat{h} - \mathbb{E}_{\pi_{S,\tau}}[\nabla R_{S,\tau}]\bigr\|^2 + \mathbb{E}_{y \sim \pi_{S,\tau}}\Bigl[\bigl\|\nabla R_{S,\tau}(y) - \mathbb{E}_{\pi_{S,\tau}}[\nabla R_{S,\tau}]\bigr\|^2\Bigr] \\ &\leq \frac{\Delta^2}{64 \ln(\frac{1}{\varepsilon_{\mathrm{step}}})^2} + \sum_{i \in S} \mathsf{Var}_{\pi_{S,\tau}}[\partial_i R_{S,\tau}]. \end{align}\]
By 10 and 5, \(\pi_{S,\tau}\) satisfies ATE (and hence, PI) with constant \(\frac{4}{3}\). Hence, \[\begin{align} \sum_{i \in S} \mathsf{Var}_{\pi_{S,\tau}}[\partial_i R_{S,\tau}] \leq \tfrac{4}{3} \sum_{i \in S} \mathbb{E}_{\pi_{S,\tau}}\bigl[\|\nabla \partial_i R_{S,\tau}\|^2\bigr] = \tfrac{4}{3} \mathbb{E}_{\pi_{S,\tau}}\bigl[\|\nabla^2 R_{S,\tau}\|_F^2\bigr] \leq \tfrac{4 \Delta^2}{3 \ln(\frac{1}{\varepsilon_{\mathrm{step}}})^2} \end{align}\] Hence, \(\mathbb{E}_{\pi_{S,\tau}}\bigl[\|\nabla \psi\|^2\bigr] \leq \tfrac{2\Delta^2}{\ln(\frac{1}{\varepsilon_{\mathrm{step}}})^2}\). Since \(\pi_{S,\tau}\) satisfies ATE with constant \(\frac{4}{3}\), by 4, \[\begin{align} \mathbb{P}_{\pi_{S,\tau}}\Bigl[\bigl|\psi(Y) - \mathbb{E}_{\pi_{S,\tau}}[\psi]\bigr| \geq t\Bigr] \leq 2 \exp\Bigl(- C \min\bigl\{\frac{t^2 \ln(\frac{1}{\varepsilon_{\mathrm{step}}})^2}{\Delta^2}, \frac{t \ln(\frac{1}{\varepsilon_{\mathrm{step}}})}{\Delta}\bigr\}\Bigr). \end{align}\] Taking a union bound and choosing \(\Delta = \Theta(1)\) small enough, we obtain: \[\begin{align} \label{eq:rejection-sampling-tail-bound} \mathbb{P}_{\widetilde{U},\widetilde{V} \sim \pi_{S,\tau}} \Bigl[\bigl|\psi(\widetilde{U}) - \psi(\widetilde{V})\bigr| \geq t\Bigr] \leq 4e^{-2t\ln(\frac{1}{\varepsilon_{\mathrm{step}}})}. \end{align}\tag{39}\]
Now consider the parallel rejection sampling step in [alg:parallel-ising-rejection-sampler]. By 6, setting \(L = \Theta(\Bar{c} \ln(\frac{1}{\varepsilon_{\mathrm{step}}}))\), we conclude the following: \[\begin{align} \label{eq:accept-event} \mathbb{P}[\text{at least one of the L parallel trials is accepted}] \geq 1 - \Bigl(1 - \tfrac{1}{2\Bar{c}}\Bigr)^L \geq 1 - \tfrac{\varepsilon_{\mathrm{step}}}{100}. \end{align}\tag{40}\] Henceforth, we condition on the event above. Now, let \(\widetilde{\mu}_{S,\tau}\) denote the conditional law of the first accepted sample among the \(L\) parallel rejection sampling trials. Then, by 6, setting \(\Bar{c} = \Theta(1)\) yields the following: \[\begin{align} \label{eq:conditional-tv-bound} d_{\mathsf{TV}}(\widetilde{\mu}_{S,\tau}, \mu_{S,\tau}) \leq 4 \bar{c}^{-\ln(\frac{1}{\varepsilon_{\mathrm{step}}})} \leq \tfrac{\varepsilon_{\mathrm{step}}}{100} \end{align}\tag{41}\] To conclude, let \(\hat{\mu}_{S,\tau}\) denote the law of the output of [alg:parallel-ising-rejection-sampler]. From 41 , 40 , 38 and 37 , we conclude the following after taking the appropriate union bounds. \[\begin{align} d_{\mathsf{TV}}\bigl(\hat{\mu}_{S,\tau}, \mu_{S,\tau}\bigr) \leq \varepsilon_{\mathrm{step}}. \end{align}\] It remains to analyze the parallel runtime of [alg:parallel-ising-rejection-sampler]. Note that [alg:parallel-ising-rejection-sampler] involves one call to 1, which has parallel runtime \(O(\mathsf{polylog}(\frac{n}{\varepsilon_{\mathrm{step}}}))\) with \(O(\mathsf{poly}(n,\ln(1/\varepsilon_{\mathrm{step}})))\) work as per 13; and \(L = \Theta(\ln(\frac{1}{\varepsilon_{\mathrm{step}}}))\) parallel calls to [alg:rgd-ising-parallel], each of which requires \(\mathsf{polylog}(n/\varepsilon_{\mathrm{step}})\) parallel time with \(\mathsf{poly}(n, \ln(\frac{1}{\varepsilon_{\mathrm{step}}}))\) work as per 9. Thus, [alg:parallel-ising-rejection-sampler] exhibits a parallel runtime \(O(\mathsf{polylog}(n/\varepsilon_{\mathrm{step}}))\) using \(\mathsf{poly}(n, \ln(\frac{1}{\varepsilon_{\mathrm{step}}}))\) work. ◻
Proof. Let \(\mu_t = \mathsf{Law}(X^{(t)})\). Since \(\mu_0(x) \propto \exp(\langle h,x\rangle)\), by Lemma 5.5 of [14], \[\begin{align} \mathbb{P}\bigl[D_\mathsf{KL}\left(\mu_0 \ || \ \mu\right) \leq Cn\bigr] \geq 1 - \exp(-cn). \end{align}\] Let \(\mathcal{G} = \mathcal{E} \cap \bigl\{D_\mathsf{KL}\left(\mu_0 \ || \ \mu\right) \leq Cn\bigr\}\). Then, \(\mathbb{P}[\mathcal{G}] \geq 1 - e^{-cn}\), and henceforth, we condition on \(\mathcal{G}\).
Let \(P_s\) and \(\widetilde{P}_s\) denote the Markov kernel for \(s\)-Glauber dynamics and the Markov chain in [alg:parallel-p-spin-sampler] respectively. By 12, for \(s = \Theta((\tfrac{n}{\log(\frac{n}{\varepsilon})})^{\frac{2}{3}})\), \[\begin{align} \max_{x \in \{\pm 1\}^n} d_{\mathsf{TV}}\bigl(P_s(x,\cdot), \widetilde{P}_s(x,\cdot)\bigr) \leq \varepsilon_{\mathrm{step}} = \tfrac{\varepsilon}{10T}. \end{align}\] Hence, \[\begin{align} d_{\mathsf{TV}}\bigl(\mu_T, \mu_0 P_s^T\bigr) \leq T \varepsilon_{\mathrm{step}} \leq \tfrac{\varepsilon}{10}. \end{align}\]
By 8, the following holds with probability \(1 - e^{-cn}\): \[\begin{align} D_\mathsf{KL}\left(\mu_0 P_s^T \ || \ \mu\right) \leq \exp\bigl(-\tfrac{csT}{n}\bigr)\, Cn \leq \exp\left(-\frac{cT}{n^{\frac{1}{3}} \log(\frac{n}{\varepsilon})^{\frac{2}{3}}}\right)\, Cn. \end{align}\] Setting \(T = \Theta(n^{\frac{1}{3}} \log(\frac{n}{\varepsilon})^{\frac{5}{3}})\), applying Pinsker’s inequality and taking appropriate union bounds, we conclude that the following holds with probability at least \(1-\exp(-cn)\): \[\begin{align} d_{\mathsf{TV}}(\mu_T,\mu) \leq d_{\mathsf{TV}}\bigl(\mu_T,\mu_0 P_s^T\bigr) + d_{\mathsf{TV}}\bigl(\mu_0 P_s^T,\mu\bigr) \leq \tfrac{\varepsilon}{10} + \tfrac{\varepsilon}{2} \leq \varepsilon. \end{align}\]
To compute the parallel runtime, note that [alg:parallel-p-spin-sampler] makes \(T\) calls to [alg:parallel-ising-rejection-sampler] each of which has parallel runtime \(O(\mathsf{polylog}(n/\varepsilon))\) with \(O(\mathsf{poly}(n/\varepsilon))\) processors as per 12. Hence, [alg:parallel-p-spin-sampler] exhibits a parallel runtime of \(O(n^{1/3}\mathsf{polylog}(n/\varepsilon))\) with \(O(\mathsf{poly}(n/\varepsilon))\) processors. ◻
For any choice of \((S,\tau)\), define the measure \(\gamma_z\) on \(\{\pm 1\}^s\) as \(\gamma_z(y) \propto \exp\Bigl(\tfrac{1}{2}\langle y, A_{S,\tau} y\rangle + \langle b_{S,\tau} + z, y\rangle\Bigr).\) Since we condition on the event \(\mathcal{E}\), \(\|A_{S,\tau}\|_{\mathsf{op}} \leq \tfrac{1}{4}\). Thus, by 5, \(\gamma_z\) satisfies LSI with constant \(4/3\) for any \(z \in \mathbb{R}^s\). Moreover, setting \(s = O(n^{2/3})\) and \(\mathfrak{C}(\beta) = O(1)\) sufficiently small, one can set \(\sup_{y \in \{\pm 1\}^s} \|\nabla^2 R_{S,\tau}(y)\|_F \leq \tfrac{1}{100}.\) Now, define \(F : \mathbb{R}^s \to \mathbb{R}^s\) as follows: \[\begin{align} F(z) = \mathbb{E}_{\gamma_z}\bigl[\nabla R_{S,\tau}(y)\bigr] = \frac{\sum_{y \in \{\pm 1\}^s} \nabla R_{S,\tau}(y)\exp\bigl(\tfrac{1}{2}\langle y, A_{S,\tau} y\rangle + \langle b_{S,\tau}+z, y\rangle\bigr)}{\sum_{y \in \{\pm 1\}^s} \exp\bigl(\tfrac{1}{2}\langle y, A_{S,\tau} y\rangle + \langle b_{S,\tau}+z, y\rangle\bigr)}. \end{align}\] Taking derivatives with respect to \(z\) and rearranging terms, \[\begin{align} \nabla F(z) = \mathbb{E}_{\gamma_z}\bigl[\nabla R_{S,\tau}(y) y^\top\bigr] - \mathbb{E}_{\gamma_z}\bigl[\nabla R_{S,\tau}(y)\bigr]\mathbb{E}_{\gamma_z}\bigl[y^\top\bigr]. \end{align}\] Consider any unit vectors \(u,v \in \mathbb{R}^s\). Then, by Cauchy–Schwarz and the Poincaré inequality for \(\gamma_z\), \[\begin{align} u^\top \nabla F(z) v = \mathrm{Cov}_{\gamma_z}\bigl(\langle u,\nabla R_{S,\tau}\rangle,\langle v,y\rangle\bigr) \leq \sqrt{ \mathrm{Var}_{\gamma_z}\bigl[\langle u,\nabla R_{S,\tau}\rangle\bigr] \mathrm{Var}_{\gamma_z}\bigl[\langle v,y\rangle\bigr] } \leq \frac{4}{3} \sqrt{ \mathbb{E}_{\gamma_z}\bigl[\langle u,\nabla^2 R_{S,\tau}(y)u\rangle\bigr] } < \frac{1}{4}. \end{align}\] Since \(\|\nabla F(z)\|_{\mathsf{op}} < \tfrac{1}{4}\), by the Banach fixed point theorem, there exists a unique \(h^*\) satisfying the following fixed point iteration: \[\begin{align} h^* = F(h^*) = \mathbb{E}_{\gamma_{h^*}}\bigl[\nabla R_{S,\tau}(y)\bigr]. \end{align}\]
Recall that for \(t \in \{0,\ldots,T-1\}\), \(z_{t+1} = \frac{1}{K}\sum_{i=1}^K \nabla R_{S,\tau}\bigl(U_i^{(t)}\bigr),\) where \(U_i^{(t)} = \mathrm{RGD}\Bigl(A_{S,\tau},\, b_{S,\tau}+z_t,\, \tfrac{\delta}{100KT}\Bigr).\) Thus, by 9, there exist \(Y_i^{(t)} \stackrel{\mathrm{iid}}{\sim} \gamma_{z_t}\) such that the following holds with probability at least \(1-\delta\): \[\begin{align} U_i^{(t)} = Y_i^{(t)} \qquad \forall\, t<T,\;i \in [K]. \end{align}\] Henceforth, we condition on this event, so that \(z_{t+1} = \tfrac{1}{K}\sum_{i=1}^K \nabla R_{S,\tau}\bigl(Y_i^{(t)}\bigr)\). Since \(\|\nabla^2 R_{S,\tau}\|_F \leq \tfrac{1}{100}\) and \(\gamma_{z_t}\) satisfies LSI with constant \(4/3\), the following holds by Theorem C and a union bound over \(j \in S\): \[\begin{align} \mathbb{P}\Bigl[ \Bigl\| \frac{1}{K}\sum_{i=1}^K \nabla R_{S,\tau}\bigl(Y_i^{(t)}\bigr) - \mathbb{E}_{\gamma_{z_t}}\bigl[\nabla R_{S,\tau}\bigr] \Bigr\| \geq u \Bigr] \leq 2s e^{-cKu^2/s}. \end{align}\] Setting \(u = \frac{3\eta}{16\sqrt{s}}, K = \Theta\bigl(s\eta^{-2}\ln(sT/\delta)\bigr),\) and taking a union bound over \(t<T\), we conclude that the following holds with probability at least \(1-\delta/2\): \[\begin{align} \|z_{t+1} - F(z_t)\| \leq \frac{3\eta}{16} \qquad \forall\, t<T. \end{align}\]
Let \(\Delta_t = \|z_t - h^*\|.\) Since \(F(h^*) = h^*\) and \(F\) is \(1/4\)-Lipschitz, \[\begin{align} \Delta_{t+1} = \|z_{t+1} - h^*\| = \|z_{t+1} - F(z_t) + F(z_t) - F(h^*)\| \leq \frac{1}{4}\Delta_t + \frac{3\eta}{16}. \end{align}\] Unrolling the recurrence, \[\begin{align} \Delta_T \leq 4^{-T}\Delta_0 + \frac{\eta}{4}. \end{align}\] Since \(z_0 = 0\) and \(\|\nabla R_{S,\tau}\|_\infty \leq n^{\Theta(1)}\) when conditioned on the event \(\mathcal{E}\), \[\begin{align} \|\Delta_0\| = \|h^*\| = \|F(h^*)\| = \Bigl\| \mathbb{E}_{\gamma_{h^*}}\bigl[\nabla R_{S,\tau}\bigr] \Bigr\| \leq n^{\Theta(1)}. \end{align}\] Setting \(T = \Theta\bigl(\ln(n/\eta)\bigr)\) suffices to ensure \(\Delta_T \leq \frac{\eta}{2}.\). Finally, since \(\hat{h} = z_T\), we have \(\|\hat{h} - h^*\| \leq \frac{\eta}{2}\) which then implies the following: \[\begin{align} \Bigl\| \hat{h} - \mathbb{E}_{\pi_{S,\tau}}\bigl[\nabla R_{S,\tau}\bigr] \Bigr\| = \Bigl\| \hat{h} - \mathbb{E}_{\gamma_{\hat{h}}}\bigl[\nabla R_{S,\tau}\bigr] \Bigr\| = \|\hat{h} - F(\hat{h})\| \leq \|\hat{h} - h^*\| + \|F(\hat{h}) - F(h^*)\| \leq \eta. \end{align}\] To analyze the parallel runtime and work, note that 1 runs for \(T\) iterations and each iteration performs \(K\) parallel calls to [alg:rgd-ising-parallel] with error tolerance \(\tfrac{\delta}{100KT}\). Hence, by Theorem 9, 1 has a parallel runtime of \(O(\mathrm{polylog}(n, \eta^{-1}, \delta^{-1}))\) with \(O\bigl(\poly(\tfrac{n}{\eta},\ln(\frac{1}{\delta}))\bigr)\) work.
In this section, we prove that Picard Algorithmic Stochastic Localization ([alg:picard-asl]) samples from the mixed \(p\)-spin model with Wasserstein guarantees.
We first illustrate our results for the SK model, a special case of the \(p\)-spin model, because the analysis is simpler and the calculations are closely related. Moreover, for the SK model, we obtain a parallelization result for a broader range of temperatures than the best previous parallel algorithm of [15].
The TAP-AMP mean-estimation algorithm for the SK model ([alg:mean-of-tilted-gibbs-measure-sk]) is slightly different from that for the mixed \(p\)-spin model, but it uses the same AMP iterations followed by NGD iterations. We prove that the TAP-AMP algorithms proposed in prior work for computing mean approximations in the SK and mixed \(p\)-spin models, [alg:mean-of-tilted-gibbs-measure-sk] and [alg:tap-amp], are Lipschitz with respect to the external field and \(\widetilde{O}(1)\) parallel computable. This enables us to apply Picard iteration to the steps of algorithmic stochastic localization 5 , yielding a parallel speedup.
For the rest of the section, we first present an improved parameter dependence for algorithmic stochastic localization in 4.1. Then, using the improved parameters, we prove the parallelization result for algorithmic stochastic localization in 4.2, relying on the following two results:
The TAP-AMP mean approximations are executable in \(\widetilde{O}(1)\) parallel time (4.3).
The TAP-AMP mean approximations are Lipschitz (4.4).
[12], [21] provide Wasserstein guarantees for algorithmic stochastic localization using TAP fixed points as mean approximations. Their analysis controls the propagation of the mean-estimation error along the discretized stochastic localization trajectory. They obtain an \(\varepsilon\) upper bound in normalized Wasserstein distance between the output of the sampling algorithm and the target distribution by using \(\exp(\poly(1/\varepsilon))\) discrete steps to run the stochastic localization up to a time horizon \(\poly(1/\varepsilon)\).
For \(\varepsilon_n < \varepsilon\), [12], [21] provide algorithmic stochastic localization for a time horizon \(\poly(1/\varepsilon)\) with \(\exp(\poly(1/\varepsilon))\) discretization steps.
Proof. We defer the proof to the appendix, see 8. ◻
In this work, in addition to the Picard parallelization and Lipschitz analysis, we improve the dependence of the discretization step size and the time horizon in stochastic localization on the parameter \(\varepsilon\) by analyzing sign rounding for algorithmic stochastic localization.
Theorem 14. For any \(n\), there exists a value \(\varepsilon_n\) such that, for any \(\varepsilon > \varepsilon_n\) and any high-temperature mixed \(p\)-spin model with Hamiltonian \(H_n\) and no external field, there is an algorithm based on algorithmic stochastic localization using TAP-AMP mean approximations ([alg:mean-of-tilted-gibbs-measure-sk] and [alg:tap-amp]) whose output is within \(\varepsilon\) of the target distribution in normalized Wasserstein distance with probability \(1 - o(1)\) over the disorder.
Moreover, the algorithmic stochastic localization procedure uses a discretization step of size \(\delta\) and time horizon \(t\) satisfying \[\delta = \poly(\varepsilon), \qquad t = {O}(\log(1/\varepsilon)).\] The output of the algorithm is generated by sign rounding, namely \(\sign{\hat{{y}}_t}\), where \(\hat{{y}}_t\) is the output of the discrete algorithmic stochastic localization process at time \(t\). Furthermore, if \({y}_t\) denotes the true stochastic localization process, then \[W_{2,n}({y}_t,\hat{{y}}_t) \leq O(\varepsilon).\]
Proof. We sketch the proof here; see 5 for the full proof. Let \({y}_t\) denote the true stochastic localization process at time \(t\). Then \({y}_t\) satisfies the distributional identity \[{y}_t/t \sim x^* + B_t/t,\] where \(x^* \sim \mu\) and \(B_t/t \sim \mathcal{N}(0, I/t)\) due to the characterization by 6.
Consider the sign-rounding procedure applied to \({y}_t\). Due to 1, we have \[W_{2,n}(\sign{{y}_t}, \mu) \leq O(\exp(-t/2)).\] Therefore, choosing \(t = O(\log(1/\varepsilon))\) makes the rounding error of the true stochastic localization trajectory at most \(\poly(\varepsilon)\).
Using the error-propagation analysis of [12], [21], one can show that the approximate trajectory \(\hat{{y}}_t\), obtained using TAP fixed points as mean approximations, satisfies \[W_{2,n}({y}_t,\hat{{y}}_t) \leq \varepsilon,\] with discretization step size polynomial in \(\varepsilon\) and time horizon \(t = {O}(\log(1/\varepsilon))\). Finally, applying the stability of sign rounding, as in 2, transfers this trajectory-level approximation to the desired normalized Wasserstein guarantee for the output distribution. ◻
In [12], [21], the authors prove that there exists a sequence \(\varepsilon_n \to 0\) such that Algorithmic Stochastic Localization outputs a distribution whose normalized Wasserstein distance from the target measure is at most \(\varepsilon_n\). Their guarantee and analysis are asymptotic, and the precise non-asymptotic dependence of \(\varepsilon_n\) on \(n\) is left implicit.
They show that the error accumulated by the TAP-AMP mean approximation up to a certain time horizon can be controlled. Combining this propagated-error bound with 2 yields a normalized Wasserstein guarantee.
For this work, let \(\varepsilon_n\) be the smallest value such that \[W_{2,n}\!\left( \hat{y}_{\log(1/\varepsilon_n)}, y_{\log(1/\varepsilon_n)} \right) \leq \varepsilon_n,\] where \(\hat{y}_t\) is generated by the implementation of Algorithmic Stochastic Localization using TAP-AMP mean estimates, with discretization step size \(\delta=\operatorname{poly}(\varepsilon_n)\). Also, take \(T_n = O(\log(\frac{1}{\varepsilon_n}))\) as the time horizon where the error between the TAP fixed point and the true mean can be upper bounded by \(\poly(\varepsilon_n)\).
In this section, we analyze the parallelization result for algorithmic stochastic localization using Picard iteration. The Picard iterations produce a trajectory that is close, in Wasserstein distance, to the true solution of the discrete stochastic localization process using the TAP-AMP mean approximation. This discrete process is itself close to the true continuous-time stochastic localization process by 14. Therefore, by the triangle inequality for Wasserstein distance, the input to the rounding step is close to the output of the true stochastic localization process.
However, in our proposed algorithm ([alg:picard-asl]), the final output is obtained by applying the sign function. It is not immediate that small Wasserstein distance before rounding implies small Wasserstein distance after rounding. Indeed, if two coordinates are both close to zero but have opposite signs, applying the sign function can amplify their discrepancy. To address this issue, we use the stability result for sign rounding in 2. This lemma shows that once the Picard trajectory is sufficiently close to the true stochastic localization trajectory, the corresponding sign-rounded outputs remain close in normalized Wasserstein distance.
We present our results for the SK model and the mixed \(p\)-spin model separately. For the SK model, the Gibbs measure is defined by \[\mu_A(x) \propto \exp\left(\frac{\beta}{2}\langle x,Ax\rangle\right),\] where \(A \sim \mathrm{GOE}(n)\). Here \(\mathrm{GOE}(n)\) denotes the distribution over symmetric matrices whose entries are Gaussian with variance of order \(1/n\). Although the proof structure is nearly the same, we separate the two cases because, for the SK model, we obtain a parallel sampling algorithm in a temperature regime not covered by previous parallel algorithms. The analysis for the SK model yields the threshold \(\beta_0 \approx 0.3753\) for Lipschitzness and parallelization, improving on the \(\beta < 1/4\) threshold at which the previous \(\mathrm{polylog}(n)\)-depth algorithm for sampling from the SK model applies [15]. However, unlike the algorithm of [15], our low-accuracy algorithm cannot achieve arbitrarily small error.
Theorem 15 (SK Model Parallelization). For any \(\varepsilon \geq \varepsilon_n\) and inverse temperature \(\beta < \beta_0 \approx 0.3753\), there exist parameters (14) \[\eta, K_{\mathrm{AMP}}, K_{\mathrm{NGD}} = \mathrm{polylog}(n/\varepsilon),\qquad K = \poly(1/\varepsilon), \qquad \delta = \poly(\varepsilon), \qquad t = K\delta = O(\log(1/\varepsilon))\] such that the following holds. Let \(R = {O}(\frac{\log^2(1/\varepsilon)}{\beta_0 - \beta})\), and execute [alg:picard-asl] on a Hamiltonian of the form \[H_n(x) = x^\top {A}x\] using TAP-AMP ([alg:mean-of-tilted-gibbs-measure-sk]) as the approximate mean function \(\hat{m}\) with parameters \((\eta, K_{\mathrm{AMP}}, K_{\mathrm{NGD}}, K, \delta)\).
Then [alg:picard-asl] outputs a random point \(\mathbf{x}^{\mathrm{alg}} \in \{-1,+1\}^n\) with law \(\mu_{\mathbf{A}}^{\mathrm{alg}}\) such that, with probability \(1-o(1)\) over \(\mathbf{A} \sim \mathrm{GOE}(n)\), \[W_{2,n}(\mu_{\mathbf{A}}^{\mathrm{alg}}, \mu_{\mathbf{A}}) \leq O(\varepsilon). \label{eq:wasserstein-error-of-p-spin}\qquad{(1)}\] The parallel runtime of the algorithm is \[\poly(\log(n/\varepsilon)),\] and its total work is \(\poly(n/\varepsilon)\).
Proof. First, we argue that with the suitable choice of parameters, the output of [alg:picard-asl] is close in Wasserstein distance to the output of the sequential algorithmic stochastic localization process 3 . Then we prove that with the parameter choices, the algorithm runs in \(\poly(\log(n/\varepsilon))\) parallel time.
Since the Brownian motions are sampled and fixed throughout the Picard iteration, [alg:picard-asl] can be viewed as a differential equation of the form in 10 , where the drift function is the mean-computation function \(\hat{m}\).
By 1, the approximate mean TAP-AMP, i.e. \(\hat{m}\), given by [alg:mean-of-tilted-gibbs-measure-sk], is \(O(1/(\beta_0-\beta))\)-Lipschitz with respect to the tilt, with high probability over the disorder. Hence, we can apply the Picard convergence theorem 3 to obtain fast convergence of the Picard iteration.
The Picard iteration is initialized with \(\hat{{y}}_{i\delta}^{(0)}=\boldsymbol{0}\) for \(0 \leq i \leq K\). Let \[M = \max_{0 \leq i \leq K} \left\| \hat{{y}}_{i\delta}^* - \hat{{y}}_{i\delta}^{(1)} \right\|,\] where \(\hat{{y}}_{i\delta}^*\) denotes the true sequential solution of the discrete stochastic localization equation at time \(i\delta\). After one Picard iteration, \[\left\| \hat{{y}}_{i\delta}^{(1)} - \hat{{y}}_{i\delta}^* \right\| = \left\| \sum_{\ell=0}^{i-1} \delta \Bigl( \hat{{m}}(H_n,{0}) - \hat{{m}}(H_n,\hat{{y}}_{\ell\delta}^*) \Bigr) \right\| \leq \delta i \sqrt{n}.\] Since \(i\delta \leq K\delta = t = {O}(\log(1/\varepsilon))\), this gives the uniform bound \[M \leq {O}\bigl(\sqrt{n}\log(1/\varepsilon)\bigr).\]
By the exponential convergence of the Picard iterations 3, we have \[\left\| \hat{{y}}_{K\delta}^{(R)} - \hat{{y}}_{K\delta}^* \right\| \leq \sqrt{n} \frac{ \left(\frac{K\delta}{\beta_0-\beta}\right)^R }{R!}.\] Since \(t=K\delta={O}(\log(1/\varepsilon))\), taking \[R \geq \Omega\left( \frac{K\delta \log(1/\varepsilon)}{\beta_0-\beta} \right) = {\Omega}\left( \frac{\log^2(1/\varepsilon)}{\beta_0-\beta} \right)\] implies \[\left\| \hat{{y}}_{K\delta}^{(R)} - \hat{{y}}_{K\delta}^* \right\| \leq \sqrt{n}\,\poly(\varepsilon).\] Consequently, \[W_{2,n} \left( \hat{{y}}_{K\delta}^{(R)}/t, \hat{{y}}_{K\delta}^*/t \right) \leq \poly(\varepsilon).\]
We now use 2 to bound the normalized \(\ell_2\) Wasserstein distance between the rounded output of the algorithm and the target distribution. Let \({y}_t\) denote the true continuous-time stochastic localization process at time \(t=K\delta\), and let \(\mu_{{A}}\) denote the target distribution. By the triangle inequality, \[W_{2,n} \left( \hat{{y}}_{K\delta}^{(R)}/t, {y}_t/t \right) \leq W_{2,n} \left( \hat{{y}}_{K\delta}^{(R)}/t, \hat{{y}}_{K\delta}^*/t \right) + W_{2,n} \left( \hat{{y}}_{K\delta}^*/t, {y}_t/t \right) \leq \varepsilon+\poly(\varepsilon).\] Here, \(W_{2,n} \left( \hat{{y}}_{K\delta}^*/t, {y}_t/t \right) \leq \varepsilon\) holds with probability \(1 - o(1)\) according to 14. Applying 2 with \[\Delta = W_{2,n} \left( \hat{{y}}_{K\delta}^{(R)}/t, {y}_t/t \right) \leq \varepsilon+\poly(\varepsilon),\] we obtain \[W_{2,n} \bigl( \sign{\hat{{y}}_{K\delta}^{(R)}}, \mu_{\boldsymbol{A}} \bigr) \leq 4(\varepsilon+\poly(\varepsilon)) + e^{-\Omega(t)} = 4\varepsilon+\poly(\varepsilon) = O(\varepsilon).\]
Thus, the normalized Wasserstein distance between the output of the parallel algorithm and the target distribution is bounded by \(O(\varepsilon)\). The stated parallel runtime and total work follow from the parameter choices above and the runtime of the parallel Picard implementation, given the \(\poly(\log(n/\varepsilon))\) parallel runtime for the TAP-AMP mean-approximation algorithm ([prop:log-n-evaluation-of-mean]). ◻
Theorem 16 (\(p\)-spin Model Parallelization). For any \(\varepsilon \geq \varepsilon_n\) and temperature coefficients \(\{\beta_p\}_{p \geq 2}\) satisfying \[\mathfrak{C}(\beta) \coloneq \sum_{p=2}^{P} \beta_p \sqrt{p^3 \ln(p)} < \gamma_0 \qquad \mathfrak{D}(\beta) = \sum_{p=2}^{P} \beta_p \sqrt{2^p p^3 \ln(p)} < \infty\] there exist parameters (14) \[\eta, K_{\mathrm{AMP}}, K_{\mathrm{NGD}}, K = \poly(1/\varepsilon), \qquad \delta = \poly(\varepsilon), \qquad t = K\delta = {O}(\log(1/\varepsilon)),\] such that the following holds. Let \(R = {O}_{\mathfrak{C}(\beta)}\bigl(\log^2(1/\varepsilon)\bigr)\) be the number of Picard iterations. Given query access to the \(p\)-spin Hamiltonian as defined in 1 , [alg:picard-asl], run with parameters \((\eta, K_{\mathrm{AMP}}, K_{\mathrm{NGD}}, K, \delta)\), outputs a random point \(\mathbf{x}^{\mathrm{alg}} \in \{-1,+1\}^n\) with law \(\mu_{H_n}^{\mathrm{alg}}\) such that, with probability \(1-o(1)\) over the Gaussian coefficients \(\{g_J\}_{J \subseteq [n]}\), \[W_{2,n}(\mu_{H_n}^{\mathrm{alg}}, \mu_{H_n}) \leq O(\varepsilon).\]
Here, \(\varepsilon\) is the error incurred by the sequential algorithm in 14, while \(\poly(\varepsilon)\) is the additional error incurred by replacing the sequential updates with Picard iteration.
The parallel runtime of the algorithm is \(\poly(\log(n/\varepsilon))\) and its total work is \(\poly(n,1/\varepsilon)\).
Proof. The proof follows the same argument as the SK case 15; we give only the brief sketch.
Fix the Brownian increments used by [alg:picard-asl]. With these increments fixed, the algorithm can be viewed as a discrete differential equation whose drift is given by the approximate mean map \(\hat{m}\). Since the temperature condition holds, 2 implies that the TAP-AMP mean approximation is Lipschitz with respect to the external field with high probability over the disorder. Then 3, with the same initialization as in the SK case, implies that the Picard trajectory contracts to the discrete stochastic localization trajectory up to error \(\sqrt{n}\,\poly(\varepsilon)\). Hence, after normalization, \[W_{2,n}(\hat{y}_{K\delta}^{(R)}/t,\hat{y}_{K\delta}^*/t) \leq \poly(\varepsilon).\]
The sequential stochastic localization guarantee from 14 contributes the \(O(\varepsilon)\) error. Combining this with the Picard error, the triangle inequality gives \[W_{2,n}(\hat{y}_{K\delta}^{(R)}/t,{y}_t/t) \leq W_{2,n}(\hat{y}_{t}^{(R)}/t,\hat{y}^{*}_t/t) + W_{2,n}(\hat{y}_{t}^{*}/t,{y}_t/t) \leq O(\varepsilon)+\poly(\varepsilon).\] Finally, applying the stability rounding lemma (2), we have \[W_{2,n}(\mu_{H_n}^{\mathrm{alg}},\mu_{H_n}) \leq O(\varepsilon)+\poly(\varepsilon) = O(\varepsilon).\]
The stated parallel runtime and total work follow from the parameter choices above and the runtime of the parallel Picard implementation, given the \(\poly(\log(n/\varepsilon))\) parallel runtime for the TAP-AMP mean-approximation algorithm ([prop:log-n-evaluation-of-mean]). ◻
The TAP-AMP mean-approximations can be computed in \(\mathrm{polylog}(n/\varepsilon)\) parallel depth. The TAP-AMP algorithms [alg:mean-of-tilted-gibbs-measure-sk] and [alg:tap-amp] consist of AMP iterations followed by NGD iterations. Each individual AMP or NGD iteration is computable in parallel with depth \(O(\log n)\); thus, it suffices to prove \(\widetilde{O}(1)\) bounds on the numbers of AMP and NGD iterations. Since this proof is rather involved and does not affect the rest of the argument, we give only a brief sketch here and defer the details to the appendix; see 6.
The mean-approximation algorithms [alg:mean-of-tilted-gibbs-measure-sk] and [alg:tap-amp] are computable with parallel depth \(\mathrm{polylog}(n/\varepsilon)\), given query access to the mixed \(p\)-spin Hamiltonian and the parameter choices specified in 14 for attaining normalized Wasserstein error \(\varepsilon\).
Proof. We give a proof sketch here and defer the full proof to 6. The mean-approximation algorithms consist of two phases: AMP iterations followed by NGD iterations. Each AMP iteration is computable in \(\widetilde{O}(1)\) parallel depth. Thus, the parallel depth of the AMP phase is controlled by the parameter \(K_{\mathrm{AMP}}\), for which we give an explicit bound in the full proof.
For the NGD phase, given gradient-query access to the Hamiltonian, the parallel depth is controlled by the number of NGD iterations. In the full proof, we show that this number is at most \(\mathrm{polylog}(n)\). ◻
In this section, we prove that, for the SK model at high temperature \(\beta < \beta_0 \approx 0.3753\), the TAP-AMP algorithm ([alg:mean-of-tilted-gibbs-measure-sk]) for mean approximation is \(O\!\left(\frac{1}{\beta_0-\beta}\right)\)-Lipschitz with respect to the tilt parameter, or external field, with high probability. We provide an analogous result for the mixed \(p\)-spin model in 7.
Input: Data \({A} \in \mathbb{R}^{n \times n}\), \({y} \in \mathbb{R}^n\), parameters \(\beta, \eta > 0\), \(q \in (0, 1)\), iteration numbers \(K_{\text{AMP}}, K_{\text{NGD}}\) \({{m}}_{-1} = {z}_0 = 0\) \({u}^0 = {z}_{K_{\text{AMP}}}\) return \({{m}}^{+}_{K_{\text{NGD}}}\)
[alg:mean-of-tilted-gibbs-measure-sk] consists of two phases: it first uses AMP iterations attempting to get close to the fixed point of the TAP iteration, and then it uses an NGD algorithm to close the gap to the fixed point as much as needed. Here, we will take a closer look at the two phases of [alg:mean-of-tilted-gibbs-measure-sk].
In the first phase, initialize \[m_{-1}=0,\qquad z_0=0,\] and for \(k=0,1,\dots,K_{\mathrm{AMP}}-1\) define \[\begin{align} m_k &= \tanh(z_k), \tag{42}\\ b_k &= \frac{\beta^2}{n}\sum_{i\in[n]}\mathop{\mathrm{sech}}^{2}\!\bigl((z_k)_i\bigr), \tag{43}\\ z_{k+1} &= \beta A m_k + y - b_k\, m_{k-1}. \tag{44} \end{align}\]
Initialize \(u_0 := z_{K_{\mathrm{AMP}}}\). For \(t=0,1,\dots,K_{\mathrm{NGD}}-1\) define \[\begin{align} m_t^+ &= \tanh(u_t), \tag{45}\\ u_{t+1} &= u_t - \eta \,\nabla_m \hat{\mathscr{F}}_{\mathrm{TAP}}(m_t^+;y,q). \tag{46} \end{align}\] The algorithm outputs \[\hat{m}(A,y) := m_{K_{\mathrm{NGD}}}^+ = \tanh(u_{K_{\mathrm{NGD}}}).\]
Definition 4. For a given external field \(y \in \mathbb{R}^n\) and interaction matrix \(A \in \mathbb{R}^{n \times n}\), let \(\hat{m}_{(K_{\text{AMP}}, K_{\text{NGD}})}(A, y)\) be the output of the algorithm after running the AMP iteration for \(K_{\text{AMP}}\) steps and then running NGD for \(K_{\text{NGD}}\) steps. We refer to \(\hat{m}(y)\) as the tilted-mean computation for the external field \(y\) whenever \(A\), \(K_{\text{AMP}}\), and \(K_{\text{NGD}}\) are clear from the context.
Our goal in this section is to find the temperature \(\beta(A) = \beta(\left\lVert A \right\rVert_{\mathrm{op}})\) such that, for any two tilts \(y\) and \(\widetilde{y}\), the TAP fixed point of the Ising model with interaction matrix \(A\) and temperature \(\beta\) satisfies \[\|\hat{m}_{(K_{\mathrm{AMP}}, K_{\mathrm{NGD}})}(A, y) - \hat{m}_{(K_{\mathrm{AMP}}, K_{\mathrm{NGD}})}(A, \widetilde{y})\| \leq \frac{\gamma({A})}{\beta({A}) - \beta}\norm{y-\widetilde{y}}.\] Note that if the matrix \(A\) is sampled from the \(\mathrm{GOE}(n)\) distribution, then its maximum eigenvalue concentrates around \(2\); thus, if we have inverse temperature \(\beta\) satisfying \(\gamma(2,\beta)< 1\), then we have the Lipschitz property for the TAP-AMP mean approximation \(\hat{m}\) with high probability.
To prove the Lipschitz property of the mean-approximation algorithm ([alg:mean-of-tilted-gibbs-measure-sk]), we will use the Lipschitz property of the following two functions:
\(\tanh\) is \(1\)-Lipschitz (4).
\(\mathop{\mathrm{sech}}^{2}\) is \(\frac{4}{3\sqrt{3}}\)-Lipschitz (5).
We will prove that the AMP and NGD iterations are both Lipschitz. Throughout the rest of this section, we fix two external fields \(y\) and \(\widetilde{y}\) and use the following notation, where the unadorned variables correspond to the computation of \(\hat{m}_{(K_{\text{AMP}}, K_{\text{NGD}})}(A, y)\) and the tilded variables correspond to the computation of \(\hat{m}_{(K_{\text{AMP}}, K_{\text{NGD}})}(A, \widetilde{y})\):
\(\Delta y := y-\widetilde{y}\) (tilt difference)
\(\Delta z_k := z_k-\widetilde{z}_k\) (AMP iterations)
\(\Delta m_k := m_k-\widetilde{m}_k\) (AMP iterations)
\(\Delta u_k := u_k - \widetilde{u}_k\) (NGD iterations)
Also, \(\Delta z_0=\Delta z_{-1}=0\) and \(m_{-1}=\widetilde{m}_{-1}=0\) for the initialization.
Theorem 17 (Lipschitzness of AMP phase). Assume \(\gamma(A, \beta) := \beta\left\lVert A \right\rVert_{\mathrm{op}}+(1 + \frac{4}{3 \sqrt{3}})\beta^2 < 1\). Then for all \(k \ge 0\), \[\norm{\Delta z_k}\le \frac{1}{1-\gamma}\,\norm{\Delta y}, \qquad \norm{\Delta m_k}\le \frac{1}{1-\gamma}\,\norm{\Delta y}.\]
Proof. Let \(V_k:=\max_{0\le j\le k}\norm{\Delta z_j}\). We will prove the following two inequalities for each iteration:
\(\norm{\Delta z_{k+1}} \le (\beta\left\lVert A \right\rVert_{\mathrm{op}}+\frac{4\beta^2}{3\sqrt{3}})\norm{\Delta z_k} + \beta^2 \norm{\Delta z_{k-1}} + \norm{\Delta y}\)
\(\norm{\Delta m_k} \leq \norm{\Delta z_k}\)
The second item follows immediately from the \(1\)-Lipschitz property in 4. Thus, we focus on proving the first item. By taking the difference of 44 for the two tilts \(y\) and \(\widetilde{y}\), we have the following identity: \[\begin{align} \norm{\Delta z_{k+1}} = & \;\norm{\beta A \Delta m_k + \Delta y - b_k\Delta m_{k-1} - (b_k-\widetilde{b}_k)\widetilde{m}_{k-1}} \notag \\ \label{eq:after-triangle-inequality} \leq & \beta \left\lVert A \right\rVert_{\mathrm{op}} \norm{\Delta m_k} + \norm{\Delta y} + |{b_k}| \cdot \norm{\Delta m_{k - 1}} + |{b_k - \widetilde{b}_k}| \cdot \norm{\widetilde{m}_{k-1}} \end{align}\tag{47}\] Now, we upper bound each term in 47 . Since \(\tanh\) is \(1\)-Lipschitz, we have \(\norm{\Delta m_k} \leq \norm{\Delta z_k} \leq V_k\) and \(\norm{\Delta m_{k - 1}} \leq \norm{\Delta z_{k - 1}} \leq V_k\). Also, \(0\leq b_k\leq \beta^2\). The remaining term is \(|b_k-\widetilde{b}_k| \cdot \norm{\widetilde{m}_{k - 1}}\). We upper bound the absolute value of the scalar \(b_k - \widetilde{b}_k\) as follows: \[\begin{align} |b_k-\widetilde{b}_k| = & \; \big|\frac{\beta^2}{n}\sum_{i=1}^n \left(\mathop{\mathrm{sech}}^{2}\!\bigl((z_k)_i\bigr)-\mathop{\mathrm{sech}}^{2}\!\bigl((\widetilde{z}_k)_i\bigr)\right)\big| \notag \\ \le & \;\frac{\beta^2}{n}\sum_{i=1}^n \big|\mathop{\mathrm{sech}}^{2}\!\bigl((z_k)_i\bigr)-\mathop{\mathrm{sech}}^{2}\!\bigl((\widetilde{z}_k)_i\bigr)\big| \\ \le & \;\frac{\beta^2}{n}\sum_{i=1}^n \frac{4}{3\sqrt{3}}|(z_k)_i-(\widetilde{z}_k)_i| }^{2} is \frac{4}{3\sqrt{3}}-Lipschitz} \\ \le & \;\frac{4}{3\sqrt{3}}\cdot\frac{\beta^2}{\sqrt{n}}\norm{\Delta z_k}, \end{align}\]
Since \(\norm{\widetilde{m}_{k-1}}\leq \sqrt n\), this implies \(|{b_k - \widetilde{b}_k}| \cdot \norm{\widetilde{m}_{k-1}} \leq \beta^2 \frac{4}{3\sqrt{3}}\norm{\Delta z_k} \leq \beta^2 \frac{4}{3\sqrt{3}}V_k\). Using the inequalities for the terms in 47 , we have \[\begin{align} \norm{\Delta z_{k+1}} \leq & \;V_k\beta \left\lVert A \right\rVert_{\mathrm{op}} + \norm{\Delta y} + \beta^2 V_k + \beta^2\frac{4}{3\sqrt{3}}V_k \notag \\ = & \;\gamma(A, \beta) V_k + \norm{\Delta y} \notag \end{align}\] Hence, \(V_{k+1}\le \max\{V_k,\gamma V_k+\norm{\Delta y}\}\). As long as \(\gamma(A, \beta) < 1\), the uniform bound \(\norm{\Delta y}/(1-\gamma)\) follows by a simple induction. ◻
We have proved so far that after an arbitrary number of iterations, \(\norm{\Delta m_k}\) is upper bounded by \(\frac{1}{1 - \gamma(A, \beta)}\norm{\Delta y}\). Now, we prove that applying NGD after AMP preserves the same bound for the difference of the mean estimates. For convenience, and to avoid overloading the notation \(m_k\) from the AMP phase, we analyze the NGD step in the variables \(u_i\) defined by \(m=\tanh(u)\) (equivalently \(u=\mathop{\mathrm{atanh}}(m)\) component-wise).
The TAP equation is slightly different for the SK model than for the mixed \(p\)-spin model. For a prescribed overlap parameter \(q\), the SK TAP free energy satisfies \[\begin{align} \nabla \mathscr{F}_{\mathrm{TAP}}(m;y,q) = -\beta A m-y+\operatorname{arctanh}(m)+\beta^2(1-q)m. \label{eq:tap-for-sk} \end{align}\tag{48}\]
Plugging \(m=\tanh(u)\) into 48 gives \[\begin{align} \nabla_m \hat{\mathscr{F}}_{\mathrm{TAP}}(\tanh(u);y,q) &= -\beta A\tanh(u) - y + u + \beta^2(1-q)\tanh(u)\nonumber\\ &= -\Big(\beta A - \beta^2(1-q)I\Big)\tanh(u) - y + u. \label{eq:grad95u95form} \end{align}\tag{49}\] Define \[B := \beta A - \beta^2(1-q)I.\] Then the NGD update 46 becomes \[\label{eq:u95update} u_{t+1} = (1-\eta)u_t + \eta\, B\tanh(u_t) + \eta\, y.\qquad{(2)}\]
Theorem 18 (TAP Lipschitz property). Assume \(\gamma(A, \beta) = \beta\left\lVert A \right\rVert_{\mathrm{op}}+(1 + \frac{4}{3\sqrt{3}})\beta^2<1\) and \(q\in(0,1)\). Let \(0<\eta\leq 1\). Set \(u_0 = z_{K_{\mathrm{AMP}}}\) and \(\widetilde{u}_0 = \widetilde{z}_{K_{\mathrm{AMP}}}\). Then for every \(t\ge 0\), \[\norm{u_t(y)-u_t(\widetilde{y})} \le \frac{1}{1-\gamma(A, \beta)}\,\norm{y-\widetilde{y}}.\] Consequently, the final output satisfies \[\norm{\hat{m}(A,y)-\hat{m}(A,\widetilde{y})} \le \frac{1}{1-\gamma(A, \beta)}\,\norm{y-\widetilde{y}}.\]
Proof. Recall that \(\Delta u_t := u_t(y)-u_t(\widetilde{y})\). By 17 and initialization \(u_0=z_{K_{\mathrm{AMP}}}\), \[\norm{\Delta u_0}=\norm{\Delta z_{K_{\mathrm{AMP}}}}\le \frac{1}{1-\gamma}\norm{\Delta y}.\]
Subtract ?? for \(y\) and \(\widetilde{y}\): \[\begin{align} \norm{\Delta u_{t+1}} &= \norm{(1-\eta)\Delta u_t + \eta\, B\big(\tanh(u_t)-\tanh(\widetilde{u}_t)\big) + \eta\,\Delta y} \notag \\ &\leq (1 - \eta)\norm{\Delta u_t} + \eta \left\lVert B \right\rVert_{\mathrm{op}} \norm{\tanh(u_t) - \tanh(\widetilde{u}_t)} + \eta \norm{\Delta y}\\ &\leq (1 - \eta)\norm{\Delta u_t} + \eta \left\lVert B \right\rVert_{\mathrm{op}} \norm{\Delta u_t} + \eta \norm{\Delta y} \end{align}\]
Now, it is enough to prove that if \(\norm{\Delta u_t} \leq \frac{\norm{\Delta y}}{1 - \gamma(A, \beta)}\), then \(\norm{\Delta u_{t + 1}}\) satisfies the same upper bound. Since \(B = \beta A - \beta^2(1 - q)I\), we have \(\left\lVert B \right\rVert_{\mathrm{op}} \leq \beta \left\lVert A \right\rVert_{\mathrm{op}} + \beta^2(1-q) \leq \beta \left\lVert A \right\rVert_{\mathrm{op}} + \beta^2\) since \(q \in (0, 1)\). Thus, we need to prove that \[\left(1 - \eta + \eta(\beta \left\lVert A \right\rVert_{\mathrm{op}} + \beta^2)\right) \frac{1}{1 - \gamma(A, \beta)} + \eta \leq \frac{1}{1 - \gamma(A, \beta)} \iff \eta( \beta \left\lVert A \right\rVert_{\mathrm{op}} + \beta^2 - \gamma(A, \beta)) \leq 0.\]
Therefore, the inequality holds because \(\gamma(A, \beta) = \beta \left\lVert A \right\rVert_{\mathrm{op}} + (1 + \frac{4}{3\sqrt{3}})\beta^2 \geq \beta \left\lVert A \right\rVert_{\mathrm{op}} + \beta^2\). This concludes the Lipschitz property of [alg:mean-of-tilted-gibbs-measure-sk] given \(\gamma(A, \beta) < 1\). ◻
The key stability requirement for AMP and NGD iterations is \[\gamma(A, \beta) =\beta\left\lVert A \right\rVert_{\mathrm{op}}+(1 + \frac{4}{3\sqrt{3}})\beta^2<1.\] In random matrix settings (e.g.\(A\sim\mathrm{GOE}(n)\)), one typically has \(\left\lVert A \right\rVert_{\mathrm{op}} = 2 + o(1)\) with high probability, so any sufficiently small \(\beta\) ensuring \(\gamma(2, \beta) <1\) implies that the TAP-AMP mean approximation is \(\frac{1}{1 - \gamma(2, \beta) - c}\)-Lipschitz with high probability for every sufficiently small constant \(c\).
Corollary 1. Fix \(\varepsilon > 0\). If the SK inverse temperature \(\beta\) is at most \(\beta_0 - \varepsilon\), where \(\beta_0 \approx 0.3753\) is the positive root of the equation \[\gamma(2, \beta) = 2\beta +(1 + \frac{4}{3\sqrt{3}})\beta^2 = 1,\] then the tilted-mean computation in [alg:mean-of-tilted-gibbs-measure-sk] is \(O(\frac{1}{\varepsilon})\)-Lipschitz for the SK model with high probability.
Proof. We know that \(\left\lVert A \right\rVert_{\mathrm{op}}\) is concentrated around \(2\), and the probability that it exceeds \(2 + \varepsilon/{\beta_0}\) is \(e^{-\Omega_\varepsilon(n)}\) [50]. Recall that \(\beta_0\) is the positive solution of the equation \(2x + (1 + \frac{4}{3\sqrt{3}}) x^2 = 1\). Thus, we only need to show that the parameter \(\gamma = \beta\left\lVert A \right\rVert_{\mathrm{op}}+(1 + \frac{4}{3\sqrt{3}})\beta^2 \leq 1 - \Omega(\varepsilon)\) with high probability.
\[\begin{align} \beta\left\lVert A \right\rVert_{\mathrm{op}}+(1 + \frac{4}{3\sqrt{3}})\beta^2 &\leq \beta(2 + \varepsilon/\beta_0) + (1 + \frac{4}{3\sqrt{3}})\beta^2 \\ &\leq \varepsilon + 2\beta + (1+ \frac{4}{3\sqrt{3}})\beta^2 \\ &\leq -\varepsilon + 2\beta_0 + (1 + \frac{4}{3\sqrt{3}})\beta_0^2 = 1 - \varepsilon \end{align}\] Since \(\text{P}\{\left\lVert A \right\rVert_{\mathrm{op}} > 2 + \varepsilon/\beta_0\} \leq e^{-\Omega_\varepsilon(n)}\), the tilted-mean computation is \(O(\frac{1}{\varepsilon})\)-Lipschitz with high probability if \(\beta \leq \beta_0 - \varepsilon\). ◻
In this appendix, we show the improved parameter dependence for Algorithmic Stochastic Localization (ASL) using the notation of [alg:picard-asl] and the low-accuracy discussion in the introduction. We use \[K \quad \text{for the number of localization steps}, \qquad \delta \quad \text{for the discretization step size},\] so that the localization time horizon is \(K\delta\).
The accuracy parameter \(\varepsilon\) below is the target error in normalized \(2\)-Wasserstein distance \(W_{2,n}\) from 1. The threshold \(\varepsilon_n=o_n(1)\) is the accuracy threshold of the tilted-mean estimator used in the ASL analysis.
Let \(\widehat m_{t}(y)\) be the TAP-AMP estimate of the tilted mean at localization time \(t\); the dependence on \(t\) enters through the overlap parameter \(q_\star(t)\) in [alg:tap-amp]. The sequential ASL Euler trajectory is \[\widehat y_{(k+1)\delta} = \widehat y_{k\delta} + \delta\,\widehat m_{k\delta}(\widehat y_{k\delta}) + \bigl(B_{(k+1)\delta}-B_{k\delta}\bigr), \qquad \widehat y_0=0,\] or equivalently, with \(w_{k+1}=(B_{(k+1)\delta}-B_{k\delta})/\sqrt{\delta} \sim \mathcal{N}(0,I_n)\), \[\widehat y_{(k+1)\delta} = \widehat y_{k\delta} + \delta\,\widehat m_{G,k\delta}(\widehat y_{k\delta}) + \sqrt{\delta}\,w_{k+1}.\]
Lemma 7 (Lemma 4.10 of [21]). Let \(\beta < \beta_0\), let \(c = O(1)\), and fix a time horizon \(T_{\text{SL}} < t_n\) and \(\varepsilon > \varepsilon_n\). Let \(A\sim \text{GOE}(n)\), and let \(y\in\mathbb{R}^n\). Let \(q_\star(\beta,t)\) be the AMP state-evolution overlap.
Then for \(\rho \in \poly(\varepsilon)\) there exist \(K_{\mathrm{AMP}}=K_{\mathrm{AMP}}(\beta,T_{\text{SL}},\varepsilon) \leq \mathrm{polylog}(n/\varepsilon)\) and \(K_{\mathrm{NGD}} \leq \mathrm{polylog}(n/\varepsilon)\) with the following property. With probability \(1-o_n(1)\) over \((A,y(\cdot))\), simultaneously for all \(t\in(0,T_{\text{SL}}]\) the stationary point (fixed point of TAP) satisfies: \[\|m(A,y(t))-m_\star(A,y(t);t)\| \le \rho\sqrt{tn},\]
Proof. The proof is essentially the same as [21]. For the choices of the parameters \(K_\text{NGD}\) and \(K_\text{AMP}\), see [prop:log-n-evaluation-of-mean]. ◻
Define the normalized trajectory and mean-estimation errors \[\Delta^y_k := \frac{1}{\sqrt n} \left\|\widehat y_{k\delta}-y_{k\delta}\right\|, \qquad \Delta^m_k := \frac{1}{\sqrt n} \left\| \widehat m_{G,k\delta}(\widehat y_{k\delta}) - m_G(y_{k\delta}) \right\| .\]
Lemma 8 (ASL error propagation, [21]). Fix a time horizon \(t < t_n\) (see remark [remark:best-error-dependency-asl-with-tap-amp]). In the high-temperature regime covered by the ASL analysis of [12], [21], there exist constants \(C=O_\beta(1)\), depending only on the temperature parameters, and a deterministic sequence \(\xi_n\to 0\) such that the following holds with probability \(1-o_n(1)\) over the disorder. For every \(k\geq 0\) satisfying \(k\delta\leq t\) and every \(\delta\in(0,1)\), \[\Delta^y_k \leq C e^{Ck\delta}k\delta \left(\rho\sqrt{k\delta}+\sqrt{\delta}\right) + \xi_n,\] and \[\Delta^m_k \leq C e^{Ck\delta}k\delta \left(\rho\sqrt{k\delta}+\sqrt{\delta}\right) + C\rho\sqrt{k\delta} + \xi_n .\] Here \(\rho = \poly(\varepsilon)\) denotes the accuracy parameter in the tilted-mean estimation guarantee.
Proof. We imitate the proof of Lemma 4.14 of [21] with new parameters. We couple the continuous stochastic-localization trajectory and the discretized ASL trajectory using the same Brownian increments. Throughout the proof, let \(\xi_n\) denote a deterministic non-negative sequence tending to zero.
Set \(t_k = k\delta\). The proof is by induction on \(k\). The case \(k=0\) is immediate since \(\widehat y_0=y_0=0\). Assume the claimed bounds hold up to time \(t_k\). Subtracting the two coupled recursions gives \[\widehat y_{t_{k+1}}-y_{t_{k+1}} = \widehat y_{t_k}-y_{t_k} + \delta\bigl( \widehat m_{G,t_k}(\widehat y_{t_k}) - m_G(y_{t_k}) \bigr) + \int_{t_k}^{t_{k+1}} \bigl(m_G(y_{t_k})-m_G(y_s)\bigr)\,ds .\] Hence \[\Delta^y_{k+1} \le \Delta^y_k+\delta\Delta^m_k + \frac{1}{\sqrt n} \int_{t_k}^{t_{k+1}} \|m_G(y_s)-m_G(y_{t_k})\|\,ds .\] By the continuity estimate for the tilted mean along the stochastic-localization trajectory [21], \[\frac{1}{\sqrt n} \int_{t_k}^{t_{k+1}} \|m_G(y_s)-m_G(y_{t_k})\|\,ds \le C\delta^{3/2}+\xi_n\] with probability \(1-o_n(1)\). Therefore \[\Delta^y_{k+1} \le \Delta^y_k+\delta\Delta^m_k+C\delta^{3/2}+\xi_n .\] It remains to provide an analogous inequality for the mean-estimation bound. By the trajectory bound just proved, taking \(\rho, \delta = \poly(\varepsilon)\) as in 8, and following the analysis of [21] for mean estimation, we have \[\Delta^m_{k+1} \le C\Delta^y_{k+1} + 2\rho\sqrt{t_{k+1}} + \xi_n .\] Here, \(C\) is the Lipschitz constant of the AMP iteration, which is \(O(1)\) as long as \(\beta < \beta_0\) is fixed. Now, we need to prove that \(\Delta_{K}^m\) and \(\Delta_K^y\) are \(O(\varepsilon)\) given \(\delta\) and \(\rho\), where \(t_K = K\delta = O(\log(1/\varepsilon))\). We upper bound \(\Delta_{K}^m\) and \(\Delta_K^y\) by writing the following continuous differential-inequality upper bound for the variables \(M_t = \Delta_t^m\) and \(Y_t =\Delta_t^y\):
\[\begin{align} M_t \leq CY_t + 2\rho\sqrt{t} \\ dY_t \leq M_t + C_1 \sqrt{\delta} \end{align}\] Since \(\rho\) and \(\delta\) are polynomially small in \(\varepsilon\) and \(C_1\) is an absolute constant depending only on \(\beta\) (see [21]), \[dY_t \leq CY_t + \alpha\] where \(\alpha\) is polynomially small in \(\varepsilon\). Given \(Y_0 = 0\), using the exact solution as an upper bound, we conclude that \(Y_{K\delta} \leq \frac{\alpha}{C}e^{C K\delta} - \frac{\alpha}{C} = O(\alpha e^{CK\delta}) = \poly(\varepsilon)\). ◻
Theorem 19 (Discretization error at logarithmic localization time). Let the accuracy parameter satisfy \(\varepsilon > \varepsilon_n\), and let \(t_\varepsilon = O(\log(\frac{1}{\varepsilon})) < t_n\) be the chosen localization time. Assume, for notational simplicity, that \(K\delta=t_\varepsilon\). Let \(\hat{y}_{K\delta}\) be the output of algorithmic stochastic localization using the parameter choices of [prop:log-n-evaluation-of-mean] for TAP-AMP and the \(\rho\) and \(\delta\) of 8. Then, with probability \(1 - o(1)\), \[W_{2, n}(\hat{y}_{t_\varepsilon}/t_\varepsilon, y_{t_\varepsilon}/t_\varepsilon) \leq O(\varepsilon)\]
Proof. Apply 8 at \(k=K\), so that \(K\delta=t_\varepsilon\). With \(\rho=\sqrt{\delta}\), we have \[\Delta^m_K \leq C e^{C t_\varepsilon}t_\varepsilon \left( \sqrt{\delta}\sqrt{t_\varepsilon}+\sqrt{\delta} \right) + C\sqrt{\delta}\sqrt{t_\varepsilon} + \xi_n .\] Since \(t_\varepsilon\geq1\), the trajectory error is bounded by \[\Delta^y_K/t_\varepsilon \leq \poly(\varepsilon)/\log(\frac{1}{\varepsilon}) \leq \poly(\varepsilon)\] Using sign rounding (1) and the stability argument 2, we obtain \[W_{2, n}(\sign{\hat{y}_{t_\varepsilon}}, \mu) \leq O(\varepsilon)\] where \(\mu\) denotes the true distribution. ◻
Here, we prove the \(\widetilde{O}(1)\) parallel-depth claim for the tilted-mean oracle used in 14. We keep the notation of the main body: \(K\) and \(\delta\) denote, respectively, the number of stochastic-localization steps and the discretization step size, while \(K_{\mathrm{AMP}}\) and \(K_{\mathrm{NGD}}\) denote the internal iteration counts of the TAP-AMP tilted mean estimator. The localization horizon is \(t_{\varepsilon}=K\delta\), and by 14 we may take \[T_{\varepsilon}=O\!\left(\log(1/\varepsilon)\right), \qquad \delta=\operatorname{poly}(\varepsilon).\] The overlap parameter in the mixed \(p\)-spin algorithm is denoted by \(q^{\star}(t)\), as in 13 . In the SK specialization we write \(q^{\mathrm{SK}}_\star(\beta,t)\) for the corresponding fixed point in [21]; this avoids overloading the mixed \(p\)-spin notation.
Proof of [prop:log-n-evaluation-of-mean]. Both mean-estimation routines in the main body, [alg:mean-of-tilted-gibbs-measure-sk] for the SK model and [alg:tap-amp] for the mixed \(p\)-spin model, have the same structure: an AMP phase followed by a natural-gradient-descent phase on the approximate TAP free energy. We count parallel time in the model with parallel Hamiltonian-derivative oracle access, as in the oracle model described in the introduction. Equivalently, for the explicit fixed-degree mixed \(p\)-spin polynomial representation, every gradient or Hessian-vector computation is a fixed-degree tensor contraction and has \(\operatorname{polylog}(n)\) parallel depth and polynomial work by parallel reductions.
Consider one AMP iteration. The coordinate-wise nonlinearities \(\tanh(\cdot)\) and \(\mathop{\mathrm{sech}}^2(\cdot)\) are computed independently over the coordinates. The empirical overlap, Onsager coefficient, and inner products appearing in the update are computed by parallel reductions in \(O(\log n)\) depth. The only model-dependent operation is the evaluation of \(\nabla H(m_k)\), or \(A m_k\) in the SK specialization, which is one parallel Hamiltonian-derivative query. Hence each AMP iteration has \(\operatorname{polylog}(n)\) parallel depth and polynomial work. The same argument applies to one NGD iteration: it evaluates \(\nabla \hat{\mathscr F}_{\mathrm{TAP}}(m;y,q)\) and then performs only coordinate-wise operations and parallel reductions.
It remains to bound \(K_{\mathrm{AMP}}\) and \(K_{\mathrm{NGD}}\). For the mixed \(p\)-spin model, the high-temperature TAP-AMP analysis of [12] gives fixed constants, depending only on the mixture \(\xi\) and on the requested tilted-mean accuracy, for which the AMP phase enters the locally strongly convex basin of \(\hat{\mathscr F}_{\mathrm{TAP}}(\cdot;y,q^{\star}(t))\) uniformly along the ASL trajectory. Taking the auxiliary tilted-mean accuracy to be \(\rho=\operatorname{poly}(\varepsilon)\) as in 8 gives \[K_{\mathrm{AMP}} =\operatorname{polylog}(n/\varepsilon)\] for the parameter regime used by 14. In the SK case, 9 below gives the sharper explicit bound \[K_{\mathrm{AMP}} =O_{\beta}\!\left( \log(1/\alpha)+\log(1+t_{\varepsilon}) \right),\] where \(\alpha\) is the local AMP accuracy parameter. With \(\alpha=\operatorname{poly}(\varepsilon/n)\) and \(t_{\varepsilon}=O(\log(1/\varepsilon))\), this gives a \(\operatorname{polylog}(n/\varepsilon)\) bound. A similar upper bound can be proved for the mixed \(p\)-spin case, as long as the temperature is sufficiently high, by essentially imitating the proof for the SK case.
For the NGD phase, the TAP analysis supplies a local strong-convexity and smoothness window around the AMP initialization. Namely, in the relevant neighborhood of the TAP fixed point, the objective in the natural parameter \(u=\operatorname{arctanh}(m)\) is \(\mu\)-strongly convex and \(M\)-smooth, with \(0<\mu\leq M<\infty\) depending only on the high-temperature parameters. Taking \(\eta\leq 1/M\), the standard contraction estimate gives \[\|u_s-u_\star\|_2 \leq (1-\eta\mu)^s\|u_0-u_\star\|_2 .\] where \(u_\star\) is the minimizer. Thus, reducing the NGD error to the auxiliary accuracy \(\rho\sqrt{t_{\varepsilon}n}\) requires \[K_{\mathrm{NGD}} =O_{\beta}\!\left(\log(1/\rho)+\log n+\log(1+T_{\varepsilon})\right) =\operatorname{polylog}(n/\varepsilon),\] again for \(\rho=\operatorname{poly}(\varepsilon/n)\).
Since every AMP and NGD iteration has \(\operatorname{polylog}(n)\) parallel depth and the number of such iterations is \(\operatorname{polylog}(n/\varepsilon)\), each tilted-mean call in [alg:picard-asl] is computable in parallel depth \(\operatorname{polylog}(n/\varepsilon)\), as claimed. ◻
Lemma 9 (Explicit SK AMP iteration bound). Fix \(0<\beta<1/2\), a horizon \(T\geq 1\), and a local AMP accuracy parameter \(\alpha\in(0,1)\). Let \(W\sim\mathcal{N}(0,1)\) and define \[\operatorname{mmse}(\gamma) := 1-\mathbb{E}{\tanh\!\left(\gamma+\sqrt{\gamma}\,W\right)^2}, \qquad \gamma\geq 0.\] Let \(\gamma_0(\beta,t)=0\) and \[\gamma_{k+1}(\beta,t) = \beta^2\Bigl(1- \operatorname{mmse}\bigl(\gamma_k(\beta,t)+t\bigr)\Bigr), \qquad t\in(0,T].\] Let \(\gamma_\star(\beta,t)\) denote the nonnegative fixed point of this recursion, and define \[q^{\mathrm{SK}}_k(\beta,t) :=\frac{\gamma_{k+1}(\beta,t)}{\beta^2}, \qquad q^{\mathrm{SK}}_\star(\beta,t) :=\frac{\gamma_\star(\beta,t)}{\beta^2}.\] Set \[a_\beta:=\frac{\beta^2}{1-\beta^2}, \qquad \lambda_\beta:=\frac{1-2\beta}{4},\] and, for \(x\in\mathbb{R}\), write \(\lceil x\rceil_+:=\max\{1,\lceil x\rceil\}\). Define \[K_q := \left\lceil \frac{\log(16a_\beta/\alpha)}{-2\log\beta} \right\rceil_+,\] \[K_{g,1}:= \left\lceil \frac{\log\!\left(16\sqrt{a_\beta}/(\lambda_\beta\sqrt{\alpha})\right)}{-\log\beta} \right\rceil_+,\] and \[K_{g,2}:= \left\lceil \frac{\log\!\left(24a_\beta\sqrt t_\varepsilon/(\lambda_\beta\sqrt{\alpha})\right)}{-2\log\beta} \right\rceil_+.\] Let \[K^{\mathrm{SK}}_{\mathrm{AMP}} := \max\{K_q,K_{g,1},K_{g,2}\}.\] For the SK AMP phase, let \((z_k,m_k)_{k\geq 0}\) denote the iterates of [alg:mean-of-tilted-gibbs-measure-sk] with external field \(y(t)\). Thus \[m_{-1}=0, \qquad z_0=0, \qquad m_k=\tanh(z_k),\] and \[b_k := \frac{\beta^2}{n}\sum_{i=1}^n \mathop{\mathrm{sech}}^2\bigl((z_k)_i\bigr), \qquad z_{k+1}=\beta A m_k+y(t)-b_k m_{k-1},\] where \(A\) is the SK interaction matrix. Then \(K_{\mathrm{AMP}}=K^{\mathrm{SK}}_{\mathrm{AMP}}\) is sufficient for the large-\(K\) AMP requirements used in [21]: \[\sup_{t\in(0,T]} \sup_{k_1,k_2\geq K_{\mathrm{AMP}}} \frac{|q^{\mathrm{SK}}_{k_1}(\beta,t)-q^{\mathrm{SK}}_{k_2}(\beta,t)|}{t} \leq \frac{\alpha}{16},\] and \[\sup_{t\in(0,T]} \sup_{q\in[q^{\mathrm{SK}}_{K_{\mathrm{AMP}}}(\beta,t), q^{\mathrm{SK}}_\star(\beta,t)]} \operatorname*{p-lim}_{n\to\infty} \frac{ \|\nabla \hat{\mathscr F}_{\mathrm{TAP}}(m_{K_{\mathrm{AMP}}};y(t),q)\|_2 }{\sqrt{tn}} \leq \frac{\lambda_\beta\sqrt{\alpha}}{4}.\] Consequently, \[K^{\mathrm{SK}}_{\mathrm{AMP}} = O_\beta\!\left( \log(1/\alpha)+\log(1+T) \right).\]
Proof. Let \[f_t(\gamma) := \beta^2\bigl(1-\operatorname{mmse}(\gamma+t)\bigr).\] The recursion is \(\gamma_{k+1}(\beta,t)=f_t(\gamma_k(\beta,t))\). Since \(\operatorname{mmse}\) is decreasing on \(\mathbb{R}_{\geq 0}\), \(f_t\) is increasing, and hence \[0=\gamma_0(\beta,t) \leq \gamma_1(\beta,t) \leq \gamma_2(\beta,t) \leq \cdots \leq \gamma_\star(\beta,t).\] By [21], for \(\beta<1\) and \(t>0\), \[0\leq \gamma_\star(\beta,t)-\gamma_k(\beta,t) \leq \beta^{2k}\gamma_\star(\beta,t),\] and \[\frac{\gamma_1(\beta,t)}{\gamma_\star(\beta,t)} \geq 1-\beta^2.\] Moreover, \(\gamma_1(\beta,t)=\beta^2(1-\operatorname{mmse}(t))\leq \beta^2 t\), using \(1-\operatorname{mmse}(t)\leq t\). Therefore \[\gamma_\star(\beta,t) \leq \frac{\gamma_1(\beta,t)}{1-\beta^2} \leq a_\beta t .\] Thus \[\begin{align} 0 \leq q^{\mathrm{SK}}_\star(\beta,t)-q^{\mathrm{SK}}_k(\beta,t) &= \frac{\gamma_\star(\beta,t)-\gamma_{k+1}(\beta,t)}{\beta^2} \\ &\leq \beta^{2k}\gamma_\star(\beta,t) \leq a_\beta\beta^{2k}t . \end{align}\] Since \(q^{\mathrm{SK}}_k(\beta,t)\) is nondecreasing in \(k\), for any \(k_1,k_2\geq K\), \[|q^{\mathrm{SK}}_{k_1}(\beta,t)-q^{\mathrm{SK}}_{k_2}(\beta,t)| \leq a_\beta\beta^{2K}t .\] The first displayed requirement follows as soon as \(a_\beta\beta^{2K}\leq \alpha/16\), which is guaranteed by \(K\geq K_q\).
It remains to control the TAP-gradient term. Let \[\Delta_k(t):=\gamma_{k+1}(\beta,t)-\gamma_k(\beta,t).\] The monotonicity of \(\gamma_k\) and the preceding bound imply \[0\leq \Delta_k(t) \leq \gamma_\star(\beta,t)-\gamma_k(\beta,t) \leq a_\beta\beta^{2k}t .\] State evolution for the SK AMP iteration gives \[\operatorname*{p-lim}_{n\to\infty} \frac{\|z_{k+1}-z_k\|_2^2}{n} = \Delta_k(t)^2+\Delta_k(t).\] Consequently, uniformly over \(t\in(0,T]\), \[\begin{align} \operatorname*{p-lim}_{n\to\infty} \frac{\|z_{k+1}-z_k\|_2}{\sqrt{tn}} &\leq \sqrt{\frac{\Delta_k(t)^2+\Delta_k(t)}{t}} \\ &\leq \sqrt{a_\beta}\,\beta^k + a_\beta\sqrt T\,\beta^{2k} . \end{align}\] Since \(\tanh\) is \(1\)-Lipschitz, \(\|m_k-m_{k-1}\|_2\leq \|z_k-z_{k-1}\|_2\). The TAP-gradient identity in [21] gives, for \(q\in[q^{\mathrm{SK}}_k(\beta,t),q^{\mathrm{SK}}_\star(\beta,t)]\), \[\begin{align} \frac{\|\nabla \hat{\mathscr F}_{\mathrm{TAP}}(m_k;y(t),q)\|_2}{\sqrt{tn}} &\leq \frac{\|z_{k+1}-z_k\|_2}{\sqrt{tn}} + \beta^2 \frac{\|m_{k-1}-m_k\|_2}{\sqrt{tn}} \\ &\qquad + \beta^2 \frac{q^{\mathrm{SK}}_\star(\beta,t)-q^{\mathrm{SK}}_k(\beta,t)}{\sqrt t} + o_{n,\mathbb{P}}(1). \end{align}\] Taking the \(p\)-limit and using the bounds above yields \[\begin{align} &\sup_{t\in(0,T]} \sup_{q\in[q^{\mathrm{SK}}_k(\beta,t),q^{\mathrm{SK}}_\star(\beta,t)]} \operatorname*{p-lim}_{n\to\infty} \frac{\|\nabla \hat{\mathscr F}_{\mathrm{TAP}}(m_k;y(t),q)\|_2}{\sqrt{tn}} \\ &\qquad\leq \left(\sqrt{a_\beta}\,\beta^k+a_\beta\sqrt T\,\beta^{2k}\right) + \beta^2\left(\sqrt{a_\beta}\,\beta^{k-1} +a_\beta\sqrt T\,\beta^{2k-2}\right) + \beta^2 a_\beta\sqrt T\,\beta^{2k} . \end{align}\] Because \(0<\beta<1\), the right-hand side is at most \[2\sqrt{a_\beta}\,\beta^k + 3a_\beta\sqrt T\,\beta^{2k}.\] It is therefore enough to require \[2\sqrt{a_\beta}\,\beta^K \leq \frac{\lambda_\beta\sqrt{\alpha}}{8}, \qquad 3a_\beta\sqrt T\,\beta^{2K} \leq \frac{\lambda_\beta\sqrt{\alpha}}{8},\] which are guaranteed by \(K\geq K_{g,1}\) and \(K\geq K_{g,2}\), respectively. This proves the two large-\(K\) requirements. The asymptotic expression for \(K^{\mathrm{SK}}_{\mathrm{AMP}}\) follows because \(\beta\in(0,1/2)\) is fixed, so \(-\log\beta\) is bounded away from zero. ◻
In this section, we prove that, for the mixed \(p\)-spin model at sufficiently high temperature, the TAP fixed-point computation algorithm is Lipschitz with respect to the tilt parameter \(y\) with high probability. The proof follows the same two-phase structure as in the SK case: first an AMP phase gets close to the TAP fixed point, and then a natural-gradient descent step in the dual variables closes the remaining gap.
We recall the standard notation for the mixed \(p\)-spin glass. First, the Hamiltonian takes the following form: \[\begin{align} \label{eq:p-spin-model-zero-field} H(x) = \sum_{p=2}^{P} \frac{\beta_p \sqrt{p!}}{n^{\tfrac{p-1}{2}}} \cdot \sum_{J \subseteq [n], |J|=p} G_J \;\prod_{k \in J}x_k , \qquad \mu(x) = \frac{1}{Z}\exp(H(x)) \end{align}\tag{50}\] where we assume zero external field. Also recall the associated mixture function \[\xi(t)=\sum_{p=2}^{P} \beta_p^2 t^p \qquad \text{equivalently,} \qquad \mathbb{E}{H_n(x)H_n(x')} = n\xi\left(\frac{\ip{x}{x'}}{n}\right).\] Throughout this section, we condition on the high-probability event that the Hamiltonian has a dimension-free Hessian bound. Namely, for a deterministic constant \(L_H\) depending only on \(\xi\), we condition on the following event: \[\begin{align} \sup_{m\in[-1,1]^n}\norm{\nabla^2 H_n(m)}_{\mathsf{op}}\le L_H. \end{align}\] Using Gaussian concentration (see [51]) one can prove that the above event holds with probability at least \(1-e^{-cn}\).
Definition 5 (Lipschitz threshold for the mixed \(p\)-spin model). Let
\[L_0:=\frac{4}{3\sqrt{3}}, \qquad \phi(t):=(1-t)\xi''(t), \qquad L_\phi:=\sup_{t\in[0,1]}\abs{\phi'(t)}.\] Fix \(q\in(0,1)\) and the quadratic TAP parameter \(T=T(\xi)\). Define \[\begin{align} \gamma_{\mathrm{AMP}}(L_H,\xi) := L_H+\xi''(1)+L_0L_\phi, \label{eq:amp-p-spin-lipschitz}\\ \gamma_{\mathrm{NGD}}(L_H,\xi,q,T) := L_H+\frac{3T}{2} +(1-q)\xi''(q), \label{eq:ngd-p-spin-lipschitz}\end{align}\] {#eq: sublabel=eq:eq:amp-p-spin-lipschitz,eq:eq:ngd-p-spin-lipschitz} and \[\gamma_{\mathrm{mix}}(L_H,\xi,q,T) :=\max\left\{\gamma_{\mathrm{AMP}}(L_H,\xi), \gamma_{\mathrm{NGD}}(L_H,\xi,q,T)\right\}.\]
The TAP fixed-point computation for the \(p\)-spin model is very similar to that for the SK model, but it is more complicated because it uses derivatives of the mixture function. Here, we review the TAP fixed-point computation used in [41].
We have the following initialization: \[m_{-1}=0,\qquad z_0=0.\] For \(k=0,1,\dots,K_{\mathrm{AMP}}-1\), define \[m_k = \tanh(z_k),\] \[q_k = \frac{1}{n}\sum_{i=1}^{n}\tanh^2\bigl((z_k)_i\bigr) =\frac{1}{n}\norm{m_k}^2,\] \[b_k = (1-q_k)\xi''(q_k),\] and \[z_{k+1} = \nabla H_n(m_k)+y-b_km_{k-1}. \]
Initialize \[u_0:=z_{K_{\mathrm{AMP}}}.\] For \(t=0,1,\dots,K_{\mathrm{NGD}}-1\), define \[m_t^+ = \tanh(u_t),\] and \[u_{t+1} = u_t-\eta\nabla_m \hat{\mathscr{F}}_{\mathrm{TAP}}(m_t^+;y,q). \] The algorithm outputs \[\widehat m(G,y):=m_{K_{\mathrm{NGD}}}^+=\tanh(u_{K_{\mathrm{NGD}}}).\]
Definition 6 (Tilted-mean computation for mixed \(p\)-spin). For a given disorder realization \(G\), external field \(y\in\mathbb{R}^n\), and iteration counts \(K_{\mathrm{AMP}}\) and \(K_{\mathrm{NGD}}\), let \[\widehat m_{(K_{\mathrm{AMP}},K_{\mathrm{NGD}})}(G,y)\] denote the output of the AMP+NGD algorithm above. When \(G\), \(K_{\mathrm{AMP}}\), and \(K_{\mathrm{NGD}}\) are clear from context, we simply write \(\widehat m(y)\).
Our goal is to prove that, for any two tilts \(y,\widetilde{y}\in\mathbb{R}^n\), the output satisfies \[\norm{\widehat m(G,y)-\widehat m(G,\widetilde{y})} \le \frac{1}{1-\gamma_{\mathrm{mix}}}\norm{y-\widetilde{y}},\] provided \(\gamma_{\mathrm{mix}}<1\). The proof uses the following elementary Lipschitz facts:
\(\tanh\) is \(1\)-Lipschitz;
\(\tanh^2\) is \(L_0=4/(3\sqrt3)\)-Lipschitz;
\(\phi(t)=(1-t)\xi''(t)\) is \(L_\phi\)-Lipschitz on \([0,1]\).
Throughout the proof, fix two external fields \(y\) and \(\widetilde{y}\). Unadorned variables correspond to the computation with tilt \(y\), and tilded variables correspond to the computation with tilt \(\widetilde{y}\). We use the notation \[\begin{align} \Delta y &:= y-\widetilde{y}, & \Delta z_k &:= z_k-\widetilde{z}_k, & \Delta m_k &:= m_k-\widetilde{m}_k, \\ \Delta q_k &:= q_k-\widetilde{q}_k, & \Delta b_k &:= b_k-\widetilde{b}_k, & \Delta u_t &:= u_t-\widetilde{u}_t. \end{align}\] Also, \(\Delta z_0=0\), \(\Delta z_{-1}=0\), and \(m_{-1}=\widetilde{m}_{-1}=0\) by initialization.
Theorem 20 (Lipschitzness of AMP phase for mixed \(p\)-spin). Assume the Hessian bound [eq:mixed-good-hessian-event] holds and \[\gamma_{\mathrm{AMP}}(L_H,\xi) =L_H+\xi''(1)+L_0L_\phi<1.\] Then for all \(k\ge 0\), \[\norm{\Delta z_k}\le \frac{1}{1-\gamma_{\mathrm{AMP}}}\norm{\Delta y}, \qquad \norm{\Delta m_k}\le \frac{1}{1-\gamma_{\mathrm{AMP}}}\norm{\Delta y}.\]
Proof. Let \[V_k:=\max_{0\le j\le k}\norm{\Delta z_j}.\] We first prove the one-step inequality \[\norm{\Delta z_{k+1}} \le \left(L_H+L_0L_\phi\right)\norm{\Delta z_k} +\xi''(1)\norm{\Delta z_{k-1}} +\norm{\Delta y}. \] Taking the difference of [eq:mixed-amp-update] for \(y\) and \(\widetilde{y}\) gives \[\Delta z_{k+1} =\left[\nabla H_n(m_k)-\nabla H_n(\widetilde{m}_k)\right] +\Delta y-b_k\Delta m_{k-1}-\Delta b_k\,\widetilde{m}_{k-1}.\] Since [eq:mixed-good-hessian-event] holds, \(\nabla H_n\) is \(L_H\)-Lipschitz on \([-1,1]^n\). Since \(\tanh\) is \(1\)-Lipschitz, \[\norm{\Delta m_k}\le \norm{\Delta z_k}, \qquad \norm{\Delta m_{k-1}}\le \norm{\Delta z_{k-1}}.\] Moreover, \[0\le b_k=(1-q_k)\xi''(q_k)\le \xi''(1).\] It remains to control the Onsager coefficient difference. Since \(b_k=\phi(q_k)\), \[\abs{\Delta b_k}\le L_\phi\abs{\Delta q_k}.\] Using the \(L_0\)-Lipschitzness of \(\tanh^2\), \[\begin{align} \abs{\Delta q_k} &=\left|\frac{1}{n}\sum_{i=1}^{n} \left[\tanh^2\bigl((z_k)_i\bigr) -\tanh^2\bigl((\widetilde{z}_k)_i\bigr)\right]\right| \\ &\le \frac{L_0}{n}\norm{\Delta z_k}_1 \le \frac{L_0}{\sqrt n}\norm{\Delta z_k}. \end{align}\] Since \(\norm{\widetilde{m}_{k-1}}\le \sqrt n\), we get \[\abs{\Delta b_k}\,\norm{\widetilde{m}_{k-1}} \le L_0L_\phi\norm{\Delta z_k}.\] Combining the above estimates with the triangle inequality proves [eq:mixed-amp-one-step].
Therefore, \[\norm{\Delta z_{k+1}} \le \gamma_{\mathrm{AMP}} V_k+\norm{\Delta y},\] and hence \[V_{k+1}\le \max\{V_k,\gamma_{\mathrm{AMP}}V_k+\norm{\Delta y}\}.\] Since \(\gamma_{\mathrm{AMP}}<1\), induction gives \[V_k\le \frac{1}{1-\gamma_{\mathrm{AMP}}}\norm{\Delta y}\] for every \(k\). The same bound for \(\Delta m_k\) follows from the \(1\)-Lipschitzness of \(\tanh\). ◻
We next prove that the NGD phase preserves the AMP Lipschitz bound, up to replacing \(\gamma_{\mathrm{AMP}}\) by the larger stability parameter \(\gamma_{\mathrm{mix}}\).
We recall several definitions from the preliminaries regarding the TAP equation.
\[\begin{align} \mathscr{F}_{\mathrm{TAP}}(m,y) &= -H(m) - \left\langle y, m \right\rangle - \sum_{i=1}^{n} h(m_i) - \operatorname{ONS}(Q(m)) \\ \operatorname{ONS}(q) &= \frac{n}{2}\left[\xi(1)-\xi(Q)-(1-Q)\xi^{\prime}(Q)\right] \\ \mathrm{ONS}'(q)&=-\frac{n}{2}(1-q)\xi''(q) \\ Q(m) &= n^{-1}\|m\|^2, \qquad h(m) = -\frac{1+m}{2}\ln\left(\frac{1+m}{2}\right) - \frac{1-m}{2}\ln\left(\frac{1-m}{2}\right) \end{align}\] A direct calculation gives \[\begin{align} \nabla_m F_{\mathrm{TAP}}(m;y,q) &= -\nabla H_n(m)-y+\operatorname{arctanh}(m) +(1-q)\xi''(q)m\\ &\quad +\frac{T}{2}\bigl(Q(m)-q\bigr)m. \end{align}\] Plugging in \(m=\tanh(u)\) gives \[\nabla_m F_{\mathrm{TAP}}(\tanh(u);y,q)=u-y-\mathcal{G}(u),\] where \[\mathcal{G}(u) :=\nabla H_n(\tanh(u)) -(1-q)\xi''(q)\tanh(u) -\frac{T}{2}J(\tanh(u)),\] and \[J(m):=\bigl(Q(m)-q\bigr)m.\] Thus the NGD update [eq:mixed-ngd-update] becomes \[u_{t+1}=(1-\eta)u_t+\eta y+\eta\mathcal{G}(u_t). \]
Lemma 10 (Lipschitzness of the quadratic TAP correction). For \(J(m)=\bigl(Q(m)-q\bigr)m\) with \(q\in(0,1)\), \[\sup_{m\in[-1,1]^n}\norm{\nabla J(m)}_{\mathsf{op}}\le 3.\]
Proof. Since \[\nabla J(m)=\bigl(Q(m)-q\bigr)I+\frac{2mm^\top}{n},\] and \(Q(m)\in[0,1]\), \(q\in(0,1)\), and \(\norm{m}\le\sqrt n\), we have \[\norm{\nabla J(m)}_{\mathsf{op}} \le 1+\frac{2\norm{m}^2}{n}\le 3.\] ◻
Theorem 21 (TAP Lipschitz property for mixed \(p\)-spin). Assume the Hessian bound [eq:mixed-good-hessian-event] holds and \[\gamma_{\mathrm{mix}}(L_H,\xi,q,T)<1.\] Let \(0<\eta\le 1\). Set \(u_0=z_{K_{\mathrm{AMP}}}\) and \(\widetilde{u}_0=\widetilde{z}_{K_{\mathrm{AMP}}}\). Then for every \(t\ge 0\), \[\norm{u_t(y)-u_t(\widetilde{y})} \le \frac{1}{1-\gamma_{\mathrm{mix}}}\norm{y-\widetilde{y}}.\] Consequently, the final output satisfies \[\norm{\widehat m_{(K_\text{AMP}, K_{\text{NGD}})}(G,y)-\widehat m_{(K_\text{AMP}, K_{\text{NGD}})}(G,\widetilde{y})} \le \frac{1}{1-\gamma_{\mathrm{mix}}}\norm{y-\widetilde{y}}.\] If the NGD phase is run to convergence and the limit is the TAP fixed point \(m_{\mathrm{TAP}}(G,y)\), then the same Lipschitz bound holds for the TAP fixed point map \(y\mapsto m_{\mathrm{TAP}}(G,y)\).
Proof. By 20 and the initialization of NGD, \[\norm{\Delta u_0} =\norm{\Delta z_{K_{\mathrm{AMP}}}} \le \frac{1}{1-\gamma_{\mathrm{AMP}}}\norm{\Delta y} \le \frac{1}{1-\gamma_{\mathrm{mix}}}\norm{\Delta y}.\] We now show that the NGD step preserves this bound.
First, \(\mathcal{G}\) is \(\gamma_{\mathrm{NGD}}\)-Lipschitz. Indeed, by the Hessian bound, the \(1\)-Lipschitzness of \(\tanh\), and 10, \[\begin{align} \norm{\mathcal{G}(u)-\mathcal{G}(v)} &\le L_H\norm{u-v} +(1-q)\xi''(q)\norm{u-v} +\frac{3T}{2}\norm{u-v} \\ &=\gamma_{\mathrm{NGD}}\norm{u-v}. \end{align}\] Subtracting [eq:mixed-u-update] for \(y\) and \(\widetilde{y}\) gives \[\begin{align} \norm{\Delta u_{t+1}} &\le (1-\eta)\norm{\Delta u_t} +\eta\norm{\mathcal{G}(u_t)-\mathcal{G}(\widetilde{u}_t)} +\eta\norm{\Delta y} \\ &\le (1-\eta+\eta\gamma_{\mathrm{NGD}})\norm{\Delta u_t} +\eta\norm{\Delta y}. \end{align}\] Assume inductively that \[\norm{\Delta u_t}\le \frac{1}{1-\gamma_{\mathrm{mix}}}\norm{\Delta y}.\] Since \(\gamma_{\mathrm{NGD}}\le\gamma_{\mathrm{mix}}\), we obtain \[\begin{align} \norm{\Delta u_{t+1}} &\le \left(1-\eta+\eta\gamma_{\mathrm{NGD}}\right) \frac{1}{1-\gamma_{\mathrm{mix}}}\norm{\Delta y} +\eta\norm{\Delta y} \\ &\le \frac{1}{1-\gamma_{\mathrm{mix}}}\norm{\Delta y}. \end{align}\] Thus the bound holds for all \(t\). Finally, since \(\tanh\) is \(1\)-Lipschitz, \[\norm{\widehat m(G,y)-\widehat m(G,\widetilde{y})} \le \norm{u_{K_{\mathrm{NGD}}}(y)-u_{K_{\mathrm{NGD}}}(\widetilde{y})} \le \frac{1}{1-\gamma_{\mathrm{mix}}}\norm{y-\widetilde{y}}.\] If \(u_{K_{\mathrm{NGD}}}(y)\) and \(u_{K_{\mathrm{NGD}}}(\widetilde{y})\) converge as \(K_{\mathrm{NGD}}\to\infty\), the same inequality passes to the limit, giving the TAP fixed-point statement. ◻
Corollary 2 (High-probability Lipschitzness for fixed mixed \(p\)-spin). Fix a finite mixture \(\xi\), \(q\in(0,1)\), and \(\varepsilon>0\). Assume that the temperature coefficients \(\{\beta_p\}_{p=2}^{P}\) satisfy \[\mathfrak{C}(\{\beta_p\}) \mathrel{\vcenter{:}}= \sum_{p=2}^{P} \beta_p \sqrt{p^3 \log p} < \gamma_0, \qquad \mathfrak{D}(\{\beta_p\}) \mathrel{\vcenter{:}}= \sum_{p=2}^{P} \beta_p \sqrt{2^p p^3 \log p} < \infty .\] Then, with high probability over the disorder realization \(G\), the TAP-AMP mean computation in [alg:tap-amp] is Lipschitz. Specifically, for all \(y,\widetilde{y}\in\mathbb{R}^n\), \[\norm{\widehat m(G,y)-\widehat m(G,\widetilde{y})} \le O_{\xi,q,T}(1)\, \norm{y-\widetilde{y}}.\] Equivalently, the contraction parameter satisfies \[\gamma_{\mathrm{mix}}(L_H,\xi,q,T) \mathrel{\vcenter{:}}= \max\left\{ \gamma_{\mathrm{AMP}}(L_H,\xi), \gamma_{\mathrm{NGD}}(L_H,\xi,q,T) \right\} < 1 .\]
Proof. Under the high-temperature assumption, the constants appearing in the TAP-AMP Lipschitz analysis, namely \(L_\phi\), \(L_H\), \(T\), and the relevant derivatives of \(\xi\), are bounded by a constant \(c=c(\xi,q,T)\) which can be made sufficiently small by taking the temperature coefficients small enough. In particular, using the bounds from the TAP-AMP analysis, \[\begin{align} \gamma_{\mathrm{AMP}}(L_H,\xi) &= L_H+\xi''(1)+L_0L_\phi \\ &\leq c\left(2+\frac{4}{3\sqrt{3}}\right). \end{align}\] Similarly, \[\begin{align} \gamma_{\mathrm{NGD}}(L_H,\xi,q,T) &= L_H+\frac{3T}{2}+(1-q)\xi''(q) \\ &\leq \frac{7}{2}c . \end{align}\] Therefore, choosing the high-temperature constant \(\gamma_0\) sufficiently small ensures that both \[\gamma_{\mathrm{AMP}}(L_H,\xi)<1 \qquad\text{and}\qquad \gamma_{\mathrm{NGD}}(L_H,\xi,q,T)<1 .\] Hence \[\gamma_{\mathrm{mix}}(L_H,\xi,q,T)<1 .\] By the Lipschitzness criterion for the TAP-AMP mean computation, this implies that, with high probability over \(G\), \[\norm{\widehat m(G,y)-\widehat m(G,\widetilde{y})} \le O_{\xi,q,T}(1)\, \norm{y-\widetilde{y}}\] for all \(y,\widetilde{y}\in\mathbb{R}^n\). ◻
Proof of [prop:andrea-runtime-dependency]. Let \(t_\varepsilon=K\delta\) be the localization time horizon, using notation consistent with [21].
Their Lemma 4.14 gives, for the Euler ASL trajectory and with the mean-estimation accuracy parameter chosen as \(\rho=\sqrt{\delta}\), \[B_K \le C e^{C t_\varepsilon} t_\varepsilon\bigl(\rho\sqrt{t_\varepsilon}+\sqrt{\delta}\bigr) + C \rho\sqrt{t_\varepsilon} +o_n(1).\] Here, the parameter \(C\) is of order \(6^{K_\text{AMP}} = \poly(1/\varepsilon)\) ([prop:log-n-evaluation-of-mean]). Hence, for \(t_\varepsilon\ge 1\), \[B_K \le C e^{C t_\varepsilon}t_\varepsilon^{3/2}\sqrt{\delta} +o_n(1).\] Combining this with the localization error \(t_\varepsilon^{-1/2}\), the EMS proof obtains the pre-rounding bound ([21]) \[\mathbb{E} W_{2,n}\bigl(\mu_A,\mathcal{L}(\widehat m(A,\widehat y_K))\bigr) \le t_\varepsilon^{-1/2} + C e^{C t_\varepsilon}t_\varepsilon^{3/2}\sqrt{\delta} + o_n(1).\] To make the final rounded output have \(W_{2,n}\)-error at most \(\varepsilon\), their rounding lemma requires the pre-rounding error to be \(O(\varepsilon^2)\). Thus, they take their parameters to be \[t_\varepsilon=\operatorname{poly}(1/\varepsilon), \qquad \sqrt{\delta} \le C \varepsilon^2 e^{-C t_\varepsilon}t_\varepsilon^{-3/2}.\] Equivalently, \[\delta \le C \varepsilon^4 e^{-2C t_\varepsilon}t_\varepsilon^{-3}.\] Therefore the number of discretization steps satisfies \[K=\frac{t_\varepsilon}{\delta} \ge C^{-1}\varepsilon^{-4} e^{2C t_\varepsilon}t_\varepsilon^{4} = \exp\!\bigl(\operatorname{poly}(1/\varepsilon)\bigr).\] ◻