The best denoiser returns a conditional mean
probability▲▲△A scalar input is or with probability one half each. It is corrupted to with drawn from .
(a) Find the best denoiser under squared error, .
(b) Evaluate it at for and for , and at .
(c) Verify (I.12.8) for this distribution.
(d) The output at is not a possible input. What does that say about reconstructions trained with squared error?
Hint
Use Bayes’ rule (Bayes' rule 0.PR.04) for the two posterior probabilities. The Gaussian normalising constants cancel in their ratio.
Solution
(a) The two likelihoods are proportional to and , and the priors are equal. Their ratio is , so the posterior probabilities are
The conditional mean is :
(b) At : for and for . At it is for any .
With less noise the same observation is stronger evidence, and the denoiser commits to the nearer input. As it becomes the sign of . As it flattens to the prior mean, .
(c) The noised density is proportional to the sum of the two likelihoods. Differentiating its logarithm,
So times the score is , as (I.12.8) requires. The displacement of the denoiser points towards the nearer of the two inputs, where the noised density is higher. The script checks this with a numerical derivative at all three points of (b).
(d) At the two inputs are equally likely. The value that minimises the expected squared error is their mean, , even though the input is never . Squared error rewards the average of the plausible answers and not any one of them.
For images, the average of several sharp reconstructions that differ slightly is a blurred one. An autoencoder trained with squared error on inputs it cannot resolve returns that average. More training does not sharpen it, because the average is the optimum.