# D3S2: Diffusion-Guided Dataset Distillation for Semantic Segmentation

*Wenjie Zheng, Haoji Hu, Jiali Lu, Xingze Zou, Jing Wang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155224) · [OpenReview](https://openreview.net/forum?id=7L1ql4wXb3) · [Open on the map](../papers.html#p155224)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Diffusion-Guided Dataset Distillation](../pgroup/227.md) · Type: new method · Keywords: dataset distillation, semantic segmentation, diffusion model, class imbalance, pixel alignment, synthetic data generation

Areas: [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Pixel-Space Diffusion › Visual Content Generation; [Computer Vision & 3D](../areas/computer-vision.md) › Medical Visual Computing › Diffusion and Flow Models

## Summary
D3S2 is a diffusion-guided dataset distillation framework for semantic segmentation that tackles class imbalance, pixel-wise alignment, and computational cost, achieving 24.99% and 35.49% mIoU on ADE20K and COCO-Stuff at a 1% compression rate.

## Explained to a 5-year-old
We want to make a tiny set of pictures that still help a computer learn to color each part of an image correctly. The computer faces problems because some colors appear rarely, because the colors must line up exactly with the picture, and because making many pictures is slow. Our method first picks a few special color patches that represent the rare colors. Then it uses a picture-making tool to draw new pictures based on those patches, making sure the colors match the patches perfectly. This helps the computer learn from fewer pictures without losing accuracy.

## Explained to a 5-year-old, longer
In machine learning, computers need lots of pictures to learn how to understand them. Sometimes there are too many pictures to store or use, so researchers try to make a smaller set that still works. This is called dataset distillation, and it is easy for tasks like recognizing objects in photos. But for more detailed tasks, like coloring each pixel of an image correctly (semantic segmentation), it is harder. The problem is that some colors appear only a few times, making the computer ignore them. Also, the synthetic pictures must have the exact same colors as the original labels, otherwise the computer gets confused. Finally, creating high-resolution pictures for segmentation takes a lot of computing power and time. To solve these issues, the method first selects a few special color patches that represent the rare colors. Then it uses a picture-making tool to generate new images based on those patches, ensuring the colors line up perfectly. This process also includes extra checks that the colors match the expected segmentation and that each color’s features are similar to the original data. As a result, the computer can learn from a much smaller set of pictures while still performing well on the segmentation task.

## For a technical reader
The paper addresses dataset distillation for semantic segmentation, which is more complex than classification due to pixel-wise labels and class imbalance. It proposes a two-stage pipeline: a class-balanced mask selection to capture under-represented classes, followed by diffusion-guided image synthesis that conditions a layout-to-image model on those masks. Guided sampling adds a segmentation-consistency loss and a class-wise feature matching loss to preserve alignment and statistical properties. Experiments on ADE20K and COCO-Stuff show significant gains over random selection at 1% compression.

## Problem
Dataset distillation for dense prediction tasks such as semantic segmentation is challenging due to long-tailed class imbalance, the requirement for strict pixel-wise alignment between synthetic images and dense labels, and the high computational cost of optimizing high-resolution data with complex models.

## Method
The approach uses a two-stage design: first, a class-balanced mask selection constructs representative masks that prioritize under-represented classes; second, a pretrained layout-to-image diffusion model generates images conditioned on these masks, with guided diffusion sampling that includes a segmentation-consistency loss and a class-wise feature matching loss to ensure pixel alignment and feature statistics.

## Results
At a 1% compression rate, the approach achieves 24.99% mIoU on ADE20K and 35.49% mIoU on COCO-Stuff, surpassing random selection by 9.34% and 5.70% respectively.

## Contributions
The paper identifies class imbalance, pixel-wise alignment, and computational cost as core challenges for semantic segmentation dataset distillation and introduces a two-stage method that leverages balanced mask selection and diffusion-guided synthesis with segmentation-consistency and class-wise feature matching losses to generate more useful synthetic data.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155224)
