[Paper Review] The OS* Algorithm: a Joint Approach to Exact Optimization and Sampling
The OS* algorithm unifies exact optimization and sampling by iteratively refining a functional upper bound on a target distribution using rejected samples. It combines adaptive rejection sampling with A*-style search, enabling efficient high-dimensional inference in models like HMMs and graphical models with up to 10x speedup over baseline methods.
Most current sampling algorithms for high-dimensional distributions are based on MCMC techniques and are approximate in the sense that they are valid only asymptotically. Rejection sampling, on the other hand, produces valid samples, but is unrealistically slow in high-dimension spaces. The OS* algorithm that we propose is a unified approach to exact optimization and sampling, based on incremental refinements of a functional upper bound, which combines ideas of adaptive rejection sampling and of A* optimization search. We show that the choice of the refinement can be done in a way that ensures tractability in high-dimension spaces, and we present first experiments in two different settings: inference in high-order HMMs and in large discrete graphical models.
Motivation & Objective
- Address the inefficiency of standard MCMC sampling (asymptotically valid) and rejection sampling (slow in high dimensions) for high-dimensional distributions.
- Develop a unified framework that treats exact optimization and exact sampling as dual problems under a common functional upper-bound formalism.
- Enable tractable inference in high-order models such as HMMs and large discrete graphical models by dynamically refining proposal bounds using evidence from rejected samples.
- Improve acceptance rates in rejection sampling without relying on global optimization of refinement candidates, instead using local, adaptive refinement based on rejections.
Proposed method
- Use a proposal distribution $ q $ that upper-bounds the unnormalized target density $ p $, enabling rejection sampling with exact samples.
- Refine $ q $ adaptively after each rejection by identifying a soft constraint implied by the gap $ q(x) - p(x) $ at the rejected point $ x $, and incorporating it into $ q $ to form $ q' $.
- For sampling, minimize the $ L_1 $-norm of the upper bound $ q $ to improve acceptance rate; for optimization, minimize the $ L_\infty $-norm to improve the bound on the maximum value.
- Leverage dynamic programming or low-complexity inference on $ q $ to efficiently sample or maximize from the proposal at each refinement step.
- Use rejection history to guide refinement: prioritize regions where $ q $ is too loose, ensuring that refinements are both effective and computationally efficient.
- Estimate the expected time to sample $ n $ points using $ \hat{\tau}^{\textrm{tot}}_{T} = \frac{n\tau_{T}^{\textrm{samp}}}{\hat{\pi}_{T}} + \tau_{T}^{\textrm{ref}} $, enabling adaptive stopping of refinement.
Experimental results
Research questions
- RQ1Can a single algorithm unify exact optimization and exact sampling using functional upper bounds?
- RQ2How can rejection sampling be made efficient in high-dimensional spaces without sacrificing exactness?
- RQ3Can rejected samples be used to guide adaptive refinement of proposal bounds more effectively than global optimization of refinement candidates?
- RQ4What is the impact of refinement strategy on total computation time in high-dimensional models?
- RQ5Can the OS* framework achieve state-of-the-art performance in exact decoding of high-order HMMs and large graphical models?
Key findings
- The OS* algorithm achieves up to a 10x speedup in sampling from large discrete graphical models compared to baseline methods, due to adaptive refinement based on rejected samples.
- The policy of refining only at rejected points (policy ii) achieves optimal total computation time, outperforming strategies that refine based on global $ L_p $-norm optimization of all candidates.
- The highest-acceptance-rate policy (iv) required more total time than policy (ii), demonstrating that maximizing acceptance rate per refinement step is suboptimal when refinement cost is non-negligible.
- Variable-order max-backoff bounds on n-gram probabilities enabled state-of-the-art performance in exact decoding of high-order HMMs.
- The method supports both sampling and optimization under a unified framework, with dynamic programming procedures available for both $ L_1 $-norm (sampling) and $ L_\infty $-norm (optimization) refinement.
- The algorithm’s adaptive refinement based on rejections is computationally more attractive than evaluating all potential one-step refinements, especially in high-dimensional spaces.
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.