betaFeedback

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 δ\delta-approximates the class manifold in Hausdorff distance with δ2/τ\delta^{2}/\tau 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.

Overview of the proposed MGPO framework

Figure 2. Overview of the proposed MGPO framework. (a) PIXEL REWARD (rdiscr_{\mathrm{disc}}) is computed from downstream objectives such as classification, detection, and segmentation, encouraging semantic correctness and task consistency. (b) MST REWARD (rgeor_{\mathrm{geo}}) 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 S={(x~i,y~i)}i=1NS\mathcal{S} = \{(\tilde{x}_i, \tilde{y}_i)\}_{i=1}^{N_S} that preserves the essential training information of a large-scale real dataset T={(xi,yi)}i=1NT\mathcal{T} = \{(x_i, y_i)\}_{i=1}^{N_T}, where xix_i denotes an input sample (e.g., an image), yiy_i its corresponding label, and NS≪NTN_S \ll N_T. The goal of dataset distillation is to enable models trained on S\mathcal{S} to achieve performance comparable to those trained on T\mathcal{T}, while significantly reducing storage and computational costs.

DDIM Sampling in Latent Space

We adopt a latent diffusion formulation, where z0=E(x0)z_0 = E(x_0) denotes the VAE-encoded latent, and diffusion is performed directly on the latent variables ztz_t. The DiT backbone parameterizes the noise prediction ϵθ(zt,t)\epsilon_\theta(z_t, t) 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 ztz_t to zt−1z_{t-1} is defined as:

zt−1=αt−1(zt−1−αtϵθ(zt,t)αt)+1−αt−1−σt2⋅ϵθ(zt,t)+σtϵt,(1)z_{t-1} = \sqrt{\alpha_{t-1}}\left(\frac{z_t - \sqrt{1-\alpha_t}\epsilon_\theta(z_t,t)}{\sqrt{\alpha_t}}\right) + \sqrt{1-\alpha_{t-1}-\sigma_t^2}\cdot\epsilon_\theta(z_t,t) + \sigma_t\epsilon_t, \tag*{(1)}

where ϵt∼N(0,I)\epsilon_t \sim\mathcal{N}(0,I) is standard Gaussian noise and αt\alpha_t follows the standard variance schedule. This non Markovian formulation unifies deterministic and stochastic sampling through the variance parameter σt=η1−αt−11−αt1−αtαt−1\sigma_t = \eta\sqrt{\frac{1-\alpha_{t-1}}{1-\alpha_t}}\sqrt{1-\frac{\alpha_t}{\alpha_{t-1}}}, which is parameterized by a scalar η\eta. The hyperparameter η\eta explicitly controls the degree of stochasticity. When η=0\eta= 0, the random noise term vanishes, reducing the sampling process to the strictly deterministic DDIM formulation. Conversely, when η=1\eta= 1, the process recovers the stochastic Markovian transitions of traditional DDPM [9].

During the reward driven policy optimization phase, we maintain η=1\eta= 1 to encourage stochastic trajectory exploration. Once the generative policy is fully aligned with our dual space objectives, we set η=0\eta= 0 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 (rdiscr_{disc}). To ensure the synthesized samples are informative for training downstream models, we employ a pre-trained proxy classifier fϕf_\phi. For a generated sample x~0\tilde{x}_0 with target label cc, the reward is defined as the log probability of the ground-truth class:

rdisc(x~0,c)=log⁡(exp⁡(fϕ(x~0)c)∑kexp⁡(fϕ(x~0)k)),(2)r_{disc}(\tilde{x}_0,c) = \log\left(\frac{\exp(f_\phi(\tilde{x}_0)_c)}{\sum_k \exp(f_\phi(\tilde{x}_0)_k)}\right), \tag*{(2)}

where fϕ(x~0)cf_\phi(\tilde{x}_0)_c denotes the predicted logit for class cc. This continuous formulation provides a smooth reward landscape and penalizes samples that lie near ambiguous decision boundaries.

Manifold Geometric Reward (rgeor_{geo}). 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 Zc={zi}i=1Nc\mathcal{Z}_c = \{z_i\}_{i=1}^{N_c} denote the VAE-encoded latent representations of class-cc samples. We model the class manifold via a weighted graph Gc=(Zc,Ec)G_c = (\mathcal{Z}_c, E_c) with edge weights w(u,v)=∥u−v∥2w(u,v) = \lVert u-v\rVert_2, and define the class-wise MST as

Tc=arg⁡min⁡T⊆Gc∑(u,v)∈Tw(u,v),(3)\mathcal{T}_c = \arg\min_{T \subseteq G_c} \sum_{(u,v)\in T} w(u,v), \tag*{(3)}

where TT spans all nodes and contains no cycles. To ensure scalability, in practice we construct Tc\mathcal{T}_c from a subsampled latent set on a sparse kk-nearest-neighbor graph (see Algorithm 2).

Given a generated latent z0z_0 corresponding to x~0\tilde{x}_0, we project it into the normalized latent space via ugen=gc(z0)u_{\mathrm{gen}} = g_c(z_0), and define the geometric reward as

rgeo(x~0,c)=−λdistmin⁡v∈Vc∥ugen−v∥2−λdir(1−∣cos⁡(vgen,de∗)∣),e∗=arg⁡min⁡(i,j)∈Ec∥umid−vi+vj2∥2.(4)\begin{aligned} r_{\mathrm{geo}}(\tilde{x}_0,c) &= -\lambda_{\mathrm{dist}} \min_{v\in V_c} \lVert u_{\mathrm{gen}}-v\rVert_2 - \lambda_{\mathrm{dir}}\left(1-\left|\cos(v_{\mathrm{gen}},d_{e^*})\right|\right),\\ e^* &= \arg\min_{(i,j)\in E_c}\left\lVert u_{\mathrm{mid}}-\frac{v_i+v_j}{2}\right\rVert_2. \tag*{(4)} \end{aligned}

where VcV_c and EcE_c are the node and edge sets of Tc\mathcal{T}_c, the first term is the Euclidean distance from the projected terminal latent to its nearest MST node, and λdir\lambda_{\mathrm{dir}} controls the strength of the directional alignment term (analysis in Appendix). The transition direction is vgen=gc(z0)−gc(zmid)v_{\mathrm{gen}} = g_c(z_0) - g_c(z_{\mathrm{mid}}), where zmidz_{\mathrm{mid}} is a latent sampled from an intermediate diffusion timestep, and de∗d_{e^*} is the direction of the MST edge e∗e^* whose midpoint is nearest to the projected intermediate latent umid=gc(zmid)u_{\mathrm{mid}} = g_c(z_{\mathrm{mid}}). The first term encourages generated samples to remain close to the manifold skeleton, while the second encourages alignment with its local direction. By incorporating rgeor_{\mathrm{geo}} 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 Mc\mathcal{M}_c be a compact, connected C2C^2 class submanifold with reach τc>0\tau_c > 0, and let the MST nodes cover Mc\mathcal{M}_c with radius δ<τc\delta< \tau_c. Theorem 5 (Appendix § 10.§ 2) shows that dH(Mc,∣Tc∣)≤δd_H(\mathcal{M}_c,|\mathcal{T}_c|) \le\delta, with the sharper backward bound sup⁡y∈∣Tc∣d(y,Mc)≤δ2/τc\sup_{y\in|\mathcal{T}_c|} d(y,\mathcal{M}_c) \le\delta^2/\tau_c; 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 nn i.i.d. samples satisfies dH(∣T(Vc)∣,∣T(Uc)∣)=O((log⁡(n/η)/n)1/mc)d_H(|\mathcal{T}(V_c)|,|\mathcal{T}(U_c)|) = O\left((\log(n/\eta)/n)^{1/m_c}\right) with probability at least 1−η1-\eta, where mcm_c is the intrinsic dimension; this bound is independent of the full dataset size NcN_c, 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 πθ(zt−1∣zt,c)\pi_\theta(z_{t-1}\mid z_t,c) predicts the reverse diffusion transition conditioned on the class label cc.

Following the generalized DDIM formulation introduced in § 3.2, we set η=1\eta= 1 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 cc, we sample a group of GG trajectories {z0i}i=1G\{z_0^i\}_{i=1}^G where GG 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:

J(θ)=Ec∼p(c),ϵ[1G∑i=1Gmin⁡(ρiA^i,clip⁡(ρi,1−ϵ,1+ϵ)A^i)−βDKL(πθ∥πθref)],(5)\mathcal{J}(\theta) = \mathbb{E}_{c\sim p(c),\epsilon}\left[\frac{1}{G}\sum_{i=1}^{G}\min\left(\rho_i\hat{A}_i,\operatorname{clip}(\rho_i,1-\epsilon,1+\epsilon)\hat{A}_i\right)-\beta\mathbb{D}_{\mathrm{KL}}(\pi_\theta\parallel\pi_{\theta_{\mathrm{ref}}})\right], \tag*{(5)}

Algorithm 1 MGPO Training Procedure

