Skip to content
ExamSpine

Case study practice questions

34 questions in the style of Paper 1 Section B, each with marking points and a model answer. Write first, then mark yourself.

The company in every question

Every practice question on these pages uses our own made-up company, so you practise applying ideas to a context you have not seen, just as in the exam.

Hearth & Oak is an online furniture shop. It photographs each product in a studio, but customers say they cannot picture a sofa in a real room. Hearth & Oak wants to generate realistic room scenes around its products, and to add a "Design my room" box where a customer types a description ("a small bright flat with a green velvet sofa") and gets an image back in a few seconds. It has a small team, a limited budget for cloud graphics processing units (GPUs), and a brand that depends on customers trusting that what they see is what they will get.

Extended questions

The long evaluative question is where most marks are won or lost. Give yourself about 1.5 minutes per mark, and always end with a justified conclusion. Real exams mark these with level descriptors; our points show what a top answer covers.

Extended · To what extent · AO3

[6 marks]

Hearth & Oak is deciding whether to launch its "Design my room" feature using a diffusion model trained only on licensed images and its own product photos. To what extent would this be a good decision? In your answer, consider image quality, speed and ethical issues.

0 words

Marking points and model answer

A model answer

A diffusion model is a sensible choice for quality: it produces realistic, varied rooms and follows a customer's description well, and fine-tuning on Hearth & Oak's own studio photos helps it show the actual products accurately. A dataset of only licensed images is smaller, though, so the model may handle unusual requests ("a houseboat with a velvet sofa") poorly.

Speed is the main weakness. Each image needs many denoising passes, so a customer may wait, and every press of the button costs GPU time. Running diffusion in latent space and using a distilled model with only a few steps would bring this down to a few seconds.

Ethically, licensed data is a strong choice: Hearth & Oak can show it had permission for everything it trained on, which protects a brand built on trust. It still needs to check its rooms are not all one style of home and to label images as AI-generated so customers do not mistake a scene for a photo.

Overall it is a good decision to a large extent, provided Hearth & Oak uses a fast, distilled model so the feature responds quickly, and labels the images clearly.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Quality: diffusion gives high-quality, varied rooms that follow the prompt; its own photos show products accurately. (1 mark)
  • Point 2: Quality limitation: a smaller licensed dataset may give a narrower range of rooms / weaker results for unusual prompts. (1 mark)
  • Point 3: Speed: many denoising steps make it slow and costly per image for a live feature; with a mitigation (fewer steps, distillation, latent diffusion). (1 mark)
  • Point 4: Ethics benefit: licensed data gives consent and provenance; less legal and reputational risk. (1 mark)
  • Point 5: Remaining ethical issue: bias in what rooms look like, or the need to label images as AI so customers are not misled. (1 mark)
  • Point 6: A conclusion that answers "to what extent" with a reason and a condition. (1 mark)

Earns nothing

  • A list of features of diffusion models not linked to the company.

Mark every point to see your total.

Extended · Evaluate · AO3 · HL

[12 marks]

Hearth & Oak has three options for generating catalogue scenes and live "Design my room" images: (A) a GAN, (B) a diffusion model, (C) a hybrid of latent diffusion with a distilled few-step model for live use. Evaluate the three options and recommend one.

0 words

Marking points and model answer

A model answer

A GAN would be the fastest and cheapest option: it makes an image in a single pass, so live previews would feel instant and cost little. But GANs often collapse to a narrow range of outputs, so different customers would see suspiciously similar rooms, and their adversarial training is unstable and needs expert tuning that a small team may not have. They also follow free-text prompts less well than diffusion models.

A plain diffusion model gives the best quality and variety, follows descriptions closely through cross-attention, and trains stably with a simple denoising loss. For the catalogue, where 3,000 scenes are made once in overnight batches, its slowness does not matter. For live use it does: dozens of full denoising passes per image would make customers wait and multiply GPU costs every time anyone presses the button.

The hybrid uses each part where it is strongest. Working in latent space cuts the cost of every step, the full model can produce catalogue scenes at top quality, and a distilled few-step model can serve live requests in a second or two. Its weaknesses are complexity, with more parts to train, test and update, a distilled model that may be less varied than its teacher, and an autoencoder decoder that can soften fine product details such as fabric.

