WorksComputer Science
MGPO: Manifold-Guided Diffusion Alignment for Task-Aware Dataset Distillation
Abstract
Diffusion-based dataset distillation (DD) suffers from a fundamental objective mismatch: likelihood-driven diffusion models prioritize density approximation over the discriminative decision boundaries required for downstream tasks. Beyond semantic mismatch, relying solely on density also leads to geometric coverage loss, where generated samples collapse into a few high-density modes and fail to cover the manifold's structural diversity. We propose Manifold-Guided Policy Optimization (MGPO), which reformulates DD as a multi-objective reinforcement learning problem and achieves Dual-Space Alignment via a pixel-space discriminative reward and a latent-space geometric reward guided by a class-wise Minimum Spanning Tree (MST). The discriminative reward enforces class separability, while the MST-based geometric reward encourages generated latents to cover a sparse geometric skeleton of each class, jointly addressing both failure modes. We further provide an idealized analysis that motivates the MST-based reward, including a Hausdorff approximation bound and a subsampling bound independent of the dataset size. The reward-modular design extends to structured tasks such as object detection and segmentation by substituting the frozen task reward model. Extensive experiments show MGPO consistently outperforms existing methods, including a +8.0% mIoU gain on segmentation under low-budget settings.
Figure 1. t-SNE of latent distributions on ImageWoof. Blue density: real data; orange dots: Minimax Diffusion; red dots: MGPO (ours); red stars with green edges: class-wise MST skeleton. MGPO covers a broader area along the MST skeleton, indicating improved manifold coverage.
Introduction
Dataset distillation (DD) (Wang et al. [35]) has emerged as a critical technique in large-scale machine learning, aiming to synthesize a small, representative subset of data from a massive original dataset. Recently, generative models, particularly diffusion models (Ho et al. [9]; Song et al. [31]), have emerged as effective backbones for this task. By leveraging powerful generative priors, diffusion models can effectively capture the complex underlying distribution of the source data to synthesize diverse and high-fidelity images. Unlike traditional gradient-matching [41] or trajectory-matching [3] approaches, which often struggle with optimization stability and limited sample diversity, these generative frameworks naturally overcome such bottlenecks. Consequently, diffusion-based methods have established state-of-the-art (SOTA) performance in dataset distillation [6, 32, 34, 4, 43, 24], offering superior results within limited computational budgets.
Despite recent advances, diffusion-based dataset distillation under extremely low-budget settings faces two distinct challenges. First, a semantic objective mismatch: likelihood-driven diffusion models prioritize pixel-level density approximation over the discriminative features required by downstream tasks [2, 9, 13]. Second, a geometric coverage loss: relying solely on density or naive classifier guidance often leads to mode collapse, failing to capture the complex geometric manifold structure and structural diversity of each class in the original data distribution. Consequently, generated samples may exhibit high perceptual fidelity yet fail to effectively represent the dataset.
These challenges show that diffusion-based distillation must transcend perceptual fidelity by resolving both issues at the same time. An effective distilled dataset requires two orthogonal properties: semantic discriminability, which pushes samples toward highly separable regions to better serve downstream tasks; and geometric preservation, which spreads samples along a sparse geometric skeleton of each class to maintain structural diversity and prevent mode collapse [7].
Following these principles, we propose Manifold-Guided Policy Optimization (MGPO), a framework that reformulates diffusion-based dataset distillation as a multi-objective reinforcement learning problem. Our core contribution is a Dual-Space Alignment strategy that addresses both challenges in their respective domains. We design a pixel-space discriminative reward to enforce class separability, alongside a latent-space geometric reward guided by a class-wise Minimum Spanning Tree (MST) to encourage geometric coverage. Crucially, MGPO utilizes a decoupled group-wise policy optimization strategy to internalize these heterogeneous, non-differentiable rewards directly into the diffusion weights. This RL formulation eliminates the need for expensive inference-time guidance, ensuring highly efficient sampling while harmonizing semantics and geometry.
We further provide an idealized analysis showing that, under smoothness and reach assumptions, a Euclidean MST -approximates the class manifold in Hausdorff distance with tightness in the backward direction. This analysis motivates the distance term of the geometric reward; the implemented reward is evaluated empirically.
Beyond classification, the flexibility of our RL formulation unlocks a new reward-modular paradigm for dataset distillation. While the MST-based geometric prior is inherently task-agnostic, the outer framework can be adapted to complex downstream tasks, such as object detection and segmentation, by substituting the pixel-space reward model. In such scenarios, the same frozen task model provides the reward during fine-tuning and pseudo-annotates the class-conditioned generated images afterwards, without modifying the core generative architecture.
Extensive empirical evaluations across multiple benchmarks demonstrate that MGPO consistently outperforms existing SOTA approaches. For instance, under representative low-budget settings, our method achieves 18.3 mIoU on segmentation tasks, surpassing the strongest baseline by +8.0 mIoU.
Our contributions are summarized as follows:
We reformulate diffusion-based dataset distillation as a multi-objective reinforcement learning problem, internalizing task-specific rewards directly into the diffusion weights and eliminating inference-time guidance overhead.
We design a dual-space reward with a pixel-level discriminative term and a latent-level MST geometric term, addressing the semantic mismatch and geometric coverage loss.
We provide an idealized analysis motivating the MST-based reward: under smoothness and reach assumptions, (i) a Euclidean MST approximates the class manifold in Hausdorff distance, and (ii) a subsampled MST admits a bound independent of the dataset size.
Extensive experiments show MGPO achieves SOTA performance on standard classification benchmarks and extends to other complex structured tasks like object detection and semantic segmentation.

