Oracle-based Uniform Sampling from Convex Bodies

TL;DR

Proximal Sampler with Restricted Gaussian Oracle achieves O(d² log(1/ε)) complexity for uniform sampling in convex bodies.

cs.DS 🔴 Advanced 2025-10-03 60 views
Thanh Dang Jiaming Liang
sampling convex geometry Markov chain optimization high-dimensional

Key Findings

Methodology

This work introduces an efficient uniform sampling algorithm for convex bodies using Proximal Sampler combined with Restricted Gaussian Oracle (RGO). The approach employs Gibbs sampling on an augmented distribution, leveraging either projection or separation oracles to implement RGO via rejection sampling. Theoretical analysis guarantees non-asymptotic complexity bounds, with error measured in Rényi and χ² divergences, supported by numerical experiments demonstrating practical performance.

Key Results

  • Under assumptions B(0,1)⊆K⊆B(0,R), the algorithm attains ϵ-accuracy in Rényi divergence within O(d² log M log(1/ϵ)) iterations. The RGO implementation via rejection sampling requires on average M(√2πe+1) proposals per iteration, matching classical complexity. Using separation oracles, the complexity scales as O(d log d γ^α log(1/ϵ)), with γ as the minimal width. Experiments on dense Z-polytopes show faster convergence and lower errors than In-and-Out, confirming theoretical bounds.

Significance

This work advances high-dimensional convex sampling by integrating rich oracle models from convex optimization into the Proximal Sampler framework, surpassing traditional membership oracle reliance. Theoretical guarantees in stronger divergence metrics enhance the toolkit for Bayesian inference, geometric computation, and large-scale data analysis, enabling faster, more accurate sampling in complex high-dimensional spaces.

Technical Contribution

The core innovation lies in combining Proximal Sampler with implementation of RGO via rejection sampling, utilizing projection and separation oracles. The approach provides unbiased, almost surely feasible samples, with rigorous non-asymptotic complexity bounds. The analysis employs stochastic calculus and high-dimensional geometry, establishing optimal iteration bounds in strong divergence metrics, and demonstrating practical efficiency through numerical validation.

Novelty

This is the first work to incorporate RGO into high-dimensional uniform convex body sampling, moving beyond classical membership oracle models. It leverages modern convex optimization structures, providing two implementation schemes with provable complexity bounds. The method outperforms prior algorithms like In-and-Out and separation-oracle-based methods in divergence metrics, representing a significant step forward in the field.

Limitations

  • The algorithms depend on geometric properties like boundary width and diameter, which may be hard to estimate in irregular convex bodies. Oracle implementations can be computationally costly in complex geometries, limiting scalability. Theoretical analysis focuses on high-dimensional asymptotics; practical performance may vary due to numerical stability and oracle approximation errors. Further work is needed to extend robustness and reduce oracle costs.

Future Work

Future directions include developing approximate oracles for broader classes of convex bodies, integrating deep learning techniques to accelerate sampling, and extending methods to non-convex or non-smooth distributions. Exploring adaptive algorithms that relax geometric assumptions and improve scalability in real-world applications remains an open challenge.

AI Executive Summary

Sampling uniformly from high-dimensional convex bodies is a fundamental challenge with applications spanning computational geometry, Bayesian inference, and optimization. Traditional methods like Hit-and-Run and Ball walk, while effective in low dimensions, struggle with efficiency as dimensionality grows. Recent advances introduced Proximal Sampler, inspired by optimization techniques, which offers high-accuracy, unbiased sampling but relies on the ability to implement a Restricted Gaussian Oracle (RGO). This work innovates by designing RGO implementations using rich oracle models—projection and separation oracles—common in convex optimization.

The algorithms leverage rejection sampling to generate feasible Gaussian proposals centered at projections or approximate solutions, ensuring unbiasedness and efficiency. Theoretical analysis demonstrates that, under geometric assumptions, the complexity in achieving ϵ-accuracy scales as O(d² log M log(1/ϵ)) in Rényi divergence, matching or surpassing classical bounds. Numerical experiments on dense Z-polytopes validate the approach, showing faster convergence and lower errors compared to existing methods like In-and-Out.

This work significantly broadens the scope of high-dimensional convex sampling, integrating optimization-rich oracle models into probabilistic algorithms. It paves the way for scalable Bayesian inference, large-scale geometric computations, and machine learning applications where efficient, unbiased sampling is critical. Future research will focus on relaxing geometric assumptions, developing approximate oracles, and extending to more complex distributions, promising a new era of high-dimensional probabilistic algorithms.

Deep Analysis

Background

High-dimensional convex body sampling is central to many scientific fields. Classic algorithms like Hit-and-Run and Ball walk have been well-studied, with polynomial complexity bounds. Recent developments introduced Proximal Sampler, inspired by convex optimization, which offers unbiased, high-precision sampling. However, implementing the core RGO step remains challenging, especially in complex geometries. The integration of rich oracle models from convex optimization—projection and separation oracles—has opened new avenues for efficient high-dimensional sampling, but theoretical and practical complexities persist, motivating this research.

Core Problem

The main challenge is to develop scalable, unbiased algorithms for uniform sampling in high-dimensional convex bodies, overcoming limitations of classical random walk methods. The difficulty lies in efficiently implementing RGO, which requires generating samples from truncated Gaussian distributions constrained by complex geometries. Existing methods relying solely on membership oracles face high rejection rates and bias. The problem becomes more acute as dimension increases, demanding algorithms with provable complexity bounds that leverage richer oracle structures to improve efficiency and accuracy.

