NLP Sampling: Combining MCMC and NLP Methods for Diverse Constrained Sampling
Marc Toussaint, Cornelius V. Braun, Joaquim Ortiz-Haro
TL;DR
This paper tackles generating diverse solutions under hard nonlinear constraints by formulating NLP Sampling, which combines energy-based objectives with constraint indicators into a tractable target distribution $p(x)$. It introduces Restarting Two-Phase NLP Samplers that alternately seed candidate points, perform slack downhill steps, and execute interior sampling (via NHR and mRRT) within the feasible set, governed by the relaxed energy $F_{\\gamma\\mu}(x)=\\gamma f(x)+\\mu s(x)^T s(x)$. A new diversity metric, the Minimum Spanning Tree Score $MSTS_p$, enables quantitative assessment of mode coverage across analytic and robotic benchmarks, where Gauss-Newton downhill and interior samplers often outperform plain gradient methods, and restart seeding effects vary by problem domain. The work discusses conceptual limitations, such as the limited role of Lagrange parameters in NLP Sampling and the challenges of diffused NLP for data-free global transport, while outlining future directions that could blend data-free approaches with learning-based denoising to achieve global mode calibration. Collectively, the framework advances constrained sampling by bridging constrained optimization, MCMC, and robotics, with practical implications for robust, diverse planning under complex constraints.
Abstract
Generating diverse samples under hard constraints is a core challenge in many areas. With this work we aim to provide an integrative view and framework to combine methods from the fields of MCMC, constrained optimization, as well as robotics, and gain insights in their strengths from empirical evaluations. We propose NLP Sampling as a general problem formulation, propose a family of restarting two-phase methods as a framework to integrated methods from across the fields, and evaluate them on analytical and robotic manipulation planning problems. Complementary to this, we provide several conceptual discussions, e.g. on the role of Lagrange parameters, global sampling, and the idea of a Diffused NLP and a corresponding model-based denoising sampler.
