Manuscript Offprint

arXiv:2610.02774

LatticeSMC: Where to Spend Inference-Time Compute in Chunked Sequence Generators

Xuanchen Wang, Heng Wang, Weidong Cai

Xuanchen Wang

School of Computer Science

The University of Sydney

Sydney, NSW, Australia

xwan0579@uni.sydney.edu.au

Heng Wang

School of Computer Science

The University of Sydney

Sydney, NSW, Australia

heng.wang@sydney.edu.au

Weidong Cai

School of Computer Science

The University of Sydney

Sydney, NSW, Australia

tom.cai@sydney.edu.au

ABSTRACT

Long-form generators for music, motion and video produce a sequence chunk by chunk, each chunk by iterative denoising, while the rewards that matter are defined on the whole sequence. Existing inference-time steering methods act on one axis of this process at a time, best-of-N at the end, Feynman-Kac steering across denoising steps, streaming pipelines across chunks, and have been compared under different return rules at unmatched compute. We introduce budget-matched chunked steering, the task of maximizing a sequence-level reward with a chunked generator under a fixed number of denoiser evaluations, and propose LatticeSMC, a sampler derived from a Feynman-Kac model on the two-dimensional lattice of chunk index and denoising step. Two exact telescoping results make the design derivable: for chunk-additive rewards the two axes carry identical weights, so resampling belongs wherever lookahead is cheapest; for terminal rewards any prefix score yields an exact intermediate potential, so a prefix-evaluable reward is a twist with no estimation and no extra denoiser evaluations. LatticeSMC resamples properly on these exact potentials, at chunk boundaries and, when the plug-in reward is free, within chunks, and returns either a draw from its particle approximation of the reward-tilted target or its best particle, and recovers Feynman-Kac steering as its within-chunk schedule. Under matched compute, on a music-to-dance diffusion model and a 40-second text-to-music model, it raises beat alignment from 0.234 to 0.441 (best-of-N: 0.354) and prompt adherence from 0.470 to 0.560 at 32 particles with held-out quality metrics at base, holds its lead on the long-range reward at six and eight chunks, and is preferred by human raters over every comparator in 60 to 77 percent of pairwise judgements. Two measurable properties of the reward settle what remains: how hard to commit at a boundary follows the information in its exact potential, which the effective-sample-size gate reads off and greedy pruning cannot, and whether content-axis lookahead pays follows the within-set predictability of future reward, measured before any particle is spent. The source code is available at LatticeSMC.

1 INTRODUCTION

Generative models for long-form sequential data increasingly produce their output in chunks: dance diffusion conditions each five-second window on the last (Tseng et al., 2023), latent text-to-music models generate a window that inpainting extends past its edge (Evans et al., 2024; 2025), and streaming video models denoise frame blocks against a growing context (Chen et al., 2024; Yin et al., 2025; Huang et al., 2025). Each chunk is generated by iterative denoising (Ho et al., 2020;

Lipman et al., 2023), so a sequence is the result of a process with two clocks, the denoising step within a chunk and the chunk index, and the rewards that matter are rarely local to a chunk: a choreography must follow the beat for its whole duration and a song must match its prompt over forty seconds rather than its first ten. Spending inference-time compute to raise such rewards without retraining the generator is our setting.

Each existing steering tool acts on a single axis of this process. Best-of-N draws complete sequences and keeps the best (Brown et al., 2024; Ma et al., 2025), spending every evaluation before any evidence arrives. Feynman-Kac steering (Singhal et al., 2025; Skreta et al., 2025) resamples across denoising steps on plug-in rewards of partially denoised states, and twisted sequential Monte Carlo replaces the plug-in by a learned or refined twist (Wu et al., 2023a; Wang et al., 2026; Kim et al., 2026); for a chunked generator either means resampling on estimates of the current chunk while the sequence-level reward is out of reach. Streaming video systems prune candidate chunks after each block by greedy top-M selection (Tu et al., 2026). These methods have been compared under different return rules and at budgets that do not charge the decoder and reward evaluations lookahead requires, so where on the two-clock lattice to place resampling events has had no principled answer.

Our starting point is that every one of these methods is a choice of potentials and resampling events on one object, a Feynman-Kac model (Del Moral, 2004; Chopin & Papaspiliopoulos, 2020) on the lattice of chunk index k and denoising step τ\tau (Figure 1): best-of-N at the terminal corner, Feynman-Kac steering along the denoising axis, chunk pruning along the chunk axis with degenerate resampling. Two properties follow by telescoping: for a reward that decomposes over chunks, the product of a chunk's denoising-axis potentials equals its chunk-axis potential exactly, so the two axes define the same tilted target with the same per-chunk weights and differ only in where resampling occurs; for a terminal reward, any prefix scores whose final value is the reward define exact intermediate potentials, so a prefix-evaluable reward is a twist with no estimation. LatticeSMC is the sampler these results prescribe: exact chunk rewards or prefix-score increments as potentials, so its target is the reward-tilted distribution without a learned component; resampling gated by effective sample size (Kong et al., 1994) at chunk boundaries; a within-chunk schedule switched on only when plug-in evaluation is free, since axis equivalence says those events change the resampling times and not the weights; and two return modes, a weighted draw for sampling and the best particle for search.

We evaluate LatticeSMC under matched denoiser evaluations on four sequence-level rewards across two modalities: beat alignment and a long-range repetition reward for a music-to-dance diffusion model on AIST++ (Li et al., 2021), and prompt adherence (Wu et al., 2023b) and motif recurrence for a 40-second text-to-music flow model.

Our contributions can be summarized as follows:

• We introduce the lattice Feynman-Kac model, a unifying formulation under which existing inference-time methods correspond to different placements of potentials. We further derive two telescoping results: identical axis weights for chunk-additive rewards and exact prefix-score potentials for terminal rewards.

• We propose LatticeSMC, a training-free sampler whose every design decision follows directly from the model, with no learned components.

• We derive practical criteria for commitment and lookahead. Commitment at each boundary should follow the information carried by its exact potential, which explains when the sharpest per-boundary tilt succeeds and when an ESS gate is required to preserve the particle set. Lookahead pays in proportion to the within-set predictability of future reward, a quantity measurable before sampling, which prefix-evaluable scores realize and learned regressors do not.

• With 32 particles, LatticeSMC matches or outperforms every compared method on every reward, raising beat alignment from 0.234 to 0.441 (best-of-N: 0.354; chunk pruning: 0.415) and prompt adherence from 0.470 to 0.560 while preserving held-out quality. It matches Feynman-Kac steering at a quarter of the decoder calls, retains its advantage on long-range rewards at six and eight chunks, holds its ranking from 4M to 38M parameters, and is preferred by human raters.

(a) LatticeSMC: chunkwise generation and resampling

Figure

(b) Steering locations on the lattice

Figure

(c) Exact weights from telescoping

Figure

Figure 1: The lattice Feynman-Kac model and LatticeSMC. (a) One pass: N particles extend their clean prefix by one chunk, each completed prefix is scored (chunk reward rkr_k or prefix score sks_k), the set is resampled systematically at the boundary when the ESS falls below N/2, and after the last chunk the sampler returns a weighted draw (sampling) or the best particle (search). (b) Where each method places its potentials on the lattice of chunk index k and denoising step τ\tau. (c) The telescoping results: denoising-axis potentials multiply to the chunk potential (Proposition 1); prefix-score increments with a terminal correction multiply to exp⁡(r/α)\exp(r/\alpha) (Proposition 2).

References (62)