Require: Diffusion policy πθ\pi_\theta, proxy reward model fϕf_\phi, class-wise MST skeleton Tc\mathcal{T}_c and projection function gc(⋅)g_c(\cdot)

  1. for each training iteration do

  2. Sample class label c∼p(c)c \sim p(c)

  3. Generate GG trajectories {τi}i=1G\{\tau_i\}_{i=1}^{G} via SDE and ODE sampling

  4. for each trajectory τi={zT(i),…,z0(i)}\tau_i = \{z_T^{(i)}, \ldots, z_0^{(i)}\} do

  5. Compute geometric reward rgeo(i)r_{\mathrm{geo}}^{(i)} using latent projection ugen(i)=gc(z0(i))u_{\mathrm{gen}}^{(i)} = g_c(z_0^{(i)})

  6. Decode image x~0(i)=D(z0(i))\tilde{x}_0^{(i)} = D(z_0^{(i)})

  7. Compute discriminative reward rdisc(i)r_{\mathrm{disc}}^{(i)} using Eq. (2)

  8. end for

  9. Perform group-wise normalization of rewards Eq. (6)

  10. Aggregate advantages across objectives Eq. (7)

  11. Apply batch-level normalization Eq. (8)

  12. Update diffusion policy using the MGPO objective Eq. (5)

  13. end for

where ρi=πθ(zt−1(i)∣zt(i),c)πθold(zt−1(i)∣zt(i),c)\rho_i = \frac{\pi_\theta(z_{t-1}^{(i)} \mid z_t^{(i)},c)}{\pi_{\theta_{\mathrm{old}}}(z_{t-1}^{(i)} \mid z_t^{(i)},c)} denotes the importance sampling ratio and A^i\hat{A}_i is the aggregated advantage of the ii-th trajectory.

The MST skeleton and the projection function gc(⋅)g_c(\cdot) 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 k∈{disc,geo}k \in\{\mathrm{disc}, \mathrm{geo}\}, we perform group-wise normalization across the GG rollouts:

Ai,k=rk(i)−mean⁡({rk(j)}j=1G)std⁡({rk(j)}j=1G)+ϵ.(6)A_{i,k} = \frac{r_k^{(i)} - \operatorname{mean}(\{r_k^{(j)}\}_{j=1}^{G})}{\operatorname{std}(\{r_k^{(j)}\}_{j=1}^{G}) + \epsilon}. \tag*{(6)}

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:

Aisum=wdiscAi,disc+wgeoAi,geo.(7)A_i^{\mathrm{sum}} = w_{\mathrm{disc}} A_{i,\mathrm{disc}} + w_{\mathrm{geo}} A_{i,\mathrm{geo}}. \tag*{(7)}

where wdiscw_{\mathrm{disc}} and wgeow_{\mathrm{geo}} weight the discriminative and geometric rewards (§ 5.4).

Finally, we apply batch-level normalization across all samples in the training batch:

A^i=Aisum−mean⁡({Ajsum})std⁡({Ajsum})+ϵ.(8)\hat{A}_i = \frac{A_i^{\mathrm{sum}} - \operatorname{mean}(\{A_j^{\mathrm{sum}}\})}{\operatorname{std}(\{A_j^{\mathrm{sum}}\}) + \epsilon}. \tag*{(8)}

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 rgeor_{\mathrm{geo}} 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 rdiscr_{\mathrm{disc}} 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 x~0\tilde{x}_0 conditioned on class cc, we apply Non-Maximum Suppression to filter redundant predictions, and define the reward as the maximum remaining confidence score for class cc:

rdet(x~0,c)=max⁡(Sc(x~0)),(9)r_{\mathrm{det}}(\tilde{x}_0,c)=\max(\mathcal{S}_c(\tilde{x}_0)), \tag*{(9)}

where Sc(x~0)\mathcal{S}_c(\tilde{x}_0) 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-KK pixel confidences for class cc:

rseg(x~0,c)=1K∑k=1KTopK⁡(Pc(x~0))k,(10)r_{\mathrm{seg}}(\tilde{x}_0,c)=\frac{1}{K}\sum_{k=1}^{K}\operatorname{TopK}(\mathcal{P}_c(\tilde{x}_0))_k, \tag*{(10)}

where Pc(x~0)\mathcal{P}_c(\tilde{x}_0) is the flattened probability map. The hyperparameter KK enforces a minimum expected pixel area (analysis in Appendix).

In both cases, the reward depends only on the prompted class cc. 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 cc (score threshold 0.05, IoU threshold 0.5) as boxes. For segmentation, we keep the pixels whose argmax prediction is cc as the mask; the Top-KK operation in Eq. (10) only computes the scalar reward. Images without a valid class-cc 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 ×\times 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 ±\pm 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], SRe2^{2}L [39], RDED [33], Minimax [6], D4^{4}M [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)ModelRandomK-CenterHerdingDiTMinimaxDMIDC-1D4^4MDDVLCPManifoldGDMGPO (Ours)Full
10 (0.8%)ConvNet-624.3±1.124.3\pm1.119.4±0.919.4\pm0.926.7±0.526.7\pm0.534.2±1.134.2\pm1.137.0±1.037.0\pm1.026.9±1.226.9\pm1.233.3±1.133.3\pm1.129.4±0.929.4\pm0.934.8±2.434.8\pm2.436.9±0.636.9\pm0.637.2±0.837.2\pm0.886.4±0.286.4\pm0.2
ResNetAP-1029.4±0.829.4\pm0.822.1±0.122.1\pm0.132.0±0.332.0\pm0.334.7±0.534.7\pm0.539.2±1.339.2\pm1.330.3±1.230.3\pm1.239.1±0.539.1\pm0.533.2±2.133.2\pm2.139.5±1.539.5\pm1.538.3±0.438.3\pm0.440.9±1.140.9\pm1.187.5±0.587.5\pm0.5
ResNet-1827.7±0.927.7\pm0.921.1±0.421.1\pm0.430.2±1.230.2\pm1.234.7±0.434.7\pm0.437.6±0.937.6\pm0.933.4±0.733.4\pm0.737.3±0.237.3\pm0.232.3±1.232.3\pm1.239.9±2.639.9\pm2.639.2±0.739.2\pm0.740.1±0.340.1\pm0.389.3±1.289.3\pm1.2
20 (1.6%)ConvNet-629.1±0.729.1\pm0.721.5±0.821.5\pm0.829.5±0.829.5\pm0.836.1±0.836.1\pm0.837.6±0.837.6\pm0.829.9±1.129.9\pm1.135.5±0.835.5\pm0.834.0±2.034.0\pm2.037.9±1.937.9\pm1.937.7±0.637.7\pm0.639.6±1.339.6\pm1.386.4±0.286.4\pm0.2
ResNetAP-1032.7±0.432.7\pm0.425.1±0.725.1\pm0.734.9±0.434.9\pm0.441.1±1.841.1\pm1.845.8±0.545.8\pm0.535.2±0.635.2\pm0.643.4±0.743.4\pm0.740.1±1.640.1\pm1.644.5±2.244.5\pm2.245.6±0.545.6\pm0.546.1±0.846.1\pm0.887.5±0.587.5\pm0.5
ResNet-1829.7±0.529.7\pm0.523.6±0.523.6\pm0.532.2±0.632.2\pm0.640.5±0.540.5\pm0.542.5±0.842.5\pm0.829.8±1.729.8\pm1.738.6±0.638.6\pm0.638.4±1.138.4\pm1.144.5±2.044.5\pm2.042.4±0.442.4\pm0.445.9±0.545.9\pm0.589.3±1.289.3\pm1.2
50 (3.8%)ConvNet-641.3±0.641.3\pm0.636.5±1.036.5\pm1.040.3±0.740.3\pm0.746.5±0.846.5\pm0.853.9±0.653.9\pm0.644.4±1.044.4\pm1.043.9±1.243.9\pm1.247.4±0.947.4\pm0.954.5±3.054.5\pm3.051.3±0.751.3\pm0.755.7±0.455.7\pm0.486.4±0.286.4\pm0.2
ResNetAP-1047.2±1.347.2\pm1.340.6±0.440.6\pm0.449.1±0.749.1\pm0.749.3±0.849.3\pm0.856.3±1.156.3\pm1.147.1±1.147.1\pm1.148.3±1.148.3\pm1.151.7±3.351.7\pm3.357.3±0.557.3\pm0.557.9±0.957.9\pm0.958.1±0.558.1\pm0.587.5±0.587.5\pm0.5
ResNet-1847.9±1.847.9\pm1.839.6±0.439.6\pm0.448.3±1.248.3\pm1.250.1±0.550.1\pm0.557.1±0.657.1\pm0.646.2±0.646.2\pm0.648.3±1.148.3\pm1.153.7±2.253.7\pm2.258.9±1.558.9\pm1.558.2±0.658.2\pm0.659.7±0.459.7\pm0.489.3±1.289.3\pm1.2
70 (5.4%)ConvNet-646.3±0.646.3\pm0.638.6±0.738.6\pm0.746.2±0.646.2\pm0.650.1±1.250.1\pm1.255.7±0.855.7\pm0.847.5±0.847.5\pm0.848.9±1.048.9\pm1.050.5±0.450.5\pm0.455.8±1.755.8\pm1.755.3±0.655.3\pm0.656.4±1.156.4\pm1.186.4±0.286.4\pm0.2
ResNetAP-1050.8±0.650.8\pm0.645.9±0.545.9\pm0.553.4±1.153.4\pm1.154.3±0.954.3\pm0.958.3±0.458.3\pm0.451.7±0.851.7\pm0.852.8±1.052.8\pm1.054.7±1.654.7\pm1.660.6±0.360.6\pm0.360.6±1.060.6\pm1.060.8±0.460.8\pm0.487.5±0.587.5\pm0.5
ResNet-1852.1±1.052.1\pm1.044.6±1.144.6\pm1.149.7±0.849.7\pm0.851.5±0.851.5\pm0.858.8±0.758.8\pm0.751.9±0.851.9\pm0.851.1±1.751.1\pm1.753.3±1.853.3\pm1.860.3±0.360.3\pm0.361.0±0.661.0\pm0.661.2±0.361.2\pm0.389.3±1.289.3\pm1.2
100 (7.7%)ConvNet-652.2±0.452.2\pm0.445.1±0.545.1\pm0.554.4±1.154.4\pm1.153.4±0.353.4\pm0.361.1±0.761.1\pm0.755.0±1.355.0\pm1.353.2±0.953.2\pm0.957.9±1.857.9\pm1.862.7±1.462.7\pm1.460.6±0.260.6\pm0.261.3±1.161.3\pm1.186.4±0.286.4\pm0.2
ResNetAP-1059.4±1.059.4\pm1.054.8±0.254.8\pm0.261.7±0.961.7\pm0.958.3±0.858.3\pm0.864.5±0.264.5\pm0.256.4±0.856.4\pm0.856.1±0.956.1\pm0.959.5±1.859.5\pm1.865.7±0.565.7\pm0.565.2±0.565.2\pm0.565.8±0.665.8\pm0.687.5±0.587.5\pm0.5
ResNet-1861.5±1.361.5\pm1.350.4±0.450.4\pm0.459.3±0.759.3\pm0.758.9±1.358.9\pm1.365.7±0.465.7\pm0.460.2±1.060.2\pm1.058.3±1.258.3\pm1.263.8±1.363.8\pm1.368.3±0.468.3\pm0.466.3±0.666.3\pm0.668.4±0.268.4\pm0.289.3±1.289.3\pm1.2

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.

