Papers
Topics
Authors
Recent
Search
2000 character limit reached

Diffusion Latent Beam Search (DLBS)

Updated 26 June 2026
  • DLBS is an inference-time algorithm that enhances text-to-video generation by framing conditional generation as a discrete search over the latent denoising trajectory.
  • It employs a light-weight beam search in latent space with short short-horizon deterministic lookahead, achieving improved alignment to prompt semantics without re-training.
  • DLBS outperforms traditional methods by balancing beam width, candidate count, and lookahead depth, leading to significant gains on video generation benchmarks.

Diffusion Latent Beam Search (DLBS) is an inference-time algorithm for optimizing the perceptual and semantic quality of outputs from diffusion models, with a primary application in text-to-video generation. The approach frames conditional generation as a discrete search problem over the latent denoising trajectory, combining light-weight beam search in the latent space with lookahead reward estimation. Unlike traditional sampling or greedy inference, DLBS enables effective alignment to prompt semantics and perceptual criteria without model retraining, utilizing a calibrated, potentially non-differentiable reward function for scoring and selection (Oshima et al., 31 Jan 2025).

DLBS operates over the reverse-time Markov chain defined by a diffusion model with TT denoising steps t=T,T1,...,1,0t=T,T-1,...,1,0. At each tt, the algorithm maintains BB beams, each representing a latent ztjRdz^j_t\in\mathbb{R}^d. The primary objective is to maximize a given reward function RR (possibly non-differentiable), evaluated on the fully denoised latent z0z_0 and text prompt cc: max{zTjN(0,I)}maxreverse paths ztzt1R(z0(zT),c)\max_{\{z^j_T \sim \mathcal{N}(0,I)\}} \max_{\text{reverse paths } z_t\rightarrow z_{t-1}} R(z_0(z_T),c) At each denoising step, every beam expands to KK candidates, producing t=T,T1,...,1,0t=T,T-1,...,1,00 new partial trajectories. Candidates are ranked by a "lookahead-augmented" score: t=T,T1,...,1,0t=T,T-1,...,1,01 where t=T,T1,...,1,0t=T,T-1,...,1,02 is computed via Tweedie’s formula (posterior mean after one denoising step), t=T,T1,...,1,0t=T,T-1,...,1,03 is a short deterministic DDIM chain lookahead estimator (of length t=T,T1,...,1,0t=T,T-1,...,1,04), and t=T,T1,...,1,0t=T,T-1,...,1,05 controls the influence of lookahead (default t=T,T1,...,1,0t=T,T-1,...,1,06).

The reward function t=T,T1,...,1,0t=T,T-1,...,1,07 is calibrated as a non-negative weighted sum of t=T,T1,...,1,0t=T,T-1,...,1,08 base metrics, reflecting alignment to text, subject consistency, motion, aesthetics, and image fidelity: t=T,T1,...,1,0t=T,T-1,...,1,09 The optimal weights tt0 are chosen to maximize Pearson correlation with feedback from large vision-LLMs (VLMs) such as GPT-4o or Gemini.

2. Algorithmic Structure and Pseudocode

The DLBS procedure is as follows:

  • Initialization: Sample tt1 for tt2.
  • Denoising Loop (for tt3 down to tt4):
    • For each beam, compute DDIM posterior mean for the next latent.
    • For tt5, for each beam, sample tt6 candidate children via Gaussian perturbation.
    • For each candidate, compute:
    • One-step posterior-mean estimate tt7
    • Optionally, run tt8-step deterministic DDIM to obtain lookahead endpoint tt9
    • Score using the sum (or only) of rewards at these endpoints.
    • Retain the top BB0 candidates by score for the next step.
  • Output: For the final BB1 denoised latents BB2, select the one maximizing BB3 after VAE decoding.

The overall computational budget per step is BB4 denoising samples; deeper lookahead (BB5) increases reward-fidelity at the cost of more compute. Empirically, BB6 to BB7 provides significant benefit.

