Quiz: image-to-image translation and hallucination

Short questions on paired and unpaired translation and on generated detail. Try each on paper first, then open the answer.


Q1. A U-Net trained with squared error to predict a nuclear stain from transmitted light gives sharp nuclei but a faint haze where a cytoplasmic marker should be. Why the haze?

What does the squared error converge to when the input does not decide the target?

The marker is not visible in the input, so for a given input the target varies (spots here or there, or none). The squared error is minimised by the average of those targets: a haze. The nuclei are visible, so their average is sharp.


Q2. What does the discriminator of a conditional GAN (pix2pix) receive, and why not just the output image?

A realistic stain of a different cell would fool a discriminator that sees only the output.

The pair (input, output). It must judge whether the output is a realistic stain for this input, so the generator cannot ignore its input.


Q3. For an ambiguous pixel, which has the smaller expected squared error against the truth: the conditional mean, or a sample from the conditional distribution? By what factor?

A sample is an independent draw from the same distribution as the truth.

The mean. A sample has twice the mean squared error (2\operatorname{Var} against \operatorname{Var}), i.e. \sqrt 2 times the RMSE. The sample looks real; the mean is accurate on average but looks like no real cell.


Q4. A cycle-consistent translator from label-free to stained images reaches zero cycle loss and fools both discriminators. Does that prove the stained output of each cell is its true stain?

Which pairs did it see?

No. It saw no pairs. It matches the two distributions and can be undone, which many different maps achieve (in 1D both an increasing and a decreasing map). Which output belongs to which input is not constrained.


Q5. A virtual-staining network was trained on untreated cells, in which 20 % show a marker. You apply it to treated cells; the generated images show the marker in 25 % of cells. What can you conclude about the treatment?

What does the network do where the input does not show the marker?

Nothing. Where the marker is not visible in the input, the network paints what was typical in training, about 20 %. The real share could be 80 %. Measure on real stains of treated cells, or validate the translator on treated cells with ground truth.


Q6. You run a translator with 16 different noise inputs on the same image. In one region the 16 outputs agree, in another they differ strongly. What does each tell you?

Where does the input decide the output?

Agreement: the input determines the output there (or the model is overconfident; only ground truth tells). Disagreement: the input does not decide the output; any single output there is a guess. Disagreement flags hallucination risk; agreement does not prove correctness.