IPCRandomDiTMinimaxD4^{4}MDDVLCPMGPO (Ours)
Nette1054.2±1.654.2\pm1.659.1±0.759.1\pm0.758.6±0.458.6\pm0.460.9±1.760.9\pm1.764.8±3.6‾\underline{64.8\pm3.6}66.9±2.266.9\pm2.2
Nette2063.5±0.563.5\pm0.564.8±1.264.8\pm1.270.6±0.370.6\pm0.366.3±1.366.3\pm1.371.4±0.5‾\underline{71.4\pm0.5}73.9±0.773.9\pm0.7
Nette5076.1±1.176.1\pm1.173.3±0.973.3\pm0.983.7±0.4‾\underline{83.7\pm0.4}77.7±1.177.7\pm1.181.2±0.881.2\pm0.885.4±1.185.4\pm1.1
IDC1048.1±0.848.1\pm0.854.1±0.454.1\pm0.451.9±1.451.9\pm1.452.8±0.552.8\pm0.557.0±1.457.0\pm1.454.6±1.754.6\pm1.7
IDC2052.5±0.952.5\pm0.958.9±0.258.9\pm0.259.1±3.759.1\pm3.758.5±0.458.5\pm0.463.3±1.2‾\underline{63.3\pm1.2}64.8±0.464.8\pm0.4
IDC5068.1±0.768.1\pm0.764.3±0.664.3\pm0.669.4±1.469.4\pm1.469.1±0.869.1\pm0.871.9±0.4‾\underline{71.9\pm0.4}77.8±0.977.8\pm0.9

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.

IPCSRe2^{2}LRDEDDiTMinimaxMGPO (Ours)
1021.3±0.621.3\pm0.642.0±0.142.0\pm0.139.6±0.439.6\pm0.444.3±0.544.3\pm0.545.1±0.645.1\pm0.6
5046.8±0.246.8\pm0.256.5±0.156.5\pm0.152.9±0.652.9\pm0.658.6±0.358.6\pm0.359.1±0.459.1\pm0.4

Table 3. Comparison of dataset distillation methods on ImageNet-1K under different IPC settings.

BackboneIPCSRe2L (Yin et al., [39])Minimax (Gu et al., [6])RDED (Sun et al., [33])CaO² (Wang et al., [34])MGPO (Ours)
ResNet-181020.2±0.220.2 \pm0.240.1±1.040.1 \pm1.038.5±2.138.5 \pm2.145.6±1.445.6 \pm1.447.3±0.847.3 \pm0.8
ResNet-185023.3±0.323.3 \pm0.367.0±1.867.0 \pm1.868.5±0.768.5 \pm0.768.9±1.168.9 \pm1.169.7±1.669.7 \pm1.6
ResNet-501017.3±1.717.3 \pm1.737.3±1.137.3 \pm1.129.9±2.229.9 \pm2.240.1±0.140.1 \pm0.141.3±1.141.3 \pm1.1
ResNet-505024.8±0.724.8 \pm0.764.3±0.964.3 \pm0.967.8±0.367.8 \pm0.368.2±1.168.2 \pm1.169.0±0.469.0 \pm0.4
ResNet-1011017.7±0.917.7 \pm0.934.2±1.734.2 \pm1.731.3±1.331.3 \pm1.336.5±1.436.5 \pm1.437.8±1.637.8 \pm1.6
ResNet-1015021.2±0.221.2 \pm0.262.7±1.662.7 \pm1.659.1±0.759.1 \pm0.763.1±1.363.1 \pm1.363.5±1.563.5 \pm1.5

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 AP50_{50}(%) across different selection ratios.

MethodPascal VOC0.5%1%2%MS COCO0.25%0.5%1%
mAPAP50_{50}mAPAP50_{50}mAPAP50_{50}mAPAP50_{50}mAPAP50_{50}mAPAP50_{50}
Random0.8±0.20.8\pm0.23.1±0.43.1\pm0.44.2±0.54.2\pm0.513.7±0.613.7\pm0.612.4±0.412.4\pm0.434.3±0.534.3\pm0.50.5±0.10.5\pm0.11.7±0.31.7\pm0.33.7±0.23.7\pm0.210.1±0.310.1\pm0.37.2±0.87.2\pm0.817.3±0.917.3\pm0.9
Uniform0.9±0.10.9\pm0.13.4±0.33.4\pm0.35.7±0.25.7\pm0.217.7±0.417.7\pm0.413.8±0.313.8\pm0.336.2±0.436.2\pm0.40.8±0.20.8\pm0.22.4±0.52.4\pm0.53.4±0.43.4\pm0.49.5±0.69.5\pm0.67.4±0.57.4\pm0.517.6±0.517.6\pm0.5
K-Center0.5±0.10.5\pm0.12.1±0.32.1\pm0.33.6±0.63.6\pm0.612.3±0.312.3\pm0.310.9±0.610.9\pm0.629.3±0.629.3\pm0.60.4±0.10.4\pm0.11.5±0.21.5\pm0.23.2±0.53.2\pm0.59.5±0.59.5\pm0.56.1±0.36.1\pm0.315.4±0.615.4\pm0.6
Herding0.6±0.20.6\pm0.22.4±0.22.4\pm0.23.5±0.53.5\pm0.511.9±0.511.9\pm0.510.4±0.410.4\pm0.428.7±0.728.7\pm0.70.5±0.10.5\pm0.11.8±0.41.8\pm0.43.5±0.33.5\pm0.39.7±0.39.7\pm0.36.7±0.46.7\pm0.416.3±0.716.3\pm0.7
UniDD8.5±0.48.5\pm0.422.3±0.622.3\pm0.616.8±0.516.8\pm0.538.9±0.738.9\pm0.723.9±0.523.9\pm0.548.5±0.648.5\pm0.64.5±0.34.5\pm0.310.3±0.410.3\pm0.47.1±0.47.1\pm0.416.9±0.316.9\pm0.310.8±0.410.8\pm0.422.5±0.522.5\pm0.5
MGPO (Ours)13.4±0.213.4\pm0.226.3±0.526.3\pm0.521.1±0.421.1\pm0.441.8±0.341.8\pm0.326.9±0.926.9\pm0.953.1±1.353.1\pm1.35.8±0.25.8\pm0.213.9±0.313.9\pm0.38.3±0.58.3\pm0.519.9±0.219.9\pm0.211.7±0.811.7\pm0.825.4±0.825.4\pm0.8
Full Data51.4±0.851.4\pm0.8 / 80.3±0.480.3\pm0.432.6±0.732.6\pm0.7 / 51.4±0.851.4\pm0.8

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.

MethodsSemantic Segmentation (mIoU)
3.5%7%14%Full
Random6.7±0.46.7\pm0.49.6±0.59.6\pm0.511.3±0.411.3\pm0.4
Uniform6.5±0.66.5\pm0.69.3±0.49.3\pm0.412.1±0.512.1\pm0.5
K-Center6.1±0.46.1\pm0.48.5±0.68.5\pm0.610.4±0.710.4\pm0.732.9±0.632.9\pm0.6
Herding6.2±0.76.2\pm0.78.7±0.48.7\pm0.410.6±0.310.6\pm0.3
UniDD10.3±0.510.3\pm0.512.3±0.312.3\pm0.314.9±0.714.9\pm0.7
MGPO (Ours)18.3±0.518.3\pm0.520.4±0.420.4\pm0.423.1±0.623.1\pm0.6

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.

MethodImageWoofImageNette
IPC = 10IPC = 50IPC = 10IPC = 50
DiT34.7±0.534.7\pm0.549.3±0.249.3\pm0.258.9±1.258.9\pm1.282.9±0.182.9\pm0.1
Pixel Reward37.0±0.337.0\pm0.350.5±0.550.5\pm0.564.1±0.964.1\pm0.984.9±1.184.9\pm1.1
Latent Reward36.8±0.336.8\pm0.350.0±0.250.0\pm0.265.9±0.265.9\pm0.284.9±1.384.9\pm1.3
Both (Ours)40.9±1.140.9\pm1.157.9±0.257.9\pm0.266.9±2.266.9\pm2.285.4±1.185.4\pm1.1

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., kk-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 pθ(x0)p_{\theta}(x_0) denote the data distribution induced by a the current diffusion model, and let pref(x0)p_{\mathrm{ref}}(x_0) 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

