If you gently shake a box of marbles, they eventually settle into deep, stable pockets where they stop moving. By applying this exact physics principle to image diffusion models—repeatedly adding a controlled amount of noise to an image and denoising it back—researchers discovered that models fall into deep, "ultrastable" traps that correspond directly to memorized training images. Crucially, this reveals sensitive and copyrighted training data using only the model's own dynamics, without needing prompts, training captions, or access to model weights.
What Problem Does This Paper Address?
Generative diffusion models trained on massive web scrapes have an inconvenient habit: instead of always synthesizing something new, they sometimes memorize and regurgitate exact training examples, from stock photos to copyrighted art. Auditing models for this privacy and copyright risk is essential, yet existing data-extraction attacks are surprisingly clunky.
Typically, auditors rely on "generate-and-filter" pipelines: they feed the model known or suspected training captions, generate thousands of images, and run similarity searches against the original training dataset (or use auxiliary classifiers) to spot duplicates. What if you don't have the training data, captions, or prompts? Standard unconditional sampling rarely stumbles into these hidden memories on its own. This paper asks whether we can force a diffusion model to reveal its memorized secrets purely through its internal sampling dynamics, completely blind to what it was trained on.
Methods
Taking inspiration from the physics of disordered solids—where cyclic mechanical shearing anneals messy materials into stable states—the authors introduce cyclic denoising.
Instead of generating independent images from pure noise, they turn sampling into a continuous loop:
Start from any state (pure Gaussian noise, a random photograph, or a model-generated image).
Partially corrupt the state with forward diffusion up to a controlled noise fraction, $\gamma \in [0, 1]$ (the "cycling amplitude").
Denoise it all the way back to a clean image ($\gamma = 0$) using standard stochastic DDPM steps.
Feed that output directly into the next cycle, repeating up to 10,000 times.
By measuring the cosine similarity between consecutive clean outputs ("stroboscopic" snapshots), the researchers watch the trajectory wander through the model's learned landscape. When similarity plateaus near 1.0 for hundreds or thousands of cycles, the trajectory has fallen into an absorbing attractor—an image so deeply etched into the landscape that it regenerates even after near-total corruption. No gradients, weight inspections, or text prompts are required.
Figure 1: Unconditional cyclic denoising drives latents toward attractors in the Stable Diffusion
v1.4 landscape. (a) Decoded snapshots from a 104-cycle unconditional cycling trajectory at γ = 0.86,
starting from a single ImageNet test image; the 15 × 15 grid shows every 44th cycle, in reading
order, starting from the top-left. After an initial transient (snapshots change cycle-to-cycle), the
dynamics lock into the first attractor — a room with a yellow chair — that persists for over 2000
cycles. A brief transient carries the trajectory into a second attractor (white-couch scene, paintings
on a gray wall), which survives for a comparable number of cycles before another, longer transient
returns the trajectory to the same second basin. (b) Cosine similarity between consecutive latents
zn and zn−1 along the trajectory. Plateaus near unity correspond to residence within a basin; sharp
drops mark inter-basin transitions, matching the qualitative changes in (a). Cosine similarities
throughout this work are measured stroboscopically — at the end of each completed cycle. (c) A
single forward–reverse cycle, γ = 0 →0.86 →0, for an example latent drawn from each attractor.
The room layout is regenerated after near-total corruption, while fine details such as wall artwork
fluctuate stochastically—the signature of an attracting basin in which the dominant scene template
is locked while peripheral content remains diffusive. Right column: reverse image search retrieves
near-duplicate web images for both attractors, corresponding to e-commerce template scenes in which
different artworks are repeatedly composited onto the same room layout. These templates recur across
many vendor websites, making them very likely to be duplicated in the web-scale training crawl.
Independently, Somepalli et al. [2023] flag these same two scenes (their Fig. 2) among the most
heavily replicated Stable Diffusion v1.4 generations and trace them to duplicated LAION training
images—training-set-grounded confirmation that the attractors recovered here by cycling alone, with
no training-set access, are genuine memorized content. The two scenes also appear under similar
product captions referring to the displayed artwork rather than the room itself, suggesting a possible
mechanism for their proximity in the learned generative landscape. Cyclic denoising thus exposes
these memorized templates from the model’s dynamics alone. The URLs for the reverse image search
are listed in the Appendix (Table 10).
Datasets
Because the extraction method is training-data-agnostic, no datasets were trained from scratch; the authors probe frozen, open-weight checkpoints of Stable Diffusion v1.4 (trained on LAION) and a pixel-space DDPM (trained on CIFAR-10).
Initializations: ImageNet validation images, CIFAR-10 training images, model-generated samples, and pure Gaussian noise.
Diagnostic Evaluation: To test cyclic denoising as a targeted memorization detector, they compare 98 known memorized Stable Diffusion images (from prior literature) against a newly compiled control set of 105 photographs taken after Stable Diffusion's training cutoff.
Key Insights and Ideas
A Physics-Like "Yielding Transition": Sweeping the noise amplitude $\gamma$ acts like tuning how hard you shake a physical system. Low $\gamma$ freezes the image into trivial blank canvases or oscillating Turing-like patterns. Past a critical threshold, the system "yields"—hopping between basins and getting trapped for thousands of cycles in complex, memorized images.
Steady-state similarity across noise amplitudes reveals a sharp yielding transition independent of initial conditions.
Noise Amplitude is a Complexity Filter: Intermediate noise levels uncover simple, heavily duplicated web artifacts like brand logos and placeholders. Higher amplitudes bounce the trajectory out of shallow traps, isolating deep basins containing rich product photography and room layouts.
Hierarchical Partial Absorption: Inside some deep attractors (like recurring e-commerce living room templates), the coarse room layout locks in rigidly for thousands of cycles while fine details—like the tiny framed artwork on the wall—change randomly every single cycle.
Symmetry-Paired Memories: In the CIFAR-10 pixel model, trajectories lock onto a memorized car, escape briefly, and lock onto its exact horizontal mirror image—a direct dynamical footprint of data augmentation used during training.
Memorization Exhibits "Critical Slowing Down": When testing known memorized images without prompts, each memory has a specific "yield amplitude" ($\gamma_c$) where it finally destabilizes. Approaching $\gamma_c$ from above causes the time required to escape the memory to diverge as a universal power law—a classic signature of phase transitions in physics.
Key Results
Blind Extraction Across Architectures: Across 10,000-cycle runs, unconditional cyclic denoising successfully extracts verbatim training images in both latent space (Stable Diffusion v1.4) and pixel space (CIFAR-10 DDPM), confirmed post-hoc via reverse-image search and LAION/CIFAR-10 ground truth.
Figure 3: High-amplitude cycling isolates deep memorized attractors. (a) Memorized images
recovered by unconditional cyclic denoising in Stable Diffusion v1.4 at high noise amplitudes. Each
row shows ten equispaced stroboscopic snapshots from a single cycling trajectory during the residence
time of one attractor, with the cycle range and γ indicated. As in random organization, cyclic forcing
drives the system toward states that resist change under the applied drive. At higher amplitudes, the
trajectory escapes shallow basins and explores more of the learned distribution, revealing only deeper
attractors as long-lived states. The recovered attractors include richer memorized images than the
intermediate-amplitude logos and web artifacts in Fig. 8, including product photographs, stock-style
object renderings, and recurring room templates. (b) Reverse image search retrieves close web
matches for the recovered attractors, indicating that these states correspond to memorized training
images or templates. These deep attractors recur across random seeds, initial conditions, and nearby
values of γ, with some basins—especially the living room (with the white sofa and yellow chair)
scenes—capturing many trajectories for long residence times. Including Fig. 8, the recovered attractor
set forms a dynamical fingerprint of Stable Diffusion v1.4: a model-specific signature of memorized
training content exposed by unconditional cycling alone. Representative reverse-image-search source
URLs are listed in the Appendix (Table 10).
Initial-Condition Universality: Whether Stable Diffusion starts from ImageNet photos, synthetic latents, or pure Gaussian noise, its steady-state similarity curves collapse onto a single master curve, proving the traps are fundamental properties of the model's landscape.
Prompt-Free Memorization Auditing: When encoding candidate images and cycling them unconditionally, cyclic denoising cleanly separates memorized data from controls. A concrete yield amplitude is resolved for 62 of 98 memorized images (median $\gamma^* = 0.69$) versus only 9 of 105 post-training controls (median $0.47$). Near their yield points, memorized escape times follow $\tau \sim (\gamma - \gamma_c)^{-2.4}$ ($R^2 = 0.85$).
Limitations and Future Work
Requires Sampler-Level Access: Because an attacker or auditor must inject noise to an intermediate timestep and denoise back, this protocol cannot be run against black-box commercial APIs that only accept text prompts and return final images.
Unknown Recall Bounds: While reverse-image search proves the extracted attractors are real memories, it only provides a lower bound; the exact fraction of a model's total memorized data captured in a single sweep remains unknown.
Open Theoretical Questions: Systematically optimizing hyperparameters (like noise schedulers and cycle counts) to maximize extraction yield—as well as building a formal mathematical theory explaining why diffusion landscapes mirror the critical slowing down of disordered solids—remain exciting avenues for future work.
Summary updated
Abstract
We introduce cyclic denoising—repeated forward and reverse diffusion at controlled noise amplitudes—as an extraction attack for image diffusion models. Inspired by random organization in disordered solids, where cyclic mechanical perturbations anneal the system into increasingly stable configurations, cyclic denoising exposes regions of the learned distribution that remain largely inaccessible to standard sampling. We find that these dynamics drive samples toward attractors with a broad stability spectrum, with the deepest attractors exhibiting ultrastability: they can be regenerated from near-total corruption and sustained through thousands of noising–denoising cycles. Many of these deep attractors correspond to memorized training images, including stock photographs, brand watermarks, and web-crawl artifacts. Our extraction attack requires only sampler-level control—the ability to partially noise a sample to an intermediate diffusion timestep and denoise it back—but no gradients and no weight inspection. Crucially, cyclic denoising requires no prior knowledge of training data, captions, or prompts. In contrast, prior generate-and-filter attacks on production-scale diffusion models commonly rely on large-scale prompted generation from known or suspected training captions, followed by post-hoc similarity search or membership-inference filtering to identify memorized candidates. While cyclic denoising can also be applied with prompts, our main protocol is fully unconditioned. We demonstrate the phenomenon in Stable Diffusion v1.4, a latent diffusion model, and in a smaller pixel-space DDPM, showing consistent behavior across latent- and pixel-space diffusion models. Across noise amplitudes, we observe a yielding-like transition: low-amplitude cycling produces either trivial absorbing fixed points (featureless, near-monochromatic images) or limit cycles (traveling/oscillating Turing-like patterns in image space), while larger amplitudes induce rearrangements, basin hopping, and long-lived trapping in structured memorized attractor basins. We further observe hierarchical partial absorption, where coarse scene layout freezes while fine details remain diffusive, as well as prompt-stabilized basins and cross-initial-condition universality of the recovered attractor set. Beyond extracting memorized data, we show that cyclic denoising can test images for memorization: images known to be memorized separate from post-training controls in both survival and decorrelation time. For a memorized image, the decorrelation time diverges as the cycling amplitude approaches its image-specific yield amplitude. Together, these results establish cyclic denoising as both a physics-inspired probe of generative landscapes and a practical tool for memorization auditing, with implications for privacy, copyright compliance, and model fingerprinting.