Two Pixels, One Dial

Diffusion ModelsMedium+20 XP+20

Two Pixels, One Dial

A diffusion model is part-way through generating an image from the prompt "a wooden chair". At this step the denoiser is run twice, exactly as classifier-free guidance requires: once with the prompt attached, once with no condition at all. Each run returns a predicted noise pattern the same shape as the image, and we read off the value at two positions in it.

positionrun without the promptrun with the prompt
A0.800.800.800.840.840.84
B−0.10-0.10−0.100.300.300.30

The sampler then combines the two runs using a guidance scale of g=7.5g = 7.5g=7.5, starting from the unconditioned prediction and pushing away from it in the direction of the conditioned one:

guided  =  unconditioned  +  g×(conditioned−unconditioned)\text{guided} \;=\; \text{unconditioned} \;+\; g \times (\text{conditioned} - \text{unconditioned})guided=unconditioned+g×(conditioned−unconditioned)

What does the guided prediction come to at each of the two positions?

Run the network with the condition

The difference between the two predictions points in the direction the condition is asking for. Exaggerate that direction and the condition gets obeyed harder.

Hints

Solve it to unlock the solution

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

Select all that apply.