Weighing these, the GAN's speed advantage is outweighed by its variety and training problems, which hit a small team hardest, and plain diffusion is too slow for the live feature. Hearth & Oak should choose the hybrid, but adopt an existing, well-supported latent diffusion model and its distilled version rather than building one, so the complexity is mostly someone else's, and composite the real product photo into each scene so that what customers see is exactly what they will buy.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: GAN strength: one-pass generation, very fast and cheap; suits live use. (1 mark)
  • Point 2: GAN weakness: mode collapse / low variety across customers' rooms. (1 mark)
  • Point 3: GAN weakness: unstable training needing expert tuning, risky for a small team; weaker text control. (1 mark)
  • Point 4: Diffusion strength: high quality and variety; strong prompt following via cross-attention. (1 mark)
  • Point 5: Diffusion strength: stable training with a simple loss. (1 mark)
  • Point 6: Diffusion weakness: many steps, slow and costly for live use; fine for catalogue made in batches. (1 mark)
  • Point 7: Hybrid strength: latent space cuts cost per step; distilled model gives near-real-time images. (1 mark)
  • Point 8: Hybrid strength: can use the full model for catalogue and the fast one live: right tool for each job. (1 mark)
  • Point 9: Hybrid weakness: more components to train, test and maintain; distilled model may lose variety; decoder may blur fine product detail. (1 mark)
  • Point 10: Links to the company: small team, limited GPU budget, need for accurate products and trust. (1 mark)
  • Point 11: Weighs the options against each other, rather than listing them separately. (1 mark)
  • Point 12: A clear recommendation that follows from the evaluation, with a condition or mitigation. (1 mark)

Also accepted

  • Using a well-supported existing hybrid model rather than building one is a strong point for point 9 or point 12.
  • Real products can be composited from studio photos to avoid hallucinated detail: credit under point 9 or point 12.

Earns nothing

  • Describing how each model works without evaluating it for this company.

Mark every point to see your total.

Challenge 1

SL and HL

How diffusion models make an image

From How diffusion models work

Worked example · Explain · AO2

[4 marks]

Hearth & Oak wants customers to get the same room image if they press "Generate" twice with the same description. Explain how a diffusion model can produce the same image twice, and why it usually produces a different one.

0 words

Marking points and model answer

A model answer

A diffusion model starts every generation from an image of random noise and removes noise from it step by step. If the starting noise is different, the model is guided to a different final image, so pressing "Generate" twice normally gives two different rooms. The starting noise is produced from a seed. If Hearth & Oak stores the seed and uses it again with the same prompt and the same sampler settings, the starting noise is identical, and because the seed also fixes any randomness used during the denoising steps, the final image is the same.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Generation starts from an image of random noise. (1 mark)
  • Point 2: Different starting noise is denoised into a different image, so by default each press gives a different result. (1 mark)
  • Point 3: The starting noise comes from a seed; keeping the same seed (and prompt and settings) gives the same starting noise. (1 mark)
  • Point 4: The same seed also fixes any random noise added during sampling (or the sampler is deterministic), so the same starting noise gives the same final image. (1 mark)

Also accepted

  • Storing and re-showing the generated image is a valid way to show the same image again (credit point 3), but point 1 and point 2 still need the explanation of why regenerating differs.

Earns nothing

  • "The AI remembers the image" with no mention of noise or seeds.

Mark every point to see your total.

Question 1 · Outline · AO1

[2 marks]

Outline the forward process in a diffusion model.

0 words

Marking points and model answer

A model answer

The forward process takes a training image and adds a small amount of Gaussian noise to it over many steps, following a fixed noise schedule, until the image is indistinguishable from pure random noise. Nothing is learned in this process.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Noise (Gaussian noise) is added to a training image in many small steps. (1 mark)
  • Point 2: Until the image becomes pure noise / according to a fixed noise schedule (it is not learned). (1 mark)

Earns nothing

  • Describing how the model removes noise: that is the reverse process.

Mark every point to see your total.

Question 2 · Describe · AO1

[4 marks]

Describe how the denoising network in a diffusion model is trained.

0 words

Marking points and model answer

A model answer

For each training example, a real image is taken and a random step number is chosen. Noise is added to the image to match that step, and the exact noise is remembered. The network is given the noisy image and the step number and predicts the noise. The prediction is compared with the real noise using a loss such as mean squared error, and backpropagation with gradient descent adjusts the weights to reduce the error. This is repeated over millions of images and noise levels.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: A training image has a known amount of noise added for a randomly chosen step. (1 mark)
  • Point 2: The network is given the noisy image (and the step number) and predicts the noise that was added. (1 mark)
  • Point 3: The prediction is compared with the real noise using a loss function (for example mean squared error). (1 mark)
  • Point 4: The weights are adjusted using backpropagation / gradient descent, repeated over very many images. (1 mark)

Also accepted

  • Predicting the clean image (or a related quantity) instead of the noise is an accepted variant for point 2.

Earns nothing

  • "It learns from lots of images" with no description of the steps.

Mark every point to see your total.

Question 3 · Suggest · AO2

[4 marks]

Customers using Hearth & Oak's "Design my room" box complain that they wait too long for an image. Suggest two changes to the diffusion system that would reduce the waiting time, and state a disadvantage of each.

0 words

Marking points and model answer

A model answer

