Noise-Level Adjacency in Diffusion Training
Organizations: University of Pennsylvania
Abstract
Diffusion models train one network across all noise levels, although their training objective is pointwise in the noise level. If training on each pair of adjacent levels were an independent problem, separate networks with the same total parameter count would be expected to match one shared network. But in practice, on images, sharing weights across levels gives better results, which hints at an implicit dependence on their order. An order fixes both which levels are adjacent and the direction in which they run. In this paper, we show that, of the two, the benefit of sharing rests on adjacency in the noise-level embedding. The fitting error of a shared network is bounded below by the distances between neighbouring posterior means, minus the change the network can make between neighbouring embeddings. We first distinguish adjacency from direction: on a Gaussian mixture and CIFAR-10, reversing the embeddings keeps every neighbour and leaves the fitting error unchanged, whereas shuffling them raises it. Second, we rule out sharing between distant levels as the source of the benefit: separate networks on contiguous ranges match the shared network at its width, and with the parameters fixed, breaking adjacency at the same places costs less than 40% of a full shuffle. Dividing the levels at equal shares of these distances lowers the error of all but the smallest networks. We therefore show that the order of the noise levels enters a diffusion model through adjacency, with its direction being a design choice. Our code is available at https://github.com/TSUITUENYUE/Noise-Level-Adjacency-in-Diffusion-Training.
Figures & tables
| FID | ||||
| Total | , every 4th | |||
| 0.875M | 19.82 (w16) | 30.71 (w8, 0.89M) | – | 57.30 (w4, 0.92M) |
| 3.5M | 9.45 (w32) | 14.53 (w16) | – | 30.91 (w8, 3.57M) |
| 14M | 4.68 (w64) | 7.11 (w32) | 9.59 (w32) | 15.08 (w16) |
| 56M | 3.64 (w128) | 4.65 (w64) | 4.97 (w64) | 7.81 (w32) |
| ImageNet-256 | ||||
| held-out denoising loss | |||||
|---|---|---|---|---|---|
| Networks | transitions | count | 1 network | separate networks | change |
| 4 of width 64 | beside a boundary | 6 | 0.1323 | 0.1334 | |
| the rest | 122 | 0.4724 | 0.4593 | ||
| 16 of width 32 | beside a boundary | 30 | 0.1603 | 0.1583 | |
| the rest | 98 | 0.5568 | 0.5313 | ||
| held-out denoising loss | |||
|---|---|---|---|
| Embedding | width 32 | Embedding | width 32 |
| continuous | 0.4643 | window 2 | 0.4641 |
| ordered | 0.4640 (0.4642) | window 8 | 0.4673 |
| reversed | 0.4633 (0.4638) | window 32 | 0.4732 |
| learned | 0.4654 | shuffled | 0.4761 |
| excess error , networks | ||||||
|---|---|---|---|---|---|---|
| Width of 1 network | embedding | 1 | 4 | 4, every 4th | 16 | 16, every 16th |
| 256 | sinusoidal | 1.71 0.06 | 2.08 0.03 | 6.12 0.03 | 8.24 0.02 | 16.83 0.08 |
| learned | 1.71 0.05 | 2.07 0.08 | 5.54 0.05 | 7.94 0.03 | 16.68 0.10 | |
| random | 2.07 0.00 | 2.23 0.12 | 6.84 0.66 | 7.94 0.06 | 16.73 0.12 | |
| 512 | sinusoidal | 0.54 0.01 | 0.50 0.01 | 1.93 0.04 | 1.87 0.02 | 6.43 0.03 |
| learned | 0.55 0.01 | 0.50 0.00 | 1.85 0.06 | 1.78 0.02 | 5.85 0.02 | |
| Mixture, excess error | CIFAR-10, 14M | |||
|---|---|---|---|---|
| Boundaries | 256 | 512 | 1024 | held-out loss |
| equal split | 2.075 0.030 | 0.503 0.007 | 0.224 0.006 | 0.4530 |
| own posterior mean | 2.114 0.026 | 0.298 0.004 | 0.117 0.002 | 0.4414 |
| other data set’s posterior mean | 2.398 0.048 | 0.333 0.004 | 0.124 0.000 | 0.4539 |
| excess error | ratio | ||||||
|---|---|---|---|---|---|---|---|
| Width | ordered | reversed | 4 blocks | 16 blocks | full shuffle | 4 blocks | 16 blocks |
| 256 | 1.72 0.10 | 1.69 0.08 | 1.77 0.07 | 1.96 0.07 | 2.35 0.29 | 9.5 | 2.8 |
| 512 | 0.56 0.01 | 0.55 0.02 | 0.59 0.01 | 0.64 0.02 | 0.80 0.04 | 9.5 | 3.0 |
| 1024 | 0.37 0.02 | 0.34 0.01 | 0.43 0.07 | 0.34 0.08 | 0.69 0.24 | 6.8 | – |
| 16 networks of width 32 | 4 networks | |||
|---|---|---|---|---|
| as trained | one retrained, fresh seed | width 64 | 4 architectures | |
| FID | 7.81 | 7.79 | 4.65 | 5.43 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Composed model | energy distance |
|---|---|
| 16 separate networks | 0.067 0.009 |
| 16 separate networks, 1 retrained | 0.065 0.009 |
| per transition | reversed | shuffled | learned | second training | FID | loss per transition | |
|---|---|---|---|---|---|---|---|
| 9.46 | 0.4643 | ||||||
| ✓ | 9.11 | 0.4640 | |||||
| ✓ | ✓ | 9.28 | 0.4642 | ||||
| ✓ | ✓ | 9.57 | 0.4633 | ||||
| ✓ | ✓ | ✓ | 9.26 | 0.4638 | |||
| ✓ | ✓ | 9.25 | 0.4761 |
| Boundaries | FID |
|---|---|
| equal split | 7.11 |
| own posterior mean | 7.50 |
| other data set’s posterior mean | 7.09 |
| 1 network, width | 24 | 32 | 40 | 64 |
|---|---|---|---|---|
| FID | 12.69 | 9.45 | 7.49 | 4.68 |
| Network widths, noisier half : cleaner half | ||||
| FID | 5.07 | 4.95 | ||
| Same width for both networks | ||||
| FID | 4.23 |
| Transitions | count | 4 separate networks | 16 separate networks | 16 lower on |
|---|---|---|---|---|
| all | 128 | 0.4530 | 0.4439 | 100 |
| interior to both | 98 | 0.5431 | 0.5313 | 83 |
| boundary of the 16 only | 24 | 0.1643 | 0.1643 | 13 |
| boundary of both | 6 | 0.1348 | 0.1340 | 4 |
| Network | parameters | transitions | excess | share |
|---|---|---|---|---|
| SiT, depth 12, width 256 | 14.5M | 78–127 | 97.8% | |
| U-Net, width 96, 1 block per resolution | 14.0M | 68–77 | 1.7% | |
| U-Net, width 32, 6 blocks per resolution | 14.1M | 58–67 | 0.5% | |
| U-Net, width 64 | 14.0M | 0–57 | 0.0% | |
| 6 transitions beside a boundary | 0.6% |
| Data | width | distances | ordered error | input overlap | share of the rise |
|---|---|---|---|---|---|
| mixture | 256 | 0.35 | 0.37, second quarter | ||
| mixture | 512 | 0.70 | 0.49, second quarter | ||
| mixture | 1024 | 0.69 | 0.65, second quarter | ||
| CIFAR-10 | 32 | 0.00 | 0.83 | 0.65 | 0.72, first quarter |
| Width | ordered | spaced | lower on | change by quarter | |||
|---|---|---|---|---|---|---|---|
| 256 | 1.72 | 1.78 | 1 of 5 | ||||
| 512 | 0.56 | 0.61 | 0 of 5 | ||||
| 1024 | 0.37 | 0.34 | 4 of 5 | ||||
| 4 blocks | 16 blocks | |||||||
|---|---|---|---|---|---|---|---|---|
| Width | levels | ordered | reversed | inside | between blocks | inside | between blocks | full shuffle |
| 256 | trained | 1.72 0.10 | 1.69 0.08 | 1.77 0.07 | 1.96 0.07 | 2.35 0.29 | ||
| unseen | 1.73 0.10 | 1.70 0.08 | 1.74 0.07 | 191 76 | 1.94 0.08 | 1699 720 | 111 120 | |
| 512 | trained | 0.56 0.01 | 0.55 0.02 | 0.59 0.01 | 0.64 0.02 | 0.80 0.04 | ||
| unseen | 0.57 0.01 | 0.55 0.02 | 0.58 0.01 | 450 76 | 0.65 0.02 | 717 76 | 56 8 | |
| 1024 | trained | 0.37 0.02 | 0.34 0.01 | 0.43 0.07 | 0.34 0.08 | 0.69 0.24 | ||
Diffusion Models
Diffusion models learn to reverse gradual data corruption, enabling flexible generation, editing, forecasting, and inference.
See all 1,313 papers