Log-concave Sampling from a Convex Body with a Barrier: a Robust and Unified Dikin Walk

Yuzhou Gu, Nikki Lijing Kuang, Yian Ma, Zhao Song, Lichen ZhangNeurIPS 2024

Sampling from complex, high-dimensional shapes is a cornerstone of modern science, powering everything from Bayesian inference to differential privacy and convex optimization. However, as the number of constraints defining these shapes grows, traditional algorithms often get bogged down by the sheer weight of the math required at every step.

In their NeurIPS 2024 paper, researchers from NYU, UC San Diego, and MIT present a new "robust" framework for log-concave sampling. By proving that we can use "sketches" or approximations of a shape's geometry rather than exact calculations, they’ve significantly sped up the process of navigating complex polytopes and spectrahedra.

The Bottleneck of Dikin Walks

Imagine trying to pick a random point inside a high-dimensional "room" (a convex body) where the floor isn't level—some areas are much more likely to be picked than others (a log-concave distribution).

The standard tool for this is the Dikin Walk. It uses a "barrier function" to sense the walls of the room, allowing the sampler to take larger steps in the middle and smaller, more careful steps near the edges. To do this, the algorithm must calculate the Hessian (a matrix of second-order derivatives) of the barrier function at every single step.

The bottleneck is two-fold:

  1. Computational Cost: Calculating the exact Hessian is expensive, especially when the room is defined by thousands of constraints ($n$).
  2. Mixing Time: How many steps do you need to take before your position is truly "random"? Previous methods often had mixing times that scaled poorly with the number of constraints or the specific geometry of the distribution.

A Robust Sampling Framework

The core innovation of this paper is the Robust Sampling Framework. Instead of demanding the exact Hessian at every step, the authors prove that a spectral approximation is sufficient.

Key components include:

  • Soft-Threshold Dikin Walk: They use a regularized version of the Hessian (adding a small multiple of the identity matrix). This "soft-thresholding" prevents the steps from becoming too erratic near the boundaries.
  • Matrix Sketching & Tensors: To get these approximations quickly, they employ randomized linear algebra. For polytopes, they use Lee-Sidford barriers and leverage leverage-score sampling. For spectrahedra (the complex shapes used in semidefinite programming), they use TensorSRHT (Tensor Subsampled Randomized Hadamard Transform) to approximate the Kronecker product structure of the Hessian.
  • Modified Metropolis-Hastings: Because they use an approximate Hessian, they carefully adjust the acceptance/rejection rule to ensure the walk still converges to the correct target distribution.

Key Insights

  • Approximation is "Good Enough": The most significant insight is the proof that as long as your Hessian approximation error is inversely proportional to the dimension ($1/d$), the Markov chain will still converge rapidly. This decouples the mixing time from the exactness of the geometry.
  • Barrier-Based Proof Strategy: Previous proofs relied on a "polytope-based" argument (imagining the shape is made of many identical copies of itself). The authors developed a more general "barrier-based" strategy that works for more sophisticated barriers like Lee-Sidford or volumetric barriers.
  • Breaking the $n$ Dependency: For polytopes, they achieved a mixing time that depends primarily on the dimension ($d^2$) rather than the number of constraints ($n$), which is a major win for "tall" problems where $n \gg d$.

Key Results

The paper provides significant theoretical speedups over previous state-of-the-art (SOTA) methods, summarized in the tables below.

For Polytopes: Their walk mixes in $\tilde{O}(d^2 + dL^2R^2)$ steps. Crucially, the cost per step is reduced to $\tilde{O}(nd^{\omega-1})$, where $\omega \approx 2.37$ is the matrix multiplication exponent. This is faster than previous walks by Mangoubi and Vishnoi when the number of constraints is large.

Comparison of mixing times and per-iteration costs for polytope sampling.

For Spectrahedra: They improved the mixing time from $\tilde{O}(n^2d^3)$ (the previous best by Narayanan and Rakhlin) down to $\tilde{O}(nd + dL^2R^2)$. This represents a massive reduction in the number of steps required to sample from the feasible regions of semidefinite programs.

Comparison of mixing times and per-iteration costs for spectrahedron sampling.
(Note: $L$ is the Lipschitz constant of the density, and $R$ is the radius of the bounding ball.)

Limitations and Future Work

While the paper makes huge strides, the authors acknowledge a few areas for improvement:

  • Bounding Box Dependency: The mixing time still depends on $R$, the radius of the ball containing the shape. Ideally, a walk would be "affine-invariant," meaning it wouldn't care how stretched or large the shape is.
  • Log-Lipschitz Requirement: The current framework requires the target density to be log-Lipschitz. Future work could explore relaxing this to just "Lipschitz" under certain conditions.
  • Riemannian Metrics: The authors suggest that extending this "robust" logic to Riemannian Hamiltonian Monte Carlo (RHMC) could lead to even faster mixing by better utilizing the curved geometry of the space.

Summary updated

BibTeX
@inproceedings{gu2024log,
  author = {Yuzhou Gu and Nikki Lijing Kuang and Yian Ma and Zhao Song and Lichen Zhang},
  title = {{Log-concave Sampling from a Convex Body with a Barrier: a Robust and Unified Dikin Walk}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=XKrSB5a79F},
}
Figure