Figure 2. Overview of the proposed MGPO framework. (a) PIXEL REWARD () is computed from downstream objectives such as classification, detection, and segmentation, encouraging semantic correctness and task consistency. (b) MST REWARD () is constructed in latent space. Real dataset features are encoded by encoder and projected via PCA to obtain a structured latent representation. A kNN graph is built to approximate local neighborhood structure, followed by a Minimum Spanning Tree (MST) to capture the global manifold topology. The generated latent samples are aligned with this manifold structure, promoting both representativeness and structural consistency.
Related Work
Diffusion Models for Dataset Distillation
Recent work has explored diffusion models as powerful generative backbones for DD. Minimax (Gu et al. [6]) fine-tunes pre-trained diffusion models under a minimax objective to balance sample representativeness and diversity. D4M (Su et al. [32]) incorporates text-to-image diffusion with prototype learning to improve intra-class consistency. D3HR (Zhao et al. [42]) addresses distribution mismatch via DDIM inversion (Song et al. [31]) and group-wise sampling, aligning generated and real data distributions. CaO2 (Wang et al. [34]) performs inference-time latent optimization to reduce feature level inconsistencies, while DDVLCP (Zou et al. [43]) leverages vision–language prototypes to enhance semantic coherence. Despite their success, diffusion-based approaches are inherently likelihood-centric, concentrating samples in high-density regions, which preserves perceptual fidelity but neglects boundary and hard examples essential for discriminative training. Most related to our work, ManifoldGD (Roy et al. [27]) explores manifold structure for diffusion-based distillation, but relies on inference-time guidance without formal geometric guarantees. In contrast, MGPO internalizes geometric constraints into the diffusion policy via RL, with an idealized Hausdorff analysis motivating the MST-based reward, while simultaneously resolving the semantic objective mismatch through dual-space alignment.
Reinforcement Learning in Diffusion Models
Reinforcement learning has recently been introduced to align diffusion and flow-based generative models with task-level objectives beyond likelihood-based training. A representative approach is Group Relative Policy Optimization (GRPO) (Shao et al. [30]), which stabilizes policy updates by comparing relative rewards within groups of sampled trajectories. Subsequent works extend GRPO to generative settings. Flow-GRPO (Liu et al. [18]) adapts it to diffusion and flow matching models, while Temp-Flow-GRPO (He et al. [8]) introduces time-dependent credit assignment. Mix-GRPO (Li et al. [15]) combines multiple sampling dynamics, and structured variants such as Branch-GRPO (Li et al. [16]) and Dance-GRPO (Xue et al. [38]) improve scalability through branching and group-wise rollouts. However, existing methods focus primarily on generative quality or preference alignment. In contrast, we leverage reinforcement learning to directly optimize downstream discriminative objectives. More related works see Appendix § 11.§ 1.
Preliminary
Dataset Distillation
Dataset distillation aims to synthesize a small and compact dataset that preserves the essential training information of a large-scale real dataset , where denotes an input sample (e.g., an image), its corresponding label, and . The goal of dataset distillation is to enable models trained on to achieve performance comparable to those trained on , while significantly reducing storage and computational costs.
DDIM Sampling in Latent Space
We adopt a latent diffusion formulation, where denotes the VAE-encoded latent, and diffusion is performed directly on the latent variables . The DiT backbone parameterizes the noise prediction in this latent space. We model the reverse diffusion dynamics using the generalized sampling process of Denoising Diffusion Implicit Models (DDIM) [31]. The transition from state to is defined as:
where is standard Gaussian noise and follows the standard variance schedule. This non Markovian formulation unifies deterministic and stochastic sampling through the variance parameter , which is parameterized by a scalar . The hyperparameter explicitly controls the degree of stochasticity. When , the random noise term vanishes, reducing the sampling process to the strictly deterministic DDIM formulation. Conversely, when , the process recovers the stochastic Markovian transitions of traditional DDPM [9].
During the reward driven policy optimization phase, we maintain to encourage stochastic trajectory exploration. Once the generative policy is fully aligned with our dual space objectives, we set to perform highly efficient and deterministic dataset synthesis.
Method
To bridge the gap between likelihood driven diffusion generation and discriminative downstream tasks, MGPO internalizes dual space task objectives into the diffusion backbone via RL.
Dual-Space Reward Design
To align diffusion generation with downstream objectives, we design two complementary rewards in different spaces. The discriminative reward encourages semantic separability in pixel space, while the geometric reward encourages coverage of class-level geometric structure in latent space.
Discriminative Reward (). To ensure the synthesized samples are informative for training downstream models, we employ a pre-trained proxy classifier . For a generated sample with target label , the reward is defined as the log probability of the ground-truth class:
where denotes the predicted logit for class . This continuous formulation provides a smooth reward landscape and penalizes samples that lie near ambiguous decision boundaries.
Manifold Geometric Reward (). Likelihood-driven diffusion models tend to concentrate samples in high-density regions, which may overlook geometrically informative regions of the class manifold. To encourage geometric coverage of each class, we introduce a geometric reward grounded in a class-wise Minimum Spanning Tree (MST), which provides a sparse geometric skeleton of the class distribution and is more discriminative than density-based regularization.
Concretely, let denote the VAE-encoded latent representations of class- samples. We model the class manifold via a weighted graph with edge weights , and define the class-wise MST as
where spans all nodes and contains no cycles. To ensure scalability, in practice we construct from a subsampled latent set on a sparse -nearest-neighbor graph (see Algorithm 2).
Given a generated latent corresponding to , we project it into the normalized latent space via , and define the geometric reward as
where and are the node and edge sets of , the first term is the Euclidean distance from the projected terminal latent to its nearest MST node, and controls the strength of the directional alignment term (analysis in Appendix). The transition direction is , where is a latent sampled from an intermediate diffusion timestep, and is the direction of the MST edge whose midpoint is nearest to the projected intermediate latent . The first term encourages generated samples to remain close to the manifold skeleton, while the second encourages alignment with its local direction. By incorporating into policy optimization, the diffusion model internalizes the geometric prior during fine-tuning, removing the need for inference-time guidance.
Theoretical Justification. We provide two idealized results that motivate the MST-based geometric reward and its subsampled construction. Both concern a Euclidean MST built on samples from a smooth class manifold and an edge-distance formulation. They do not cover the VAE/PCA representation, the nearest-node distance used in practice, or the direction term, which we evaluate empirically. Let be a compact, connected class submanifold with reach , and let the MST nodes cover with radius . Theorem 5 (Appendix § 10.§ 2) shows that , with the sharper backward bound ; that is, in this idealized setting the MST is a reach-aware geometric approximation of the class manifold. Theorem 10 (Appendix § 10.§ 3) shows that an MST built on i.i.d. samples satisfies with probability at least , where is the intrinsic dimension; this bound is independent of the full dataset size , so the per-class MST construction cost stays constant as datasets scale. These results together motivate our design of the implementated reward.
MGPO : Manifold-Guided Policy Optimization
We formulate diffusion-based dataset distillation as a sequential decision process (see Appendix § 10.§ 1), where the diffusion model acts as a stochastic policy that gradually transforms Gaussian noise into a synthetic sample. At each timestep, the policy predicts the reverse diffusion transition conditioned on the class label .
Following the generalized DDIM formulation introduced in § 3.2, we set during policy optimization to introduce stochasticity into the sampling process. This injected stochasticity is vital as it enables the policy to explore a broader range within latent space, while task-driven rewards guide the trajectories toward regions that are both discriminative and geometrically structured.
Policy Optimization. To optimize the generative policy without training an explicit value network, we adopt a relative policy optimization strategy. For each class condition , we sample a group of trajectories where denotes the rollout group size (see § 5.4), and evaluate them using the dual-space rewards defined in § 4.1. The diffusion policy is updated by maximizing a clipped surrogate objective:
Algorithm 1 MGPO Training Procedure
Require: Diffusion policy , proxy reward model , class-wise MST skeleton and projection function
for each training iteration do
Sample class label
Generate trajectories via SDE and ODE sampling
for each trajectory do
Compute geometric reward using latent projection
Decode image
Compute discriminative reward using Eq. (2)
end for
Perform group-wise normalization of rewards Eq. (6)
Aggregate advantages across objectives Eq. (7)
Apply batch-level normalization Eq. (8)
Update diffusion policy using the MGPO objective Eq. (5)
end for
where denotes the importance sampling ratio and is the aggregated advantage of the -th trajectory.
The MST skeleton and the projection function are pre-computed following Algorithm 2. MGPO training procedure is summarized in Algorithm 1.
Multi-Reward Aggregation. A key challenge in dual-space optimization is that semantic and geometric rewards may lie on different numerical scales. Directly combining them can lead to unstable training. Following GDPO (Liu et al., [19]), we adopt a three-stage advantage normalization strategy.
First, for each reward type , we perform group-wise normalization across the rollouts:
This step removes scale differences while preserving the relative ranking of samples within the group.
Second, the normalized advantages are combined through a weighted summation:
where and weight the discriminative and geometric rewards (§ 5.4).
Finally, we apply batch-level normalization across all samples in the training batch:
This normalization stabilizes policy gradients and prevents numerical explosion when fine-tuning large diffusion backbones.
Reward-Modular Extension to Structured Tasks
While the geometric reward in § 4.1 is task-agnostic, structured tasks such as object detection and segmentation require pixel-space rewards that capture spatial, in addition to semantic, correctness. The modular design of MGPO allows substituting with such task-specific rewards while keeping the policy optimization, geometric reward, and overall training pipeline unchanged. We illustrate this with two examples; each task still requires a task-appropriate reward design, but the burden is reduced from modifying the framework to specifying a scalar reward signal.
Object Detection. To encourage clear spatial boundaries without composite losses, we derive the reward from a pretrained detector. For an image conditioned on class , we apply Non-Maximum Suppression to filter redundant predictions, and define the reward as the maximum remaining confidence score for class :
where denotes the set of post-NMS confidence scores.
Image Segmentation. Instead of relying on predefined mask annotations, we extract the spatial probability map from a pre-trained segmentation network. To prevent reward hacking via isolated high-confidence pixels, we average the top- pixel confidences for class :
where is the flattened probability map. The hyperparameter enforces a minimum expected pixel area (analysis in Appendix).
In both cases, the reward depends only on the prompted class . Spatial annotations are obtained by class-conditioned image generation followed by pseudo-annotation with the same frozen task model. For detection, we keep the post-NMS predictions of class (score threshold 0.05, IoU threshold 0.5) as boxes. For segmentation, we keep the pixels whose argmax prediction is as the mask; the Top- operation in Eq. (10) only computes the scalar reward. Images without a valid class- prediction are kept with empty annotations (detection) or an all-background mask (segmentation). The current formulation therefore does not model multi-class co-occurrence or inter-class relations (see Appendix § 15). This reward-modular design allows MGPO to extend to new structured tasks through reward specification rather than architectural modification, though designing an effective reward for each task remains a non-trivial step (see Appendix § 12 for further design considerations).
Experiments
Experimental Setup
Generative Backbone. For classification experiments, we adopt a pretrained DiT-XL/2 (Peebles & Xie, [21]) as the generative backbone and fine-tune it using DiffFit (Xie et al., [37]), all synthetic images are generated at a resolution of 256 256. For detection and segmentation, we follow the experimental protocol of UniDD (Qi et al., [24]) and employ Stable Diffusion v1.4 (Rombach et al., [26]) as the generative backbone to synthesize labeled images with structured annotations.
Implementation Details. For classification, student networks are trained from scratch for 300 epochs using SGD with cosine learning-rate decay. For downstream tasks, we use Faster R-CNN (Ren et al., [25]) with a ResNet-50 backbone for object detection and LR-ASPP with a MobileNetV3 (Howard et al., [10]) backbone for semantic segmentation, with standard pretrained backbone weights. All experiments are conducted on a single NVIDIA A100 GPU (80GB). To ensure statistical reliability, each synthetic dataset is generated three times and each downstream model is trained with three random seeds; we report mean standard deviation. More details see Appendix § 12.
Baselines. For classification, we compare against representative optimization-based and diffusion-based dataset distillation methods, including DM [40], IDC [14], SReL [39], RDED [33], Minimax [6], DM [32], DDVLCP [43], CaO2 [34], and ManifoldGD [27]. For segmentation and object detection, we primarily compare with UniDD [24], a recent universal dataset distillation framework. Since diffusion-based distillation for structured outputs remains relatively underexplored, we additionally include coreset selection baselines (Random, Uniform, K-Center [29], and Herding [36]).
Evaluation Protocol. For classification, we evaluate ConvNet-6, ResNetAP-10, and ResNet-18 trained from scratch. For segmentation and object detection, we follow standard training recipes with pretrained backbones as described above. Following prior works, we report the better performance between hard-label and soft-label supervision.
Results on Classification
We first evaluate our approach on classification benchmarks, providing comprehensive comparisons with multiple state-of-the-art dataset distillation methods across four benchmark datasets: ImageWoof [12], ImageNette [11], ImageIDC [14] and ImageNet-1K [28]. The results are summarized in Table 1, Table 2 and Table 3. Additional comparison experiment results with CaO2 [34] are provided in Appendix § 13, Table 7.
| IPC (Ratio) | Model | Random | K-Center | Herding | DiT | Minimax | DM | IDC-1 | DM | DDVLCP | ManifoldGD | MGPO (Ours) | Full |
| 10 (0.8%) | ConvNet-6 | ||||||||||||
| ResNetAP-10 | |||||||||||||
| ResNet-18 | |||||||||||||
| 20 (1.6%) | ConvNet-6 | ||||||||||||
| ResNetAP-10 | |||||||||||||
| ResNet-18 | |||||||||||||
| 50 (3.8%) | ConvNet-6 | ||||||||||||
| ResNetAP-10 | |||||||||||||
| ResNet-18 | |||||||||||||
| 70 (5.4%) | ConvNet-6 | ||||||||||||
| ResNetAP-10 | |||||||||||||
| ResNet-18 | |||||||||||||
| 100 (7.7%) | ConvNet-6 | ||||||||||||
| ResNetAP-10 | |||||||||||||
| ResNet-18 |
Table 1. Comparison of SOTA dataset distillation methods on ImageWoof under various IPC and backbone settings. The best results are marked as bold, and the second are underlined.
| IPC | Random | DiT | Minimax | DM | DDVLCP | MGPO (Ours) | |
| Nette | 10 | ||||||
| Nette | 20 | ||||||
| Nette | 50 | ||||||
| IDC | 10 | ||||||
| IDC | 20 | ||||||
| IDC | 50 |
Table 2. Comparison on ImageNette and ImageIDC under different IPC settings. Results are obtained on ResNet-18. The best results are marked as bold and the second are underlined.
| IPC | SReL | RDED | DiT | Minimax | MGPO (Ours) |
| 10 | |||||
| 50 |
Table 3. Comparison of dataset distillation methods on ImageNet-1K under different IPC settings.
Table 7. Performance comparison with soft-label-based baselines on ImageWoof under different IPC and backbone settings. The best results in each setting are highlighted in bold.
Result on Detection and Segmentation
We further investigate whether the distilled datasets preserve spatial structures that generalize to downstream tasks, particularly semantic segmentation and object detection.
Object Detection. Table 4 reports object detection results on Pascal VOC 2012 (Everingham et al.) and MS-COCO [17]. Under aggressive compression, our method substantially outperforms coreset selection baselines, which indicates that the distilled images retain object-level localization cues rather than merely category-level appearance statistics.
Table 4: Performance comparison with coreset selection methods. Metrics are reported as mAP and AP(%) across different selection ratios.
| Method | Pascal VOC | 0.5% | 1% | 2% | MS COCO | 0.25% | 0.5% | 1% | ||||||
| mAP | AP | mAP | AP | mAP | AP | mAP | AP | mAP | AP | mAP | AP | |||
| Random | ||||||||||||||
| Uniform | ||||||||||||||
| K-Center | ||||||||||||||
| Herding | ||||||||||||||
| UniDD | ||||||||||||||
| MGPO (Ours) | ||||||||||||||
| Full Data | / | / |
Table 4.
Segmentation. Table 5 summarizes segmentation performance on Pascal VOC (Everingham et al.). Our method achieves consistently higher mIoU across compression ratios, suggesting that pixel-level structural information is preserved during distillation and remains useful for downstream learning.
Table 5: Semantic Segmentation results.
| Methods | Semantic Segmentation (mIoU) | |||
| 3.5% | 7% | 14% | Full | |
| Random | ||||
| Uniform | ||||
| K-Center | ||||
| Herding | ||||
| UniDD | ||||
| MGPO (Ours) |
Table 5.
Ablation Study
We conduct ablation studies to understand how each reward component contributes to both semantic fidelity and spatial consistency. Specifically, we progressively enable the baseline DiT objective, Pixel Reward, MST Reward, and their combination, with results reported in Table 6. In general, when both rewards are applied, best performance is observed across different IPC settings.
Table 6: Ablation study of rewards.
| Method | ImageWoof | ImageNette | ||
| IPC = 10 | IPC = 50 | IPC = 10 | IPC = 50 | |
| DiT | ||||
| Pixel Reward | ||||
| Latent Reward | ||||
| Both (Ours) |
Table 6.
We further analyze robustness across training hyperparameters (Figure 3) and finetuning design choices (Figure 4). MGPO remains stable across all settings, yielding the best trade-off.
Figure 3. Hyperparameter analysis of MGPO.
Figure 4. Ablation studies on key design choices of MGPO finetuning process.
Conclusion
In this paper, we proposed MGPO, a reward driven RL framework that resolves the fundamental objective mismatch in diffusion-based dataset distillation. By integrating pixel level discriminative and latent level geometric rewards, MGPO effectively aligns the generative process with downstream tasks. Furthermore, our plug-and-play reward design enables the framework to extend beyond standard classification to complex downstream tasks like object detection and semantic segmentation. Extensive experiments show that MGPO achieves state of the art performance across multiple classification benchmarks and successfully reaches state of the art on detection and segmentation tasks.
AI Use Statement
In this work, we used generative AI tools (large language models) for the following tasks with required disclosure: proof assistance, namely helping to derive and write the proofs of the theoretical results in Appendix § 10.§ 2 and Appendix § 10.§ 3 (Lemmas 1–11, Theorems 5 and 10, Proposition 8, and the associated corollaries and remarks), and drafting parts of the manuscript, primarily the related-work discussion (§ 2 and Appendix § 11.§ 1) and the implementation descriptions in Appendix § 12. We have not used generative AI tools for research ideation, hypothesis refinement, methodology design, implementation of the method, running experiments, data cleaning, or result interpretation; the remaining required disclosure tasks (e.g., translation and qualitative analysis) are not applicable to this work. Note that the diffusion models used to synthesize distilled datasets are the object of study and are not AI assistance in preparing this paper. Additionally, we used generative AI tools to aid and polish the writing (grammar, wording, and clarity) throughout the paper.
We have reviewed all AI-assisted work. Every AI-assisted proof was checked step by step by at least two authors, who verified all assumptions, constants, and cited results against the original sources (e.g., Berenfeld et al. [1], Niyogi et al. [20]). All AI-drafted or AI-polished text was revised by the authors, and every citation was checked manually against the referenced paper. All numerical results were produced by the authors’ own code and were not generated or edited by AI tools. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
Ethics Statement
This work does not involve human subjects, user studies, or the collection of new data. All experiments use publicly available benchmarks (ImageNet-1K and its subsets ImageWoof, ImageNette, and ImageIDC; PASCAL VOC 2012; MS-COCO), used under their respective licenses and terms of use; we do not redistribute the original images. Some of these datasets contain images of people collected from the web, and the synthesized distilled datasets may therefore reflect content and biases present in the source data. In addition, because MGPO optimizes the generator with frozen pretrained reward models (classifier, detector, or segmentation network), any biases in these reward models may be internalized and amplified in the distilled data; we discuss this risk and recommend auditing reward models before deployment in Appendix § 15. We do not foresee direct harmful applications beyond those common to generative models and dataset compression. The authors declare no conflicts of interest or sponsorship that could have influenced this work.
Reproducibility Statement
We have made the following efforts to ensure reproducibility. The full method is described in § 4, including the DDIM sampling formulation (§ 3.2), the reward definitions (§ 4.1), and the complete training procedure (Algorithm 1). The MST construction is given in Algorithm 2, with all preprocessing steps and hyperparameters (e.g., -NN size, PCA dimension, number of sampled latents per class) detailed in Appendix § 12.§ 1; the latent geometric reward and the pixel-space rewards for classification, detection, and segmentation are specified in Appendices § 12.§ 2 and § 12.§ 3 (Algorithms 3 and 4). Experimental settings, including backbones, student architectures, training schedules, evaluation protocols, and the number of runs and random seeds, are given in § 5.1, and hyperparameter sensitivity analyses are reported in § 5.4 and Appendix § 13. For the theoretical results, all assumptions are stated explicitly and complete proofs are provided in Appendices § 10.§ 1, § 10.§ 2, and § 10.§ 3. All datasets are publicly available. The source code will be released upon acceptance.
Theoretical Analysis
Reward-Aligned Diffusion as Policy Optimization
Let denote the data distribution induced by a the current diffusion model, and let denote the distribution of the frozen pretrained model Standard diffusion training maximizes likelihood and therefore prioritizes perceptual fidelity. However, in dataset distillation, our objective is not merely realism, but the generation of samples that are informative for downstream tasks.
To incorporate task objectives, we consider a reward-reweighted target distribution
where denotes a task-specific reward and controls alignment strength. This formulation shifts probability mass toward task-relevant regions of the data manifold.
We view diffusion sampling process as a trajectory induced by a parameterized policy .
Under this perspective, aligning diffusion generation with task objectives amounts to optimizing the expected terminal reward over trajectories, regularized towards the pretrained model:
Over all distributions of , the maximizer of Eq. (12) is exactly the reward-reweighted density in Eq. (11), since with . Policy optimization over the diffusion parameters therefore approximates reward-aligned sampling within the model class, without modifying the inference procedure.
This policy view naturally enables the incorporation of heterogeneous reward signals. In our setting, the reward function will consist of (i) a discriminative term defined in pixel space and (ii) a geometric term defined in latent space, allowing alignment of both semantic and structural properties.
Theoretical Justification of MST as a Manifold Skeleton
Setup. Let be a compact, connected, -embedded submanifold with reach
Let be a finite point set on the manifold, and define its covering radius
Let denote the Euclidean minimum spanning tree on , and write
for its geometric realization, where denotes the closed line segment in between and .
Scope. The analysis in this subsection and in Appendix § 10.§ 3 is idealized: it concerns a Euclidean MST built on points sampled from a smooth class manifold, with the distance to the tree realization (i.e., to the nearest edge segment). It motivates the geometric reward but does not by itself cover the implemented reward, which uses the nearest-node distance in the VAE/PCA representation, a NN-restricted MST, and a direction term. theorem 8 below states what carries over to the implementation.
The goal of this subsection is to establish that, under the regime , the MST realization approximates the manifold in the Hausdorff metric at rate in the forward direction and rate in the backward direction. The argument proceeds via four lemmas: (i) a one-sided Hausdorff bound from the manifold to any spanning tree (theorem 1); (ii) the existence of a short-edged spanning tree on (theorem 2); (iii) a bottleneck property of the MST (theorem 3); (iv) a chord-to-manifold distance bound based on convexity defect (theorem 4). These ingredients are then combined in theorem 5.
Lemma 1 (One-sided Hausdorff bound). For any spanning tree on the vertex set ,
Proof. Fix . By the definition of in eq. (13), there exists such that
Since is a vertex of , we have . Therefore
Taking the supremum over proves the claim.
Lemma 2 (Existence of a short-edged spanning tree). *There exists a spanning tree on whose every edge has Euclidean length at most .
Proof. For each , define the closed manifold cap
By the definition of , every lies within distance of some , hence
Claim: the intersection graph of is connected. Suppose, for contradiction, that the intersection graph is disconnected, so there is a partition
satisfying
Define
Each is closed in (as the intersection of a closed Euclidean ball with ), so and are closed in . They are nonempty, disjoint, and satisfy . In particular, is also open in , so is a nonempty proper clopen subset of . This contradicts the connectedness of , establishing the claim.
Now construct a graph on vertex set by joining and whenever . By the claim, is connected. For any such edge , choose ; the triangle inequality yields
Thus every edge of has length at most , and any spanning tree of inherits this property.
Lemma 3 (Bottleneck bound on MST edge length). Let
Then .
Proof. By Lemma 2, there exists a spanning tree on whose maximum edge length is at most . Every Euclidean minimum spanning tree is also a minimum bottleneck spanning tree, i.e., it minimizes the maximum edge length among all spanning trees. Hence
Lemma 4 (Chord distance to manifold via convexity defect). Let have reach . Suppose satisfy
Then for every ,
Proof. Let . The smallest closed ball in containing has radius , namely the ball centered at the midpoint of . Since
every belongs to the -local convex hull of in the sense of [1 Definition 4.1]. Therefore
where denotes the convexity defect function of .
For a set of reach , the quarter-circle bound of [1 Definition 4.1 and the bound stated immediately thereafter] states
Substituting yields the first inequality of eq. (14).
For the second inequality, observe that for any ,
where the equality follows from rationalizing the numerator and the inequality from . Setting gives
which completes the proof.
We are now ready to state and prove the main result of this subsection.
Theorem 5 (MST–manifold Hausdorff bound). Suppose . Then
More precisely, the two one-sided bounds
hold simultaneously.
Proof. The forward bound eq. (16) is exactly theorem 1.
For the backward bound eq. (17), by theorem 3,
so theorem 4 applies to every edge . Each point on such an edge therefore satisfies
Since the function is monotone non-decreasing on , and , we have
where the last inequality follows from theorem 4 applied with . Taking the supremum over yields eq. (17).
To deduce the combined Hausdorff bound eq. (15), note that
By eqs. (16) and (17), both terms inside the maximum are at most
It remains to show whenever . Equivalently, , which after squaring becomes
i.e., , i.e., , which holds by assumption. Hence
Remark 6. The bounds in theorem 5 are asymmetric: the forward direction (manifold to MST) decays linearly in , while the backward direction (MST to manifold) decays quadratically as . The asymmetry arises because the MST realization includes line segments that may bow off the manifold, but the bowing distance is controlled by the manifold’s reach via theorem 4. This quadratic backward rate is what enables theorem 3 to feed into a tight bound: a generic spanning tree on would only give a linear bound in both directions.
Remark 7 (Geometric approximation, not topology preservation). Theorem 5 is a statement about Hausdorff closeness only. The MST is a one-dimensional acyclic graph, so has trivial first homology and cannot, in general, preserve cycles, higher-dimensional homology, or the intrinsic dimension of . For example, for points sampled on a circle the MST is a path, which breaks the cycle. We therefore use the MST as a sparse geometric skeleton that encourages coverage of the class support, not as a topology-preserving representation.
What carries over to the implemented reward. The proofs of theorems 1 to 3 use only that is compact and connected; smoothness and reach enter only through theorem 4, i.e., the backward bound eq. (17). This allows us to state a bound for the nearest-node distance used in practice, directly in the deployed representation.
Proposition 8 (Nearest-node distance in the deployed representation). Let be compact and connected, let have covering radius , and let be the Euclidean MST on . Define the node distance and the edge distance . Then:
(i) ;
(ii) for every , ;
(iii) if , then for every , , where is the covering radius of over .
In particular, with the image of a compact, connected class support under the continuous encoder-and-whitening map (Appendix § 12.§ 1), (i)–(iii) hold in the VAE/PCA space where the reward is computed, without requiring to be isometric or invertible.
Proof. (i) is the definition of . For (ii), the left inequality holds because every node lies on . For the right inequality, let be a point of nearest to . The nearer endpoint of this edge is within of , and the arguments of theorems 2 and 3, which use only compactness and connectedness of , give . Hence . For (iii), let the left inequality hold for . For the right one, let be nearest to and nearest to ; then , and the last quantity is at most because . Finally, the continuous image of a compact connected set is compact and connected. □
Remark 9 (What remains empirical). Theorem 8 does not assume smoothness or positive reach of , so the backward bound eq. (17) is not claimed in the deployed space. It also does not cover the direction term, which is evaluated empirically, or the kNN restriction used to build the MST: if the symmetrized kNN graph contains a Euclidean MST of , then its MST is a Euclidean MST of , and otherwise the two trees can differ. Finally, the relation between distances in and downstream utility is not established theoretically and is assessed through the experiments.
Subsample-MST Approximation and Scalability
Setup. We adopt the notation of section A.2. Let denote the class- data manifold, assumed to be a compact, connected, -embedded submanifold with reach and intrinsic dimension . Let be a probability measure on with density (with respect to the volume form) bounded below by .
For any finite point set , define its covering radius
and let be the Euclidean minimum spanning tree on , with geometric realization
The Hausdorff distance between two compact sets is
Let denote the full real sample set for class , drawn i.i.d. from , and let with be a uniform random subset. By the exchangeability of i.i.d. samples, is itself distributed as an i.i.d. sample of size from , a characterization we adopt in the analysis below.
The aim of this subsection is to show that, with high probability, the subsample MST approximates the full MST in Hausdorff distance at a rate determined only by the intrinsic dimension , justifying the practical use of small random subsamples in the geometric reward computation (Algorithm 1 of the main paper).
Theorem 10 (Subsample-MST approximation). Let , , , and be as above. Then there exist constants (depending only on and ) and such that, for every and every , with probability at least ,
and consequently
Moreover, the geometric reward defined in Eq. (4) of the main paper satisfies
for every generated latent , where denotes the geometric reward computed using the MST on point set . The first term captures the contribution of the distance component of and vanishes as ; the second term is a worst-case bound on the direction component (see theorem 12).
The proof proceeds in three steps: (i) a probabilistic bound on the covering radius of the random subsample (theorem 11); (ii) a deterministic Hausdorff bound between the two MSTs via the triangle inequality, leveraging theorem 5; (iii) a Lipschitz argument transferring the geometric bound to the distance component of the geometric reward, combined with a worst-case bound on the direction component.
Step 1: Covering radius of a random subsample. We first invoke a classical result on the convergence of empirical covering radius on a manifold.
Lemma 11 (Covering radius rate, [20, 22]). Under the assumptions of theorem 10, there exists a constant depending only on and such that, for every , with probability at least ,
Proof. Cover by geodesic balls of radius , where
for some constant , by standard volume comparison on bounded-reach submanifolds. For , each such ball has -mass at least by the lower density assumption combined with the small-ball volume bound on . Setting
for an appropriate constant , and applying a union bound over the cover, the probability that some ball contains no point of is at most
On this event, every lies within of some , yielding eq. (21) with .
Choosing large enough that the right-hand side of eq. (21) is strictly less than , we obtain eq. (18) for all .
Step 2: Hausdorff distance between the two MST realizations. Apply theorem 5 to the point set and to . Since , the covering radius is monotone non-increasing under enlargement of the point set, i.e., . Hence, on the event of theorem 11,
so theorem 5 applies to both sets and gives
The triangle inequality for Hausdorff distance yields
Combined with eq. (18), this establishes eq. (19).
Step 3: Stability of the geometric reward. Fix a generated latent with class label , and let denote its projected representation as in Sec. 4.1 of the main paper. The geometric reward ((4) of the main paper) admits the decomposition
where
and is the MST edge nearest to in .
Distance term. Since and are compact subsets of , and the map is 1-Lipschitz,
Direction term. Since , we have the worst-case bound
This bound cannot in general be improved through Hausdorff-distance arguments alone: for class manifolds of intrinsic dimension , two MSTs whose geometric realizations are close as point sets may nonetheless contain edges whose directions span different subspaces of the local tangent plane, so the nearest-edge direction is not a Hausdorff-continuous functional of (see theorem 12).
Combining the two,
Substituting eq. (19) yields eq. (20), which completes the proof of theorem 10.
Implemented distance term. For the nearest-node distance used in practice, theorem theorem 8(iii) gives, deterministically and in the deployed representation,
so the distance component of the implemented reward changes by at most under subsampling. Where the assumptions of theorem theorem 11 hold, with probability at least . This bound does not depend on the MST edges, so it is unaffected by the kNN restriction; the direction term remains uncontrolled, as discussed next.
Remark 12 (On the direction component). The bound eq. (20) retains a constant term that does not vanish with . This reflects an intrinsic limitation: while the distance component depends only on as a point set and is therefore controlled by Hausdorff distance, the direction component depends on the orientation of the nearest MST edge, which is not preserved under Hausdorff convergence on manifolds of intrinsic dimension . In our experiments we set (chosen via ablation; cf. Fig. 3(b) of the main paper), so the absolute size of the direction contribution remains small relative to the dynamic range of the reward, preserving training stability. A finer analysis of the direction component, e.g. in expectation over , is left to future work.
The stability of the geometric reward guarantees that the excess-risk bound of the main paper carries over with replaced by , up to the additive direction-component constant.
Corollary 13 (Excess risk under subsampled MST). Under the assumptions of theorem theorem 10 together with those of the main-paper excess-risk bound, the classifier trained on the MGPO-distilled set generated using the subsample-MST satisfies, with probability at least ,
where .
Proof. Substitute the reward stability bound from eq. (20) into the excess-risk decomposition: the -dependent term is replaced by , and the direction-component constant contributes additively through the Lipschitz constant . The result follows from a union bound over the high-probability events of theorem theorem 10 and the main-paper excess-risk bound.
Corollary 14 (Sample complexity for fixed precision, independent of ). Fix any target covering radius and any . Then with probability at least ,
random samples suffice to ensure . In particular, the required depends only on the manifold parameters and the target precision , and is independent of the full dataset size .
Proof. Set in eq. (21) and solve for :
Inverting gives the stated scaling. None of the constants involved depend on .
Remark 15 (Practical implications for ImageNet-scale data). The empirical intrinsic dimension of natural image manifolds, estimated by maximum-likelihood methods, lies in the range for ImageNet-scale data [23], with class-conditional manifolds typically exhibiting smaller intrinsic dimension due to reduced intra-class variation. By theorem theorem 14, the subsample size required to reach a fixed geometric precision is independent of , so a single choice of generalizes across datasets of different scale. In our implementation, taking random samples per class gives a ratio of the two covering-radius rates of (ignoring logarithmic factors), which evaluates to – on ImageNet-1K (, ). This is a heuristic comparison of upper-bound rates rather than a bound on the realized covering radii, and the intrinsic-dimension estimates refer to image space rather than the VAE/PCA space. It is consistent with, but does not by itself establish, the empirical scalability of MGPO to ImageNet-1K (Table 3).
Related Work
Optimization-Based Dataset Distillation
Dataset distillation was originally introduced as a meta-learning problem that directly optimizes a small set of synthetic examples such that models trained on them achieve comparable performance to training on the full dataset [35]. A dominant line of follow-up work formulates distillation as bi-level optimization, where the outer loop updates synthetic data and the inner loop trains a network on these synthetic samples [41]. Subsequent studies reduce accumulative error in optimization process by matching training trajectory. Later, SRe2L [39] series of work further unleashed the ability of decoupling the distillation process by squeeze and recover approach. Besides, an alternative line of works matches higher-level statistics such as distribution or feature in representation space to avoid expensive unrolling, improving efficiency while sometimes sacrificing fidelity of training dynamics. Nevertheless, these optimization-based methods often suffer from heavy compute or memory overhead due to unrolling, sensitivity to architecture choices, and difficulties in scaling to higher resolutions or large numbers of classes.
Diffusion Models for Dataset Distillation
Recent advances have explored diffusion models as powerful generative backbones for dataset distillation, enabling the synthesis of compact yet highly representative datasets. As a pioneering work, Minimax Diffusion [6] leverages pre-trained diffusion models and further fine-tunes them under a minimax criteria to jointly enhance sample representativeness and diversity. Building upon this idea, DM [32] incorporates pre-trained text-to-image diffusion models with prototype learning, clustering latent features to learn category prototypes and thereby improving intra-class consistency and visual fidelity. To mitigate distribution mismatch and stochasticity in latent sampling, D3HR [42] proposes a domain mapping framework that applies DDIM inversion [31] to project VAE latents into a Gaussian space with improved normality, combined with a group-based sampling strategy to better align the generated data distribution with the real one. More recently, CaO2 [34] rectifies feature and class level inconsistencies by inference time latent optimization. DDVLCP [43] extends diffusion-based distillation to the vision–language setting by constructing paired image–text prototypes using large language models, which effectively enhances semantic coherence and reduces artifacts such as missing or illogical objects. Despite their success, diffusion-based approaches are inherently likelihood-centric, concentrating samples in high-density regions, which preserves perceptual fidelity but neglects boundary and hard examples essential for discriminative training.
Reinforcement Learning in Diffusion models
Reinforcement learning has recently been adopted to align diffusion and flow based generative models with task level objectives that are difficult to encode through likelihood based training alone. A representative line of work builds upon Group Relative Policy Optimization (GRPO) [30], which updates generative policies by comparing relative rewards within groups of sampled trajectories, enabling stable optimization without explicit value function estimation.
Following the introduction of GRPO, several variants have been proposed to adapt it to different generative settings. Flow-GRPO [18] extends group relative optimization to diffusion and flow matching models by introducing controlled stochasticity into the sampling process. Temporal variants such as Temp-Flow-GRPO [8] further incorporate time dependent credit assignment to emphasize critical denoising stages. Mix-GRPO [15] combines multiple sampling dynamics within a unified optimization framework to balance exploration and efficiency. More recently, structured rollout strategies such as Branch-GRPO [16] and Dance-
Algorithm 2 Per-class MST Construction in Latent Space
Require: Real dataset , VAE encoder , max samples per class , PCA dimension , kNN size
Ensure: Class-wise MST skeleton and PCA statistics
for each class do
Sample up to real images from class
Encode latents and flatten to vectors
Stack all latent vectors into matrix
Compute centered features
Perform PCA projection to obtain normalized embeddings
Construct a -nearest-neighbor graph over
Compute the minimum spanning tree from the sparse adjacency graph
end for
GRPO (Xue et al. [38]) have been proposed to improve scalability and stability through branching trajectories and group wise reward aggregation.
Despite these advances, existing GRPO-based methods primarily focus on improving generative quality or preference alignment. In contrast, our work leverages reinforcement learning to explicitly incorporate downstream discriminative objectives into the diffusion generation process, addressing the objective mismatch between likelihood-driven diffusion models and dataset distillation for classification.
Implementation Details
MST Construction Details
The class-wise MST skeleton is pre-computed once before MGPO fine-tuning. For each class , we sample up to real images from the training set. All images are resized to , center-cropped, converted to tensors, and normalized to the range . Each image is then encoded by a frozen Stable Diffusion VAE encoder. We use the mean of the encoder posterior as the latent representation and divide it by the standard latent scaling factor 0.18215. The resulting latent tensor is flattened into a vector. Stacking all vectors from class produces a latent matrix
where is the number of collected samples and is the flattened latent dimension.
Class-wise PCA normalization. To obtain a compact and numerically stable embedding space, we perform PCA on the centered latent matrix. Let
be the class mean and define the centered matrix
We compute a low-rank PCA decomposition of and retain the top principal components. Let denote the projection matrix and the singular values. To avoid numerical instability, singular values are lower-bounded by a small constant . Each latent vector is then projected into a normalized embedding space by
This transformation simultaneously performs dimensionality reduction and whitening, making distances more comparable across directions. In our implementation, the PCA dimension is set to .
Sparse NN graph construction. After obtaining the normalized embeddings , we construct a sparse -nearest-neighbor graph in the embedding space. For each node , we identify its nearest neighbors according to Euclidean distance. An adjacency matrix is then constructed where
The graph is symmetrized by assigning the same edge weight to both and once either direction is observed. This sparse construction significantly reduces graph density and improves scalability. In practice, we use .
Minimum spanning tree extraction. Given the sparse adjacency matrix, we compute the minimum spanning tree using a standard graph solver. The resulting tree is represented as an edge set
which connects all nodes while minimizing the total edge weight. Ideally, a spanning tree over nodes contains edges. The extracted tree therefore provides a sparse skeleton of the class manifold that preserves global connectivity while avoiding redundant edges.
Saved statistics. For each class, we store the PCA mean , the projection matrix , the singular values , the normalized node embeddings, and the MST edge list. These quantities define both the class-wise tree and the projection function used during MGPO training. When a generated latent is obtained at the end of the diffusion trajectory, it is projected using the same transformation and evaluated according to its geometric relation to the nearest edge of the corresponding MST skeleton.
Latent Geometric Reward Details
We provide additional implementation details for the latent geometric reward used in MGPO. The reward is evaluated on a two-stage diffusion trajectory that combines a stochastic SDE transition with a deterministic ODE refinement. This design enables both stable policy optimization and geometry-aware trajectory supervision.
Latent projection. To measure geometric consistency with the class manifold, both and are projected into the class-specific PCA space used for MST construction.
Let denote the projection function defined in Section C.1. For a flattened latent vector , the projection is
Thus we obtain
Let denote the class-wise MST skeleton constructed from real data.
Distance-to-manifold term. The first component of the latent reward encourages the terminal latent to stay close to the class manifold represented by the MST nodes.
Let denote the nodes in . The distance penalty is defined as
This term measures how far the generated latent deviates from the learned manifold skeleton.
Direction alignment term. To additionally constrain the diffusion trajectory, we measure whether the local latent transition direction aligns with the direction of nearby MST edges.
The sample transition direction in the projected space is
For each MST edge , we define
We first find the nearest edge midpoint to the intermediate latent
The direction penalty is then defined as
This term becomes small when the local diffusion update follows the tangent direction of the class manifold.
Final latent reward. The geometric reward is defined as the negative weighted sum of the two penalties:
Therefore, higher reward values correspond to smaller manifold deviation and better alignment with the manifold geometry.
Pixel Classifier Reward Details
We provide additional implementation details for the pixel-space discriminative reward used in MGPO. The pixel reward evaluates the semantic consistency of generated samples in pixel space and is computed from the decoded image corresponding to the terminal latent produced by the diffusion trajectory.
Classification. For standard image classification, the discriminative reward is derived from a pretrained proxy classifier . Given a generated image and target class , the reward is defined as the log-probability of the ground-truth class:
which provides a smooth reward landscape and penalizes samples near ambiguous decision boundaries.
Object Detection. For object detection, the discriminative reward is derived from a pretrained Faster R-CNN (Ren et al., [25]) with a ResNet-50 FPN backbone. Given a generated image conditioned on class , the reward is the maximum post-NMS confidence score for class , as defined in eq. (9) of the main paper. The full computation is described in Algorithm 3.
Semantic Segmentation. For semantic segmentation, the discriminative reward is derived from a pretrained LR-ASPP (Howard et al., [10]) with a MobileNetV3-Large backbone. Given a generated image conditioned on class , the reward is the mean confidence over the top- activated pixels of the spatial probability map for class , as defined in eq. (10) of the main paper. The TopK aggregation prevents reward hacking by enforcing a minimum expected object area, discouraging the policy from exploiting isolated high-confidence pixels. The full computation is described in Algorithm 4.
Additional Experiments
Experiment Results on Different Student Model
As shown in Table 7, we report the performance of different distillation methods under the soft-label based training protocol. Experiments are conducted on ImageWoof across multiple backbone Algorithm 3 Detection Reward Computation
Require: Generated image , target class , pretrained detector (Faster R-CNN)
Ensure: Scalar reward
proposals
detections
if then
▷ no valid detection for class
else
▷ eq. (9) of main paper
end if
return
Algorithm 4 Segmentation Reward Computation
Require: Generated image , target class , pretrained segmentation network (LR-ASPP), TopK fraction
Ensure: Scalar reward
▷ softmax probability map for class
▷ number of top pixels
if then
▷ no activation for class
else
▷ eq. (10) of main paper
end if
return
architectures, including ResNet-18, ResNet-50, and ResNet-101, under various IPC settings. Across all settings, MGPO consistently achieves the best performance. Notably, the performance gains remain stable across different backbone capacities, indicating that the distilled datasets produced by MGPO generalize well to diverse student architectures. In particular, under low IPC setting (IPC = 10), MGPO boosts ResNet-18 performance from 45.6% (CaO2) to 47.3%, and ResNet-50 accuracy from 40.1% to 41.3%. Under higher IPC (IPC = 50), MGPO continues to outperform strong baselines such as Minimax [6], RDED [33], and CaO2 [34]. This suggests that our reward-guided distillation framework is able to capture class-discriminative information that transfers effectively across models of varying depth and capacity.
Hyperparameter Analysis
We further study the sensitivity of our method to several key hyperparameters. All experiments are conducted on ImageWoof with 10 IPC distilled datasets. Specifically, we analyze the parameters involved in the construction of the MST that models the latent geometric structure. By varying these parameters while keeping other settings fixed, we evaluate the robustness of our framework and examine how they influence the quality of the generated synthetic data and the downstream performance (Figure 5).
Figure 5. Ablation studies on the hyperparameters used in MST construction, including the number of neighbors in the kNN graph, the maximum number of sampled latent features per class, and the PCA projection dimension.
Overall, MGPO exhibits stable performance across a broad range of hyperparameter settings. The results suggest that the method is not overly sensitive to individual parameters, and moderate values generally provide the best balance between optimization stability and reward effectiveness.
Visualization
Results on Classification
Figure 6, Figure 7, and Figure 8 demonstrate the visualization results on ImageWoof, ImageNette and ImageIDC, respectively.