pβ(x0)∝pref(x0)exp⁡(βR(x0))(11)p_{\beta}(x_0) \propto p_{\mathrm{ref}}(x_0)\exp\left(\beta R(x_0)\right) \tag*{(11)}

where R(x0)R(x_0) denotes a task-specific reward and β>0\beta> 0 controls alignment strength. This formulation shifts probability mass toward task-relevant regions of the data manifold.

We view diffusion sampling process as a trajectory τ={xT,xT−1,…,x0}\tau= \{x_T, x_{T-1}, \ldots, x_0\} induced by a parameterized policy pθ(τ)p_\theta(\tau).

Under this perspective, aligning diffusion generation with task objectives amounts to optimizing the expected terminal reward over trajectories, regularized towards the pretrained model:

Jβ(θ)=Eτ∼pθ[R(x0)]−1βKL⁡(pθ(x0)∥pref(x0)).(12)\mathcal{J}_\beta(\theta) = \mathbb{E}_{\tau\sim p_\theta}\left[R(x_0)\right] - \frac{1}{\beta}\operatorname{KL}\left(p_\theta(x_0) \mathbin{\|} p_{\mathrm{ref}}(x_0)\right). \tag*{(12)}

Over all distributions of x0x_0, the maximizer of Eq. (12) is exactly the reward-reweighted density in Eq. (11), since Jβ=1βlog⁡Zβ−1βKL⁡(pθ∥pβ)\mathcal{J}_\beta= \frac{1}{\beta}\log Z_\beta- \frac{1}{\beta}\operatorname{KL}(p_\theta\mathbin{\|} p_\beta) with Zβ=Epref[exp⁡(βR)]Z_\beta= \mathbb{E}_{p_{\mathrm{ref}}}[\exp(\beta R)]. 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 M⊂Rd\mathcal{M} \subset\mathbb{R}^{d} be a compact, connected, C2C^2-embedded submanifold with reach

τ:=reach⁡(M)>0.\tau:= \operatorname{reach}(\mathcal{M}) > 0.

Let U={u1,…,uN}⊂MU = \{u_1, \ldots, u_N\} \subset\mathcal{M} be a finite point set on the manifold, and define its covering radius

δ:=sup⁡x∈Mmin⁡1≤i≤N∥x−ui∥2.(13)\delta:= \sup_{x \in\mathcal{M}} \min_{1 \le i \le N} \lVert x-u_i\rVert_2. \tag*{(13)}

Let TMST=(U,EMST)\mathcal{T}_{\mathrm{MST}} = (U, E_{\mathrm{MST}}) denote the Euclidean minimum spanning tree on UU, and write

∣TMST∣:=⋃(ui,uj)∈EMST[ui,uj]⊂Rd\lvert\mathcal{T}_{\mathrm{MST}}\rvert:= \bigcup_{(u_i,u_j)\in E_{\mathrm{MST}}} [u_i,u_j] \subset\mathbb{R}^{d}