First, Hearth & Oak could reduce the number of sampling steps, for example from 50 to 20, using a sampler designed for few steps. Each step is a full pass through the network, so this cuts the time roughly in proportion, but images may lose fine detail such as fabric texture. Second, it could generate at a lower resolution and enlarge the result. Fewer pixels means less computation per step, but the enlarged image may look soft, which matters when customers are judging a product's material.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: A first valid change, for example using fewer sampling steps (with a faster sampler). (1 mark)
  • Point 2: A matching disadvantage, for example lower quality or less detail / more artefacts. (1 mark)
  • Point 3: A second valid change, for example generating at a lower resolution, working in latent space, a smaller or distilled model, or a faster GPU. (1 mark)
  • Point 4: A matching disadvantage, for example blurrier images, lost fine detail on the product, higher cost, or extra training work. (1 mark)

Also accepted

  • Showing a low-quality preview first and refining it afterwards is a valid change; its disadvantage is the extra compute for two passes.
  • A change given with no disadvantage earns the change mark only.

Earns nothing

  • "Use a better computer" with no link to time or cost.

Mark every point to see your total.

From Convolutional neural networks in image generation

Worked example · Explain · AO1

[3 marks]

Explain why a U-Net denoiser uses skip connections.

0 words

Marking points and model answer

A model answer

The encoder half of a U-Net repeatedly downsamples the image, which captures what is in the picture but loses exactly where edges and small details are. Skip connections copy the feature maps from each encoder level straight across to the decoder level of the same size. The decoder can then combine the overall understanding from the bottleneck with the precise detail from early layers, which matters because the denoiser must predict noise for every single pixel.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: The encoder downsamples the image, so fine spatial detail is lost at the bottleneck. (1 mark)
  • Point 2: Skip connections pass feature maps from encoder levels directly to the matching decoder levels. (1 mark)
  • Point 3: So the output keeps precise detail / positions, which a denoiser needs because its output is the same size as its input. (1 mark)

Also accepted

  • Mentioning that skip connections also help gradients flow during training earns point 3.

Earns nothing

  • "They make it faster."

Mark every point to see your total.

Question 1 · Define · AO1

[1 mark]

Define the term "kernel" in the context of a convolutional neural network.

0 words

Marking points and model answer

A model answer

A kernel is a small matrix of learned weights that is moved across an image, multiplying and summing the values under it, to detect one kind of feature and produce a feature map.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: A small grid / matrix of learned weights that is slid across the input to detect a feature (producing a feature map). (1 mark)

Also accepted

  • "Filter" used as a synonym, with the same meaning.

Earns nothing

  • The operating system kernel.

Mark every point to see your total.

Question 2 · Explain · AO1

[4 marks]

Explain why a convolutional layer is more suitable than a fully connected layer for processing images.

0 words

Marking points and model answer

A model answer

An image has hundreds of thousands of pixel values, so a fully connected layer would need a weight between every pixel and every neuron, which is too many to train or run efficiently. A convolutional layer instead slides one small kernel over the image and reuses the same weights everywhere, so it has far fewer parameters. Each kernel only looks at a small neighbourhood, which suits images because nearby pixels form edges and textures. Because the same kernel is used everywhere, a pattern it learns, such as the edge of a table leg, is recognised wherever it appears.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: A fully connected layer would need a weight for every pixel to every neuron: an enormous number of weights. (1 mark)
  • Point 2: A convolutional layer shares one small kernel across the whole image, so it has far fewer weights / is faster to train and run. (1 mark)
  • Point 3: Convolutions look at local neighbourhoods, matching how meaning in images comes from nearby pixels. (1 mark)
  • Point 4: A feature learned in one place is detected anywhere in the image (translation equivariance / invariance). (1 mark)

Earns nothing

  • "CNNs are better for images" with no reason.

Mark every point to see your total.

Question 3 · Suggest · AO2

[3 marks]

Hearth & Oak's generated rooms often have furniture with warped legs and mismatched edges. Suggest how the structure of a U-Net relates to this problem.

0 words

Marking points and model answer

A model answer

Straight table legs and clean edges are fine detail that has to be correct at full resolution. In a U-Net the middle of the network sees a heavily downsampled version of the image, so it knows roughly where a table is but not exactly where its edges are; that precision has to come back through the skip connections and the high-resolution layers. If those layers are small, or the model has seen few clean product photos, edges may come out warped. Hearth & Oak could fine-tune on its own sharp studio photos or generate at a higher resolution.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Straight edges and thin structures depend on fine spatial detail at full resolution. (1 mark)
  • Point 2: Detail is lost in the downsampled bottleneck, and is recovered only through the skip connections / higher-resolution layers. (1 mark)
  • Point 3: A sensible consequence or fix: too little capacity at high-resolution levels, training data with few such objects, or more training on product images / a higher resolution / more steps. (1 mark)

Also accepted

  • A valid answer that relates the problem to limited attention between distant parts of the image (so two legs are not kept consistent) earns point 2.

Earns nothing

  • "The AI is bad at furniture."

Mark every point to see your total.

Challenge 2

SL and HL

Training data: ethics, ownership and bias

From Training data ethics: consent, copyright and attribution

