Crisp Against Soft

Learning to CompressHard+30 XP+30

Crisp Against Soft

Every image in a dataset is a strip of 888 pixels holding one bar: two neighbouring pixels at 111, the other six at 000. The bar can sit anywhere in the strip, but never in the first or last pixel, so nothing below ever spills off an edge.

Two trained autoencoders are compared on this data.

  • Crisp always outputs a perfectly sharp bar: two pixels at 111, the rest at 000. Usually the bar is in exactly the right place. On a fraction ppp of images, it lands one pixel to the right of where it belongs.
  • Soft never outputs a sharp bar. On every image it outputs a smear centred exactly on the true bar. For a bar at pixels 444 and 555 it outputs
    [ 0, 0, 0.25, 0.5, 0.5, 0.25, 0, 0 ][\,0,\ 0,\ 0.25,\ 0.5,\ 0.5,\ 0.25,\ 0,\ 0\,][0, 0, 0.25, 0.5, 0.5, 0.25, 0, 0]
    and it outputs the same shape, shifted along, for a bar anywhere else.

Reconstruction loss is the usual one: subtract, square and average over the 888 positions of an image, then average over all the images.

For which values of ppp does reconstruction loss score Soft as the better model?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.