Figure 6. Comparison between samples generated by Minimax Diffusion (left) and generated by the proposed MGPO method (right) on ImageWoof (Classification).

Figure 7. Comparison between samples generated by Minimax Diffusion (left) and generated by the proposed MGPO method (right) on ImageNette (Classification).

Figure 8. Comparison between samples generated by Minimax Diffusion (left) and generated by the proposed MGPO method (right) on ImageIDC (Classification).
Results on Detection
Figure 9 demonstrates the visualization results on detection results.

Figure 9. Samples generated by the proposed MGPO (Object Detection).
Results on Segmentation
Figure 10 demonstrates the visualization results on segmentation results.

Figure 10. Samples generated by the proposed MGPO (Segmentation).
Limitations and Broader Impacts
Limitations. While MGPO establishes an efficient and adaptable paradigm for task aware dataset distillation, it still possesses certain limitations. First, from a theoretical perspective, as discussed in theorem 12, the direction component of the geometric reward relies on local tangent approximations which may exhibit fluctuations on high intrinsic dimension manifolds. Second, although MGPO eliminates the computational bottleneck of inference time guidance, the reinforcement learning policy optimization phase introduces additional offline training overhead compared to purely training free selection methods. Finally, scaling the class wise MST construction to datasets with millions of categories might require more advanced hierarchical clustering algorithms to maintain strict scalability.
Broader Societal Impacts. Our research presents significant positive societal impacts by heavily compressing the data required to train deep learning models. This inherently reduces the carbon footprint and energy consumption associated with large scale model training, democratizing artificial intelligence by allowing researchers with limited computational resources to train state of the art models. However, as a potential negative impact, if the pre-trained reward models (such as the proxy classifier or detector) contain inherent biases regarding demographic attributes, the policy optimization process might internalize and amplify these biases within the distilled dataset. Therefore, practitioners must ensure that the reward models used for distillation are thoroughly audited for fairness and equity prior to deployment in sensitive applications.
References
- [1]Clément Berenfeld, John Harvey, Marc Hoffmann, and Krishnan Shankar. Estimating the reach of a manifold via its convexity defect function. Discrete & Computational Geometry, 67(2):403–438, 2022.DOI
- [2]Giulio Biroli, Tony Bonnaire, Valentin De Bortoli, and Marc Mézard. Dynamical regimes of diffusion models. Nature Communications, 15(1):9957, 2024.DOI
- [4]Jeffrey A. Chan-Santiago, Praveen Tirupattur, Gaurav Kumar Nayak, Gaowen Liu, and Mubarak Shah. Mgd³: Mode-guided dataset distillation using diffusion models, 2025. URL https://arxiv.org/abs/2505.18963.
- [6]Jianyang Gu, Saeed Vahid ian, Vyacheslav Kungurtsev, Haonan Wang, Wei Jiang, Yang You, and Yiran Chen. Efficient dataset distillation via minimax diffusion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 15793–15803, 2024.arxiv.org/abs/2311.15529
- [7]Yingqing Guo, Hui Yuan, Yukang Yang, Minshuo Chen, and Mengdi Wang. Gradient guidance for diffusion models: An optimization perspective. arXiv preprint arXiv:2404.14743, 2024.arxiv.org/abs/2404.14743
- [8]Xiaoxuan He, Siming Fu, Yuke Zhao, Wanli Li, Jian Yang, Dacheng Yin, Fengyun Rao, and Bo Zhang. Tempflow-grpo: When timing matters for grpo in flow models, 2025.arxiv.org/abs/2508.04324
- [9]Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models, 2020. URL https://arxiv.org/abs/2006.11239.
- [10]Andrew Howard, Mark Sandler, Grace Chu, Liang-Chieh Chen, Bo Chen, Mingxing Tan, Weijun Wang, Yukun Zhu, Ruoming Pang, Vijay Vasudevan, Quoc V. Le, and Hartwig Adam. Searching for mobilenetv3, 2019. URL https://arxiv.org/abs/1905.02244.
- [11]Jeremy Howard. Imagenette: A smaller subset of 10 easily classified classes from imagenet, March 2019a. URL https://github.com/fastai/imagenette.
- [12]Jeremy Howard. Imagewoof: a subset of 10 classes from imagenet that aren’t so easy to classify, March 2019b. URL https://github.com/fastai/imagenette#imagewoof.
- [13]Rafał Karczewski, Markus Heinonen, and Vikas Garg. Diffusion models as cartoonists: The curious case of high density regions, 2025. URL https://arxiv.org/abs/2411.01293.
- [14]Jang-Hyun Kim, Jinuk Kim, Seong Joon Oh, Sangdoo Yun, Hwanjun Song, Joonhyun Jeong, Jung-Woo Ha, and Hyun Oh Song. Dataset condensation via efficient synthetic-data parameterization, 2022. URL https://arxiv.org/abs/2205.14959.
- [15]Junzhe Li, Yutao Cui, Tao Huang, Yinp ing Ma, Chun Fan, Miles Yang, Zhao Zhong, and Liefeng Bo. Mixgrpo: Unlocking flow-based grpo efficiency with mixed ode-sde, 2026. URL https://arxiv.org/abs/2507.21802.
- [16]Yuming Li, Yikai Wang, Yuying Zhu, Zhongyu Zhao, Ming Lu, Qi She, and Shanghang Zhang. Branchgrpo: Stable and efficient grpo with structured branching in diffusion models, 2025. URL https://arxiv.org/abs/2509.06040.
- [17]Tsung-Yi Lin, Michael Maire, Serge Belongie, Lubomir Bourdev, Ross Girshick, James Hays, Pietro Perona, Deva Ramanan, C. Lawrence Zitnick, and Piotr Dollár. Microsoft coco: Common objects in context, 2015. URL https://arxiv.org/abs/1405.0312.
- [18]Jie Liu, Gongye Liu, Jiajun Liang, Yangguang Li, Jiaheng Liu, Xintao Wang, Pengfei Wan, Di ZHANG, and Wanli Ouyang. Flow-GRPO: Training flow matching models via online RL. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. URL https://openreview.net/forum?id=oCBKGw5HNf.arxiv.org/abs/2505.05470
- [19]Shih-Yang Liu, Xin Dong, Ximing Lu, Shizhe Diao, Peter Belcak, Mingjie Liu, Min-Hung Chen, Hongxu Yin, Yu-Chiang Frank Wang, Kwang-Ting Cheng, Yejin Choi, Jan Kautz, and Pavlo Molchanov. Gdpo: Group reward-decoupled normalization policy optimization for multi-reward rl optimization, 2026. URL https://arxiv.org/abs/2601.05242.
- [20]Partha Niyogi, Stephen Smale, and Shmuel Weinberger. Finding the homology of submanifolds with high confidence from random samples. Discrete & Computational Geometry, 39(1–3):419–441, 2008.
- [21]William Peebles and Saining Xie. Scalable diffusion models with transformers. arXiv preprint arXiv:2212.09748, 2022.arxiv.org/abs/2212.09748
- [22]Mathew Penrose. Random Geometric Graphs. Oxford University Press, 2003.DOI
- [23]Phil Pope, Chen Zhu, Ahmed Abdelkader, Micah Goldblum, and Tom Goldstein. The intrinsic dimension of images and its impact on learning. In International Conference on Learning Representations (ICLR), 2021.arxiv.org/abs/2104.08894
- [24]Ding Qi, Jian Li, Junyao Gao, Shuguang Dou, Ying Tai, Jianlong Hu, Bo Zhao, Yabiao Wang, Chengjie Wang, and Cairong Zhao. Towards universal dataset distillation via task-driven diffusion. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 10557–10566, 2025. doi: 10.1109/CVPR52734.2025.000987.DOI
- [25]Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks, 2016. URL https://arxiv.org/abs/1506.01497.
- [26]Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 10684–10695, June 2022.arxiv.org/abs/2112.10752
- [27]Ayush Roy, Wei-Yang Alex Lee, Rudrasis Chakraborty, and Vishnu Suresh Lokhande. Manifoldgd: Training-free hierarchical manifold guidance for diffusion-based dataset distillation. arXiv preprint arXiv:2602.23295, 2026.arxiv.org/abs/2602.23295
- [28]Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. ImageNet Large Scale Visual Recognition Challenge. International Journal of Computer Vision (IJCV), 115 (3):211–252, 2015. doi: 10.1007/s11263-015-0816-y.DOI
- [29]Ozan Sener and Silvio Savarese. Active learning for convolutional neural networks: A core-set approach, 2018. URL https://arxiv.org/abs/1708.00489.
- [30]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. Deepseekmath: Pushing the limits of mathematical reasoning in open language models, 2024. URL https://arxiv.org/abs/2402.03300.
- [31]Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. arXiv:2010.02502, October 2020. URL https://arxiv.org/abs/2010.02502.
- [32]Duo Su, Junjie Hou, Weizhi Gao, Yingjie Tian, and Bowen Tang. D^4: Dataset distillation via disentangled diffusion model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5809–5818, 2024.arxiv.org/abs/2407.15138
- [33]Peng Sun, Bei Shi, Daiwei Yu, and Tao Lin. On the diversity and realism of distilled dataset: An efficient dataset distillation paradigm. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2024.arxiv.org/abs/2312.03526
- [34]Haoxuan Wang, Zhenghao Zhao, Junyi Wu, Yuzhang Shang, Gaowen Liu, and Yan Yan. Cao2: Rectifying inconsistencies in diffusion-based dataset distillation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pp. 4722–4731, October 2025.arxiv.org/abs/2506.22637
- [35]Tongzhou Wang, Jun-Yan Zhu, Antonio Torralba, and Alexei A Efros. Dataset distillation. arXiv preprint arXiv:1811.10959, 2018.arxiv.org/abs/1811.10959
- [36]Max Welling. Herding dynamical weights to learn. In Proceedings of the 26th annual international conference on machine learning, pp. 1121–1128, 2009.DOI
- [37]Enze Xie, Lewei Yao, Han Shi, Zhili Liu, Daquan Zhou, Zhaoqiang Liu, Jiawei Li, and Zhenguo Li. Diffit: Unlocking transferability of large diffusion models via simple parameter-efficient fine-tuning, 2023. URL https://arxiv.org/abs/2304.06648.
- [38]Zeyue Xue, Jie Wu, Yu Gao, Fangyuan Kong, Lingting Zhu, Mengzhao Chen, Zhiheng Liu, Wei Liu, Qiushan Guo, Weilin Huang, et al. Dancegrp: Unleashing grpo on visual generation. arXiv preprint arXiv:2505.07818, 2025.arxiv.org/abs/2505.07818
- [39]Zeyuan Yin, Eric Xing, and Zhiqiang Shen. Squeeze, recover and relabel: Dataset condensation at imagenet scale from a new perspective. Advances in Neural Information Processing Systems, 36: 73582–73603, 2023.arxiv.org/abs/2306.13092
- [40]Bo Zhao and Hakan Bilen. Dataset condensation with distribution matching. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 6514–6523, 2023.arxiv.org/abs/2110.04181
- [41]Bo Zhao, Konda Reddy Mopuri, and Hakan Bilen. Dataset condensation with gradient matching. arXiv preprint arXiv:2006.05929, 2020.arxiv.org/abs/2006.05929
- [42]Lin Zhao, Yushu Wu, Xinru Jiang, Jianyang Gu, Yanzhi Wang, Xiaolin Xu, Pu Zhao, and Xue Lin. Taming diffusion for dataset distillation with high representativeness. arXiv preprint arXiv:2505.18399, 2025.arxiv.org/abs/2505.18399
- [43]Yawen Zou, Guang Li, Duo Su, Zi Wang, Jun Yu, and Chao Zhang. Dataset distillation via vision-language category prototype. arXiv preprint arXiv:2506.23580, 2025.arxiv.org/abs/2506.23580



