Ctrl-Z Sampling: Scaling Diffusion Sampling with Controlled Random Zigzag Explorations

Shunqi Mao, Wei Guo, Chaoyi Zhang, Jieting Long, Ke Xie +1 more
6/25/2025
1 citation
cs.CV
diffusion-flow

Official code: ShunqiM/Ctrl-Z-Sampling (0 stars, Python, Apache-2.0, last commit 2026-09-04).

Abstract

Diffusion models generate conditional samples by progressively denoising Gaussian noise, yet the denoising trajectory can stall at visually plausible but low-quality outcomes with conditional misalignment or structural artifacts. We interpret this behavior as local optima in a surrogate quality landscape: Once early denoising commits to a suboptimal global structure, later steps mainly sharpen details and seldom correct the underlying mistake.

Show full abstract

While existing inference-time approaches explore alternative diffusion states via re-noising with fixed strength or direction, they exhibit limited capacity to escape steep quality plateaus. We propose Controlled Random Zigzag Sampling (Ctrl-Z Sampling),a scalable sampling strategy that detects plateaus in quality landscape via a surrogate score, and allocates exploration only when a plateau is detected. Upon detection, Ctrl-Z Sampling rolls back to noisier states, samples a set of alternative continuations, and updates the trajectory when a candidate improves the score, otherwise escalating the exploration depth to escape the current plateau. The proposed method is model-agnostic and broadly compatible with existing diffusion frameworks. Experiments show that Ctrl-Z Sampling consistently improves generation quality over other inference-time scaling samplers across different NFE budgets, offering a scalable compute-quality trade-off. Code available at: https://github.com/ShunqiM/Ctrl-Z-Sampling.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Repository for "Ctrl-Z Sampling: Scaling Diffusion Sampling with Controlled Random Zigzag Explorations"

00Python, ShellJun 24, 20262 months agoApache-2.0

Similar Papers

Cite this paper

@article{mao2025ctrlz,
  title  = {Ctrl-Z Sampling: Scaling Diffusion Sampling with Controlled Random Zigzag Explorations},
  author = {Shunqi Mao and Wei Guo and Chaoyi Zhang and Jieting Long and Ke Xie and Weidong Cai},
  year   = {2025},
  eprint = {2506.20294},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.20294v5}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.20294.svg)](https://codeofpaper.com/paper/2506.20294)

Discussion