Worked example · Discuss · AO3

[6 marks]

Hearth & Oak is choosing between a model trained on images scraped from the web and a model trained only on licensed stock photos and its own studio photos. Discuss which it should choose.

0 words

Marking points and model answer

A model answer

The web-scraped model has learned from far more images, so it is likely to produce more realistic and varied rooms, from tiny city flats to farmhouse kitchens. However, the photographers and designers whose work it learned from did not agree and are not credited or paid. That is an ethical problem, and also a business one: Hearth & Oak could face copyright claims, especially if the model reproduces a near-copy of a well-known interior photo, and a story about "stolen" images would damage a brand that depends on trust.

The licensed model avoids most of this. Hearth & Oak can show where every training image came from, and the generated images are safer to use in adverts. The cost is a smaller, narrower dataset, so rooms may look less varied, and licences cost money.

On balance Hearth & Oak should choose the licensed model. Its main need is realistic scenes around its own products, which its studio photos already cover well, and the legal and reputational risks of the scraped model are much harder to fix later than a narrower range of room styles.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Scraped model: much larger and more varied data, so likely better quality and range of room styles. (1 mark)
  • Point 2: Scraped model: creators did not consent and are not credited or paid; ethical concern for photographers and designers. (1 mark)
  • Point 3: Scraped model: legal risk (copyright claims, memorised near-copies) and reputational risk for a brand built on trust. (1 mark)
  • Point 4: Licensed model: clear permission and provenance; images safer to use commercially. (1 mark)
  • Point 5: Licensed model: smaller or narrower data, higher cost, possibly weaker or less varied results. (1 mark)
  • Point 6: A justified conclusion that weighs the points for this company (for example licensed, because legal and trust risks outweigh some loss of variety; its own product photos cover what matters most). (1 mark)

Also accepted

  • Mentioning the option of fine-tuning a licensed base model on its own photos, as a compromise, can earn point 6.

Earns nothing

  • A conclusion with no reason.
  • Points about AI in general that are not linked to the two options.

Mark every point to see your total.

Question 1 · Outline · AO1

[2 marks]

Outline what is meant by memorisation in a generative image model.

0 words

Marking points and model answer

A model answer

Memorisation is when a generative model outputs a copy or near-copy of one of its training images instead of a new image. It is more likely for images duplicated many times in the training set, and it can expose copyrighted or private pictures.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: The model reproduces a training image exactly or almost exactly, instead of making something new. (1 mark)
  • Point 2: More likely for images that appear many times in the training data / it can leak copyrighted or private images. (1 mark)

Earns nothing

  • "The model memorises how to draw" (that is ordinary learning).

Mark every point to see your total.

Question 2 · Identify · AO2

[2 marks]

Identify two ways Hearth & Oak could make it clear to customers that a room image was generated by AI.

0 words

Marking points and model answer

A model answer

It could show a visible "AI-generated scene" label on every generated image, and attach provenance metadata (content credentials) to the file that records that it was made by an AI model.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: A first valid way, for example a visible label or caption on the image ("AI-generated room"). (1 mark)
  • Point 2: A second valid way, for example an invisible watermark, provenance metadata / content credentials, or a note on the product page. (1 mark)

Earns nothing

  • Two versions of the same label.

Mark every point to see your total.

Question 3 · Explain · AO2

[4 marks]

A customer types "a living room in the style of [a named living illustrator]" into Hearth & Oak's "Design my room" box. Explain one ethical issue this raises and one technical measure Hearth & Oak could take.

0 words

Marking points and model answer

A model answer

The prompt asks the model to imitate a specific living illustrator. That artist did not agree to have their work used this way and gets nothing from it, and the result could compete with the commissions they rely on or be passed off as theirs. Hearth & Oak could check prompts against a list of living artists' names and refuse or rewrite those requests. This stops the most direct cases, although a determined user could still describe the style in other words, so it reduces the problem rather than removing it.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Identifies the issue: imitating a living artist's style without consent / payment. (1 mark)
  • Point 2: Explains the harm: it uses their work to make images that may compete with them or be mistaken for theirs. (1 mark)
  • Point 3: A technical measure: filtering prompts for artist names / a blocklist / refusing such prompts. (1 mark)
  • Point 4: Explains how it helps or a limitation (for example users can describe the style without the name). (1 mark)

Also accepted

  • Removing that artist's work from the training data (honouring an opt-out) is a valid measure.

Earns nothing

  • "It is illegal" with no explanation.

Mark every point to see your total.

From Dataset curation and bias in generated images

Worked example · Explain · AO2

[4 marks]

Almost every room Hearth & Oak's model generates is large, bright and minimalist, even when the customer asks for "a cosy family home". Explain how the training data could have caused this, and suggest one way to reduce it.

0 words

Marking points and model answer

A model answer

