Quiz: noise levels, denoisers and the score

Short questions to test your understanding. Try each on paper first, then open the answer.


Q1. A schedule reaches \bar\alpha = 0.5 at some time τ. What are the SNR and the noise level σ there?

SNR = \bar\alpha/(1-\bar\alpha), σ = 1/\sqrt{\text{SNR}}.

SNR 1, σ = 1: noise as large as the data. Different schedules reach this point at different times (cosine τ = 0.50, linear τ = 0.26), but the noise level is the same.


Q2. Why does the forward process erase fine detail before coarse structure?

Compare the power spectrum of an image with that of white noise.

Image power falls with frequency, white noise is flat. As the noise grows, the noise floor rises above the weak high frequencies first; the strong low frequencies (coarse layout) stay above it longest. Generation runs the other way: coarse first, fine last.


Q3. Data with variance 9, noise level σ = 3, and assume everything is Gaussian. What does the best denoiser do to a noisy value of 2?

Wiener gain P/(P + \sigma^2).

Gain 9/(9 + 9) = 0.5: it returns 1. Half-way to the mean, because signal and noise are equally strong.


Q4. In denoising score matching, where do the training labels come from?

Who added the noise?

From us: we take clean training images, add noise of a chosen level, and ask the network for the clean image (or the noise). No annotation and no density of images is needed.


Q5. A network trained with squared error on (noisy, clean) pairs converges to which function? Why is that useful for generating images?

What minimises an average squared error, for each input separately?

The conditional mean \mathbb E[\mathbf x_0\mid\mathbf x], the average clean image compatible with the noisy one. By Tweedie it equals \mathbf x + \sigma^2 \times score, so the network gives the score of the noised data: the direction to move noisy images to make them more likely, which is what a sampler follows.


Q6. A network outputs \hat\varepsilon = 0.5 at x_t = 0.2, with \sqrt{\bar\alpha} = 0.6, \sqrt{1-\bar\alpha} = 0.8. What is its clean-image estimate?

\hat x_0 = (x_t - \sqrt{1-\bar\alpha}\,\hat\varepsilon)/\sqrt{\bar\alpha}.

(0.2 - 0.4)/0.6 = -0.33.


Q7. Why is a learned denoiser least reliable far from the training data and on rare kinds of images?

Where are the training pairs?

It only learns where there are training pairs. Far from the data there are almost none, so nothing constrains the network there. Rare kinds contribute few pairs to the squared error, so a limited network fits the common kinds first; its score near rare images may point towards the common ones.


Q8. (math) Why can we regress on the conditional score \nabla\log p(\mathbf x\mid\mathbf x_0), which we know, instead of the score \nabla\log p_\sigma(\mathbf x), which we do not?

Expand both squared errors; compare the cross terms.

The two objectives differ only by a constant that does not depend on the network: the cross terms are equal because \int\nabla p(\mathbf x\mid\mathbf x_0)\,p(\mathbf x_0)\,d\mathbf x_0 = \nabla p_\sigma(\mathbf x). Same minimiser (Vincent 2011).