Abstract
Medical image analysis often relies on large annotated datasets, whose collection, storage, and sharing are costly and constrained by privacy concerns. Dataset distillation offers a potential solution by constructing compact synthetic datasets that retain task-relevant information from the original data. However, generative distillation methods may not adequately preserve class-specific information in medical images, where clinically distinct classes often exhibit similar visual characteristics. To address this issue, we propose a classifier-derived guidance framework for diffusion-based medical dataset distillation. The framework uses predictions from a pretrained noise-conditioned classifier to guide diffusion sampling through three objectives. Classifier guidance (CG) promotes class alignment, whereas entropy and margin guidance encourage boundary-oriented sampling. We analyze guidance-strength sensitivity on three medical imaging datasets across images-per-class (IPC) budgets and evaluate validation-selected COVID-19 Radiography configurations on the test subset using three downstream architectures. Classifier diagnostics distinguish prediction–conditioning agreement from downstream utility, while learning curves illustrate differences in validation behavior despite low training loss. These findings characterize the configuration-dependent utility of classifier-derived guidance for compact synthetic medical datasets.
1. Introduction
Deep learning has advanced medical image analysis across a range of imaging modalities and clinical tasks, including disease detection, tumor classification, and cell segmentation [1,2]. However, the performance of modern AI models remains strongly dependent on the scale, diversity, and quality of their training data. Access to suitable medical datasets is often limited by restricted data availability and barriers to data sharing [3,4]. Privacy concerns, heterogeneous data formats, legal requirements, and institutional constraints further complicate the collection and exchange of the large and diverse datasets required for robust model development [5].
In this setting, dataset distillation (DD) provides a data-centric approach to medical data sharing. As illustrated in Figure 1, rather than transferring the complete source dataset, DD constructs a compact synthetic dataset that retains task-relevant information for downstream model training [6,7]. Existing DD methods can be broadly divided into generative and non-generative approaches. Non-generative methods commonly optimize synthetic samples by matching the gradients, training trajectories, or feature distributions induced by the original data [8,9]. Despite their effectiveness, the repeated optimization of synthetic samples through model training or feature extraction can be computationally demanding and difficult to extend to high-resolution data. These limitations are particularly relevant to medical imaging, where image collections may be large and diagnostically important structures can be fine-grained [10].
Figure 1.
Conceptual workflow for reducing the direct exposure of source medical data through dataset distillation (DD). A source institution shares a compact synthetic dataset produced by DD rather than transferring the original medical images.
Generative DD offers an alternative by using learned generative priors to produce compact synthetic training sets. Existing studies have investigated both GAN-based and diffusion-based formulations [11,12]. Recent diffusion-based DD methods have focused on improving the representativeness, diversity, and sampling efficiency of distilled data [13,14]. For example, Minimax Diffusion introduces a minimax objective to improve the coverage and diversity of distilled samples on challenging benchmarks [14]. Related advances in diffusion-model acceleration have also used trajectory distribution matching to support efficient few-step generation while retaining the flexibility of multi-step sampling [15]. Together, these developments indicate that diffusion models provide a flexible generative foundation for constructing compact training datasets. Within this generative setting, the present study focuses on how classifier-derived sampling objectives affect the downstream training utility of compact medical datasets. Specifically, we compare guidance that strengthens target-class alignment with guidance that encourages exploration of uncertain regions near classifier decision boundaries.
Most generative DD methods, however, have been evaluated primarily on natural-image benchmarks, leaving their effectiveness on high-resolution and structurally complex medical images insufficiently understood [16]. Medical-image classes may be distinguished by subtle variations in texture, density, morphology, or localized abnormalities, which can make inter-class discrimination particularly difficult [17]. These characteristics may require medical DD methods to preserve fine-grained, localized, and class-discriminative structures that are less prominent in conventional natural-image benchmarks. If such information is not adequately retained, a compact synthetic dataset may fail to support reliable class separation. Preserving discriminative information while maintaining useful intra-class variation is therefore a central challenge in medical dataset distillation [18].
Motivated by this challenge, we investigate classifier-derived guidance for diffusion-based medical dataset distillation. Inspired by measurement-guided diffusion for medical image synthesis [19], the proposed framework uses a separately trained noise-conditioned classifier to modify the reverse diffusion trajectory. We formulate three classifier-derived guidance objectives with complementary roles. Classifier guidance promotes alignment with the target class, whereas entropy guidance (EG) and margin guidance (MG) encourage boundary-oriented sampling intended to produce informative hard examples. We systematically evaluate these objectives across three medical imaging datasets, multiple images-per-class (IPC) budgets, guidance strengths, and downstream architectures.
The main contributions of this study are summarized as follows:
- We adapt class-alignment and boundary-oriented classifier guidance to diffusion-based medical dataset distillation.
- We systematically characterize the effects of three guidance objectives across medical imaging modalities, IPC budgets, and guidance strengths.
- We examine both beneficial operating regimes and failure modes of classifier-derived guidance through downstream evaluation, generated-sample analysis, and feature-space projections.
2. Related Work
2.1. Dataset Distillation
DD aims to construct a compact synthetic dataset that preserves the training utility of a substantially larger source dataset [6]. Unlike knowledge distillation, which transfers predictive information from a teacher model to a student model, DD compresses information at the data level. Early optimization-based DD methods focused on matching the training signals induced by synthetic and real data. Gradient-matching methods optimize synthetic samples so that they produce gradients similar to those obtained from real data [8,9]. Subsequent studies have improved synthetic-data optimization through efficient parameterization, accumulated trajectory matching, and loss-curvature information [20,21,22,23]. These methods seek to preserve how real data influence the optimization process rather than matching only an isolated training signal.
Distribution-matching methods provide another major direction by aligning the feature statistics of synthetic and real data in selected embedding spaces [24,25]. For example, DANCE aligns real and synthetic distributions through complementary feature views, allowing the distilled dataset to capture information represented at different feature levels [26]. Compared with gradient- and trajectory-based formulations, distribution matching generally avoids explicitly reproducing long model-training processes during synthetic-data optimization.
More recently, generative DD methods have introduced learned generative priors into the construction of distilled datasets [14,27]. Rather than optimizing every synthetic image independently, these methods use a generative model to capture the source-data distribution and produce compact training samples. Earlier approaches adopted GAN-based and VAE-based formulations [28,29], whereas more recent studies have increasingly employed diffusion models [13,30,31]. Diffusion-based DD methods guide the reverse sampling process using objectives designed to improve the representativeness, informativeness, or diversity of the generated samples. This formulation provides a flexible mechanism for controlling sample generation and has shown promising performance on natural-image benchmarks.
2.2. Dataset Distillation in Medical Imaging
Dataset distillation has also been investigated for medical image analysis and data sharing. Soft-label gastric X-ray image distillation constructs compact synthetic representations that transfer task-relevant information without directly distributing the complete source dataset [10]. Subsequent work extends this formulation to compressed gastric image generation and studies how distilled data can support model training between data contributors and recipients [16,32]. More recent studies have evaluated the feasibility of DD across different medical imaging tasks and datasets [18]. High-order progressive trajectory matching further adapts training-dynamics matching to medical image dataset distillation by incorporating higher-order information from model-training trajectories [33].
Generative approaches provide another direction for constructing compact and shareable medical datasets. MedSynth, for example, uses a generative model to encode information from a source medical dataset and generate representative samples for downstream model training [34]. Together with compressed medical image generation [32], these studies demonstrate the potential of generative models for reducing the amount of medical data that must be directly transferred.
Despite this progress, generative DD for medical imaging remains less extensively studied than its natural-image counterpart. In particular, the effects of classifier-derived guidance during diffusion sampling have not been systematically investigated in medical dataset distillation. It remains unclear how guidance objectives that promote target-class alignment or decision-boundary exploration affect downstream utility across medical imaging modalities, IPC budgets, and guidance strengths. The present study addresses this gap by investigating class-alignment and boundary-oriented guidance within a diffusion-based medical DD framework.
3. Preliminaries: Diffusion Models
Diffusion models generate samples by learning to reverse a progressive noising process. Denoising Diffusion Probabilistic Models (DDPMs) [35] define a forward process that gradually transforms a clean sample into Gaussian noise through a sequence of latent variables , where . Let and , where denotes the variance schedule. A noisy observation at timestep t can then be sampled directly as
The reverse process starts from and progressively recovers a sample from the data distribution. A noise-prediction network estimates the noise component contained in . Based on Equation (1), the corresponding prediction of the clean sample is
The family of reverse processes associated with DDIM sampling [12] can be expressed through the conditional distribution
where controls the stochasticity of the reverse process. Replacing the unknown with its prediction gives the following reverse update:
Different choices of define different sampling processes while using the same noise-prediction network. When matches the posterior variance of the forward process, the update recovers DDPM sampling. When for all t, the stochastic component in Equation (4) vanishes, and the reverse trajectory becomes deterministic for a fixed initial noise . This special case corresponds to the Denoising Diffusion Implicit Model (DDIM) [12], which can be trained using the standard DDPM objective.
Equation (4) shows that the predicted noise directly determines the reverse trajectory. Consequently, replacing it with a classifier-guided noise estimate can steer the generated sample toward features associated with a target class . The next section introduces the classifier-derived objectives used to construct this guided noise estimate.
4. Methodology
As illustrated in Figure 2, the proposed framework incorporates classifier-derived guidance into class-conditional DDIM sampling for medical dataset distillation. The guidance objectives serve two complementary roles: promoting alignment with the target class and encouraging exploration near classifier decision boundaries. The framework consists of four components: model pretraining, classifier-derived guidance objectives, guided DDIM sampling, and conditioning-label assignment.
Figure 2.
Overview of the proposed framework. A class-conditional diffusion model and a noise-conditioned guidance classifier are trained on the source training split. During DDIM sampling, the gradient of one of three classifier-derived objectives modifies the predicted noise. The resulting synthetic samples constitute a compact dataset for training a separate downstream classifier.
4.1. Pretraining
Let denote the source training dataset, where and represent the i-th training image and its class label, respectively. We first train a class-conditional diffusion model on . At diffusion timestep t, a noisy observation is constructed according to Equation (1). The noise-prediction network receives the noisy image, diffusion timestep, and class condition, and is optimized using
This objective trains the network to estimate the noise component at different diffusion timesteps while retaining information associated with the class condition.
We independently train a noise-conditioned guidance classifier on the same source training split. The classifier adopts the downsampling path and attention-pooling components of a U-Net-based architecture. It receives the noisy observation and the corresponding timestep embedding and is optimized using
The diffusion model and guidance classifier are trained independently. The guidance classifier is used only during reverse sampling and does not modify the training objective of the diffusion model. The guidance classifier is distinct from the downstream classifiers used to evaluate the compact datasets. During sampling, its parameters remain fixed, and gradients are computed with respect to the current noisy image rather than the classifier parameters. Independent pretraining does not itself prevent classifier errors or biases from influencing generation. We assess the classifier’s accuracy on clean real validation images and present an illustrative analysis of prediction–conditioning agreement for generated images in Section 5.2.
4.2. Classifier-Derived Guidance Objectives
We consider three classifier-derived guidance objectives with two functional roles. Classifier guidance (CG) promotes alignment with a specified target class, whereas entropy guidance (EG) and margin guidance (MG) encourage boundary-oriented sampling. Each objective is applied separately during the reverse process.
For a target class label , the CG objective is defined as
Maximizing this objective increases the probability assigned to the target class and guides the reverse trajectory toward features that the guidance classifier associates with . The EG objective is defined as
where C denotes the number of classes. Maximizing this objective increases the predictive entropy of the guidance classifier and encourages sampling in regions of high class uncertainty, which may lie near decision boundaries.
The MG objective is defined as
where
denote the classes with the highest and second-highest predicted probabilities, respectively. At each reverse timestep, these two classes are determined from the current classifier prediction before the gradient with respect to is computed. Maximizing reduces the probability gap between the two leading classes and encourages the trajectory to approach the corresponding decision boundary. Unlike EG, which considers uncertainty over the complete class distribution, MG focuses on the two most probable classes.
4.3. Guided DDIM Sampling
Let denote the selected guidance objective, where . At each reverse diffusion timestep, the guidance gradient is computed as
For all three objectives, the class-conditional diffusion model remains conditioned on throughout the reverse process. The guidance gradient modifies the diffusion model’s noise prediction as follows:
where s denotes the guidance strength. Setting recovers the unguided class-conditional DDIM baseline. The guided prediction of the clean sample is then calculated as
Let denote the retained diffusion timesteps, with and . For deterministic DDIM sampling, the update from to is
Classifier-derived guidance modifies only the reverse sampling trajectory and therefore does not require retraining the diffusion model. The same pretrained generator can consequently be used to evaluate different guidance objectives and strengths.
4.4. Label Assignment for Generated Samples
Each generated image requires a label for downstream training. We distinguish the conditioning label used during generation from the label subsequently assigned to the generated image. A predefined class label is supplied to the class-conditional diffusion model throughout sampling. This label specifies the intended class; it is not inherited from a particular source image, because sampling starts from Gaussian noise.
For CG, the guidance objective also promotes the same target class. EG and MG instead encourage predictive uncertainty while retaining the diffusion model’s class condition. We retain as the downstream training label to preserve this class-conditioned, boundary-oriented design. Replacing it with the guidance classifier’s top-1 prediction would make the assigned label directly dependent on the classifier being used to steer generation.
However, conditioning on does not guarantee that the final image preserves the intended class semantics. Retaining conditioning labels can therefore introduce label noise when generation departs from the intended class. Prediction–conditioning agreement is reported in Section 5.2 to examine the behavior of this labeling strategy. The complete guided sampling procedure is summarized in Algorithm 1.
We use training noise steps and deterministic DDIM updates (), with timestep respacing set to ddim250. In the notation of Section 3, for , corresponding to the zero-based implementation timesteps , which are visited in reverse order.
Algorithm 1 generates one labeled image. At each reverse timestep, the guidance classifier first provides the class-probability distribution. The selected guidance objective is evaluated using its definition in Equations (7)–(9), and its gradient modifies the noise prediction through Equation (12). CG increases the target-class probability, EG increases predictive entropy, and MG reduces the probability gap between the two leading classes. These objectives are applied separately, not combined within a sampling trajectory.
To construct a compact dataset with k images per class, the procedure is repeated k times for each of the C class conditions, producing image–label pairs. A separate downstream classifier is subsequently trained on this compact dataset. The pretrained diffusion model and guidance classifier are not updated during this downstream training.
| Algorithm 1 Classifier-derived guided DDIM sampling. |
|
4.5. Privacy Scope and Unaddressed Risks
The sharing workflow releases compact synthetic datasets rather than source images. Both pretrained models are learned from the source data, and the framework does not include differential privacy. Privacy assessment should examine source-image memorization and training-membership disclosure under the intended release setting, distinguishing access to synthetic images from access to model parameters. Differentially private training is a possible extension that would require privacy accounting for the data-dependent components of the pipeline.
5. Experiments
We analyze guidance-strength sensitivity on three medical imaging datasets using ResNet-18. We further evaluate the validation-selected COVID-19 Radiography configurations on the test subset using ResNet-18, ConvNet6, and ResNetAP-10. Table 1 summarizes the three datasets and the main experimental settings used in this study.
Table 1.
Dataset characteristics and experimental settings.
5.1. Experimental Datasets and Settings
- Datasets.
OCTMNIST [36,37] contains retinal optical coherence tomography images collected from 4686 adult patients at multiple medical centers, including the Shiley Eye Institute, the California Retinal Research Foundation, the Medical Center Ophthalmology Associates, Shanghai First People’s Hospital, and Beijing Tongren Eye Center. The dataset comprises 109,309 images from four diagnostic classes: 37,455 images of choroidal neovascularization, 11,598 images of diabetic macular edema, 8866 images of drusen, and 51,390 normal images. We retain the official training split of 97,477 images, including 33,484, 10,213, 7754, and 46,026 images from the four respective classes. The official validation and test splits contain 10,832 and 1000 images, respectively. These subsets are kept separate in the revised evaluation protocol.
BloodMNIST [36,38] contains microscopic images of peripheral blood cells collected from healthy individuals at the Core Laboratory of the Hospital Clinic of Barcelona. Expert clinical pathologists annotated 17,092 images from eight cell classes: 3329 neutrophils, 3117 eosinophils, 1218 basophils, 1214 lymphocytes, 1420 monocytes, 2895 immature granulocytes, 1551 erythroblasts, and 2348 platelets. We use the official training, validation, and test splits, containing 11,959, 1712, and 3421 images, respectively.
The COVID-19 Radiography dataset [39,40] contains chest X-ray images compiled by researchers and medical professionals from Qatar University and the University of Dhaka. It comprises 21,165 images from four classes: 3616 COVID-19-positive cases, 10,192 normal cases, 6012 cases with lung opacity, and 1345 cases with viral pneumonia. We retain the original training split of 16,933 images for diffusion-model and guidance-classifier training and Random Real subset construction. The remaining 4232 images are divided by class-stratified random sampling in an approximately 1:2 ratio into 1411 validation images and 2821 test images. The resulting split is fixed and shared by all compared methods.
- Evaluation protocol.
For the main comparisons, each compact dataset is evaluated over five downstream training runs, using the same five random seeds across methods. Test accuracy on the COVID-19 Radiography test subset with the validation-selected configurations is reported in Table 2. Table 3, Table 4 and Table 5 report the mean and sample standard deviation across five ResNet-18 runs, using each run’s highest validation accuracy. For each guidance objective and IPC budget, the COVID-19 Radiography strength with the highest mean validation accuracy is selected from Table 3. We evaluate the corresponding trained ResNet-18, ConvNet6, and ResNetAP-10 models on the COVID-19 Radiography test subset, using the same selected guidance strengths across all three architectures. For each downstream run, the checkpoint with the highest validation accuracy is used for test evaluation.
Table 2.
Test accuracy (%) on the COVID-19 Radiography dataset using guidance strengths selected on the ResNet-18 validation set. The same selected strengths are used across all three architectures. Results are the mean and sample standard deviation over five downstream runs. Boldface indicates the highest mean within each architecture and IPC setting.
Table 3.
Validation accuracy (%) across guidance strengths on COVID-19 Radiography using ResNet-18. Results are the mean and sample standard deviation over five downstream runs. Boldface indicates the highest mean within each guidance objective and IPC setting. Italicized rows report the sample standard deviation of the mean accuracies across the evaluated strengths.
Table 4.
Validation accuracy (%) across guidance strengths on OCTMNIST using ResNet-18. Results are the mean and sample standard deviation over five downstream runs. Boldface indicates the highest mean within each guidance objective and IPC setting. Italicized rows report the sample standard deviation of the mean accuracies across the evaluated strengths.
Table 5.
Validation accuracy (%) across guidance strengths on BloodMNIST using ResNet-18. Results are the mean and sample standard deviation over five downstream runs. Boldface indicates the highest mean within each guidance objective and IPC setting. Italicized rows report the sample standard deviation of the mean accuracies across the evaluated strengths.
The guidance-classifier checkpoints are model010000.pt for COVID-19 Radiography, model026000.pt for OCTMNIST, and model012000.pt for BloodMNIST. These retained pretrained weights are reused across the evaluated guidance objectives and strengths. We evaluate them on clean real validation images by supplying without adding noise, using the same image preprocessing pipeline as for classifier training. For generated images, prediction–conditioning agreement is the percentage whose predicted class matches the conditioning label. An illustrative comparison between prediction–conditioning agreement and downstream utility is reported in Section 5.2.
- Statistical analysis.
We additionally report 95% confidence intervals for the mean test accuracy using the sample standard deviation across five downstream runs and Student’s t distribution with four degrees of freedom. These intervals summarize downstream-training variability for the fixed compact datasets. Confidence intervals for all results in Table 2 are provided in Appendix A (Table A1).
- Implementation details.
The COVID-19 Radiography images are resized from to before diffusion-model and guidance-classifier training. We use the MedMNIST+ versions of OCTMNIST and BloodMNIST and resize them to for the same pretraining and generation pipeline. We evaluate the compact datasets using ConvNet6, ResNet-18, and ResNetAP-10. ResNet-18 is initialized using the ResNet18_Weights.IMAGENET1K_V1 weights provided by TorchVision. These weights were pretrained on ImageNet-1K and contain no training information from the medical datasets evaluated in this study. ConvNet6 and ResNetAP-10 are initialized from scratch. ResNetAP-10 is a 10-layer residual architecture in which average-pooling operations replace strided convolutions for spatial downsampling. All experiments are conducted on an NVIDIA RTX 6000 Ada Generation GPU with 48 GB of memory. For COVID-19 Radiography, downstream classifiers are trained for 100 epochs using Adam with an initial learning rate of , zero weight decay, and a batch size of 64. StepLR multiplies the learning rate by 0.1 every 10 epochs. Inputs are RGB images with pixel values scaled to . Training uses random cropping and horizontal flipping, whereas validation and test use center-crop preprocessing.
For the projected feature-space analysis, we extract 512-dimensional penultimate-layer features using a TorchVision ResNet-18 initialized with ResNet18_Weights.IMAGENET1K_V1. The final fully connected layer is replaced with an identity mapping, and feature extraction is performed in evaluation mode without gradient computation. All images are resized to and normalized using the ImageNet mean and standard deviation. Features from real images, unguided synthetic samples, and all guided groups are concatenated before fitting a joint UMAP projection. Kernel density estimation is then applied separately to each group in the shared projected space. UMAP is configured with n_neighbors=15, min_dist=0.1, metric="cosine", and random_state=42. For each group, Gaussian kernel density estimation with Scott’s bandwidth is evaluated on a grid covering the corresponding projected bounding box, with padding equal to one coordinate span. Dashed contours are drawn at 10% of the peak density for real samples and 30% for generated samples. Regions above the corresponding thresholds are displayed using semi-transparent fills.
- Experimental settings.
To examine performance under different IPC budgets, we generate 5, 10, 20, and 50 images per class (IPC) for downstream classifier training. We compare the guided synthetic datasets with two reference settings. The first is an unguided class-conditional DDIM baseline that uses the same pretrained diffusion model without classifier-derived guidance. The second is a class-balanced Random Real subset. For each dataset and IPC budget k, the Random Real subset is constructed by sampling k images per class without replacement from the source training split. It therefore contains the same number of training images as the corresponding synthetic dataset.
For each guidance configuration, one synthetic dataset is generated using random seed 1000. The Random Real subsets and synthetic datasets are evaluated using identical image resolutions, preprocessing operations, data augmentations, downstream architectures, optimizers, learning-rate schedules, and training epochs. The downstream classifiers are trained for 100, 125, and 75 epochs on the COVID-19 Radiography, OCTMNIST, and BloodMNIST datasets, respectively.
5.2. Experimental Results
Table 2 reports COVID-19 Radiography test performance using guidance strengths selected on the ResNet-18 validation set and shared across architectures. With ResNet-18, all three objectives improve the mean over No Guidance at IPC , 10, and 20, but not at IPC . At IPC , CG raises mean accuracy from 55.20% to 66.39%. Random Real remains highest at IPC and 50.
With ConvNet6, CG exceeds both reference methods at IPC , 10, and 20. At IPC , EG provides a small mean gain over No Guidance but remains below Random Real.
ResNetAP-10 shows a different pattern: all selected objectives improve on No Guidance at IPC but fall below it at IPC . EG has the highest overall mean at IPC (62.62%), and CG provides a small mean gain over No Guidance at IPC . Random Real leads at IPC and 50. These differences indicate architecture-dependent transfer of the selected configurations.
For ResNet-18 at IPC , the 95% confidence intervals for the mean test accuracy are [62.61, 70.17]% for CG and [52.54, 57.86]% for No Guidance. At IPC , the corresponding intervals are [74.93, 80.69]% for MG and [76.15, 80.84]% for No Guidance.
Using ResNet-18 as the common downstream architecture, Table 3, Table 4 and Table 5 compare validation accuracy across guidance strengths and IPC budgets on the three datasets. These results characterize configuration sensitivity, while Table 2 separately reports the test performance of validation-selected configurations on COVID-19 Radiography.
- Guidance-classifier diagnostics.
On clean real validation images evaluated at , the guidance classifiers achieve accuracies of 81.36%, 94.52%, and 96.14% on COVID-19 Radiography, OCTMNIST, and BloodMNIST, respectively. On COVID-19 Radiography, class-wise accuracy ranges from 70.5% for COVID-19 images to 88.7% for normal images, indicating class-dependent prediction errors.
Prediction–conditioning agreement does not necessarily rank synthetic datasets by downstream utility. For example, at IPC on BloodMNIST, CG with has agreement of 94.2%, compared with 74.0% for MG with . Their corresponding downstream validation accuracies are 69.75% and 93.76%, respectively. Thus, closer agreement with the guidance classifier alone is insufficient to infer higher downstream training utility.
- Downstream learning dynamics.
Figure 3 compares the downstream ResNet-18 learning curves for No Guidance and CG with on COVID-19 Radiography at IPC , over five runs. Training loss decreases rapidly for both configurations. No Guidance validation accuracy initially improves but declines later, whereas CG maintains a higher validation level in the later stages. The loss and validation trends are consistent with overfitting to the unguided compact dataset in this representative comparison.
Figure 3.
Downstream ResNet-18 learning dynamics on COVID-19 Radiography at IPC , comparing No Guidance and CG with over five runs. The upper panel shows validation accuracy, and the lower panel shows training loss on a logarithmic scale. Thin lines show individual runs, thick lines show their means, and the shaded bands in the upper panel indicate one standard deviation across runs. Means and standard deviations are calculated across runs at each plotted epoch.
5.3. Sensitivity to Guidance Objective and Strength
For IPC , 10, 20, and 50, the COVID-19 Radiography strengths selected from the ResNet-18 validation results are 30, 20, 5, and 30 for CG; 5, 3, 1, and 5 for EG; and 5, 10, 3, and 3 for MG. The across-strength standard deviation summarizes variation among the mean validation accuracies of the candidate strengths, separately from run-to-run variability.
On OCTMNIST, CG is the strongest guided objective at IPC , whereas EG is strongest at IPC , 20, and 50. At least one guided configuration exceeds both reference means at IPC , 10, and 50, but all evaluated guided configurations remain below both references at IPC . On BloodMNIST, EG is strongest at IPC and MG at the larger budgets. The best guided configurations improve on No Guidance, while Random Real remains highest throughout.
Figure 4 illustrates substantial CG-strength sensitivity on OCTMNIST at IPC , with an across-strength standard deviation of percentage points; accuracy varies non-monotonically across the evaluated strengths. The accompanying changes in feature-space organization are shown in Figure 5 and discussed in Section 6.3. Figure 6 and Figure 7 present the corresponding strength-sensitivity and feature-space results for BloodMNIST ( percentage points), where accuracy decreases overall as strength increases. Boundary-oriented guidance can also be sensitive, as shown by OCTMNIST MG ( percentage points).
Figure 4.
Sensitivity of OCTMNIST to CG strength at IPC . Curves show the mean validation accuracy and sample standard deviation over five downstream runs. Horizontal bands indicate the corresponding validation results for Random Real and No Guidance, and the insets show illustrative generated samples.
Figure 5.
Joint UMAP projection of real and generated OCTMNIST features for the drusen class at IPC . Dashed contours show kernel-density level sets, and the markers indicate the corresponding centroids.
Figure 6.
Sensitivity of BloodMNIST to CG strength at IPC . Curves show the mean validation accuracy and sample standard deviation over five downstream runs. Horizontal bands indicate the corresponding validation results for Random Real and No Guidance, and the insets show illustrative generated samples.
Figure 7.
Joint UMAP projection of real and generated BloodMNIST features for the erythroblast class at IPC . Dashed contours show kernel-density level sets, and the markers indicate the corresponding centroids.
6. Discussion
The comparison with No Guidance evaluates the contribution of classifier-derived sampling, whereas Random Real measures the gap between compact synthetic and equally sized real training sets. The framework provides additional control over synthetic-data composition; its practical value depends on the observed downstream benefit and the costs of pretraining and generation. When real images can be used directly, Random Real remains an important alternative.
6.1. Class Alignment Versus Boundary Exploration
CG, EG, and MG impose different preferences on the sampling trajectory. CG promotes target-class alignment, whereas EG and MG encourage different forms of predictive uncertainty. Their downstream utility may therefore depend on class structure, the composition of the compact dataset, and the downstream model’s ability to learn from the resulting examples. Prediction–conditioning agreement has different interpretations across objectives. CG directly increases the target-class log probability under the same classifier used for this diagnostic, so high agreement measures alignment with that classifier rather than independent label verification. EG and MG promote uncertainty instead of directly maximizing target-class probability. Their downstream benefit therefore need not arise from higher conditioning-label agreement, as illustrated by the BloodMNIST comparison in Section 5.2.
These considerations provide possible explanations for configuration-dependent performance, rather than a rule that predicts the optimal objective or strength in advance. We consequently use a fixed validation-based selection procedure instead of assuming a universally optimal setting. Moreover, the architecture comparisons also differ in initialization: ResNet-18 uses ImageNet-pretrained weights, whereas ConvNet6 and ResNetAP-10 are trained from scratch. Differences between these models cannot therefore be attributed solely to architecture.
6.2. Influence of Guidance Strength and IPC
Equation (12) shows that guidance strength scales the classifier-derived correction to the predicted noise. Increasing this strength gives the selected classifier objective greater influence over the reverse trajectory.
A plausible failure mechanism is that excessive guidance overemphasizes features favored by the guidance classifier while weakening the balance with the class-conditional generative prediction. This may reduce sample diversity, amplify classifier-specific errors, or damage visually distinguishable structures. The image and feature-space analyses can identify patterns consistent with these possibilities.
At low IPC, each generated image accounts for a larger fraction of the downstream training set, making performance more sensitive to atypical samples. Larger budgets can broaden sample coverage, but the benefit of guidance remains architecture-dependent. At IPC on COVID-19 Radiography, none of the selected objectives increases the mean accuracy over No Guidance with ResNet-18, whereas EG and CG yield small mean gains with ConvNet6 and ResNetAP-10, respectively.
6.3. Feature-Space Behavior
The projected feature-space analysis provides a qualitative view of how CG strength changes the representation of generated samples. In the displayed OCTMNIST projection, the generated region is narrow at and expands again at , indicating non-monotonic changes across the sampled configurations. BloodMNIST exhibits a more pronounced failure mode, in which high CG strength is associated with feature concentration, displacement from the real-feature centroid, and loss of distinguishable cellular structure.
These observations indicate that classifier-derived guidance can substantially alter the samples produced during reverse diffusion. However, stronger control does not necessarily produce greater downstream utility. The appropriate guidance strength depends on the visual and class structure of the dataset as well as the available IPC budget. This dependence is particularly relevant to medical dataset distillation, where compact training sets must retain subtle class-specific structures. These projections characterize similarity in the selected feature space, while modality-specific expert review would provide complementary evidence on anatomical and class-related plausibility.
6.4. Proposed Expert Validation Protocol
The present experiments assess the utility of synthetic images for downstream classification, rather than readiness for clinical deployment. Direct expert assessment would provide complementary evidence on whether the generated images preserve medically plausible structures and remain consistent with their conditioning labels.
We propose a blinded review with a prespecified, class-stratified sample of real images and synthetic images from No Guidance, CG, EG, and MG. The sample should include both validation-selected configurations and high-strength configurations to examine potential failure modes. Images would be presented in randomized order without identifying their source or generation method. Modality-appropriate readers would include radiologists for chest radiographs, ophthalmic imaging experts for retinal OCT, and hematology or pathology experts for blood-cell microscopy.
Readers would first assess structural plausibility, visible artifacts, and interpretability without seeing the conditioning label. Their independent class or morphology assessments could then be compared with the intended labels, allowing an uncertain or non-assessable response. For BloodMNIST, the emphasis would be on cell morphology and cell-type consistency rather than disease diagnosis. Sample size, rating criteria, and the analysis of inter-reader agreement would be specified before review.
This protocol is proposed for future validation and has not been implemented in the present study.
6.5. Limitations and Future Work
The evaluation is limited to public two-dimensional classification datasets. Five downstream runs are performed for each fixed generated dataset, so the reported uncertainty concerns downstream training rather than variation across independently generated datasets. ResNet-18 uses pretrained initialization, whereas ConvNet6 and ResNetAP-10 are trained from scratch; the architecture comparisons therefore combine architectural and initialization differences.
The reported COVID-19 Radiography test results use validation-selected configurations, while the OCTMNIST and BloodMNIST results characterize validation sensitivity. The COVID-19 Radiography test subset was included in the earlier combined evaluation, making the present separation a retrospective protocol revision. Evaluation on previously unused data remains future work.
Guidance-classifier diagnostics are restricted to clean-image predictions and do not directly assess error propagation along noisy sampling trajectories. Empirical privacy evaluation and the proposed expert review remain future work, together with independent generation repeats and external validation.
7. Conclusions
This study investigated classifier-derived guidance for diffusion-based medical dataset distillation. The proposed framework uses gradients derived from a pretrained noise-conditioned classifier to modify the reverse diffusion trajectory. Classifier guidance (CG) promotes alignment with the target class, whereas entropy and margin guidance encourage boundary-oriented sampling. The revised COVID-19 Radiography test results show that validation-selected guidance improves mean accuracy in several low-IPC settings, while its gains vary with the downstream architecture and IPC budget. The three-dataset validation analysis also identifies objective-dependent and strength-dependent operating regimes. Classifier diagnostics show that closer conditioning-label agreement does not necessarily imply higher downstream utility, and the representative downstream learning curves distinguish low training loss from sustained validation performance. The findings concern synthetic-data training utility in the evaluated settings; direct clinical validation and privacy evaluation remain future work.
Author Contributions
Conceptualization, S.D., G.L., R.T., T.O. and M.H.; methodology, S.D., G.L. and R.T.; software, S.D.; validation, S.D.; data curation, S.D.; writing—original draft preparation, S.D.; writing—review and editing, G.L., R.T. and T.O.; supervision, G.L., R.T., T.O. and M.H.; funding acquisition, G.L., R.T., T.O. and M.H. All authors have read and agreed to the published version of the manuscript.
Funding
This work was partly supported by AMED Grant Number JP266f0137006 and JSPS KAKENHI Grant Numbers JP24K02942 and JP25K21218.
Institutional Review Board Statement
Ethical review and approval were not required because this study used only publicly available, de-identified datasets and involved no new participant recruitment or data collection.
Informed Consent Statement
Not applicable because no new participant data were collected in this study.
Data Availability Statement
The source datasets used in this study are publicly available from the MedMNIST/MedMNIST+ repository and the COVID-19 Radiography Database at the sources cited in this article. The generated compact datasets, data-split files, training configurations, and evaluation scripts are available from the corresponding author upon reasonable request.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Yu, K.H.; Healey, E.; Leong, T.Y.; Kohane, I.S.; Manrai, A.K. Medical Artificial Intelligence and Human Values. N. Engl. J. Med. 2024, 390, 1895–1904. [Google Scholar] [CrossRef] [Scilit]
- Gou, F.; Liu, J.; Xiao, C.; Wu, J. Research on Artificial-Intelligence-Assisted Medicine: A Survey on Medical Artificial Intelligence. Diagnostics 2024, 14, 1472. [Google Scholar] [CrossRef] [Scilit]
- Xu, Y.; Jiang, Z.; Ting, D.S.W.; Kow, A.W.C.; Bello, F.; Car, J.; Tham, Y.C.; Wong, T.Y. Medical Education and Physician Training in the Era of Artificial Intelligence. Singap. Med. J. 2024, 65, 159–166. [Google Scholar] [CrossRef] [Scilit]
- Cross, J.L.; Choma, M.A.; Onofrey, J.A. Bias in Medical AI: Implications for Clinical Decision-Making. PLoS Digit. Health 2024, 3, e0000651. [Google Scholar] [CrossRef] [Scilit]
- Ziller, A.; Mueller, T.T.; Stieger, S.; Feiner, L.F.; Brandt, J.; Braren, R.; Rueckert, D.; Kaissis, G. Reconciling Privacy and Accuracy in AI for Medical Imaging. Nat. Mach. Intell. 2024, 6, 764–774. [Google Scholar] [CrossRef] [Scilit]
- Wang, T.; Zhu, J.Y.; Torralba, A.; Efros, A.A. Dataset Distillation. arXiv 2018, arXiv:1811.10959. [Google Scholar]
- Li, G.; Zhao, B.; Wang, T. Awesome Dataset Distillation. 2022. Available online: https://github.com/Guang000/Awesome-Dataset-Distillation (accessed on 27 August 2026).
- Zhao, B.; Mopuri, K.R.; Bilen, H. Dataset Condensation with Gradient Matching. In Proceedings of the International Conference on Learning Representations, Virtual Event, 3–7 May 2021. [Google Scholar]
- Zhao, B.; Bilen, H. Dataset Condensation with Differentiable Siamese Augmentation. In Proceedings of the International Conference on Machine Learning, Virtual, 18–24 July 2021; pp. 12674–12685. [Google Scholar]
- Li, G.; Togo, R.; Ogawa, T.; Haseyama, M. Soft-Label Anonymous Gastric X-Ray Image Distillation. In Proceedings of the IEEE International Conference on Image Processing; IEEE: New York, NY, USA, 2020; pp. 305–309. [Google Scholar] [CrossRef] [Scilit]
- Goodfellow, I.J.; Pouget-Abadie, J.; Mirza, M.; Xu, B.; Warde-Farley, D.; Ozair, S.; Courville, A.; Bengio, Y. Generative Adversarial Nets. Adv. Neural Inf. Process. Syst. 2014, 27, 2672–2680. [Google Scholar]
- Song, J.; Meng, C.; Ermon, S. Denoising Diffusion Implicit Models. In Proceedings of the International Conference on Learning Representations, Vienna, Austria, 4–8 May 2021. [Google Scholar]
- Su, D.; Wu, H.; Chen, H.; Shi, Y.; Wang, Y.; Ye, X.; Zhu, J. Diffusion Models as Dataset Distillation Priors. In Proceedings of the International Conference on Learning Representations, Rio de Janeiro, Brazil, 23–27 April 2026. [Google Scholar]
- Gu, J.; Vahidian, S.; Kungurtsev, V.; Wang, H.; Jiang, W.; You, Y.; Chen, Y. Efficient Dataset Distillation via Minimax Diffusion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2024; pp. 15793–15803. [Google Scholar] [CrossRef] [Scilit]
- Luo, Y.; Hu, T.; Sun, J.; Cai, Y.; Tang, J. Learning Few-Step Diffusion Models by Trajectory Distribution Matching. In Proceedings of the IEEE/CVF International Conference on Computer Vision; IEEE: New York, NY, USA, 2025; pp. 17719–17728. [Google Scholar] [CrossRef] [Scilit]
- Li, G.; Togo, R.; Ogawa, T.; Haseyama, M. Dataset Distillation for Medical Dataset Sharing. In Proceedings of the AAAI Workshop on Representation Learning for Responsible Human-Centric AI, Washington, DC, USA, 13 February 2023; pp. 1–6. [Google Scholar]
- Morra, L.; Piano, L.; Lamberti, F.; Tommasi, T. Bridging the Gap between Natural and Medical Images through Deep Colorization. In Proceedings of the International Conference on Pattern Recognition, Milan, Italy, 10–15 January 2021; pp. 835–842. [Google Scholar] [CrossRef] [Scilit]
- Li, M.; Cui, C.; Liu, Q.; Deng, R.; Yao, T.; Lionts, M.; Huo, Y. Dataset Distillation in Medical Imaging: A Feasibility Study. In Proceedings of the Medical Imaging: Image Perception, Observer Performance, and Technology Assessment, San Diego, CA, USA, 16–19 February 2025; Volume 13409, pp. 172–179. [Google Scholar] [CrossRef] [Scilit]
- Luo, Y.; Yang, Q.; Fan, Y.; Qi, H.; Xia, M. Measurement Guidance in Diffusion Models: Insight from Medical Image Synthesis. IEEE Trans. Pattern Anal. Mach. Intell. 2024, 46, 7983–7997. [Google Scholar] [CrossRef] [Scilit]
- Kim, J.H.; Kim, J.; Oh, S.J.; Yun, S.; Song, H.; Jeong, J.; Ha, J.W.; Song, H.O. Dataset Condensation via Efficient Synthetic-Data Parameterization. In Proceedings of the International Conference on Machine Learning, Baltimore, MD, USA, 17–23 July 2022; pp. 11102–11118. [Google Scholar]
- Cazenavette, G.; Wang, T.; Torralba, A.; Efros, A.A.; Zhu, J.Y. Dataset Distillation by Matching Training Trajectories. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2022; pp. 10718–10727. [Google Scholar] [CrossRef] [Scilit]
- Du, J.; Jiang, Y.; Tan, V.Y.; Zhou, J.T.; Li, H. Minimizing the Accumulated Trajectory Error to Improve Dataset Distillation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2023; pp. 3749–3758. [Google Scholar] [CrossRef] [Scilit]
- Shin, S.; Bae, H.; Shin, D.; Joo, W.; Moon, I.C. Loss-Curvature Matching for Dataset Selection and Condensation. In Proceedings of the International Conference on Artificial Intelligence and Statistics, Valencia, Spain, 25–27 April 2023; pp. 8606–8628. [Google Scholar]
- Zhao, B.; Bilen, H. Dataset Condensation with Distribution Matching. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision; IEEE: New York, NY, USA, 2023; pp. 6514–6523. [Google Scholar] [CrossRef] [Scilit]
- Zhao, G.; Li, G.; Qin, Y.; Yu, Y. Improved Distribution Matching for Dataset Condensation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2023; pp. 7856–7865. [Google Scholar] [CrossRef] [Scilit]
- Zhang, H.; Li, S.; Lin, F.; Wang, W.; Qian, Z.; Ge, S. DANCE: Dual-View Distribution Alignment for Dataset Condensation. In Proceedings of the International Joint Conference on Artificial Intelligence, Jeju, Republic of Korea, 3–9 August 2024; pp. 1679–1687. [Google Scholar] [CrossRef] [Scilit]
- Zou, L.; Chen, G.; Chen, Y.; Zhang, M. Enhancing Diffusion-Based Dataset Distillation via Adversary-Guided Curriculum Sampling. In Proceedings of the IEEE International Conference on Multimedia and Expo; IEEE: New York, NY, USA, 2025; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
- Zhao, B.; Bilen, H. Synthesizing Informative Training Samples with GAN. arXiv 2022, arXiv:2204.07513. [Google Scholar]
- Lee, H.B.; Lee, D.B.; Hwang, S.J. Dataset Condensation with Latent Space Knowledge Factorization and Sharing. arXiv 2022, arXiv:2208.10494. [Google Scholar]
- Li, M.; Li, G.; Mao, J.; Ye, L.; Ogawa, T.; Haseyama, M. Task-Specific Generative Dataset Distillation with Difficulty-Guided Sampling. In Proceedings of the IEEE/CVF International Conference on Computer Vision Workshops; IEEE: New York, NY, USA, 2025; pp. 6853–6860. [Google Scholar] [CrossRef] [Scilit]
- Ye, L.; Hamidi, S.M.; Li, G.; Ogawa, T.; Haseyama, M.; Plataniotis, K.N. Information-Guided Diffusion Sampling for Dataset Distillation. In Proceedings of the NeurIPS Workshop on Structured Probabilistic Inference & Generative Modeling, San Diego, CA, USA, 6 December 2025. [Google Scholar]
- Li, G.; Togo, R.; Ogawa, T.; Haseyama, M. Compressed Gastric Image Generation Based on Soft-Label Dataset Distillation for Medical Data Sharing. Comput. Methods Programs Biomed. 2022, 227, 107189. [Google Scholar] [CrossRef] [Scilit]
- Dong, L.; Bian, J.; Hou, J.; Hu, J.; Shi, Y.; Dong, W.; Zhu, X.X.; Mou, L. High-Order Progressive Trajectory Matching for Medical Image Dataset Distillation. In Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention; Springer: Cham, Switzerland, 2025; Volume 15973, pp. 273–283. [Google Scholar] [CrossRef] [Scilit]
- Kanagavelu, R.; Walia, M.; Wang, Y.; Fu, H.; Wei, Q.; Liu, Y.; Goh, R.S.M. MedSynth: Leveraging Generative Model for Healthcare Data Sharing. In Proceedings of the International Conference on Medical Image Computing and Computer-Assisted Intervention; Springer: Cham, Switzerland, 2024; Volume 15012, pp. 654–664. [Google Scholar] [CrossRef] [Scilit]
- Ho, J.; Jain, A.; Abbeel, P. Denoising Diffusion Probabilistic Models. Adv. Neural Inf. Process. Syst. 2020, 33, 6840–6851. [Google Scholar]
- Yang, J.; Shi, R.; Wei, D.; Liu, Z.; Zhao, L.; Ke, B.; Pfister, H.; Ni, B. MedMNIST v2: A Large-Scale Lightweight Benchmark for 2D and 3D Biomedical Image Classification. Sci. Data 2023, 10, 41. [Google Scholar] [CrossRef] [Scilit]
- Kermany, D.S.; Goldbaum, M.; Cai, W.; Valentim, C.C.; Liang, H.; Baxter, S.L.; McKeown, A.; Yang, G.; Wu, X.; Yan, F.; et al. Identifying Medical Diagnoses and Treatable Diseases by Image-Based Deep Learning. Cell 2018, 172, 1122–1131. [Google Scholar] [CrossRef] [Scilit]
- Acevedo, A.; Merino, A.; Alférez, S.; Molina, Á.; Boldú, L.; Rodellar, J. A Dataset of Microscopic Peripheral Blood Cell Images for Development of Automatic Recognition Systems. Data Brief 2020, 30, 105474. [Google Scholar] [CrossRef] [Scilit]
- Chowdhury, M.E.H.; Rahman, T.; Khandakar, A.; Mazhar, R.; Kadir, M.A.; Mahbub, Z.B.; Islam, K.R.; Khan, M.S.; Iqbal, A.; Emadi, N.A.; et al. Can AI Help in Screening Viral and COVID-19 Pneumonia? IEEE Access 2020, 8, 132665–132676. [Google Scholar] [CrossRef] [Scilit]
- Rahman, T.; Khandakar, A.; Qiblawey, Y.; Tahir, A.; Kiranyaz, S.; Abul Kashem, S.B.; Islam, M.T.; Al Maadeed, S.; Zughaier, S.M.; Khan, M.S.; et al. Exploring the Effect of Image Enhancement Techniques on COVID-19 Detection Using Chest X-Ray Images. Comput. Biol. Med. 2021, 132, 104319. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.






