Sparsely Supervised Diffusion NeurIPS 2026
Supervise less.
Generate consistently.
Mask the training loss, not the input. A few lines of code for diffusion and flow-matching models.
Up to 98% of pixels masked. Competitive FID.No change to the architecture or the sampler.
PaperGet the highlights.
Get the code98% of pixels masked.
Scattered shapes in 3,899 of 5,000 images.
With SSD, in 792.
The same noise, the same seed.
Finger-count errors 35 → 22.










The problem
Locally plausible.
Globally inconsistent.
Diffusion models learn correlations from a finite training set, and some of them are accidental. The result: samples whose parts look right but do not fit together. Extra fingers. Shapes in fragments.
Read the abstract
Diffusion models have shown remarkable success across a wide range of generative tasks. However, they often suffer from spatially inconsistent generation, arguably due to excessive correlations learned by the model. This can produce samples that are locally plausible but globally inconsistent. We propose a principled method to mitigate this issue. Our method, sparsely supervised diffusion (SSD), is a simple yet effective masking framework that can be implemented with only a few lines of code. We analytically show that SSD fundamentally alters diffusion model training by modifying the spectrum of the data covariance and that it suppresses correlations in the data covariance matrix. Experiments show that our method more accurately approximates the underlying population score function, reduces memorization on small datasets, and promotes the use of essential contextual information during generation. Moreover, even when up to 98% of pixels are masked, it achieves competitive FID scores across a range of datasets and avoids the training instability commonly observed on small datasets.
How it works
Keep the input.
Sparsify the supervision.
The model still sees the whole noisy image. Only the regression loss is masked, with a fresh random mask at every step.
Three lines.
Replace the mean of the squared error with a masked mean. Everything else, from the data pipeline to the sampler, stays as it is.
# prediction, target: model output and regression target
error = (prediction - target).square()
mask = (torch.rand_like(error) > eta).float()
loss = (error * mask).sum() / mask.sum().clamp(min=1)
Take a closer look.
η = 0, no masking. Standard flow matching on CelebA-50K.
20% of loss entries masked. Same network, same initial noise.
Half of the loss entries masked. Same network, same initial noise.
80% of loss entries masked. The model learns from one pixel in five, and still generates whole faces.
Spatial consistency
3,899. 792.
A controlled dataset of whole triangles and squares. The baseline breaks shapes into fragments in 3,899 of 5,000 samples. SSD does so in 792.2
4.9×fewer images with scattered clusters
SSD792
Baseline3,899
11×fewer scattered clusters in total
SSD1,014
Baseline11,208
11kHands
Five fingers,
more often.
1,000 hands per model, from the same seed. The baseline draws a wrong number of fingers 35 times. SSD, 22 times, and six-fingered hands drop from 26 to 8.3
One noise. Two models.
Selected pairs: each column shares its initial noise, and at least one hand in it has a finger-count error. Click a hand to enlarge.
| Error | Baseline | SSD, η = 0.8 |
|---|---|---|
| Six fingers | 26 | 8 |
| Four fingers | 9 | 14 |
| Total | 35 | 22 |
The count covers four- and six-finger hands only. Four-fingered hands become more frequent with SSD; the total falls.
Small datasets
Train longer.
Without falling apart.
On 10,000 faces, the baseline's FID climbs from about 5 to 13.72 with prolonged training. Masking 98% of the loss keeps it at 5.10, and samples move further from their nearest training image.
FID during training on CelebA-10K
Lower is better · one curve per masking ratio η
Why it works.
Consider zero-mean Gaussian data with covariance Σ, and keep each coordinate independently with probability p = 1 − η. Masking leaves the variances on the diagonal of the covariance less affected than the correlations off it.
Masking attenuates correlations
D = diag(Σ). Variances scale by p. Covariances scale by p². Every correlation therefore shrinks by a factor p.
Each bar shows the masked quantity as a fraction of its unmasked value: variance p, covariance p squared, correlation p.
Diagonal entries
p ΣᵢᵢCoordinate variances are scaled by the retention probability.
Off-diagonal entries
p² ΣᵢⱼCross-coordinate covariance is attenuated more strongly, for i ≠ j.
The spectrum changes
Variance along each eigenvector uᵢ of Σ. The spectrum governs diffusion training dynamics, so masking changes how the model learns.
Side by side.
FID ↓ on every benchmark in the paper. Large datasets stay competitive; small ones improve most.1
Baseline
no masking
SSD
masked loss
CIFAR-10 · FID
LSUN Bedroom · FID
CelebA-50K · FID
CelebA-10K · FID
ImageNet 256 · DiT-XL/2 · FID
ImageNet-100K subset · DiT-XL/2 · FID
Images with scattered shapes, of 5,000
Finger-count errors, of 1,000
Questions? Answers.
Does SSD mask the model's input?
No. The network always receives the full noisy image. The random mask applies only to the entries of the regression loss, so the model must predict every pixel but is graded on a random subset of them.
Does it change the architecture or sampling?
No. SSD is a change to the training loss only and is model-agnostic. We use it with a convolutional U-Net under flow matching on CIFAR-10, CelebA and LSUN Bedroom, and with DiT-XL/2 on ImageNet. Sampling is unchanged.
Isn't this the same as lowering the learning rate?
No. A smaller learning rate shrinks every update by the same factor: the model fits the same target, in smaller steps. SSD changes the target statistics themselves. In our Gaussian analysis, masking scales each pixel's variance by (1 − η) but each covariance between two pixels by (1 − η)², so every pixel-to-pixel correlation shrinks by a factor of 1 − η. Changing the learning rate leaves those correlations untouched. SSD also trains with the same learning rate as the baseline.
Which masking ratio should I use?
We did not tune it. The paper reports a range of ratios: η = 0.8 on the large flow-matching benchmarks, and η = 0.98 on CelebA-10K and ImageNet. High ratios help most when data are scarce or training runs long. Finding the optimal ratio is left for future work.
Why not just report FID?
FID does not adequately reflect spatial consistency. We therefore designed targeted tests: scattered clusters in a shapes dataset, finger counts on 11kHands, and the error against a known population score in a synthetic 2D Gaussian study.
Do the masks have to be per pixel?
No. On CelebA-10K at 3,500 epochs, element-wise masking with η = 0.98 reaches FID 5.10, and 8 × 8 patch masks with η = 0.9 reach 5.14, against 13.38 without masking. The ratios differ, so this comparison does not isolate granularity alone.
Does SSD reduce memorization?
On CelebA-10K, the average ℓ₂ distance from 10,000 samples to their nearest training images rises from 42.32 to 46.02 at η = 0.98, while FID also improves. This distance is a proxy for memorization, not a privacy guarantee.
- FID over 50,000 samples. CIFAR-10, CelebA and LSUN Bedroom: flow matching with a U-Net, Heun's method, 50 function evaluations; the first three rows report mean ± standard deviation. ImageNet: DiT-XL/2 at 256 × 256 with the Stable Diffusion VAE, classifier-free guidance 1.5; full ImageNet for 180K steps, the 100K-image subset for 200K steps.
- 5,000 generated images per model on a controlled dataset of triangles and squares; SSD with η = 0.5. The training set has 500 binary images; a scattered cluster is a pixel cluster smaller than both the triangle and the square.
- 11kHands at 64 × 64, 400-epoch checkpoints, 1,000 samples per model from seed 0. Only four- and six-finger hands are counted. The pairs shown were selected because at least one hand had a finger-count error.
- Average ℓ₂ distance between 10,000 generated CelebA-10K images and their nearest training images. Larger means less memorization.
NeurIPS 2026
Sparsely Supervised Diffusion
1Aalto University · 2Imperial College London · 3KTH Royal Institute of Technology
4ELLIS Institute Finland · 5University of Oulu
@inproceedings{zhao2026sparsely,
title = {Sparsely Supervised Diffusion},
author = {Zhao, Wenshuai and Li, Zhiyuan and Zhao, Yi and Vali, Mohammad Hassan and Trapp, Martin and Pajarinen, Joni and Kannala, Juho and Solin, Arno},
booktitle = {Advances in Neural Information Processing Systems},
year = {2026}
}