[Paper Review] Computational Separations between Sampling and Optimization
This paper establishes computational separations between sampling and optimization in non-convex Bayesian learning by showing that sampling can be efficient while optimization is NP-hard, and vice versa, even for smooth, Lipschitz functions. It further reveals a sharp phase transition in sampling complexity at a critical temperature parameter λ, where efficient sampling gives way to NP-hardness as λ increases beyond a threshold.
Two commonly arising computational tasks in Bayesian learning are Optimization (Maximum A Posteriori estimation) and Sampling (from the posterior distribution). In the convex case these two problems are efficiently reducible to each other. Recent work (Ma et al. 2019) shows that in the non-convex case, sampling can sometimes be provably faster. We present a simpler and stronger separation. We then compare sampling and optimization in more detail and show that they are provably incomparable: there are families of continuous functions for which optimization is easy but sampling is NP-hard, and vice versa. Further, we show function families that exhibit a sharp phase transition in the computational complexity of sampling, as one varies the natural temperature parameter. Our results draw on a connection to analogous separations in the discrete setting which are well-studied.
Motivation & Objective
- To investigate the computational relationship between sampling from a posterior distribution and optimizing the log-likelihood function in Bayesian learning.
- To determine whether sampling can be easier than optimization in non-convex settings, especially when the temperature parameter λ is varied.
- To establish that sampling and optimization are provably incomparable: there exist function families where one is easy and the other is NP-hard.
- To identify a sharp threshold in the complexity of sampling as a function of the inverse temperature λ.
- To strengthen oracle model separations to NP-hardness, ruling out both black-box and non-black-box algorithms for sampling in certain cases.
Proposed method
- Constructs a family of continuous, Lipschitz functions where sampling is efficient but optimization is NP-hard, using a reduction from independent set problems on graphs.
- Applies a continuous-to-discrete reduction via a function f that maps hypercube points to penalties based on whether the corresponding vertex set is an independent set in a graph.
- Uses the inverse temperature λ to control the Gibbs distribution, linking the sampling problem to the independent set distribution on Δ-regular graphs.
- Employs the threshold result from Weitz (2006) and Sly & Sun (2012) on the existence of a phase transition in the FPRAS complexity of sampling independent sets.
- Applies Theorem 4 to establish that sampling from exp(−λf(x)) approximates sampling from exp(λ|I|) for λ ≥ 1/d, enabling the transfer of discrete complexity results to the continuous setting.
- Proves NP-hardness of sampling under the assumption that NP ≠ RP, using the hardness of approximating the number of independent sets in dense graphs.
Experimental results
Research questions
- RQ1Can sampling be strictly easier than optimization in non-convex Bayesian learning, even for smooth and Lipschitz functions?
- RQ2Is there a family of functions for which optimization is easy but sampling is NP-hard, particularly as a function of the inverse temperature λ?
- RQ3Does a sharp phase transition exist in the computational complexity of sampling as λ increases, analogous to the discrete case?
- RQ4Can oracle model separations between sampling and optimization be strengthened to NP-hardness, ruling out non-black-box algorithms?
- RQ5To what extent do the complexities of sampling and optimization depend on the temperature parameter λ in continuous distributions?
Key findings
- There exists a family of continuous, 1-Lipschitz functions on the d-dimensional ball for which sampling is efficient but optimization is NP-hard, even with black-box access to f and its gradients.
- For λ ≥ 2d and η < 1 − exp(−Ω(d)), sampling from the Gibbs distribution exp(−λf(x)) is NP-hard unless NP = RP.
- A sharp phase transition occurs in sampling complexity: for λ < λ_c, efficient η-sampling is possible in poly(d/η) time, but for λ > λ_c, no polynomial-time η-sampler exists unless NP = RP.
- The hardness of sampling holds not only for total variation distance but also for Wasserstein distance 1/16, as shown via a reduction in Remark 4.
- Optimization remains easy even under weak access models: gradient descent from random initialization converges to the global minimizer with high probability, and all local minima are global.
- The function family is efficiently computable in poly(d,t) time given a t-bit representation of x, ensuring practical implementability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.