Thermodynamic Focusing for Inference-Time Search: Practical Methods for Target-Conditioned Sampling and Prompted Inference
Zhan Zhang
TL;DR
This work tackles the challenge of discovering rare, high-quality solutions in massive candidate spaces by reframing search as target-conditioned sampling. It introduces ICFA, a practical framework that reweights a fixed proposal sampler via adaptive focusing and monitors stability with an ESS-based diagnostic. The authors provide a reproducible algorithm, stability strategies, and demonstrations in constrained generation and sparse-reward navigation, plus a language-level variant called Prompted ICFA. The results show substantial reductions in required samples and broader applicability, including a practical bridge to prompting when algorithmic intervention is not feasible.
Abstract
Finding rare but useful solutions in very large candidate spaces is a recurring practical challenge across language generation, planning, and reinforcement learning. We present a practical framework, \emph{Inverted Causality Focusing Algorithm} (ICFA), that treats search as a target-conditioned reweighting process. ICFA reuses an available proposal sampler and a task-specific similarity function to form a focused sampling distribution, while adaptively controlling focusing strength to avoid degeneracy. We provide a clear recipe, a stability diagnostic based on effective sample size, a compact theoretical sketch explaining when ICFA can reduce sample needs, and two reproducible experiments: constrained language generation and sparse-reward navigation. We further show how structured prompts instantiate an approximate, language-level form of ICFA and describe a hybrid architecture combining prompted inference with algorithmic reweighting.