for its geometric realization, where [ui,uj][u_i,u_j] denotes the closed line segment in Rd\mathbb{R}^{d} between uiu_i and uju_j.

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 ∣TMST∣\lvert\mathcal{T}_{\mathrm{MST}}\rvert (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 kkNN-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 δ<τ\delta< \tau, the MST realization ∣TMST∣\lvert\mathcal{T}_{\mathrm{MST}}\rvert approximates the manifold M\mathcal{M} in the Hausdorff metric at rate δ\delta in the forward direction and rate δ2τ\frac{\delta^2}{\tau} 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 UU (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 T\mathcal{T} on the vertex set UU,

sup⁡x∈Md(x,∣T∣)≤δ.\sup_{x \in\mathcal{M}} d(x,\lvert\mathcal{T}\rvert) \le\delta.

Proof. Fix x∈Mx \in\mathcal{M}. By the definition of δ\delta in eq. (13), there exists ui∈Uu_i \in U such that

∥x−ui∥2≤δ.\lVert x-u_i\rVert_2 \le\delta.

Since uiu_i is a vertex of T\mathcal{T}, we have ui∈∣T∣u_i \in\lvert\mathcal{T}\rvert. Therefore

d(x,∣T∣)≤∥x−ui∥2≤δ.d(x,\lvert\mathcal{T}\rvert) \le\lVert x-u_i\rVert_2 \le\delta.

Taking the supremum over x∈Mx \in\mathcal{M} proves the claim. □\square

Lemma 2 (Existence of a short-edged spanning tree). *There exists a spanning tree on UU whose every edge has Euclidean length at most 2δ2\delta.

Proof. For each i∈{1,…,N}i \in\{1,\ldots,N\}, define the closed manifold cap

Ai:=B‾(ui,δ)∩M.A_i := \overline{B}(u_i,\delta) \cap\mathcal{M}.

By the definition of δ\delta, every x∈Mx \in\mathcal{M} lies within distance δ\delta of some uiu_i, hence

M=⋃i=1NAi.\mathcal{M} = \bigcup_{i=1}^{N} A_i.

Claim: the intersection graph of {Ai}i=1N\{A_i\}_{i=1}^{N} is connected. Suppose, for contradiction, that the intersection graph is disconnected, so there is a partition

{1,…,N}=I⊔J,I,J≠∅,\{1,\ldots,N\}=I\sqcup J,\qquad I,J\ne\varnothing,

satisfying

Ai∩Aj=∅for all i∈I, j∈J.A_i\cap A_j=\varnothing\qquad\text{for all }i\in I,\ j\in J.

Define

X:=⋃i∈IAi,Y:=⋃j∈JAj.X:=\bigcup_{i\in I}A_i,\qquad Y:=\bigcup_{j\in J}A_j.

Each AiA_i is closed in M\mathcal{M} (as the intersection of a closed Euclidean ball with M\mathcal{M}), so XX and YY are closed in M\mathcal{M}. They are nonempty, disjoint, and satisfy M=X∪Y\mathcal{M}=X\cup Y. In particular, X=M∖YX=\mathcal{M}\setminus Y is also open in M\mathcal{M}, so XX is a nonempty proper clopen subset of M\mathcal{M}. This contradicts the connectedness of M\mathcal{M}, establishing the claim.

Now construct a graph GG on vertex set UU by joining uiu_i and uju_j whenever Ai∩Aj≠∅A_i\cap A_j\ne\varnothing. By the claim, GG is connected. For any such edge (ui,uj)(u_i,u_j), choose x∈Ai∩Ajx\in A_i\cap A_j; the triangle inequality yields

∥ui−uj∥2≤∥ui−x∥2+∥x−uj∥2≤2δ.\lVert u_i-u_j\rVert_2\le\lVert u_i-x\rVert_2+\lVert x-u_j\rVert_2\le2\delta.

Thus every edge of GG has length at most 2δ2\delta, and any spanning tree of GG inherits this property.

Lemma 3 (Bottleneck bound on MST edge length). Let

ℓMST:=max⁡(ui,uj)∈EMST∥ui−uj∥2.\ell_{\mathrm{MST}}:=\max_{(u_i,u_j)\in E_{\mathrm{MST}}}\lVert u_i-u_j\rVert_2.

Then ℓMST≤2δ\ell_{\mathrm{MST}}\le2\delta.

Proof. By Lemma 2, there exists a spanning tree on UU whose maximum edge length is at most 2δ2\delta. 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

ℓMST≤2δ.\ell_{\mathrm{MST}}\le2\delta.

Lemma 4 (Chord distance to manifold via convexity defect). Let M⊂Rd\mathcal{M}\subset\mathbb{R}^{d} have reach τ>0\tau>0. Suppose a,b∈Ma,b\in\mathcal{M} satisfy

∥a−b∥2=ℓ<2τ.\lVert a-b\rVert_2=\ell<2\tau.

Then for every y∈[a,b]y\in[a,b],

d(y,M)≤τ−τ2−ℓ24≤ℓ24τ.(14)d(y,\mathcal{M})\le\tau-\sqrt{\tau^2-\frac{\ell^2}{4}}\le\frac{\ell^2}{4\tau}. \tag*{(14)}

Proof. Let t:=ℓ/2<τt:=\ell/2<\tau. The smallest closed ball in Rd\mathbb{R}^{d} containing {a,b}\{a,b\} has radius tt, namely the ball centered at the midpoint of [a,b][a,b]. Since

[a,b]=conv⁡{a,b},[a,b]=\operatorname{conv}\{a,b\},

every y∈[a,b]y\in[a,b] belongs to the tt-local convex hull of M\mathcal{M} in the sense of [1 Definition 4.1]. Therefore

d(y,M)≤hM(t),d(y,\mathcal{M})\le h_{\mathcal{M}}(t),

where hMh_{\mathcal{M}} denotes the convexity defect function of M\mathcal{M}.

For a set of reach τ\tau, the quarter-circle bound of [1 Definition 4.1 and the bound stated immediately thereafter] states

hM(t)≤τ−τ2−t2,0≤t<τ.h_{\mathcal{M}}(t) \le\tau- \sqrt{\tau^2-t^2}, \qquad0 \le t < \tau.

Substituting t=ℓ/2t=\ell/2 yields the first inequality of eq. (14).

For the second inequality, observe that for any 0≤s≤τ20 \le s \le\tau^2,

τ−τ2−s=sτ+τ2−s≤sτ,\tau-\sqrt{\tau^2-s}=\frac{s}{\tau+\sqrt{\tau^2-s}}\le\frac{s}{\tau},

where the equality follows from rationalizing the numerator and the inequality from τ2−s≥0\sqrt{\tau^2-s}\ge0. Setting s=ℓ2/4s=\ell^2/4 gives

τ−τ2−ℓ24≤ℓ24τ,\tau-\sqrt{\tau^2-\frac{\ell^2}{4}}\le\frac{\ell^2}{4\tau},

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 δ<τ\delta< \tau. Then

dH(M,∣TMST∣)≤δ.(15)d_H(\mathcal{M},|\mathcal{T}_{\mathrm{MST}}|)\le\delta. \tag*{(15)}

More precisely, the two one-sided bounds

sup⁡x∈Md(x,∣TMST∣)≤δ,(16)\sup_{x\in\mathcal{M}}d(x,|\mathcal{T}_{\mathrm{MST}}|)\le\delta, \tag*{(16)}
sup⁡y∈∣TMST∣d(y,M)≤τ−τ2−δ2≤δ2τ(17)\sup_{y\in|\mathcal{T}_{\mathrm{MST}}|}d(y,\mathcal{M})\le\tau-\sqrt{\tau^2-\delta^2}\le\frac{\delta^2}{\tau} \tag*{(17)}

hold simultaneously.

Proof. The forward bound eq. (16) is exactly theorem 1.

For the backward bound eq. (17), by theorem 3,

ℓMST≤2δ<2τ,\ell_{\mathrm{MST}}\le2\delta<2\tau,

so theorem 4 applies to every edge [ui,uj]∈EMST[u_i,u_j]\in E_{\mathrm{MST}}. Each point yy on such an edge therefore satisfies

d(y,M)≤τ−τ2−∥ui−uj∥24.d(y,\mathcal{M})\le\tau-\sqrt{\tau^2-\frac{\lVert u_i-u_j\rVert^2}{4}}.

Since the function ℓ↦τ−τ2−ℓ2/4\ell\mapsto\tau-\sqrt{\tau^2-\ell^2/4} is monotone non-decreasing on [0,2τ)[0,2\tau), and ∥ui−uj∥2≤ℓMST≤2δ\lVert u_i-u_j\rVert_2\le\ell_{\mathrm{MST}}\le2\delta, we have

d(y,M)≤τ−τ2−ℓMST24≤τ−τ2−δ2≤δ2τ,d(y,\mathcal{M})\le\tau-\sqrt{\tau^2-\frac{\ell_{\mathrm{MST}}^2}{4}}\le\tau-\sqrt{\tau^2-\delta^2}\le\frac{\delta^2}{\tau},

where the last inequality follows from theorem 4 applied with s=δ2s=\delta^2. Taking the supremum over y∈∣TMST∣y\in|\mathcal{T}_{\mathrm{MST}}| yields eq. (17).

To deduce the combined Hausdorff bound eq. (15), note that

dH(M,∣TMST∣)=max⁡{sup⁡x∈Md(x,∣TMST∣), sup⁡y∈∣TMST∣d(y,M)}.d_H(\mathcal{M},|\mathcal{T}_{\mathrm{MST}}|)=\max\left\{\sup_{x\in\mathcal{M}}d(x,|\mathcal{T}_{\mathrm{MST}}|),\ \sup_{y\in|\mathcal{T}_{\mathrm{MST}}|}d(y,\mathcal{M})\right\}.

By eqs. (16) and (17), both terms inside the maximum are at most

max⁡{δ, τ−τ2−δ2}.\max\left\{\delta,\ \tau-\sqrt{\tau^2-\delta^2}\right\}.

It remains to show τ−τ2−δ2≤δ\tau-\sqrt{\tau^2-\delta^2}\le\delta whenever δ<τ\delta<\tau. Equivalently, τ−δ≤τ2−δ2\tau-\delta\le\sqrt{\tau^2-\delta^2}, which after squaring becomes

(τ−δ)2≤τ2−δ2,(\tau-\delta)^2\le\tau^2-\delta^2,

i.e., −2τδ+2δ2≤0-2\tau\delta+2\delta^2\le0, i.e., δ≤τ\delta\le\tau, which holds by assumption. Hence

dH(M,∣TMST∣)≤δ.d_H(\mathcal{M},|\mathcal{T}_{\mathrm{MST}}|)\le\delta.

Remark 6. The bounds in theorem 5 are asymmetric: the forward direction (manifold to MST) decays linearly in δ\delta, while the backward direction (MST to manifold) decays quadratically as δ2/τ\delta^{2}/\tau. 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 UU would only give a linear O(δ)O(\delta) 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 ∣TMST∣|T_{\mathrm{MST}}| has trivial first homology and cannot, in general, preserve cycles, higher-dimensional homology, or the intrinsic dimension of M\mathcal{M}. 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 M\mathcal{M} 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 K⊂RDK \subset\mathbb{R}^{D} be compact and connected, let U={u1,…,uN}⊂KU=\{u_1,\ldots,u_N\}\subset K have covering radius δK:=sup⁡x∈Kmin⁡i∥x−ui∥2\delta_K:=\sup_{x\in K}\min_{i}\lVert x-u_i\rVert_2, and let TT be the Euclidean MST on UU. Define the node distance Dnode(y):=min⁡i∥y−ui∥2D_{\mathrm{node}}(y):=\min_i\lVert y-u_i\rVert_2 and the edge distance Dedge(y):=d(y,∣T∣)D_{\mathrm{edge}}(y):=d(y,|T|). Then:

(i) sup⁡x∈KDnode(x)≤δK\sup_{x\in K}D_{\mathrm{node}}(x)\le\delta_K;

(ii) for every y∈RDy\in\mathbb{R}^{D}, Dedge(y)≤Dnode(y)≤Dedge(y)+δKD_{\mathrm{edge}}(y)\le D_{\mathrm{node}}(y)\le D_{\mathrm{edge}}(y)+\delta_K;

(iii) if V⊆UV\subseteq U, then for every y∈RDy\in\mathbb{R}^{D}, 0≤DnodeV(y)−DnodeU(y)≤max⁡u∈Umin⁡v∈V∥u−v∥2≤δK(V)0\le D_{\mathrm{node}}^{V}(y)-D_{\mathrm{node}}^{U}(y)\le\max_{u\in U}\min_{v\in V}\lVert u-v\rVert_2\le\delta_K(V), where δK(V)\delta_K(V) is the covering radius of VV over KK.

In particular, with K=gc(Xc)K=g_c(\mathcal{X}_c) the image of a compact, connected class support Xc\mathcal{X}_c under the continuous encoder-and-whitening map gcg_c (Appendix § 12.§ 1), (i)–(iii) hold in the VAE/PCA space where the reward is computed, without requiring gcg_c to be isometric or invertible.

Proof. (i) is the definition of δK\delta_K. For (ii), the left inequality holds because every node lies on ∣T∣|T|. For the right inequality, let p∈[ui,uj]p\in[u_i,u_j] be a point of ∣T∣|T| nearest to yy. The nearer endpoint of this edge is within ∥ui−uj∥2/2≤ℓMST/2\lVert u_i-u_j\rVert_2/2\le\ell_{\mathrm{MST}}/2 of pp, and the arguments of theorems 2 and 3, which use only compactness and connectedness of KK, give ℓMST≤2δK\ell_{\mathrm{MST}}\le2\delta_K. Hence Dnode(y)≤∥y−p∥2+δK=Dedge(y)+δKD_{\mathrm{node}}(y)\le\lVert y-p\rVert_2+\delta_K=D_{\mathrm{edge}}(y)+\delta_K. For (iii), let the left inequality hold for V⊆UV\subseteq U. For the right one, let u∗∈Uu^*\in U be nearest to yy and v∗∈Vv^*\in V nearest to u∗u^*; then DnodeV(y)≤∥y−u∗∥2+∥u∗−v∗∥2≤DnodeU(y)+max⁡u∈Umin⁡v∈V∥u−v∥2D_{\mathrm{node}}^{V}(y)\le\lVert y-u^*\rVert_2+\lVert u^*-v^*\rVert_2\le D_{\mathrm{node}}^{U}(y)+\max_{u\in U}\min_{v\in V}\lVert u-v\rVert_2, and the last quantity is at most δK(V)\delta_K(V) because U⊂KU\subset K. 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 KK, 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 UU, then its MST is a Euclidean MST of UU, and otherwise the two trees can differ. Finally, the relation between distances in gc(Xc)g_c(\mathcal{X}_c) 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 Mc⊂Rd\mathcal{M}_c\subset\mathbb{R}^{d} denote the class-cc data manifold, assumed to be a compact, connected, C2C^2-embedded submanifold with reach τc:=reach⁡(Mc)>0\tau_c:=\operatorname{reach}(\mathcal{M}_c)>0 and intrinsic dimension mcm_c. Let μc\mu_c be a probability measure on Mc\mathcal{M}_c with density (with respect to the volume form) bounded below by ρmin⁡>0\rho_{\min}>0.

For any finite point set W⊂McW\subset\mathcal{M}_c, define its covering radius

δ(W):=sup⁡x∈Mcmin⁡w∈W∥x−w∥2,\delta(W):=\sup_{x\in\mathcal{M}_c}\min_{w\in W}\lVert x-w\rVert_2,

and let T(W)=(W,EMST(W))\mathcal{T}(W) = (W, E_{\mathrm{MST}}(W)) be the Euclidean minimum spanning tree on WW, with geometric realization

∣T(W)∣:=⋃(u,v)∈EMST(W)[u,v]⊂Rd.|\mathcal{T}(W)| := \bigcup_{(u,v)\in E_{\mathrm{MST}}(W)} [u,v] \subset\mathbb{R}^{d}.

The Hausdorff distance between two compact sets A,B⊂RdA, B \subset\mathbb{R}^{d} is

dH(A,B):=max⁡{sup⁡a∈Ainf⁡b∈B∥a−b∥2, sup⁡b∈Binf⁡a∈A∥a−b∥2}.d_H(A,B) := \max\left\{\sup_{a\in A}\inf_{b\in B}\lVert a-b\rVert_2,\ \sup_{b\in B}\inf_{a\in A}\lVert a-b\rVert_2\right\}.

Let Uc={u1,…,uNc}⊂McU_c = \{u_1,\ldots,u_{N_c}\} \subset\mathcal{M}_c denote the full real sample set for class cc, drawn i.i.d. from μc\mu_c, and let Vc⊆UcV_c \subseteq U_c with ∣Vc∣=n|V_c| = n be a uniform random subset. By the exchangeability of i.i.d. samples, VcV_c is itself distributed as an i.i.d. sample of size nn from μc\mu_c, a characterization we adopt in the analysis below.

The aim of this subsection is to show that, with high probability, the subsample MST ∣T(Vc)∣|\mathcal{T}(V_c)| approximates the full MST ∣T(Uc)∣|\mathcal{T}(U_c)| in Hausdorff distance at a rate determined only by the intrinsic dimension mcm_c, 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 Mc\mathcal{M}_c, μc\mu_c, UcU_c, and VcV_c be as above. Then there exist constants CMc>0C_{\mathcal{M}_c} > 0 (depending only on Mc\mathcal{M}_c and ρmin⁡\rho_{\min}) and n0=n0(Mc,τc)n_0 = n_0(\mathcal{M}_c,\tau_c) such that, for every n≥n0n \ge n_0 and every η∈(0,1)\eta\in(0,1), with probability at least 1−η1-\eta,

δ(Vc)≤CMc(log⁡(n/η)n)1/mc<τc,(18)\delta(V_c) \le C_{\mathcal{M}_c}\left(\frac{\log(n/\eta)}{n}\right)^{1/m_c} < \tau_c, \tag*{(18)}

and consequently

dH(∣T(Vc)∣,∣T(Uc)∣)≤2CMc(log⁡(n/η)n)1/mc.(19)d_H\bigl(|\mathcal{T}(V_c)|,|\mathcal{T}(U_c)|\bigr) \le2C_{\mathcal{M}_c}\left(\frac{\log(n/\eta)}{n}\right)^{1/m_c}. \tag*{(19)}

Moreover, the geometric reward rgeor_{\mathrm{geo}} defined in Eq. (4) of the main paper satisfies

∣rgeoVc(x~0,c)−rgeoUc(x~0,c)∣≤2CMc(log⁡(n/η)n)1/mc+λdir,(20)\left|r_{\mathrm{geo}}^{V_c}(\tilde{x}_0,c)-r_{\mathrm{geo}}^{U_c}(\tilde{x}_0,c)\right| \le2C_{\mathcal{M}_c}\left(\frac{\log(n/\eta)}{n}\right)^{1/m_c}+\lambda_{\mathrm{dir}}, \tag*{(20)}

for every generated latent x~0\tilde{x}_0, where rgeoWr_{\mathrm{geo}}^W denotes the geometric reward computed using the MST on point set WW. The first term captures the contribution of the distance component of rgeor_{\mathrm{geo}} and vanishes as n→∞n \to\infty; 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 CMc>0C_{\mathcal{M}_c} > 0 depending only on Mc\mathcal{M}_c and ρmin⁡\rho_{\min} such that, for every η∈(0,1)\eta\in(0,1), with probability at least 1−η1-\eta,

δ(Vc)≤CMc(log⁡(n/η)n)1/mc.(21)\delta(V_c) \le C_{\mathcal{M}_c}\left(\frac{\log(n/\eta)}{n}\right)^{1/m_c}. \tag*{(21)}

Proof. Cover Mc\mathcal{M}_c by N(ρ)\mathcal{N}(\rho) geodesic balls of radius ρ\rho, where

N(ρ)≤c1ρ−mcvol⁡(Mc)\mathcal{N}(\rho) \le c_1 \rho^{-m_c}\operatorname{vol}(\mathcal{M}_c)

for some constant c1=c1(Mc)c_1 = c_1(\mathcal{M}_c), by standard volume comparison on bounded-reach submanifolds. For ρ<τc/2\rho< \tau_c/2, each such ball has μc\mu_c-mass at least ρmin⁡c2ρmc\rho_{\min} c_2 \rho^{m_c} by the lower density assumption combined with the small-ball volume bound on Mc\mathcal{M}_c. Setting

ρ:=(log⁡(n/η)c3n)1/mc\rho:= \left(\frac{\log(n/\eta)}{c_3 n}\right)^{1/m_c}

for an appropriate constant c3c_3, and applying a union bound over the cover, the probability that some ball contains no point of VcV_c is at most

N(ρ)(1−ρmin⁡c2ρmc)n≤η.\mathcal{N}(\rho)\left(1-\rho_{\min}c_2\rho^{m_c}\right)^n \le\eta.

On this event, every x∈Mcx \in\mathcal{M}_c lies within ρ\rho of some vi∈Vcv_i \in V_c, yielding eq. (21) with CMc:=c3−1/mcC_{\mathcal{M}_c}:=c_3^{-1/m_c}.

Choosing n0n_0 large enough that the right-hand side of eq. (21) is strictly less than τc\tau_c, we obtain eq. (18) for all n≥n0n \ge n_0.

Step 2: Hausdorff distance between the two MST realizations. Apply theorem 5 to the point set W=UcW=U_c and to W=VcW=V_c. Since Vc⊆UcV_c \subseteq U_c, the covering radius is monotone non-increasing under enlargement of the point set, i.e., δ(Uc)≤δ(Vc)\delta(U_c) \le\delta(V_c). Hence, on the event of theorem 11,

δ(Uc)≤δ(Vc)<τc,\delta(U_c) \le\delta(V_c) < \tau_c,

so theorem 5 applies to both sets and gives

dH(Mc,∣T(Uc)∣)≤δ(Uc),dH(Mc,∣T(Vc)∣)≤δ(Vc).d_H(\mathcal{M}_c,|\mathcal{T}(U_c)|) \le\delta(U_c), \qquad d_H(\mathcal{M}_c,|\mathcal{T}(V_c)|) \le\delta(V_c).

The triangle inequality for Hausdorff distance yields

dH(∣T(Vc)∣,∣T(Uc)∣)≤dH(∣T(Vc)∣,Mc)+dH(Mc,∣T(Uc)∣)≤δ(Vc)+δ(Uc)≤2δ(Vc).\begin{aligned} d_H(|\mathcal{T}(V_c)|,|\mathcal{T}(U_c)|) &\le d_H(|\mathcal{T}(V_c)|,\mathcal{M}_c)+d_H(\mathcal{M}_c,|\mathcal{T}(U_c)|)\\ &\le\delta(V_c)+\delta(U_c)\\ &\le2\delta(V_c). \end{aligned}

Combined with eq. (18), this establishes eq. (19).

Step 3: Stability of the geometric reward. Fix a generated latent x~0\tilde{x}_0 with class label cc, and let ugen=gc(z0)u_{\mathrm{gen}}=g_c(z_0) denote its projected representation as in Sec. 4.1 of the main paper. The geometric reward ((4) of the main paper) admits the decomposition

rgeoW(x~0,c)=−DW−λdirAW,r_{\mathrm{geo}}^W(\tilde{x}_0,c)=-D_W-\lambda_{\mathrm{dir}}A_W,

where

DW:=min⁡e∈EMST(W)dist⁡(ugen,e),AW:=1−∣cos⁡(vgen,veW∗)∣,D_W:=\min_{e\in E_{\mathrm{MST}}(W)}\operatorname{dist}(u_{\mathrm{gen}},e), \qquad A_W:=1-\left|\cos(v_{\mathrm{gen}},v_{e_W}^*)\right|,

and eW∗∈EMST(W)e_W^* \in E_{\mathrm{MST}}(W) is the MST edge nearest to ugenu_{\mathrm{gen}} in WW.

Distance term. Since ∣T(Vc)∣|\mathcal{T}(V_c)| and ∣T(Uc)∣|\mathcal{T}(U_c)| are compact subsets of Rd\mathbb{R}^d, and the map w↦dist⁡(ugen,w)w\mapsto\operatorname{dist}(u_{\mathrm{gen}},w) is 1-Lipschitz,

∣DVc−DUc∣=∣inf⁡w∈∣T(Vc)∣∥ugen−w∥−inf⁡w∈∣T(Uc)∣∥ugen−w∥∣≤dH(∣T(Vc)∣,∣T(Uc)∣).(22)\left|D_{V_c}-D_{U_c}\right| = \left|\inf_{w\in|\mathcal{T}(V_c)|}\|u_{\mathrm{gen}}-w\|-\inf_{w\in|\mathcal{T}(U_c)|}\|u_{\mathrm{gen}}-w\|\right| \le d_H(|\mathcal{T}(V_c)|,|\mathcal{T}(U_c)|). \tag*{(22)}

Direction term. Since ∣cos⁡(⋅,⋅)∣∈[0,1]|\cos(\cdot,\cdot)|\in[0,1], we have the worst-case bound

∣AVc−AUc∣≤1.(23)\left|A_{V_c}-A_{U_c}\right|\le1. \tag*{(23)}

This bound cannot in general be improved through Hausdorff-distance arguments alone: for class manifolds of intrinsic dimension mc≥2m_c\ge2, 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 veW∗v_{e_W}^* is not a Hausdorff-continuous functional of ∣T(W)∣|\mathcal{T}(W)| (see theorem 12).

Combining the two,

∣rgeoVc−rgeoUc∣≤∣DVc−DUc∣+λdir∣AVc−AUc∣≤dH(∣T(Vc)∣,∣T(Uc)∣)+λdir.\left|r_{\mathrm{geo}}^{V_c}-r_{\mathrm{geo}}^{U_c}\right| \le\left|D_{V_c}-D_{U_c}\right|+\lambda_{\mathrm{dir}}\left|A_{V_c}-A_{U_c}\right| \le d_H(|\mathcal{T}(V_c)|,|\mathcal{T}(U_c)|)+\lambda_{\mathrm{dir}}.

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,

0≤DnodeVc(ugen)−DnodeUc(ugen)≤δ(Vc),0 \le D_{\mathrm{node}}^{V_c}(u_{\mathrm{gen}})-D_{\mathrm{node}}^{U_c}(u_{\mathrm{gen}})\le\delta(V_c),

so the distance component of the implemented reward changes by at most λdistδ(Vc)\lambda_{\mathrm{dist}}\delta(V_c) under subsampling. Where the assumptions of theorem theorem 11 hold, δ(Vc)≤CMc(log⁡(η/n)/n)1/mc\delta(V_c)\le C_{M_c}\left(\log(\eta/n)/n\right)^{1/m_c} with probability at least 1−η1-\eta. 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 λdir\lambda_{\mathrm{dir}} that does not vanish with δ(Vc)→0\delta(V_c)\to0. This reflects an intrinsic limitation: while the distance component DWD_W depends only on ∣T(W)∣\lvert\mathcal{T}(W)\rvert as a point set and is therefore controlled by Hausdorff distance, the direction component AWA_W depends on the orientation of the nearest MST edge, which is not preserved under Hausdorff convergence on manifolds of intrinsic dimension ≥2\ge2. In our experiments we set λdir=0.6\lambda_{\mathrm{dir}}=0.6 (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 ugenu_{\mathrm{gen}}, is left to future work.

The stability of the geometric reward guarantees that the excess-risk bound of the main paper carries over with δ\delta replaced by δ(Vc)\delta(V_c), 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 h^S\hat{h}_{S} trained on the MGPO-distilled set generated using the subsample-MST satisfies, with probability at least 1−η−δ01-\eta-\delta_0,

Rμ(h^S)−min⁡h∗∈HRμ(h∗)≤2Lℓ(ϵ+δ(Vc)2τc+λdir)+4RNS(ℓ∘H)R_{\mu}(\hat{h}_{S})-\min_{h^*\in\mathcal{H}}R_{\mu}(h^*)\le2L_{\ell}\left(\epsilon+\frac{\delta(V_c)^2}{\tau_c}+\lambda_{\mathrm{dir}}\right)+4\mathcal{R}_{N_S}(\ell\circ\mathcal{H})
+2LℓCMNT−1/m+O(Blog⁡(1/δ0)NS).{}+2L_{\ell}C_MN_T^{-1/m}+O\left(B\sqrt{\frac{\log(1/\delta_0)}{N_S}}\right).

where δ(Vc)≤CMc(log⁡(η/n)/n)1/mc\delta(V_c)\le C_{M_c}\left(\log(\eta/n)/n\right)^{1/m_c}.

Proof. Substitute the reward stability bound from eq. (20) into the excess-risk decomposition: the δ\delta-dependent term is replaced by δ(Vc)\delta(V_c), and the direction-component constant λdir\lambda_{\mathrm{dir}} contributes additively through the Lipschitz constant LℓL_{\ell}. 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 NcN_c). Fix any target covering radius δtarget∈(0,τc)\delta_{\mathrm{target}}\in(0,\tau_c) and any η∈(0,1)\eta\in(0,1). Then with probability at least 1−η1-\eta,

n=Θ(log⁡(1/η)+mclog⁡(1/δtarget)δtargetmc).n=\Theta\left(\frac{\log(1/\eta)+m_c\log(1/\delta_{\mathrm{target}})}{\delta_{\mathrm{target}}^{m_c}}\right).

random samples suffice to ensure δ(Vc)≤δtarget\delta(V_c)\le\delta_{\mathrm{target}}. In particular, the required nn depends only on the manifold parameters (τc,mc,ρmin⁡)(\tau_c,m_c,\rho_{\min}) and the target precision δtarget\delta_{\mathrm{target}}, and is independent of the full dataset size NcN_c.

Proof. Set δ(Vc)=δtarget\delta(V_c)=\delta_{\mathrm{target}} in eq. (21) and solve for nn:

δtarget=CMc(log⁡(n/η)n)1/mc⟹nlog⁡(n/η)=Θ(δtarget−mc).\delta_{\mathrm{target}}=C_{M_c}\left(\frac{\log(n/\eta)}{n}\right)^{1/m_c}\Longrightarrow\frac{n}{\log(n/\eta)}=\Theta\left(\delta_{\mathrm{target}}^{-m_c}\right).

Inverting gives the stated scaling. None of the constants involved depend on NcN_c.

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 mc∈[26,43]m_c\in[26,43] 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 nn required to reach a fixed geometric precision δtarget\delta_{\mathrm{target}} is independent of NcN_c, so a single choice of nn generalizes across datasets of different scale. In our implementation, taking n=200n=200 random samples per class gives a ratio of the two covering-radius rates of (Nc/200)1/mc(N_c/200)^{1/m_c} (ignoring logarithmic factors), which evaluates to ≈1.07\approx1.07–1.131.13 on ImageNet-1K (Nc≈1300N_c \approx1300, mc∈[26,43]m_c \in[26, 43]). 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, D4^4M [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 T\mathcal{T}, VAE encoder E(⋅)E(\cdot), max samples per class NcN_c, PCA dimension dd, kNN size kk

Ensure: Class-wise MST skeleton {Tc}c\{\mathcal{T}_c\}_c and PCA statistics (μc,Wc)(\mu_c, W_c)

  1. for each class cc do

  2. &nbsp;&nbsp;&nbsp;&nbsp;Sample up to NcN_c real images {xi}\{x_i\} from class cc

  3. &nbsp;&nbsp;&nbsp;&nbsp;Encode latents zi=E(xi)z_i = E(x_i) and flatten to vectors

  4. &nbsp;&nbsp;&nbsp;&nbsp;Stack all latent vectors into matrix ZZ

  5. &nbsp;&nbsp;&nbsp;&nbsp;Compute centered features Zc=Z−μcZ_c = Z - \mu_c

  6. &nbsp;&nbsp;&nbsp;&nbsp;Perform PCA projection to obtain normalized embeddings ui=Wc(zi−μc)u_i = W_c(z_i - \mu_c)

  7. &nbsp;&nbsp;&nbsp;&nbsp;Construct a kk-nearest-neighbor graph over {ui}\{u_i\}

  8. &nbsp;&nbsp;&nbsp;&nbsp;Compute the minimum spanning tree Tc\mathcal{T}_c from the sparse adjacency graph

  9. 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 cc, we sample up to NcN_c real images from the training set. All images are resized to 256×256256 \times256, center-cropped, converted to tensors, and normalized to the range [−1,1][-1, 1]. 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 cc produces a latent matrix

Z∈RN×D,Z \in\mathbb{R}^{N \times D},

where NN is the number of collected samples and DD 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

μc=1N∑i=1Nzi\mu_c = \frac{1}{N} \sum_{i=1}^{N} z_i

be the class mean and define the centered matrix

Zc=Z−μc.Z_c = Z - \mu_c.

We compute a low-rank PCA decomposition of ZcZ_c and retain the top dd principal components. Let V∈RD×dV \in\mathbb{R}^{D \times d} denote the projection matrix and S∈RdS \in\mathbb{R}^{d} the singular values. To avoid numerical instability, singular values are lower-bounded by a small constant ε\varepsilon. Each latent vector zz is then projected into a normalized embedding space by

u=gc(z)=(z−μc)Vdiag⁡(S)−1.u = g_c(z) = (z - \mu_c)V\operatorname{diag}(S)^{-1}.

This transformation simultaneously performs dimensionality reduction and whitening, making distances more comparable across directions. In our implementation, the PCA dimension is set to d=128d = 128.

Sparse kkNN graph construction. After obtaining the normalized embeddings {ui}i=1N\{u_i\}_{i=1}^{N}, we construct a sparse kk-nearest-neighbor graph in the embedding space. For each node uiu_i, we identify its kk nearest neighbors according to Euclidean distance. An adjacency matrix AA is then constructed where

Aij={∥ui−uj∥2,if uj is among the k nearest neighbors of ui,+∞,otherwise.A_{ij} = \begin{cases} \lVert u_i-u_j\rVert_2, & \text{if } u_j \text{ is among the } k \text{ nearest neighbors of } u_i,\\ +\infty, & \text{otherwise.} \end{cases}

The graph is symmetrized by assigning the same edge weight to both AijA_{ij} and AjiA_{ji} once either direction is observed. This sparse construction significantly reduces graph density and improves scalability. In practice, we use k=10k=10.

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

Ec={(i,j)},\mathcal{E}_c=\{(i,j)\},

which connects all nodes while minimizing the total edge weight. Ideally, a spanning tree over NN nodes contains N−1N-1 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 μc\mu_c, the projection matrix VV, the singular values SS, the normalized node embeddings, and the MST edge list. These quantities define both the class-wise tree Tc\mathcal{T}_c and the projection function gc(⋅)g_c(\cdot) used during MGPO training. When a generated latent z0z_0 is obtained at the end of the diffusion trajectory, it is projected using the same transformation gc(⋅)g_c(\cdot) 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 rgeor_{\mathrm{geo}} 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 ztmz_{t_m} and z0z_0 are projected into the class-specific PCA space used for MST construction.

Let gc(⋅)g_c(\cdot) denote the projection function defined in Section C.1. For a flattened latent vector vec⁡(z)\operatorname{vec}(z), the projection is

u=gc(vec⁡(z)).u=g_c(\operatorname{vec}(z)).

Thus we obtain

utm=gc(vec⁡(ztm)),u0=gc(vec⁡(z0)).u_{t_m}=g_c(\operatorname{vec}(z_{t_m})), \qquad u_0=g_c(\operatorname{vec}(z_0)).

Let Tc=(Vc,Ec)\mathcal{T}_c=(\mathcal{V}_c,\mathcal{E}_c) 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 {vi}\{v_i\} denote the nodes in Vc\mathcal{V}_c. The distance penalty is defined as

Ldist=min⁡i∥u0−vi∥2.\mathcal{L}_{\mathrm{dist}}=\min_i \lVert u_0-v_i\rVert_2.

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

dsample=u0−utm∥u0−utm∥2.d_{\mathrm{sample}}=\frac{u_0-u_{t_m}}{\lVert u_0-u_{t_m}\rVert_2}.

For each MST edge (i,j)∈Ec(i,j) \in\mathcal{E}_c, we define

mij=vi+vj2,dij=vj−vi∥vj−vi∥2.m_{ij} = \frac{v_i+v_j}{2}, \qquad d_{ij} = \frac{v_j-v_i}{\lVert v_j-v_i\rVert_2}.

We first find the nearest edge midpoint to the intermediate latent

(i∗,j∗)=arg⁡min⁡(i,j)∈Ec ∥utm−mij∥2.(i^*,j^*) = \underset{(i,j)\in\mathcal{E}_c}{\arg\min}\ \lVert u_{t_m}-m_{ij}\rVert_2.

The direction penalty is then defined as

Ldir=1−⟨dsample,di∗j∗⟩.\mathcal{L}_{\mathrm{dir}} = 1 - \langle d_{\mathrm{sample}},d_{i^*j^*}\rangle.

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:

rgeo=−λdistLdist−λdirLdir.r_{\mathrm{geo}} = -\lambda_{\mathrm{dist}}\mathcal{L}_{\mathrm{dist}}-\lambda_{\mathrm{dir}}\mathcal{L}_{\mathrm{dir}}.

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 rdiscr_{\mathrm{disc}} used in MGPO. The pixel reward evaluates the semantic consistency of generated samples in pixel space and is computed from the decoded image x~0=D(z0)\tilde{x}_0 = D(z_0) 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 fϕf_\phi. Given a generated image x~0\tilde{x}_0 and target class cc, the reward is defined as the log-probability of the ground-truth class:

rdisc(x~0,c)=log⁡(exp⁡(fϕ(x~0)c)∑kexp⁡(fϕ(x~0)k))(24)r_{\mathrm{disc}}(\tilde{x}_0,c) = \log\left(\frac{\exp(f_\phi(\tilde{x}_0)_c)}{\sum_k \exp(f_\phi(\tilde{x}_0)_k)}\right) \tag*{(24)}

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 x~0\tilde{x}_0 conditioned on class cc, the reward is the maximum post-NMS confidence score for class cc, 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 x~0\tilde{x}_0 conditioned on class cc, the reward is the mean confidence over the top-KK activated pixels of the spatial probability map for class cc, 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 x~0\tilde{x}_0, target class cc, pretrained detector fϕf_\phi (Faster R-CNN)

Ensure: Scalar reward rdetr_{\mathrm{det}}

  1. proposals ←fϕ.region_proposals⁡(x~0)\leftarrow f_\phi.\operatorname{region\_proposals}(\tilde{x}_0)

  2. detections ←NMS⁡(proposals,τiou=0.5,τscore=0.05)\leftarrow\operatorname{NMS}(\mathrm{proposals},\tau_{\mathrm{iou}}=0.5,\tau_{\mathrm{score}}=0.05)

  3. Sc←{score⁡(d)∣d∈detections,class⁡(d)=c}\mathcal{S}_c \leftarrow\{\operatorname{score}(d)\mid d\in\mathrm{detections},\operatorname{class}(d)=c\}

  4. if Sc=∅\mathcal{S}_c=\varnothing then

  5. &nbsp;&nbsp;&nbsp;&nbsp;rdet←−1.0r_{\mathrm{det}}\leftarrow-1.0 ▷ no valid detection for class cc

  6. else

  7. &nbsp;&nbsp;&nbsp;&nbsp;rdet←max⁡(Sc)r_{\mathrm{det}}\leftarrow\max(\mathcal{S}_c) ▷ eq. (9) of main paper

  8. end if

  9. return rdetr_{\mathrm{det}}

Algorithm 4 Segmentation Reward Computation

Require: Generated image x~0\tilde{x}_0, target class cc, pretrained segmentation network fϕf_\phi (LR-ASPP), TopK fraction α\alpha

Ensure: Scalar reward rsegr_{\mathrm{seg}}

  1. Pc←fϕ(x~0)[c]∈RH×W\mathcal{P}_c\leftarrow f_\phi(\tilde{x}_0)[c]\in\mathbb{R}^{H\times W} ▷ softmax probability map for class cc

  2. p←flatten⁡(Pc)∈RH⋅W\mathbf{p}\leftarrow\operatorname{flatten}(\mathcal{P}_c)\in\mathbb{R}^{H\cdot W}

  3. K←⌊α⋅H⋅W⌋K\leftarrow\lfloor\alpha\cdot H\cdot W\rfloor ▷ number of top pixels

  4. if max⁡(p)<ϵ\max(\mathbf{p})<\epsilon then

  5. &nbsp;&nbsp;&nbsp;&nbsp;rseg←−1.0r_{\mathrm{seg}}\leftarrow-1.0 ▷ no activation for class cc

  6. else

  7. &nbsp;&nbsp;&nbsp;&nbsp;rseg←1K∑k=1KTopK⁡(p)kr_{\mathrm{seg}}\leftarrow\frac{1}{K}\sum_{k=1}^{K}\operatorname{TopK}(\mathbf{p})_k ▷ eq. (10) of main paper

  8. end if

  9. return rsegr_{\mathrm{seg}}

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 kk 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.

Comparison between samples generated by Minimax Diffusion and generated by the proposed MGPO method on ImageWoof

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

Comparison between samples generated by Minimax Diffusion and generated by the proposed MGPO method on ImageNette

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

Comparison between samples generated by Minimax Diffusion and generated by the proposed MGPO method on ImageIDC (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.

Samples generated by the proposed MGPO (Object Detection)

Figure 9. Samples generated by the proposed MGPO (Object Detection).

Results on Segmentation

Figure 10 demonstrates the visualization results on segmentation results.

Samples generated by the proposed MGPO (Segmentation)

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. [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. [2]Giulio Biroli, Tony Bonnaire, Valentin De Bortoli, and Marc Mézard. Dynamical regimes of diffusion models. Nature Communications, 15(1):9957, 2024.DOI
  3. [3]George Cazenavette, Tongzhou Wang, Antonio Torralba, Alexei A Efros, and Jun-Yan Zhu. Dataset distillation by matching training trajectories. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4750–4759, 2022.
  4. [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.
  5. [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
  6. [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
  7. [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
  8. [9]Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models, 2020. URL https://arxiv.org/abs/2006.11239.
  9. [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.
  10. [11]Jeremy Howard. Imagenette: A smaller subset of 10 easily classified classes from imagenet, March 2019a. URL https://github.com/fastai/imagenette.
  11. [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.
  12. [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.
  13. [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.
  14. [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.
  15. [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.
  16. [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.
  17. [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
  18. [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.
  19. [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.
  20. [21]William Peebles and Saining Xie. Scalable diffusion models with transformers. arXiv preprint arXiv:2212.09748, 2022.arxiv.org/abs/2212.09748
  21. [22]Mathew Penrose. Random Geometric Graphs. Oxford University Press, 2003.DOI
  22. [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
  23. [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
  24. [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.
  25. [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
  26. [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
  27. [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
  28. [29]Ozan Sener and Silvio Savarese. Active learning for convolutional neural networks: A core-set approach, 2018. URL https://arxiv.org/abs/1708.00489.
  29. [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.
  30. [31]Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. arXiv:2010.02502, October 2020. URL https://arxiv.org/abs/2010.02502.
  31. [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
  32. [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
  33. [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
  34. [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
  35. [36]Max Welling. Herding dynamical weights to learn. In Proceedings of the 26th annual international conference on machine learning, pp. 1121–1128, 2009.DOI
  36. [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.
  37. [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
  38. [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
  39. [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
  40. [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
  41. [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
  42. [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

Paper details

vlnc:W_6xknee9n
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools (large language models)

View statement
Looking for related papers…
Contents