Most interior photos online are taken by professionals to sell homes or furniture, so they show large, bright, tidy rooms. If the model was trained mostly on such photos, it learned that this is what "a room" looks like and makes that by default, even pulling a "cosy family home" towards it. Hearth & Oak could add and upweight photos of smaller, lived-in homes, including its own customers' photos shared with permission, and then generate a few hundred images for prompts like "a cosy family home" to check that the variety has improved.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: The training images over-represent this kind of room (for example professional interior and estate-agent photos dominate online). (1 mark)
  • Point 2: The model learns the most common pattern as the default and reproduces / exaggerates it. (1 mark)
  • Point 3: A valid curation fix: add or upweight images of other kinds of homes, or rebalance the dataset. (1 mark)
  • Point 4: Why it helps or how to check: the model then sees more variety; measure by generating many images for neutral prompts and counting. (1 mark)

Also accepted

  • Caption bias (photos of cosy homes rarely captioned that way) is a valid cause for point 1.

Earns nothing

  • "The AI is biased" with no cause.

Mark every point to see your total.

Question 1 · State · AO1

[2 marks]

State two sources of bias in the training data of an image generation model.

0 words

Marking points and model answer

A model answer

Some groups and places appear far more often than others in images collected from the web, and the captions attached to images carry the assumptions of the people who wrote them.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: One source, for example over- or under-representation of groups, places or styles. (1 mark)
  • Point 2: A different source, for example biased captions/labels, collection mainly from some languages or countries, or filters that remove some groups more. (1 mark)

Earns nothing

  • "Bad data."

Mark every point to see your total.

Question 2 · Explain · AO1

[2 marks]

Explain why removing duplicate images from a training dataset is good practice.

0 words

Marking points and model answer

A model answer

Images that appear many times are much more likely to be memorised and copied in the output, and duplicates make popular images count more than others, skewing what the model learns as normal.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Duplicated images are more likely to be memorised and reproduced. (1 mark)
  • Point 2: Duplicates over-weight popular images, skewing the model towards them (bias) / waste training time. (1 mark)

Mark every point to see your total.

Question 3 · Discuss · AO3

[6 marks]

Hearth & Oak plans to filter its training data by removing every image an automatic quality model scores as "low quality". Discuss this plan.

0 words

Marking points and model answer

A model answer

Filtering out low-quality images should make the model's rooms sharper and better lit, which matters for a shop whose images must show products accurately, and it saves training time on blurry or irrelevant pictures. However, the quality model was itself trained on someone's idea of a "good" photo. It may score phone photos of small, cluttered or older homes as low quality far more often than professional shots of large ones. Removing them would make Hearth & Oak's generator even worse at showing the homes many customers actually live in. Hearth & Oak should still filter, but first check a sample of what the filter removes, broken down by kind of room, and lower the threshold or keep a set of real-home photos if one kind is being removed much more than others.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Benefit: sharper, cleaner training images, so better-looking output. (1 mark)
  • Point 2: Benefit: less training time / fewer junk or irrelevant images. (1 mark)
  • Point 3: Risk: the quality model has its own bias, so it may score some homes, places or groups as "low quality" more often. (1 mark)
  • Point 4: Risk: removing them makes the generator even less able to show those homes, increasing representation bias. (1 mark)
  • Point 5: A mitigation: check what the filter removes by category, set different thresholds, or have humans review a sample. (1 mark)
  • Point 6: A justified conclusion for this company. (1 mark)

Earns nothing

  • A conclusion with no reasoning.

Mark every point to see your total.

Challenge 3

HL only

GANs: a generator against a discriminator

From Generative adversarial networks (GANs)

Worked example · Describe · AO1 · HL

[4 marks]

Describe how the generator in a GAN is trained.

0 words

Marking points and model answer

A model answer

The generator is given random latent vectors and produces a batch of images. These are fed into the discriminator, which outputs how likely each is to be real. The generator's loss is low when the discriminator is fooled, so the error is backpropagated back through the discriminator into the generator, and only the generator's weights are updated while the discriminator's are held fixed. This step alternates with a step that trains the discriminator on real and generated images.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: The generator turns random latent vectors (noise) into images. (1 mark)
  • Point 2: The images are passed to the discriminator, which scores how real they look. (1 mark)
  • Point 3: The loss rewards fooling the discriminator; the error is backpropagated through the discriminator to the generator. (1 mark)
  • Point 4: Only the generator's weights are updated in this step (discriminator fixed); this alternates with training the discriminator. (1 mark)

Earns nothing

  • Comparing generated images directly with real ones pixel by pixel.

Mark every point to see your total.

Question 1 · State · AO1 · HL

[1 mark]

State the role of the discriminator in a GAN.

0 words

Marking points and model answer

A model answer

The discriminator classifies an image as real, from the training data, or fake, made by the generator.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: To classify images as real (from the training data) or fake (from the generator), giving the generator feedback. (1 mark)

Earns nothing

  • "To check the image is good."

Mark every point to see your total.

Question 2 · Explain · AO2 · HL

[3 marks]

