Fractals made Practical: Denoising Diffusion as Partitioned Iterated Function Systems
Organizations: Department of Mathematics & Data Science Vrije Universiteit Brussel Pleinlaan 2, 1050 Brussels, BELGIUM
Abstract
What is a diffusion model actually doing when it turns noise into a photograph? We show that the deterministic DDIM reverse chain operates as a Partitioned Iterated Function System (PIFS) and that this framework serves as a unified design language for denoising diffusion model schedules, architectures, and training objectives. From the PIFS structure we derive three computable geometric quantities: a per-step contraction threshold , a diagonal expansion function and a global expansion threshold . These quantities require no model evaluation and fully characterize the denoising dynamics. They structurally explain the two-regime behavior of diffusion models: global context assembly at high noise via diffuse cross-patch attention and fine-detail synthesis at low noise via patch-by-patch suppression release in strict variance order. Self-attention emerges as the natural primitive for PIFS contraction. The Kaplan-Yorke dimension of the PIFS attractor is determined analytically through a discrete Moran equation on the Lyapunov spectrum. Through the study of the fractal geometry of the PIFS, we derive three optimal design criteria and show that four prominent empirical design choices (the cosine schedule offset, resolution-dependent logSNR shift, Min-SNR loss weighting, and Align Your Steps sampling) each arise as approximate solutions to our explicit geometric optimization problems tuning theory into practice.
Figures & tables
| Schedule | Mean | CV | at finest step | finest | |
|---|---|---|---|---|---|
| Linear (DDPM) | 1000 | 0.805 | 0.341 | 0.00500 | 1 |
| Cosine (orig., ) | 1000 | 0.637 | 0.483 | 0.00079 | 1 |
| Cosine (impr., ) | 1000 | 0.641 | 0.474 | 0.00321 | 1 |
| 50-step DDIM (cosine) | 50 | 0.637 | 0.483 | 0.01571 | 20 |
| Schedule | Spearman | Ratio/theory | ||
| Linear (DDPM) | 1.107 | 0.836 | 0.9999 | |
| Cosine ( ) | 0.867 | 0.570 | 0.9998 | |
| Ratio/theory ; equals 1 at CS equality. | ||||
| Regime | -value | sig | ||
|---|---|---|---|---|
| 1 | II | n.s. ( , near-uniform) | ||
| 101 | II | n.s. | ||
| 201 | II | n.s. | ||
| 381 | I/II | |||
| 461 | I | |||
| 601 | I | (peak) |
| DDIM step | (train) | Mean | Std | Regime |
|---|---|---|---|---|
| 1 of 50 | 980 | 1.0011 | 0.0019 | high-noise |
| 5 of 50 | 900 | 1.0002 | 0.0001 | high-noise |
| 10 of 50 | 800 | 1.0005 | 0.0004 | high-noise |
| 20 of 50 | 600 | 1.0248 | 0.0177 | transition |
| 30 of 50 | 400 | 1.1108 | 0.0247 | mid-noise |
| 35 of 50 | 300 | 1.1408 | 0.0859 | mid-noise |
| std | Global | Regime | |||
|---|---|---|---|---|---|
| 980 | 1.0004 | 0.0001 | 0.0007 | 1.0011 | high-noise |
| 800 | 1.0002 | 0.0001 | 0.0008 | 1.0010 | high-noise |
| 600 | 1.0000 | 0.0015 | 0.0853 | 1.0853 | denoising |
| 400 | 1.0026 | 0.0153 | 0.1273 | 1.1300 | denoising |
| 280 | 1.0070 | 0.0135 | 0.1038 | 1.1107 | denoising/fine-detail |
| 220 | 1.0325 | 0.0432 | 0.0768 | 1.1092 | fine-detail |
| Regime | (nats) | std | ||
|---|---|---|---|---|
| 980 | high-noise | 4.963 | 0.00946 | 0.00018 |
| 840 | high-noise | 4.930 | 0.01511 | 0.00076 |
| 700 | I | 4.794 | 0.04109 | 0.00074 |
| 560 | I | 4.662 | 0.09463 | 0.01117 |
| 440 | I | 4.656 | 0.14824 | 0.02529 |
| 300 | I | 4.631 | 0.19204 | 0.00187 |
| Distance | (mean) | std |
|---|---|---|
| 1 (adjacent) | 0.0362 | 0.0789 |
| 2 (next-nearest) | 0.0123 | 0.0203 |
| 3 (diagonal) | 0.0117 | 0.0193 |
| Regime | Mean slack | Min slack | Frac. violated | |
|---|---|---|---|---|
| 980 | high-noise | |||
| 800 | high-noise | |||
| 700 | I | |||
| 600 | I | |||
| 280 | I | |||
| 200 | I/II |
| -value | sig | Note | ||
|---|---|---|---|---|
| 260 | 0.005 | ** | transition zone: learned ordering dominates | |
| 240 | 0.047 | transition zone | ||
| 220 | 0.134 | n.s. | ||
| 200 | 0.316 | n.s. | ||
| 180 | 0.192 | n.s. | ||
| 160 | 0.542 | n.s. |
| DDIM step | Regime | |||
|---|---|---|---|---|
| 1 of 50 | 999 | 0.0064 | high-noise | |
| (extra) | 990 | 0.0070 | high-noise | |
| (extra) | 980 | 0.0078 | high-noise | |
| 2 of 50 | 960 | 0.0094 | high-noise | |
| 3 of 50 | 940 | 0.0114 | high-noise | |
| 4 of 50 | 920 | 0.0138 | high-noise |
| patch | std | |||
|---|---|---|---|---|
| 0 | 231.7 | |||
| 3 | 181.9 | |||
| 12 | 184.8 | |||
| 4 | 176.1 | |||
| 8 | 174.1 | |||
| 15 | 156.7 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Meaning |
|---|---|
| Forward process and schedule | |
| Clean image | |
| Noisy image at timestep | |
| Cumulative noise schedule coefficient | |
| Residual noise variance at step | |
| Signal-to-noise ratio at step | |
| Attractor geometry | |
|---|---|
| Lyapunov exponents of at fixed point ( 43 ) | |
| Mean log-expansion rate at spectral value | |
| Global Moran expansion threshold ( ) ( 45 ) | |
| Kaplan-Yorke dimension ( 44 ) | |
| Suppression-corrected diagonal factor, evaluated along ( 48 ) | |
| Suppression-corrected Lyapunov exponent ( 49 ) | |