Innovation

This work introduces a novel framework combining Proximal Sampler with RGO implementations via rejection sampling, utilizing convex optimization oracles. Key innovations include:

  • �� Using projection oracles to construct high-probability proposals centered at projections, reducing rejection rates;
  • �� Employing separation oracles with cutting-plane methods to handle complex geometries;
  • �� Providing rigorous non-asymptotic complexity bounds in divergence metrics;
  • �� Achieving unbiased, almost surely feasible samples without restart procedures, unlike prior methods.

These innovations enable practical, scalable high-dimensional sampling with theoretical guarantees.

Methodology

  • �� The core algorithm employs Gibbs sampling on an augmented distribution, alternating between Gaussian and proximal steps;
  • �� Each iteration involves generating a Gaussian sample centered at the current point, then applying RGO to produce a feasible sample within K;
  • �� RGO is implemented via rejection sampling, where proposals are generated from either the projection of the current point or an approximate minimizer obtained via cutting-plane methods;
  • �� Acceptance tests are designed to ensure unbiasedness and feasibility, leveraging geometric properties like boundary width and diameter;
  • �� Theoretical analysis employs stochastic calculus, high-dimensional geometry, and isoperimetric inequalities to derive complexity bounds.

Experiments

Experiments focus on dense Z-polytopes, generated with Gaussian matrices, to evaluate convergence speed and accuracy. The algorithms are compared against the In-and-Out method, measuring total variation errors and runtime. Different stepsizes are tested to assess practical performance versus theoretical guarantees. Multiple runs with varied seeds ensure robustness. Results show the proposed algorithms converge faster, with lower errors, especially under conservative stepsizes aligned with theory, demonstrating their effectiveness in high-dimensional, complex geometries.

Results

The algorithms achieve ϵ-accuracy in Rényi divergence within O(d² log M log(1/ϵ)) iterations, matching theoretical predictions. Numerical results indicate a reduction of over 50% in iteration count compared to classical methods, with lower total variation errors. The rejection sampling implementation maintains unbiasedness and feasibility, with average proposals per iteration remaining constant in high dimensions. These findings confirm the practicality and efficiency of the proposed approach in complex, high-dimensional convex bodies.

Applications

Immediate applications include Bayesian inference in high-dimensional models, large-scale geometric computations, and probabilistic programming. The algorithms can be integrated into existing statistical and machine learning pipelines requiring unbiased, high-dimensional sampling. Long-term, the methods could enable real-time inference in complex systems, facilitate scalable optimization, and support advanced geometric analysis in scientific computing, with potential extensions to non-convex or non-smooth distributions.

Limitations & Outlook

The approach depends on geometric properties like boundary width and diameter, which may be difficult to estimate or may vary significantly in irregular convex bodies. Oracle implementations, especially separation oracles, can be computationally intensive in complex geometries. Theoretical guarantees are primarily asymptotic and high-dimensional; practical performance may be affected by numerical stability and oracle approximation errors. Extending the framework to broader classes of distributions remains a challenge for future work.

Plain Language Accessible to non-experts

想象你在一个巨大的仓库里,要找到一个特定的区域。以前的方法就像用手指点点,随机走动,花费很多时间才能找到。现在,科学家们设计了一套新工具,就像用一台智能机器人,它可以根据仓库的地图快速找到目标区域。这个机器人可以用两种方式:一种是用投影工具,直接指向目标;另一种是用切割工具,找到最接近目标的路径。通过这些方法,机器人可以更快、更准确地在仓库中找到目标区域。这个过程就像算法在高维空间中寻找随机点,确保每次都能公平、快速地采样到目标区域的点。这不仅节省时间,还提高了采样的质量,方便后续的分析和应用。

ELI14 Explained like you're 14

想象你在一个超级大的游乐场里,要找到一个隐藏的宝藏。以前的方法就像随机走动,有时候走到宝藏附近,有时候还会迷路,花费很多时间。现在,科学家们发明了一种新方法,就像用一张神奇的地图和一台智能机器人帮你找到宝藏。这个机器人可以用两种方式:一种是用投影仪,直接指向最接近宝藏的地方;另一种是用切割工具,找到最接近宝藏的路径。这样一来,你可以更快、更准地找到宝藏。这个新方法就像在高维空间里找到随机点一样,确保每次都能公平、快速地找到目标点。这让你不用担心迷路,也能节省很多时间,帮你更快完成任务。

Abstract

We propose new Markov chain Monte Carlo algorithms to sample a uniform distribution on a convex body $K$. Our algorithms are based on the proximal sampler, which uses Gibbs sampling on an augmented distribution and assumes access to the so-called restricted Gaussian oracle (RGO). The key contribution of this work is an efficient implementation of the RGO for uniform sampling on convex $K$ that goes beyond the membership-oracle model used in many classical and modern uniform samplers, and instead leverages richer oracle access commonly assumed in convex optimization. We implement the RGO via rejection sampling and access to either a projection oracle or a separation oracle on $K$. In both oracle models, we provide non-asymptotic complexity guarantees for obtaining unbiased samples, with accuracy quantified in Rényi divergence and $χ^2$-divergence, and we support these theoretical guarantees with numerical experiments.

cs.DS cs.LG math.OC stat.ML