3. Lookahead Estimation and Search-Efficiency Tradeoffs

DLBS’s core innovation is its efficient, short-horizon lookahead estimator. For each candidate latent at step BB8, a deterministic DDIM chain of length BB9 projects the latent to a near-terminal state, producing a sharper estimate of eventual reward. This contrasts with purely greedy approaches, which are prone to suboptimal local decisions especially for video or sequential domains.

Resource allocation is governed by trades between beam width ztjRdz^j_t\in\mathbb{R}^d0, candidates per beam ztjRdz^j_t\in\mathbb{R}^d1, and lookahead depth ztjRdz^j_t\in\mathbb{R}^d2. Larger ztjRdz^j_t\in\mathbb{R}^d3 increases exploration but at fixed computational budget requires smaller ztjRdz^j_t\in\mathbb{R}^d4. Increasing ztjRdz^j_t\in\mathbb{R}^d5 typically offers better reward-fidelity per beam than increasing ztjRdz^j_t\in\mathbb{R}^d6, with diminishing returns beyond ztjRdz^j_t\in\mathbb{R}^d7.

4. Reward Calibration and Metric Weighting

DLBS employs a calibrated reward ztjRdz^j_t\in\mathbb{R}^d8, constructed from six base VBench metrics: Subject Consistency (ztjRdz^j_t\in\mathbb{R}^d9), Motion Smoothness (RR0), Dynamic Degree (RR1), Aesthetic Quality (RR2), Imaging Quality (RR3), and Text–Video Consistency (RR4).

Weights RR5 are selected via grid search from RR6 to maximize the correlation between RR7 and model or human-proxy (VLM) preferences. This calibration substantially increases alignment between perceived quality and computed reward over any single metric, with statistical significance (RR8) (Oshima et al., 31 Jan 2025).

5. Empirical Results and Comparative Performance

DLBS achieves state-of-the-art inference-time perceptual alignment on multiple video generation benchmarks (MSRVTT-test, DEVIL-high/medium/static), consistently outperforming both Best-of-N (BoN) sampling and Greedy Search (GS). Quantitative improvements (normalized 0–1 scale with Gemini-calibrated reward on MSRVTT-test):

Method KB=8 KB=16 KB=32
BoN 0.42 0.45 0.47
GS 0.40 0.44 0.46
DLBS 0.48 0.52 0.55

Ablation studies demonstrate that even minimal lookahead (RR9) yields ~5% improvement over no lookahead, and optimal performance is achieved when z0z_00. Calibration weights yield significant Pearson z0z_01 increases relative to individual base metrics. Additionally, VLM-evaluated quality scales nearly linearly with z0z_02.

6. Deployment Guidelines and Recommendations

Effective use of DLBS follows this priority for compute allocation:

  1. Allocate initial resources to short-horizon lookahead (z0z_03–z0z_04) to stabilize reward estimates.
  2. Increase total search budget (z0z_05) to z0z_06–z0z_07 for coverage.
  3. Scale total DDIM steps z0z_08 only when additional compute is available beyond the above.

Robust hyperparameters are z0z_09–cc0, cc1–cc2 (for cc3), cc4, and DDIM stochasticity cc5. Default guidance scale (cc6) and reward lookahead weight (cc7) are stable across tasks.

DLBS represents a static-beam-width, static-tree-width beam search with deterministic lookahead reward evaluation. In contrast, algorithms such as Dynamic Search for Diffusion (DSearch) introduce dynamic beam-width scheduling, adaptive search-timestep selection, and multi-particle lookahead to further improve search efficiency and reward maximization (Li et al., 3 Mar 2025). Other work, such as BeamDiffusion for image sequences, employs cross-attention–based scoring and beam search at the sequence level, optimizing for joint consistency across image sets (Fernandes et al., 26 Mar 2025). DLBS’s efficiency and calibration approach make it a general-purpose inference-time optimizer for conditional generation in diffusion models.


References:

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Diffusion Latent Beam Search (DLBS).