Learnable Chernoff Baselines for Inference-Time Alignment

Sunil Madhow, Yuchen Liang, Ness B. Shroff, Yingbin Liang, Yu-Xiang Wang · DOI

TL;DR

This paper introduces Learnable Chernoff Baselines (LCBs), a new algorithm for aligning generative models (like diffusion models) to specific rewards at inference time without needing to update the model's weights. By using an adaptive form of rejection sampling guided by learned "baseline" functions, LCBs achieve high-quality alignment with significantly less computational overhead—using up to 12.5x fewer queries than standard rejection sampling.

What Problem Does This Paper Address?

Aligning a generative model—ensuring it produces safe, high-quality, or task-specific content—usually requires Reinforcement Learning from Human Feedback (RLHF) or fine-tuning. However, fine-tuning is computationally expensive and requires "open-weight" access to the model.

An alternative is inference-time alignment, where we steer a "black-box" pretrained model toward high-reward outputs during the sampling process. Common methods like Best-of-N (sampling $N$ times and picking the best) or Sequential Monte Carlo are popular but "brute-force," often doubling or tripling the compute cost. Standard rejection sampling can provide exact alignment but becomes "ill-conditioned" and impossibly slow when you want the model to adhere strictly to a reward (a regime called "strong alignment"). The authors aim to make this process efficient and mathematically grounded.

Methods

The core innovation is the Learnable Chernoff Baseline (LCB).

  1. The Framework: The authors view alignment as sampling from an "exponentially tilted" distribution. In a multi-step process (like diffusion), this means every transition step needs to be slightly nudged toward states that eventually lead to high rewards.
  2. Adaptive Rejection Sampling: Standard rejection sampling uses a global upper bound to decide whether to keep a sample. If the bound is too high, you reject almost everything, wasting compute. LCBs replace this global constant with a state-dependent baseline function ($B_t$).
  3. The Chernoff Bound: To set these baselines safely, the authors use the Chernoff bound (a tool from probability theory to bound the "tail" of a distribution). They train these baselines to predict the "soft-value" (expected future reward) of a state.
  4. Efficiency: If a generated path looks like it's heading toward a low-reward outcome, the baseline allows the algorithm to "give up" early and quickly accept a successor, rather than wasting time trying to find a perfect transition that doesn't exist.
  5. One-Time Training: While LCBs require training the baseline functions, this is a one-time upfront cost. Once trained, they can be used for any number of future inference queries.

Datasets

The authors evaluated LCBs on two primary setups:

  • 2D Mixture of Gaussians: A continuous toy-scale diffusion task used to verify the mathematical properties and visualize how LCBs track the "true" target distribution.
  • LLaDA-8B: A large-scale masked language diffusion model (8 billion parameters). They tested the model's ability to follow a complex constraint: "Write a creative story of exactly three sentences; the first word of each sentence should start with A, B, and C, respectively."

Key Insights and Ideas

  • Compute as a Continuous Dial: Unlike Best-of-N, which forces you to choose a discrete number of samples (2x, 3x, etc.), LCBs use a continuous hyperparameter ($\delta$) that lets you finely tune the trade-off between sampling accuracy and compute speed.
  • The "Giving Up" Heuristic: A major "aha moment" is that in the early stages of generation (high noise), it's often better to accept samples quickly even if they aren't perfect, as long as you have a baseline that tells you the "value" is likely to be low anyway. This prevents the "rejection explosion" seen in standard methods.
  • Covariate Shift Matters: The authors found it's crucial to train the baselines on the actual distribution the model sees during guided sampling, not just the base model's original distribution. They provide an iterative "particle-compatible" training algorithm to handle this.

Key Results

  • Massive Speedups: In continuous diffusion (Gaussian mixture), LCBs achieved the same alignment strength as standard rejection sampling but used 12.5x fewer queries to the pretrained model.
  • Beating Best-of-N: Compared to the popular Best-of-N baseline, LCBs used 7x fewer queries to reach the same level of alignment.
  • Language Performance: On the LLaDA-8B task, LCBs reduced the proposal complexity of rejection sampling by 25–87% depending on the desired alignment strength. For example, LCB 0.1 achieved a higher "perfect sample" rate than Best-of-2 while using 20% fewer proposals.
  • Theoretical Rigor: The paper provides "total-variation" (TV) guarantees, proving that the samples generated by LCBs are mathematically close to the ideal aligned distribution.

Limitations and Future Work

  • Soft-Value Dependency: The efficiency of LCBs depends on having a decent estimate of the "soft-value" function. If the value function is poorly estimated, the alignment will suffer (though the authors provide a recipe for estimating these values).
  • Upfront Cost: There is a non-trivial one-time cost to train the baselines. For LLaDA-8B, this took about 15 minutes on an A100 GPU.
  • Future Directions: The authors suggest extending this to "prompt-conditioned" rewards (where the reward changes based on the user's input) and exploring more complex, non-differentiable reward functions in scientific domains.

Summary updated

Abstract

We study inference-time reward-guided alignment for generative models. Existing methods often rely on either architecture-specific adaptations or computationally costly inference procedures. We introduce Learnable Chernoff Baselines (LCBs) as a method for efficiently and approximately sampling from the exponentially tilted kernels that arise from KL-regularized reward alignment. Using only black-box sampling access to the pretrained model, LCBs implement a form of rejection sampling with adaptively selected acceptance probabilities, which allows fine-grained control over inference-compute scaling. We establish total-variation guarantees to the ideal aligned model, and demonstrate in both continuous and discrete diffusion settings that LCB sampling closely matches ideal rejection sampling while using substantially fewer queries to the pretrained model.
BibTeX
@misc{madhow2026learnable,
  author = {Sunil Madhow and Yuchen Liang and Ness B. Shroff and Yingbin Liang and Yu-Xiang Wang},
  title = {{Learnable Chernoff Baselines for Inference-Time Alignment}},
  year = {2026},
  eprint = {2602.07738},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.07738},
}
Figure