# S2-RL: Sample-Set Dual Reinforcement Learning for Generative Semantic Segmentation Dataset Distillation

*Haoyu Wang, Fei Zhou, Qingqing Qiu, Lei Zhang, Wei Wei, Chen Ding*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155529) · [OpenReview](https://openreview.net/forum?id=4uK1DB9ydR) · [Open on the map](../papers.html#p155529)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Diffusion-Guided Dataset Distillation](../pgroup/227.md) · Type: new method · Keywords: dataset distillation, semantic segmentation, reinforcement learning, text-to-image generation, diffusion models

Areas: [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Pixel-Space Diffusion › Diffusion Model Distillation

## Summary
S2-RL is a sample-set dual reinforcement learning framework that distills large semantic segmentation datasets into a compact set of generated images via text-to-image diffusion and GRPO.

## Explained to a 5-year-old
We want a small set of pictures that can teach a computer how to label each part of a picture. The computer uses a special training method that looks at many pictures and learns to make new pictures with the right labels. It also makes sure the new pictures are different from each other. This helps the computer learn faster and use less memory.

## Explained to a 5-year-old, longer
When we teach a computer to recognize objects in pictures, we usually need a huge collection of labeled pictures. Making a tiny collection that still teaches the computer well is called dataset distillation. For simple picture classification, this is easy, but for detailed tasks like semantic segmentation-where each pixel must be labeled-it's harder. The old ways either take a very long time because they calculate gradients for every pixel, or they only copy the colors without the correct labels. This new idea uses a kind of game-like learning called reinforcement learning. The computer creates new pictures from text descriptions, trying to match the correct labels while also making the pictures different from each other. It learns two kinds of rewards: one for each picture to be correct and varied within its class, and another for the whole set to be diverse. By playing this game many times, it builds a small set of pictures that still contain lots of useful information. This makes it possible to train the computer faster and use less storage, while keeping the performance high. The method works well on two popular datasets used for segmentation, showing that the new approach beats older methods.

## For a technical reader
The paper addresses the challenge of compressing large semantic segmentation datasets into a smaller synthetic set. It frames this as a text-to-image generation problem and uses a reinforcement-learning policy that receives two types of feedback: per-sample rewards for semantic correctness and intra-class diversity, and a set-level reward that encourages overall distribution diversity via a contextual bandit. The training avoids expensive pixel-wise gradient unrolling, making the process more scalable. Experiments on ADE20K and COCO show consistent gains over prior distillation methods. The result is a compact dataset that retains the rich labeling information needed for high-performance segmentation models.

## Problem
Dataset distillation for dense prediction tasks like semantic segmentation is challenging because bi-level optimization methods are computationally expensive due to pixel-wise gradient unrolling, while generative proxy methods only add texture to fixed masks and fail to capture rich semantic knowledge.

## Method
The approach formulates dataset distillation as a text-to-image diffusion generation problem, fine-tunes a diffusion policy with a sample-set dual reward using GRPO: individual-sample rewards enforce semantic alignment with text prompts and intra-class diversity, while set-level rewards maximize inter-sample semantic distribution diversity via a contextual multi-armed bandit. This avoids pixel-wise gradient unrolling and produces novel scene generations.

## Results
The approach shows substantial and consistent improvements over existing baselines on ADE20K and COCO, establishing a new benchmark for semantic segmentation dataset distillation.

## Contributions
It introduces a sample-set dual reinforcement learning formulation for dataset distillation that jointly optimizes semantic alignment, intra-class diversity, and inter-sample distribution diversity, enabling efficient generation of informative segmentation samples without pixel-wise gradient unrolling.

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/155529)