Hearth & Oak wants to show live previews that update as a customer drags a slider for "how modern" a room is. Explain why a GAN might be more suitable than a diffusion model for this feature.

0 words

Marking points and model answer

A model answer

A GAN makes an image with one pass through its generator, while a diffusion model needs many passes, one per denoising step. A live preview has to produce a new image every time the slider moves, many times a second, which a single pass can manage and many passes cannot. A GAN's latent space also tends to change smoothly, so small slider moves give small, gradual changes in the room.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: A GAN generates an image in a single pass through the generator. (1 mark)
  • Point 2: A diffusion model needs many denoising passes, so it is much slower per image. (1 mark)
  • Point 3: Live slider updates need many images per second / low latency; also a GAN latent space changes smoothly as you move through it. (1 mark)

Mark every point to see your total.

Question 3 · Compare and contrast · AO1 · HL

[4 marks]

Compare and contrast GANs and diffusion models as approaches to image generation.

0 words

Marking points and model answer

A model answer

Both are neural networks that turn random noise into new images after training on large datasets. A GAN produces an image in one pass of its generator, while a diffusion model removes noise over many steps, so GANs are much faster at generation time. GANs are trained adversarially against a discriminator, which is unstable, whereas diffusion models are trained with a simple, stable denoising loss. Diffusion models usually produce more varied images and follow text prompts better, while GANs can collapse to a small range of outputs.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Both learn to generate new images from random noise / both are trained on large image datasets. (1 mark)
  • Point 2: Speed: GAN one pass vs diffusion many steps. (1 mark)
  • Point 3: Training: GANs adversarial and unstable vs diffusion stable with a simple denoising loss. (1 mark)
  • Point 4: Output: diffusion more diverse / better prompt following vs GAN risk of mode collapse. (1 mark)

Earns nothing

  • Points about only one model with no comparison.

Mark every point to see your total.

From GAN training instability and how to fix it

Worked example · Explain · AO2 · HL

[4 marks]

Hearth & Oak's GAN produces beautiful sofas, but testers notice that almost all of them are the same shape and colour. Identify this problem and explain one technique that could reduce it.

0 words

Marking points and model answer

A model answer

This is mode collapse. The generator has found a few sofa images that the discriminator accepts as real, and because its only goal is to fool the discriminator, nothing rewards it for making other shapes or colours. Minibatch discrimination lets the discriminator compare the images within a batch rather than judging each alone. A batch of near-identical sofas then looks suspicious, because real batches are varied, so the generator is pushed to spread its output across more kinds of sofa.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Identifies mode collapse. (1 mark)
  • Point 2: Explains the cause: the generator found outputs that fool the discriminator and is not rewarded for variety. (1 mark)
  • Point 3: A valid technique, for example minibatch discrimination, Wasserstein loss, or unrolled updates. (1 mark)
  • Point 4: How the technique helps, for example the discriminator can spot a batch of near-identical images as fake, so the generator is pushed to vary. (1 mark)

Earns nothing

  • "Train it for longer" with no explanation.

Mark every point to see your total.

Question 1 · Explain · AO1 · HL

[3 marks]

Explain why a discriminator that is too strong can stop a GAN from learning.

0 words

Marking points and model answer

A model answer

If the discriminator becomes too good, it labels every generated image as fake with near certainty. Small changes to the generator then make almost no difference to the loss, so the gradient passed back to the generator is close to zero. With almost no signal to learn from, the generator's weights barely change and it stops getting better.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: A strong discriminator rejects all generated images with high confidence. (1 mark)
  • Point 2: The loss then hardly changes as the generator changes, so the gradient is close to zero (vanishing gradient). (1 mark)
  • Point 3: With almost no gradient, the generator's weights barely update and it stops improving. (1 mark)

Mark every point to see your total.

Question 2 · Outline · AO1 · HL

[4 marks]

Outline two reasons why the loss values of a GAN are a poor guide to whether training is going well.

0 words

Marking points and model answer

A model answer

First, each network is judged against the other, and the other keeps changing, so a lower generator loss might only mean the discriminator has become weaker rather than the images better. Second, the losses measure how well each network does in the game, not how varied the images are, so the generator can collapse to a few outputs while the losses look fine. Teams therefore look at sample images and a score such as FID.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: A first reason, for example each network's loss depends on the other, which keeps changing / the losses oscillate / they do not measure diversity. (1 mark)
  • Point 2: Development of that reason, for example a falling generator loss may only mean the discriminator got worse, not that images improved. (1 mark)
  • Point 3: A different second reason. (1 mark)
  • Point 4: Development of that reason, for example mode collapse can happen while the losses look fine, so sample images / FID are needed. (1 mark)

Mark every point to see your total.

Question 3 · Evaluate · AO3 · HL

[4 marks]

Hearth & Oak's engineers have limited time. Evaluate replacing the standard GAN loss with a Wasserstein loss.

0 words

Marking points and model answer

