Introduction
Sampling from high-dimensional probability distributions is a fundamental challenge in Bayesian inference and machine learning. While gradient-based methods like Langevin Dynamics and Hamiltonian Monte Carlo (HMC) are highly effective for smooth, strongly convex log-densities, many practical applications involve "composite" structures. These distributions take the form $\pi(x) \propto \exp(-f(x) - g(x))$, where $f$ is a smooth, strongly convex potential and $g$ is a non-smooth component, such as an indicator function for a convex set or a penalty term like the $L_1$ norm.
Existing methods for sampling from such restricted or non-smooth distributions often suffer from poor scaling with respect to the dimension $d$, with iteration complexities reaching $O(d^5)$ or $O(d^7)$. This paper introduces a new algorithmic framework that bridges the gap between composite optimization and composite sampling, achieving a state-of-the-art iteration complexity of $\tilde{O}(\kappa^2 d)$.
The Restricted Gaussian Oracle (RGO)
A central contribution of this work is the formalization of the Restricted Gaussian Oracle (RGO). In optimization, the proximal operator allows one to handle non-smooth terms by solving a localized subproblem. The RGO is the sampling equivalent: it provides a sample from a distribution proportional to $\exp(-\frac{1}{2\lambda} \|x - v\|^2 - g(x))$. By abstracting the non-smooth component $g$ into this oracle, the authors develop a general-purpose algorithm that can be applied whenever an RGO is available—for example, in cases involving box constraints, $L_1$ penalties, or simplex constraints. Notably, unlike prior work, this method does not require knowing the normalization constant of the restricted Gaussian or assuming that $g$ is Lipschitz.
The Composite-Sample Algorithm
The proposed Composite-Sample algorithm utilizes three primary technical pillars to achieve its efficiency:
- Space Expansion: Drawing inspiration from underdamped Langevin dynamics and HMC, the algorithm expands the state space from $\mathbb{R}^d$ to $\mathbb{R}^d \times \mathbb{R}^d$. It constructs a joint distribution $\hat{\pi}(x, y)$ such that the marginal distribution of $x$ recovers the target distribution $\pi$.
- Alternating Marginal Sampling: The algorithm proceeds by alternating between sampling $y$ conditioned on $x$ (which depends on the smooth part $f$) and sampling $x$ conditioned on $y$ (which utilizes the RGO to handle the non-smooth part $g$).
- Shared Minimizer Reduction: To ensure stability and fast convergence, the authors introduce a preprocessing step that shifts $f$ and $g$ so they share a common minimizer. This technique acts as a form of variance reduction, preventing the iterates from drifting due to the tension between the smooth and non-smooth components.
Theoretical and Empirical Results
The authors prove that the algorithm reaches a target total variation distance $\epsilon$ in $O(\kappa^2 d \log^2(\frac{\kappa d}{\epsilon}))$ iterations. This represents the first algorithm to achieve linear dependence on the dimension $d$ for this general class of composite distributions, significantly outperforming previous general-purpose samplers.
The algorithm was evaluated on a challenging synthetic benchmark: sampling from a high-dimensional Gaussian restricted to the positive orthant ($\mathbb{R}^d_+$). This is a classic stress test for samplers because the boundaries of the orthant make it difficult for standard random walks to move efficiently. In experiments with $d=500$, the Composite-Sample algorithm demonstrated a significant speedup over the Hit-and-Run algorithm, the current gold standard for sampling from convex sets. The empirical results confirmed the $O(d)$ speedup predicted by the theoretical analysis.
Discussion and Future Work
The analysis provides a new perspective on the stability of perturbed Gaussians, showing that for small step sizes, the mean of a Gaussian restricted by a smooth potential remains close to its mode. This insight allows for tighter conductance bounds than previously possible under standard log-concavity arguments.
However, several avenues for future research remain. The efficiency of the algorithm depends on the availability of an efficient RGO; while RGOs are easy to implement for coordinate-separable functions, they may be computationally expensive for complex, coupled constraints. Additionally, while the $O(d)$ scaling is optimal, a gap remains between the $O(\kappa^2)$ dependence in this work and the $O(\kappa)$ dependence found in purely smooth sampling. Finally, extending the analysis to cases where $f$ is not individually strongly convex, but $f+g$ is, would further broaden the algorithm's applicability.
Summary updated