Diffusion Models Explained

Main Content and Description of the Learning Scenario

In this scenario, students learn in a simplified and hands-on way how modern AI image generators such as Stable Diffusion work. The focus is on the basic idea of diffusion models: an image is not created because an AI paints like a human or simply copies existing images. Instead, the system starts with random noise and gradually changes it step by step until an image emerges that is likely to match the entered prompt. The learners themselves take on the role of a diffusion model. Starting from a chaotic sheet filled with random dots, lines, or scribbles, they gradually create an image for the prompt “A red circle” over several rounds. In each round, they may only make small changes, such as removing noise, adding lines, or applying colour. Through this, they experience in practice that AI-generated images are reconstructed step by step from probabilities, patterns, and training data.

The scenario does not aim to provide a mathematically complete understanding of diffusion models, but rather a didactically simplified understanding of key principles: noise, iterative improvement, pattern recognition, prompt guidance, probabilistic decisions, and different results despite the same prompt.

Creator Lana Sattelmaier
Subject Computer Science, Art, Media Education
Length 45 min.
Pedagogical Approach Participatory learning
Competencies

C31 – AI basics
C38 – AI techniques
C52 – Important areas of application
C53 – Model type basics
C56 – GAI tool possibilities
C63 – Critical use of GAI tools

Grade Grades 7–9
Technologies/ Materials Projector, presentation, worksheet, prepared sheets with random “noise”, red pens, pencils, erasers, optional camera or smartphone for documenting intermediate steps
Evaluation

Students are assessed based on their active participation, the observation notes on the worksheet, the step-by-step completion of the task, and the final reflection. The focus is not on the artistic quality of the image, but on understanding the process.

Learning Activities

LA1: Introduction – How does AI generate images? (10 min)
The teacher begins by asking whether an AI paints images like a human. Students collect initial assumptions about whether AI draws, copies, or works differently. The teacher then explains in simplified form that AI image generators work with data, patterns, probabilities, and many small calculation steps.

LA2: Introduction – Understanding noise, prompts, and diffusion models (10 min)
The teacher explains the basic idea of a diffusion model: the AI starts with random noise and gradually changes it until an image emerges that is likely to match the prompt. The concept of “noise” is explained using examples such as television static, random pixels, or scribbles.

LA3: Simulation – From noise to image (20 min)
Students receive a sheet filled with random noise and the prompt “A red circle”. Over several rounds, they gradually modify the sheet. In each round, they may only change about 10–15%, erase small parts, add small shapes, or apply colour. They are not allowed to immediately draw the finished image. After each round, they briefly record what changed and which structure is slowly becoming visible.

LA4: Intermediate observation – Why do different images emerge? (5–10 min)
Students compare their intermediate results. Although everyone received the same prompt, different images emerge. Together, the class discusses how this is caused by different decisions, interpretations, and randomness. The teacher connects this observation to real AI image generators, which also do not always produce exactly the same result.

LA5: Reflection – What did we learn about AI image generators? (10 min)
The class reflects on the process using guiding questions: When did the image become recognisable? Why was the beginning chaotic? What role did the prompt play? Was the process more planning or estimation? The key insight is summarised: modern AI image generators start with random noise and gradually improve the image using probabilities and patterns.

 

Materials

Presentation: DE0027 Diffusion Models Explained

Worksheet: DE0027 – Diffusion Models Explained AB

Additional material: Prepared noise sheets with random dots, lines, scribbles, or grey areas.

Main Content and Description of the Learning Scenario

In this scenario, students learn in a simplified and hands-on way how modern AI image generators such as Stable Diffusion work. The focus is on the basic idea of diffusion models: an image is not created because an AI paints like a human or simply copies existing images. Instead, the system starts with random noise and gradually changes it step by step until an image emerges that is likely to match the entered prompt. The learners themselves take on the role of a diffusion model. Starting from a chaotic sheet filled with random dots, lines, or scribbles, they gradually create an image for the prompt “A red circle” over several rounds. In each round, they may only make small changes, such as removing noise, adding lines, or applying colour. Through this, they experience in practice that AI-generated images are reconstructed step by step from probabilities, patterns, and training data.

The scenario does not aim to provide a mathematically complete understanding of diffusion models, but rather a didactically simplified understanding of key principles: noise, iterative improvement, pattern recognition, prompt guidance, probabilistic decisions, and different results despite the same prompt.

Creator Lana Sattelmaier
Subject Computer Science, Art, Media Education
Length 45 min.
Pedagogical Approach Participatory learning
Competencies

C31 – AI basics
C38 – AI techniques
C52 – Important areas of application
C53 – Model type basics
C56 – GAI tool possibilities
C63 – Critical use of GAI tools

Grade Grades 7–9
Technologies/ Materials Projector, presentation, worksheet, prepared sheets with random “noise”, red pens, pencils, erasers, optional camera or smartphone for documenting intermediate steps
Evaluation

Students are assessed based on their active participation, the observation notes on the worksheet, the step-by-step completion of the task, and the final reflection. The focus is not on the artistic quality of the image, but on understanding the process.

Learning Activities

LA1: Introduction – How does AI generate images? (10 min)
The teacher begins by asking whether an AI paints images like a human. Students collect initial assumptions about whether AI draws, copies, or works differently. The teacher then explains in simplified form that AI image generators work with data, patterns, probabilities, and many small calculation steps.

LA2: Introduction – Understanding noise, prompts, and diffusion models (10 min)
The teacher explains the basic idea of a diffusion model: the AI starts with random noise and gradually changes it until an image emerges that is likely to match the prompt. The concept of “noise” is explained using examples such as television static, random pixels, or scribbles.

LA3: Simulation – From noise to image (20 min)
Students receive a sheet filled with random noise and the prompt “A red circle”. Over several rounds, they gradually modify the sheet. In each round, they may only change about 10–15%, erase small parts, add small shapes, or apply colour. They are not allowed to immediately draw the finished image. After each round, they briefly record what changed and which structure is slowly becoming visible.

LA4: Intermediate observation – Why do different images emerge? (5–10 min)
Students compare their intermediate results. Although everyone received the same prompt, different images emerge. Together, the class discusses how this is caused by different decisions, interpretations, and randomness. The teacher connects this observation to real AI image generators, which also do not always produce exactly the same result.

LA5: Reflection – What did we learn about AI image generators? (10 min)
The class reflects on the process using guiding questions: When did the image become recognisable? Why was the beginning chaotic? What role did the prompt play? Was the process more planning or estimation? The key insight is summarised: modern AI image generators start with random noise and gradually improve the image using probabilities and patterns.

 

Materials

Presentation: DE0027 Diffusion Models Explained

Worksheet: DE0027 – Diffusion Models Explained AB

Additional material: Prepared noise sheets with random dots, lines, scribbles, or grey areas.