LatticeSMC: Where to Spend Inference-Time Compute in Chunked Sequence Generators
Organizations: School of Computer Science The University of Sydney Sydney, NSW, Australia
Abstract
Long-form generators for music, motion and video produce sequences chunk by chunk, with each chunk generated by iterative denoising while rewards are defined over the full sequence. Existing inference-time steering methods typically act on one axis at a time: best-of-N at the end, Feynman-Kac steering across denoising steps, or streaming pruning across chunks, and are often compared under unmatched compute or different return rules. We introduce budget-matched chunked steering and propose LatticeSMC, a sampler derived from a Feynman-Kac model on the two-dimensional lattice of chunk index and denoising step. Two telescoping results make its design exact: for chunk-additive rewards, the two axes induce identical weights, so resampling should occur where lookahead is cheapest; for terminal rewards, any prefix score defines an exact intermediate potential, making prefix-evaluable rewards twists with no estimation or extra denoiser calls. LatticeSMC resamples on these potentials at chunk boundaries and, when scoring is free, within chunks, returning either a weighted draw or the best particle. Under matched compute, on music-to-dance diffusion and 40-second text-to-music generation, 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, while preserving held-out quality. It also retains its advantage on long-range rewards and is preferred by human raters in 60-77 percent of pairwise comparisons. Finally, we show that commitment strength should follow the information in the current potential, while the value of lookahead is predicted by the within-set predictability of future reward.
Figures & tables
| Beat alignment | Repetition | Prompt adherence | Motif recurrence | |||||
|---|---|---|---|---|---|---|---|---|
| draw | argmax | draw | argmax | draw | argmax | draw | argmax | |
| Base ( ) | 0.234 [0.223, 0.243] | 0.718 [0.628, 0.804] | 0.470 [0.449, 0.491] | 0.814 [0.786, 0.839] | ||||
| Best-of-N | 0.347 | 0.354 | 0.895 | 0.901 | 0.527 | 0.530 | 0.904 | 0.918 |
| Chunk pruning (top- ) | – | 0.415 | – | 0.887 | – | 0.551 | – | 0.918 |
| Twisted SMC, learned twist | 0.385 | 0.419 a | 0.871 | 0.895 | – | – | – | – |
| LatticeSMC, dense (FK steering placement) | 0.387 ⋆ | 0.441 ⋆ | 0.921 ⋆ | 0.962 ⋆ | 0.546 | 0.559 | 0.908 | 0.932 |
| LatticeSMC (argmax) pruning at | 2 | 4 | 8 | 16 | 32 | argmax - draw |
|---|---|---|---|---|---|---|
| Beat alignment | ||||||
| Repetition | ||||||
| Prompt adherence | ||||||
| Motif recurrence |
| Beat alignment | Repetition | |||||
|---|---|---|---|---|---|---|
| 4 | 6 | 8 | 4 | 6 | 8 | |
| Best-of-N | 0.354 | 0.333 | 0.335 | 0.901 | 1.795 | 2.544 |
| Chunk pruning ( ) | 0.415 | 0.410 | 0.434 | 0.887 | 1.830 | 2.555 |
| LatticeSMC, boundary | 0.428 | 0.393 | 0.382 | 0.947 | 1.930 | 2.676 |
| LatticeSMC, dense | 0.441 | 0.400 | 0.396 | 0.962 | 1.930 | 2.711 |
| LatticeSMC, boundary / dense, | – | 0.436 / 0.441 | 0.455 / 0.450 | – | – | – |
| Twist | cross-prompt | within-set corr. | residual (nats) | effect at |
|---|---|---|---|---|
| (exact potentials only) | – | – | – | |
| Learned regressor | ||||
| Learned regressor, 38M model | – | |||
| Regressor trained on within-set weights | – | – | ||
| Oracle, 16 rollouts per particle | – |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Lattice points with | Potential | Resampling | Return |
|---|---|---|---|---|
| Best-of-N | IS or none | draw or argmax | ||
| Feynman-Kac steering | , | plug-in difference | SYS | draw |
| Chunk pruning | prefix reward, | TOP- | argmax | |
| LatticeSMC, boundary | exact chunk term or prefix increment | SYS | draw or argmax | |
| LatticeSMC, dense | and | as above, plus plug-in differences | SYS | draw or argmax |
| Reward | Prefix pool | |||
|---|---|---|---|---|
| Beat alignment (chunk-additive) | pooled, | |||
| Repetition (long range) | pooled, | |||
| Prompt adherence (terminal) | within condition, |
| Reward | Reward [95% CI] | Held out | ( ) | boundary argmax | |
|---|---|---|---|---|---|
| Beat alignment | 1 | PFC 1.73, 0.0078 | |||
| 8 | PFC 2.05, 0.0082 | ||||
| 16 | PFC 1.80, 0.0076 | ||||
| Repetition | 1 | PFC 1.62, 0.0081 | |||
| 8 | PFC 1.36, 0.0077 | ||||
| 16 | PFC 1.43, 0.0081 |
| Method | Reward [95% CI] | fired | PFC | diversity | |||
|---|---|---|---|---|---|---|---|
| Beat alignment , | |||||||
| Base | 1 | 1.70 | 0.0078 | 0.178 | |||
| Best-of-N (draw) | 8 | 1.58 | 0.0075 | 0.180 | |||
| Best-of-N (argmax) | 8 | 1.75 | 0.0079 | 0.178 | |||
| Chunk pruning | 8 | 1.00 | 0.25 | 1.90 | 0.0079 | 0.181 | |
| LatticeSMC, boundary (draw) | 8 | 0.35 | 0.53–0.62 | 1.69 | 0.0079 | 0.185 | |
| Method | Reward [95% CI] | fired | PFC | diversity | |||
|---|---|---|---|---|---|---|---|
| Beat alignment , | |||||||
| Base | 1 | 1.62 | 0.0067 | 0.191 | |||
| Best-of-N (draw) | 8 | 2.27 | 0.0088 | 0.214 | |||
| Best-of-N (argmax) | 8 | 1.68 | 0.0070 | 0.197 | |||
| Chunk pruning | 8 | 1.00 | 0.25 | 2.14 | 0.0084 | 0.213 | |
| LatticeSMC, boundary (draw) | 8 | 0.33 | 0.50–0.65 | 2.54 | 0.0076 | 0.223 | |
| Dance | Music | |||||||
|---|---|---|---|---|---|---|---|---|
| PFC | diversity | tempo | 8 kHz | PQ | seam | diversity | ||
| Base | 1.97 | 0.0080 | 0.183 | 0.903 | 0.0069 | 8.17 | 1.27 | 0.061 |
| Steered, all methods | 1.84–2.24 | 0.0077–0.0083 | 0.174–0.184 | 0.894–0.944 | 0.0061–0.0067 | 8.12–8.16 | 1.25–1.34 | 0.048–0.060 |
| LatticeSMC, argmax | 2.24 | 0.0081 | 0.183 | 0.924 | 0.0062 | 8.13 | 1.34 | 0.050 |
| Difference | Beat alignment | Repetition | Prompt adherence | Motif recurrence |
| boundary best-of-N, draw | ||||
| boundary chunk pruning, argmax | ||||
| boundary chunk pruning, draw | – | – | – | |
| dense chunk pruning, argmax | – | – | ||
| dense boundary, argmax | ||||
| dense boundary, draw | – | – |
| 1 | 2 | 4 | 8 | 16 | 32 | |
| Base | 0.234 | – | – | – | – | – |
| Best-of-N (argmax) | 0.234 | 0.260 | 0.289 | 0.312 | 0.334 | 0.354 |
| Best-of-N (draw) | 0.234 | 0.260 | 0.288 | 0.309 | 0.329 | 0.347 |
| Chunk pruning | 0.234 | 0.289 | 0.342 | 0.371 | 0.398 | 0.415 |
| LatticeSMC, dense (FK steering), draw | 0.234 | 0.256 | 0.316 | 0.350 | 0.370 | 0.387 |
| LatticeSMC, dense (FK steering), argmax | 0.234 | – | – | – | – | 0.441 |
| 1 | 2 | 4 | 8 | 16 | 32 | |
|---|---|---|---|---|---|---|
| Base | 0.718 | – | – | – | – | – |
| Best-of-N (argmax) | 0.718 | 0.768 | 0.805 | 0.850 | 0.875 | 0.901 |
| Best-of-N (draw) | 0.718 | 0.768 | 0.804 | 0.849 | 0.871 | 0.895 |
| Chunk pruning | 0.718 | 0.761 | 0.792 | 0.811 | 0.835 | 0.887 |
| LatticeSMC, dense (FK steering), draw | 0.718 | 0.768 | 0.836 | 0.876 | 0.901 | 0.921 |
| LatticeSMC, dense (FK steering), argmax | 0.718 | – | – | 0.898 | – | 0.962 |
| 1 | 2 | 4 | 8 | 16 | 32 | |
|---|---|---|---|---|---|---|
| Base | 0.470 | – | – | – | – | – |
| Best-of-N (argmax) | 0.470 | 0.488 | 0.502 | 0.513 | 0.520 | 0.530 |
| Best-of-N (draw) | 0.470 | 0.488 | 0.502 | 0.513 | 0.519 | 0.527 |
| Chunk pruning | 0.470 | 0.499 | 0.523 | 0.536 | 0.543 | 0.551 |
| LatticeSMC, dense (FK steering), draw | 0.470 | 0.488 | 0.520 | 0.538 | 0.542 | 0.546 |
| LatticeSMC, dense (FK steering), argmax | 0.470 | – | – | 0.545 | – | 0.559 |
| 1 | 2 | 4 | 8 | 16 | 32 | |
|---|---|---|---|---|---|---|
| Base | 0.814 | – | – | – | – | – |
| Best-of-N (argmax) | 0.814 | 0.849 | 0.876 | 0.897 | 0.910 | 0.918 |
| Best-of-N (draw) | 0.814 | 0.849 | 0.874 | 0.892 | 0.901 | 0.904 |
| Chunk pruning | 0.814 | 0.848 | 0.870 | 0.894 | 0.906 | 0.918 |
| LatticeSMC, dense (FK steering), draw | 0.814 | 0.849 | 0.875 | 0.895 | 0.898 | 0.908 |
| LatticeSMC, dense (FK steering), argmax | 0.814 | 0.849 | 0.885 | 0.910 | 0.922 | 0.932 |
| Beat alignment | Repetition | |||||||
|---|---|---|---|---|---|---|---|---|
| 4M | 38M | 4M | 38M | |||||
| draw | argmax | draw | argmax | draw | argmax | draw | argmax | |
| Base ( ) | 0.234 | 0.225 | 0.718 | 0.654 | ||||
| Best-of-N | 0.347 | 0.354 | 0.353 | 0.360 | 0.895 | 0.901 | 0.780 | 0.784 |
| Chunk pruning | – | 0.415 | – | 0.423 | – | 0.887 | – | 0.795 |
| LatticeSMC, dense (FK steering) | 0.387 | 0.441 | 0.406 | 0.455 | 0.921 | 0.962 | 0.822 | 0.874 |
| Dance (beat alignment) | Music (prompt adherence) | |||
|---|---|---|---|---|
| LatticeSMC preferred over | follows beat | overall | matches prompt | overall |
| Base model | 73.5 [65.7, 81.2] | 66.0 [57.8, 74.5] | 77.0 [69.3, 84.2] | 69.0 [60.0, 77.3] |
| Best-of-N (argmax) | 66.0 [58.0, 74.0] | 60.5 [53.0, 68.0] | 69.0 [59.5, 77.5] | 62.0 [54.0, 69.8] |
| Chunk pruning | 69.0 [57.8, 78.2] | 63.0 [53.5, 72.0] | 71.5 [62.0, 79.8] | 65.0 [56.2, 73.5] |