A model answer

A Wasserstein loss measures how far apart the real and generated distributions are with a smooth score, so the generator still gets a useful gradient even when the critic is strong. Its value also tracks image quality more closely, which would help Hearth & Oak's small team see whether training is improving. However, it needs a gradient penalty, which adds computation to each step, and typically several critic updates per generator update, so training is slower and still needs some tuning. For a team with little time to babysit training runs, it is worth it: fewer failed runs saves more time than the slower steps cost.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Benefit: gives a smooth, useful gradient even when the discriminator (critic) is strong, reducing vanishing gradients. (1 mark)
  • Point 2: Benefit: the loss value tracks image quality better, and training is less prone to collapse/oscillation. (1 mark)
  • Point 3: Cost: needs a constraint on the critic (gradient penalty or clipping), extra computation per step / more critic steps, slower training, still needs tuning. (1 mark)
  • Point 4: A justified judgement for a small team with limited time. (1 mark)

Mark every point to see your total.

Challenge 4

HL only

Hybrid models and the trade-offs between them

From Hybrid generative models: VAEs, flows and combinations

Worked example · Explain · AO1 · HL

[4 marks]

Explain why most text-to-image diffusion systems run the diffusion process in a latent space rather than on the pixels of the image.

0 words

Marking points and model answer

A model answer

A variational autoencoder first compresses the image into a latent grid many times smaller than the pixel image, and a decoder turns latents back into pixels. Running diffusion on the latent means each denoising step processes far fewer values, so it needs much less computation and memory. Because generation repeats that step many times, the saving is multiplied, making both training and generation much faster and cheaper. The latent keeps the important structure of the image, so quality stays high, although very fine detail now depends on how good the decoder is.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: An autoencoder (VAE) compresses the image into a much smaller latent representation, and decodes it back afterwards. (1 mark)
  • Point 2: Each denoising step on the smaller latent needs far less computation and memory. (1 mark)
  • Point 3: Since diffusion needs many steps, the saving is multiplied, making generation (and training) much faster/cheaper. (1 mark)
  • Point 4: The latent keeps the meaningful structure, so quality stays high; any fine detail is restored by the decoder (with a possible loss of tiny details). (1 mark)

Earns nothing

  • "It is more efficient" with no explanation of why.

Mark every point to see your total.

Question 1 · Outline · AO1 · HL

[2 marks]

Outline one strength and one weakness of a variational autoencoder (VAE) as an image generator.

0 words

Marking points and model answer

A model answer

A VAE generates an image in one fast pass of its decoder and trains stably, but its images tend to be blurrier and less detailed than those from GANs or diffusion models.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Strength: fast single-pass generation / smooth, organised latent space / stable training / varied output. (1 mark)
  • Point 2: Weakness: images tend to be blurry / less sharp than GANs or diffusion. (1 mark)

Mark every point to see your total.

Question 2 · Discuss · AO3 · HL

[6 marks]

Hearth & Oak is considering adding a GAN-based upscaler after its diffusion model, so it can generate at a lower resolution and enlarge the result. Discuss this design.

0 words

Marking points and model answer

A model answer

Generating at a lower resolution would cut the time and GPU cost of each diffusion run a lot, and a GAN upscaler adds sharp texture in one quick pass, so customers would get crisp images faster. The danger for Hearth & Oak is that an upscaler invents plausible detail. A fabric weave or wood grain that the upscaler made up could make a sofa look unlike the one the customer will receive, which breaks the trust the brand depends on. It is also one more model to train, test and keep updated. A good compromise is to upscale only the room around the product and composite the real studio photo of the product on top. With that safeguard the design is worth adopting; without it, the risk of misleading customers outweighs the speed.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Benefit: diffusion at lower resolution is much faster/cheaper per image. (1 mark)
  • Point 2: Benefit: the GAN upscaler is a single fast pass and adds sharp texture. (1 mark)
  • Point 3: Risk: the upscaler can invent (hallucinate) detail, so the product may not look like the real one (misleading customers). (1 mark)
  • Point 4: Risk: an extra component to train, test and maintain; two places for errors; GAN upscalers can add artefacts. (1 mark)
  • Point 5: A mitigation, for example paste the real product photo in, or only upscale the background. (1 mark)
  • Point 6: A justified conclusion for this company. (1 mark)

Mark every point to see your total.

Question 3 · Distinguish · AO1 · HL

[2 marks]

Distinguish between a diffusion model and a flow-based model.

0 words

Marking points and model answer

A model answer

A diffusion model is trained to reverse a noising process approximately, by removing a little predicted noise at each of many steps, whereas a classic flow-based model is built from exactly invertible transformations, so it can turn noise into images and images back into noise and calculate exactly how likely an image is.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Diffusion learns to remove noise step by step; the noising process is not exactly reversible, so it learns to approximate the reverse. (1 mark)
  • Point 2: A (classic) flow-based model is a chain of exactly invertible transformations, so it can map in both directions and compute exact likelihoods. (1 mark)

