Distinguish transition and marginal noise, derive a reconstruction, and inspect reverse uncertainty.
Preparation: Squares and random noise; Gaussian distributions for college.
Plan 20–35 minutes with the activities; this is a study estimate, not a timed requirement. Both paths have complete narration. Your notes and progress are kept separately for each level.
FULL LOCAL NARRATION
Follow the complete explanation.
Narration includes worked solutions. Pause at each practice prompt before continuing. Formula notation has a spoken explanation; all teaching text remains readable.
High-school path. Distinguish transition and marginal noise, derive a reconstruction, and inspect reverse uncertainty.
Preparation: Squares and random noise; Gaussian distributions for college. Work through one section at a time. Predict the experiment result before changing its controls, then explain what the example leaves out.
A diffusion step keeps some of the previous signal and adds fresh noise. The parameter beta controls the new noise variance. If beta is small, the step changes the sample a little on average, though a random draw can still be large. Repeating many steps is not the same as applying an arbitrary blur. The noise follows a specified probability distribution, and the schedule controls how its strength changes.
Worked step 1. Let beta=0.1 and alpha=0.9.
Worked step 2. Signal amplitude coefficient is √0.9≈0.9487.
Worked step 3. Noise amplitude coefficient is √0.1≈0.3162.
x_t=√α_t x_(t−1)+√β_t ε_t
Multiply the previous sample by square root alpha and add fresh standard noise scaled by square root beta.
Try it yourself. Why not multiply the new noise by beta directly?
Pause the recording and write your reasoning before continuing. The worked solution follows.
Reveal worked solution
Worked solution. Because beta specifies variance. Standard deviation, the amplitude multiplier, is its square root.
Section 02 / 07
Combine many steps into a marginal
After several steps, the remaining original-signal fraction is found by multiplying the alphas. If each of two steps keeps variance fraction 0.9, the cumulative fraction is 0.81, not 0.8. A direct formula can sample the result at that time from the original clean value and one combined noise draw. It describes the same marginal distribution, not necessarily the same random path through intermediate steps.
Worked step 1. Two steps with alpha 0.9 give cumulative alpha 0.81.
Worked step 2. The original-signal amplitude is √0.81=0.9.
Worked step 3. The combined noise amplitude is √0.19≈0.4359.
ᾱ_t=∏ₛ₌₁ᵗ α_s; x_t=√ᾱ_t x₀+√(1−ᾱ_t)ε
Multiply all retention factors to obtain cumulative alpha, then use its square root in the direct marginal formula.
Try it yourself. Is cumulative alpha after two steps equal to the last step’s alpha?
Pause the recording and write your reasoning before continuing. The worked solution follows.
Reveal worked solution
Worked solution. No. It is the product across steps. Using only the last alpha understates accumulated corruption.
Section 03 / 07
Predict noise from the corrupted input
During training, you know the clean sample, the selected time and the noise you added. The denoiser sees the corrupted sample and the time and tries to predict the noise. The prediction is compared with the known draw. It is not given the hidden answer as an input. A different model could predict a clean sample or another related quantity, so always name what the network output represents.
Worked step 1. Sample clean x₀ and a time t.
Worked step 2. Draw epsilon and construct x_t with the forward marginal.
Worked step 3. Compare the network’s epsilon prediction with the sampled epsilon.
L_simple=E[||ε−εθ(x_t,t)||²]
The simplified loss averages squared differences between sampled noise and predicted noise.
Try it yourself. Does the denoiser receive the exact sampled noise as an input?
Pause the recording and write your reasoning before continuing. The worked solution follows.
Reveal worked solution
Worked solution. No. That noise is the training target. Supplying it would bypass the prediction problem.
Section 04 / 07
Reconstruct and see error amplification
If the exact noise is known, rearrange the forward equation to recover the clean value. Subtract the noise contribution, then divide by the remaining signal coefficient. When little signal remains, that divisor is small, so a small noise-prediction error can cause a larger clean-sample error. Workbench lets you vary time and prediction error separately. This explains why late noisy steps deserve careful treatment.
Worked step 1. At cumulative alpha 0.64, noise-error amplification is 0.6/0.8=0.75.
Worked step 2. A noise error of 0.1 causes clean-estimate error −0.075.
Worked step 3. At cumulative alpha 0.01, the amplification is about 9.95.
x̂₀−x₀=−√((1−ᾱ_t)/ᾱ_t)δ
Clean-estimate error is minus the noise-prediction error times the square root of noise variance divided by signal variance.
Try it yourself. Why is the same noise-prediction error more damaging when little signal remains?
Pause the recording and write your reasoning before continuing. The worked solution follows.
Reveal worked solution
Worked solution. The reconstruction divides by a smaller signal coefficient, amplifying the error.
Section 05 / 07
Reverse uncertainty is not arbitrary
Removing noise is not just running the forward arithmetic backward without uncertainty. Given a noisy sample, several clean explanations can be plausible. The reverse model uses learned information to guide a sampling step, and its variance controls remaining randomness. In a mathematical training derivation, knowing both the clean sample and the noisy one gives a simpler posterior. At generation time, the clean sample is not available.
Worked step 1. Use beta=0.1 for two steps: previous cumulative alpha=0.9 and current=0.81.
Worked step 2. Posterior variance is 0.1×0.1/0.19≈0.05263.
Worked step 3. This differs from the forward-step variance 0.1.
β̃_t=β_t(1−ᾱ_(t−1))/(1−ᾱ_t)
Posterior variance is beta times one minus previous cumulative alpha, divided by one minus current cumulative alpha.
Try it yourself. Why can generation not directly use the true forward-posterior mean involving x₀?
Pause the recording and write your reasoning before continuing. The worked solution follows.
Reveal worked solution
Worked solution. The clean sample is unknown during generation. The learned reverse model must supply the missing information.
Section 06 / 07
A schedule and a sampler are separate choices
The noise schedule says how corruption levels are arranged. The sampler says how to travel back toward a generated sample using the model. Fewer reverse steps may be faster, but they need an appropriate method and can change quality. A schedule plot alone cannot predict image quality. Finish by drawing the full loop: clean training data, sampled corruption, prediction loss, then a separate generation path starting from noise.
Worked step 1. Check that cumulative alpha decreases under positive beta steps.
Worked step 2. Check the oracle reconstruction with zero prediction error.
Worked step 3. Then vary error and time to expose sensitivity without claiming image-generation performance.
Try it yourself. Does a shorter list of reverse steps necessarily sample the same distribution?
Pause the recording and write your reasoning before continuing. The worked solution follows.
Reveal worked solution
Worked solution. No. That depends on the method and assumptions. Speed, approximation error and output quality require evaluation.
Section 07 / 07
Mastery and transfer
Bring the pieces together. First answer the checkpoint without the worked solutions. Then explain the mechanism in your own words, using one numerical example from this lesson.
Two alpha=0.9 steps give cumulative alpha… Option 1: 0.81. Option 2: 0.9. Option 3: 0.8.
Pause here and choose an answer before continuing. The checkpoint explanation follows.
Reveal worked solution
The correct choice is option 1: 0.81. Multiply the retention factors.
Transfer task. Change one assumption in the worked example. State your prediction, calculate or test it in Workbench, then explain whether the result supports your prediction.
Reveal worked solution
Self-check rubric. Name the changed assumption, keep the other inputs fixed, show at least one intermediate calculation, and distinguish what the toy example guarantees from what would require a trained model or a real measurement.
WORKBENCH / PREDICT → TEST → EXPLAIN
Inspect exact numerical data
These are computed teaching fixtures. No remote AI model or GPU is called by the experiment.
CHECK YOUR UNDERSTANDING
Commit to an explanation.
Keep your learning record.
Sources and scope
Original worked examples and teaching text, grounded in these primary references. Numerical fixtures explain mechanisms; model quality and hardware performance require separate measurements. Both levels share key examples, with different explanations and checkpoints.