Mark every point to see your total.

From Trade-offs: quality, speed, cost and complexity

Worked example · Suggest · AO2 · HL

[6 marks]

Hearth & Oak needs two kinds of images: room scenes for 3,000 catalogue pages, made once, and live images for the "Design my room" box. Suggest suitable settings for each, justifying your choices.

0 words

Marking points and model answer

A model answer

For the catalogue, Hearth & Oak should use the highest quality settings: a large model, many sampling steps and a high resolution. These images are made once, can be generated overnight in large batches when GPUs are cheaper, and appear on every product page, so quality matters more than time. Staff can review them and regenerate any with mistakes before they go live.

For the "Design my room" box, the customer is waiting, so it should use a distilled model or far fewer steps at a lower resolution, aiming for an image in a few seconds. This also matters for cost, because it runs every time any customer presses the button. It could show a quick preview first and refine only the image the customer likes, and label the result as an impression of the room.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Catalogue: many sampling steps / high resolution / the largest model. (1 mark)
  • Point 2: Justified: made once and not time-critical (can run overnight / in batches), and quality matters for every page. (1 mark)
  • Point 3: Catalogue: humans can review and regenerate poor images before publishing. (1 mark)
  • Point 4: Live: few steps / distilled or smaller model / lower resolution. (1 mark)
  • Point 5: Justified: customers wait for it, so latency matters; cost is paid every time a customer generates. (1 mark)
  • Point 6: Live: a safeguard, for example a preview then refine, caching, or labelling the image as an impression. (1 mark)

Earns nothing

  • The same settings for both with no justification.

Mark every point to see your total.

Question 1 · Distinguish · AO1 · HL

[2 marks]

Distinguish between latency and throughput for an image generation service.

0 words

Marking points and model answer

A model answer

Latency is how long one customer waits from sending a prompt to receiving the image, while throughput is how many images the whole service can produce per second or per hour.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Latency: the time one request takes, from prompt to image. (1 mark)
  • Point 2: Throughput: how many images the system produces in a given time. (1 mark)

Mark every point to see your total.

Question 2 · Explain · AO1 · HL

[2 marks]

Explain one limitation of using FID alone to compare two image generation models.

0 words

Marking points and model answer

A model answer

FID only compares the overall distribution of generated images with real ones, so it does not measure whether an image matches its prompt. A model could get a good FID while ignoring what customers asked for, so it should be combined with a prompt-matching measure such as CLIP score and human review.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: A limitation, for example it does not measure how well images match their prompts / it depends on the pretrained network's features / it needs many images / it does not check task-specific correctness. (1 mark)
  • Point 2: Why it matters, for example a model could score well while ignoring prompts or showing products wrongly, so human or CLIP checks are also needed. (1 mark)

Mark every point to see your total.

Question 3 · Evaluate · AO3 · HL

[6 marks]

Hearth & Oak could run its image model on its own rented cloud GPUs, or pay a third-party image generation service per image. Evaluate these two options.

0 words

Marking points and model answer

A model answer

Running its own model gives Hearth & Oak full control: it can choose a model trained on licensed data, fine-tune it on its own product photos, and keep customers' prompts in-house. But it needs engineers who can run GPU servers, it pays for GPUs even when nobody is generating, and it must cope with busy sale weekends itself. A third-party service needs no setup, scales automatically and charges only for images made, which suits a small team launching a new feature. However, Hearth & Oak cannot see or choose what that model was trained on, so the ethical and copyright questions are out of its hands, and customer prompts leave the company. Per-image pricing is cheaper while volumes are low, but at large, steady volumes renting its own GPUs usually costs less. Hearth & Oak should start with a service that can show its training data is licensed, measure demand, and move to its own GPUs only if volume grows enough to justify the engineering work.

For each point, does your answer make it? Be strict: a marker would be.

  • Point 1: Own GPUs: full control over the model (can fine-tune on its products, choose training data), and its data and prompts stay with it. (1 mark)
  • Point 2: Own GPUs: needs expertise and maintenance; pays for GPUs even when idle; scaling for busy periods is its job. (1 mark)
  • Point 3: Service: no setup, scales automatically, pay only per image; quick to launch for a small team. (1 mark)
  • Point 4: Service: less control (cannot choose training data, so ethical/IP questions are out of its hands), customer prompts sent to a third party, cost per image can rise, dependency on supplier. (1 mark)
  • Point 5: Links cost to volume: per-image pricing is cheaper at low volume; own GPUs can be cheaper at high, steady volume. (1 mark)
  • Point 6: A justified conclusion for this company. (1 mark)

Mark every point to see your total.

Written by Spine in our own words. Spine is not affiliated with or endorsed by the International Baccalaureate. Every question, set of marking points and model answer here is our own, set in our own made-up company. Facts about the case study itself come from public guides and are marked “reported”. Last checked 2026-10-23.