Manuscript Offprint
arXiv:2611.00908ZOPGA-KD: Zeroth Order PGA Guided Data Free Knowledge Distillation
Abstract
Knowledge distillation (KD) enables the transfer of learned representations from a large teacher network to a small student network. In the foundational KD, the student network uses the original training data of the teacher model to accomplish this task. However, due to privacy concerns, the original training data is often not available. To overcome this reliance on original training data, there have been several data-free knowledge distillation methods developed. Some of these methods operate in the "white-box" setting, and a few methods generate synthetic data by training a generator network. The methods that operate in white-box settings use the parameters of the teacher model to obtain a synthetic dataset. To avoid relying on teacher parameters, some methods use computationally expensive generative approaches to obtain such a dataset. There also exist certain black-box methods that generate the synthetic data without accessing teacher parameters. This method also is computationally intensive. We propose a data-free knowledge distillation method that utilizes just the teacher's output logits and does not require access to its architecture, parameters, or gradients. We generate synthetic data via Projected Gradient Ascent (PGA) starting from smooth random noise signals. Required gradients are obtained through zeroth-order gradient estimation rather than backpropagating through the teacher's parameters. The student is then trained on these synthetically generated samples. We evaluate the proposed method on several benchmark datasets and show that the distillation performance is comparable with approaches that have access to the teacher model parameters.
1 Introduction
Knowledge distillation (KD) is a framework in which the knowledge learned by a large complex network is transferred to a smaller network. The large network is referred to as the "Teacher", while the smaller network is referred to as the "Student". The teacher model delivers strong performance in its intended domain. However, its size and complexity result in a large number of parameters, making it memory-intensive and computationally slow. This makes its deployment challenging in a practical scenario. The student model, on the other hand, is much smaller and faster, making it easier to deploy.
The original work by Hinton, Vinyals, and Dean (2015) recommends using the original data (used to train the teacher) while distilling knowledge to the student. But due to privacy concerns and/or data regulations, in a few settings, the original data may not be available for public use. This gives rise to the paradigm of data-free knowledge distillation (DFKD), which does not use the original training data for KD. Instead, the KD is performed on a synthetic dataset. However, an arbitrary dataset cannot be used; the distribution of the synthetic dataset should closely approximate the distribution of the original data. One of the seminal works (Yin et al. 2020) in this direction makes use of teacher network batch-norm statistics to synthesize the dataset. Nayak et al. (2019) use the weights of the final layer, and Wang (2021a) utilize the weights of all the layers of the teacher to construct the synthetic dataset. Since these methods need access to the teacher's parameters, they are generally referred to as "white-box" methods. In certain scenarios, we neither have access to the teacher's parameters nor the architecture. In such cases, the only way to interact with the model is to query the teacher with some inputs and record the outputs. To facilitate DFKD in such a "black-box" setting, several works (Micaelli and Storkey 2019; Truong et al. 2021; Hong et al. 2025; Chen et al. 2019; Kariyappa, Prakash, and Qureshi 2021; Fang et al. 2022; Zhang, Chen, and Lyu 2022; Fang et al. 2019; Braun, Mundt, and Kersting 2024) employ generative frameworks to obtain the synthetic dataset. However, these approaches introduce an additional overhead since a generator network has to be trained explicitly.
Wang (2021b) proposed a black-box method that generates synthetic data by pushing random noise signals away from the teacher's decision boundaries. The required soft labels are constructed using the concept of robustness, which they obtain by calculating the distance of the samples from decision boundaries. This method, however, is also computationally expensive since it requires 4000 million queries (Yuan et al. 2024).
In this work, we explore an efficient black-box, generator-free method called ZOPGA-KD, which uses only the output logits of the teacher; no other information about the teacher, such as parameters or architecture, is used. To be concrete, we generate the synthetic dataset using Projected Gradient Ascent (PGA) in the input space, starting from the random noise signals. We avoid backpropagation through the teacher by zeroth-order gradient approximation (Nesterov and Spokoiny 2017). The generated samples, aided by data augmentation, are then used to train the student using the Mean Squared Er-
Stage 1: ZO-PGA synthesis

Figure 1: End-to-end data-free knowledge distillation pipeline. In Stage 1, the teacher is accessed only through forward queries (finite differences) to synthesize a soft-labeled transfer set from noise; in Stage 2 the student is trained on this synthetic set using knowledge distillation with MSE loss function.
ror (MSE) instead of Kullback–Leibler (KL) divergence as suggested in Kim et al. (2021). We demonstrate the efficacy of our method by applying it to several teacher and student architectures across various benchmark datasets. We compare ZOPGA-KD results with state-of-the-art, generator free, white-box and black-box methods. Note that Zeroth order optimization is previously used in generator based methods of DFKD (Kariyappa, Prakash, and Qureshi (2021), Truong et al. (2021)) to update the parameters of the generator. We highlight our contributions as follows:
-
We propose a generator-free, black-box, DFKD method (“ZOPGA-KD”) which performs KD by generating synthetic datasets through PGA on the input space using zeroth-order gradient approximation. This method avoids both the need for the original data and access to the parameters/architecture of the teacher network. Wang (2021b) also uses zeroth order optimization on the input space, operating in the hard-label setting. They start from random noise signals and iteratively push them away from the estimated decision boundaries. The soft-label for each of the samples is approximated by measuring its distance from the relevant decision boundaries, which is an iterative procedure. This method incurs a high computational cost, requires a large number of queries, and is challenging to extend to more complex datasets such as CIFAR-100 and TinyImageNet (Yuan et al. 2024).
-
We show that the simple mean squared error (MSE) loss effectively performs the knowledge distillation.
-
By applying the proposed method on various standard architectures and datasets, we demonstrate the feasibility of our approach by comparing with most of the existing works in the literature.
after applying the softmax function, gives the softmax vector with components . Let us denote the teacher and the student networks by and , respectively. Given an input , the teacher's output softmax vector not only tells us about the class that belongs to but also gives information about the relative similarity between the classes, the so-called “dark knowledge”. To exploit this dark knowledge, the student is trained to approximate the distribution of the softmax vectors of the teacher. This is accomplished by minimizing the KL divergence:
where is the number of training samples and is the number of classes. However, for most inputs, the softmax vector has one dominant component (close to 1) while others are very small. In that case, the loss in Eq. (1) reduces to the usual cross-entropy, in which the teacher provides the hard labels. To cure this, the softmax probabilities are softened by scaling the raw logits with temperature as .
In Hinton, Vinyals, and Dean (2015), original training data is utilized for the distillation process. Therefore, they have also added the cross-entropy term to the loss function, giving the total loss for the student network
where is the one-hot encoding vector of the true label for the sample . for the input sample . It turns out that training the student with the loss in Eq. (2) is much more efficient than training only with the hard labels (through the cross-entropy loss).
Due to privacy or security regulations, the original training data may be unavailable. This calls for data-free knowledge distillation (DFKD). The existing literature can be broadly classified into two categories according to the teacher information used during distillation: (a) white-box methods, which require the teacher's parameters, gradients, or architectural details, and (b) black-box methods, which access only the teacher's output logits.
White-box methods for DFKD
The work of Yin et al. (2020) proposes “deepInversion”, which synthesizes images by starting with random images and nudging them towards realistic images by minimizing the cost function
where is the input image and is the one-hot encoding vector for the training sample. Here, is the regularizer, which is responsible for the realistic nature of the images. It penalizes the images for which the layer-wise feature statistics differ from those of the original data. The statistics of the original data are estimated by the batch-norm statistics of the teacher stored in its batch-norm layers. In the same work, they have also developed a variation of deepInversion (known as “adaptive deepInversion”) that uses a generator to synthesize images that cause the teacher to disagree with the student.
In Chen et al. (2019), the authors use a generator to produce images whose distribution is closer to the original distribution. They achieve this by defining a generator loss that encourages (a) one-hot-like teacher softmax vectors, (b) high norms for feature vectors in the layer before the fully connected layer, and (c) a balanced dataset. The student is trained by KL divergence on the synthetic data.
Nayak et al. (2019) (“ZSKD”) obtained the synthetic data by using the weights of the final fully connected layer of the teacher. They modeled the distribution of the softmax vectors for class i as a Dirichlet distribution, , where is a concentration-parameter vector that determines the similarity of class i to the other classes. In ZSKD, the vectors are determined from vectors whose j-th component is
Here, is the vector of weights connecting the penultimate layer to the i-th neuron of the final layer. The intuition is that captures the relative similarity of classes i and j as perceived by the teacher. To generate the data ( ), they sampled softmax vectors from and solved the following equation:
The student is trained on the generated synthetic dataset using KL divergence between the student and the teacher.
Wang (2021a) takes a similar approach to that of ZSKD but uses a multivariate Gaussian distribution to model the softmax distribution. They also use the weight vectors from all layers, rather than only the final layer, for better estimation. Additionally, they try to maximize the norm of the output feature maps for all layers by incorporating a regularizer to the loss function, similar to Chen et al. (2019).
Black-box methods for DFKD
In this section, we will discuss some of the DFKD methods in the black-box setting.
In the work of Kariyappa, Prakash, and Qureshi (2021), DFKD is performed by training a generator together with the student. Starting from random noise vectors , the generator G produces images that are given as input to both the teacher and the student networks. During training, the student parameters are updated to produce outputs that match the teacher, while the generator is trained to produce images for which the student disagrees with the teacher. To update the generator parameters , the gradient of the generator loss factors as
The gradient is calculated via zeroth-order gradient approximation, which does not require the teacher gradients. Truong et al. (2021) uses the same method as Kariyappa et al., except that mean absolute error (MAE) is used as the loss function for student training.
The work of Zhang, Chen, and Lyu (2022) also uses a generator but in a different way than the works mentioned previously. They iteratively train the generator and the student in two stages. The first stage generates synthetic data, and in the second stage, the student network is trained using the synthetic data generated. During the data generation stage, the generator is trained to produce synthetic images (from noise signals) of desired classes by querying the fixed student model. In the second stage, the student is trained on the synthetic data by minimizing .
Wang (2021b) presented another method (ZSDB3KD) that uses only the hard labels of the teacher. They started with random noise signals and gradually pushed them away from the targeted decision boundary using gradient ascent which they calculated through zeroth-order gradient estimation. They assigned soft labels to the synthetic images by calculating minimal boundary distances from the decision boundaries. Later, the generated synthetic images to train the student network.
3 Methodology
The outline of the proposed Zeroth-Order Projected Gradient Ascent guided data-free Knowledge Distillation (ZOPGA-KD) is presented in Fig. 1. The proposed method does not require access to teacher model weights or gradients; however, other knowledge distillation methods (Nayak et al. 2019; Wang 2021a) require such access. In the proposed method, the teacher network is utilized only to obtain the logits. Similar to Nayak et al. (2019); Wang (2021b), our method proceeds in two independent stages: i). Data Generation, ii). Student Training.
Data Generation
Suppose we want to distill the knowledge of a teacher T trained to classify images into K classes. For a given input x, the output confidence vector (or softmax vector) is denoted by .
Our goal is to synthesize images per class. We first fix an upper bound on the confidence score . Then, for each class , we sample a batch of initial random noise images from a chosen distribution at each iteration. Here, , , and denote the number of
Algorithm 1 ZO-PGA Synthesis of One Sample (black box)
Require: Black-box teacher (soft labels via queries only); target class ; noise distribution on ; confidence threshold ; iteration cap ; smoothing parameter ; directions per step ; perturbation resolu- tion ; step size ; momentum
Ensure: Sample with
1: {Objective; unavailable}
2: ; ;
3: while and do
4:
5: for do
6: of shape
7: Upsample to
8: end for
9:
10:
11: ;
12: end while
13: return {synthetic sample, soft labels}
channels, height, and width of the image, respectively. We optimize these noisy images using Projected Gradient Ascent (PGA) (Salvatore, Fort, and Ganguli 2026) as follows. Let be the confidence score for the -th class for an input . In every iteration of PGA, the pixels of are updated as
where is the step size. After one or a few iterations, some pixels might fall outside the range . We therefore project them back to by clipping, as shown in Algorithm 1. We iterate this process until reaches the desired value or a maximum of iterations has been performed, whichever happens first. If we had access to the teacher's parameters, we could calculate the gradient by backpropagating through the teacher. The proposed ZOPGA-KD performs knowledge distillation in a black-box setting. Hence, we estimate the gradient in Eq. (3) via zeroth-order gradient approximation (Nesterov and Spokoiny 2017). The proposed ZOPGA algorithm for data generation is presented in Algorithm 1.
Zeroth-order gradient approximation (ZOA) estimates the gradient of a function using only function evaluations at selected inputs . We sample random perturbation directions from a -dimensional Gaussian distribution with zero mean and unit variance, where . We then bilinearly upsample them to the required directions . Upsampling the low-resolution perturbations reduces the number of queries (Tu et al. 2019). The gradient is then estimated as in Ilyas et al. (2018):
where is the Gaussian smoothening parameter. In fact, we use an adaptive upsampling (Ilyas, Engstrom, and Madry 2018). Initially, when the images have low confidence (), we consider lower resolution noise which is upsampled to . On the other hand, if the confidence score reaches 0.5, we start with relatively higher resolution , is upsampled to required dimension i.e., . In our experiments, for gray-scale images, and are used, while for RGB images, and are used. This process will reduce the number of queries.
At step , the velocity is defined as an exponential moving average (EMA), which smooths the noisy ZOA updates resulted using Eq. (3):
where is called the momentum which is a hyperparameter. Then the update rule is modified as
We also optimize GPU usage in several ways to speed up the data generation pipeline. Instead of optimizing all images at once, we maintain a persistent pool of slots. In each iteration, every image is optimized once. Once an image surpasses the confidence threshold or reaches the maximum of iterations, it retires. A new random noise image is then launched into the vacant slot for the class with the largest number of images still to be optimized. Moreover, if optimization stalls for an image, it is removed from the optimization protocol and the slot is reinitialized with fresh noise. Specifically, if an image's confidence score remains below 0.3 after 300 iterations, it is abandoned and replaced by another noise image.
Student Training
Having generated the synthetic data, we now proceed to train the student. It is standard in literature to train the student using the KL-divergence given in Eq. (1) as it was originally proposed. However as demonstrated in Kim et al. (2021), simple Mean Squared Error (MSE) outperforms the KL divergence in certain scenarios. Inspired by this result we use the MSE loss
for our student training, where and are the teacher and the student logit vectors for input . Data augmentation plays a crucial role in our method. Our data augmentation scheme is as follows. To every image we apply a standard “base geometric transform”. On top of this, we apply further operations, chosen randomly, out of a pool of operations. Please refer to Appendix for more details. Before feeding the images to the student and teacher, we normalize them by the mean and standard deviation of the synthetic dataset:.
Table 1: Student test accuracy (%) for several data-free knowledge distillation techniques and baseline values. Access: WB indicates white-box in which teacher parameters are accessed, whereas BB indicates black-box which does not has access to teacher parameters. Data: ✓ indicates that a method uses real training data and is therefore not data-free; X indicates a fully data-free method. Query estimates for ZOPGA-KD method is also given. Generation queries are consumed while synthesizing samples. Augmentation queries are the second-stage cost during student training and equal , since training runs for 200 epochs. The query cost for ZSDB3KD, reported here, is a lower bound. All of the methods use Adam optimizer. ZSKD and Wang (2021a) use the same temperature () as us. On the other hand, ZSDB3KD uses .
| Method | Access | Data | MNIST | F-MNIST | CIFAR-10 | |
|---|---|---|---|---|---|---|
| LeNet-5 | LeNet-5 | AlexNet | RN-34/18 | |||
| Teacher (CE) | — | ✓ | 99.00 | 90.32 | 84.95 | 95.31 |
| Student (CE) | — | ✓ | 99.04 | 90.44 | 84.76 | 94.23 |
| Classical KD | — | ✓ | 99.00 | 88.47 | 82.85 | 94.28 |
| DB3KD-MBD (Wang 2021b) | BB | ✓ | 99.52 | 91.45 | 78.30 | 77.31 |
| ZSKD (Nayak et al. 2019) | WB | ✕ | 98.77 | 79.62 | 69.56 | — |
| Wang et al. (Wang 2021a) | WB | ✕ | 99.08 | — | 73.91 | 93.31 |
| ZSDB3KD (Wang 2021b) | BB | ✕ | 96.54 | 72.31 | 59.46 | — |
| ZOPGA-KD (ours) | BB | ✕ | 97.40 | 80.06 | 78.41 | 87.97 |
| ZOPGA-KD teacher-query cost | ||||||
| Synthetic samples | 24K | 48K | 40K | 40K | ||
| Generation queries | 342.18M | 754.74M | 192.44M | 36.14M | ||
| Augmentation queries | 4.80M | 9.60M | 8.00M | 8.00M | ||
| ZSDB3KD teacher-query cost | 2000M | 2000M | 4400M | — | ||
Since ZOPGA-KD is a data-free KD method, we have not used mean and standard deviation of the original training set. We emphasize that during the student training the teacher is queried again to get the logits for the normalized generated data. The student training protocol is schematically presented in Fig. 2.
4 Experimental Results
Experimental Setup
We evaluate the proposed black-box data-free knowledge distillation framework ZOPGA-KD on three representative teacher student settings spanning shallow and deep convolutional neural networks:
- LeNet-5 LeNet-5-Half on MNIST (Deng 2012) and Fashion-MNIST (Xiao, Rasul, and Vollgraf 2017) datasets,
- AlexNet AlexNet-Half on CIFAR-10 (Krizhevsky, Hinton et al. 2009),
- ResNet-34 ResNet-18 on CIFAR-10.
The complete experimental pipeline is identical across all datasets and architectures, differing only in the underlying network definitions and architecture-specific training hyperparameters, which is described in the Appendix. Each experiment consists of three steps: (i) supervised teacher training on the original dataset, (ii) black-box synthetic image generation using the proposed ZO-PGA algorithm, and (iii) data-free knowledge distillation by training the student exclusively on the generated synthetic dataset. After every epoch of the student training, we evaluate the student on the real test set and report the overall best accuracy. This is a standard practice in the literature (Zhang, Chen, and Lyu 2022; Rosenthal et al. 2023; Nayak et al. 2019; Wang 2021a,b).
Teacher models are trained using standard cross-entropy loss until convergence. Student models in the proposed DFKD setting are trained with MSE loss function, exclusively using the synthesized dataset without access to any real training images. The teachers are trained with normalized inputs with dataset specific normalizations. During the data generation, however, we use unnormalized inputs. Finally, during the student training we normalize the inputs using the statistics of the synthetic data. We compare our results with the Nayak et al. (2019); Wang (2021b) for LeNet over MNIST, FMNIST and AlexNet over CIFAR-10, and Wang (2021a) for LeNet over MNIST and AlexNet, ResNet over CIFAR-10. We compare against these methods because, like ours, they are generator-free and synthesize the dataset by directly optimizing samples in the input space, without training a generative network. We do not compare our results with generator based models such as IDEAL (Zhang, Chen, and Lyu (2022)), MAZE (Kariyappa, Prakash, and Qureshi (2021)) and DFME (Truong et al. (2021)). More details about specific hyperparameters and training protocols can be found in Appendix.
Synthetic Data Generation
Synthetic images were generated using the algorithm described in Sec. 3. For all the experiments, random smooth noise signals are utilized with constant gradients along random directions as our initial noise. Unless otherwise specified, we use the upper bound on the confidence score , iteration limit , momentum , pool size , directions per step , and smoothing parameter . We also apply a cosine learning-rate scheduler that interpolates between learning rates 1 and 0.1. The number of generated synthetic data samples for each of

Figure 2: Schematic of the student training pipeline.
our experiments are presented in the Table 1.
Data Augmentation
Our data augmentation scheme is described in Sec. 3. We first apply a base geometric transformation followed by taking additional operations chosen randomly from a pool of operations. For base geometric transformation we use reflected padding with padding=2 followed by a random horizontal flip except for the MNIST case for which the horizontal flip is disabled.
Query Budget
We query the teacher in two disjoint phases, reported separately in the lower block of Table 1. Generation queries are spent synthesizing the images. The count is data-dependent because abandonment, restarts, and adaptive resolution make the per-sample cost depend on how quickly a candidate reaches . Augmentation queries arise during online student distillation: each augmented image is a new input, so the teacher must recalculate its logits (see Fig. 2). This gives queries over 200 epochs, where is the number of synthetic samples. The number of queries is sensitive to the parameter values reached by the teacher during training because the functions : input space , which PGA seeks to maximize, depend on the teacher parameters. The ZSDB3KD query costs in Table 1 are lower bounds on the total number of teacher queries. For each of the pseudo-samples, the cost is the sum of (a) queries for generation, where is the number of iterations required for moving the sample away from the decision boundaries,
and is the query budget for each iteration (b) queries for soft-label construction where is the number of classes. The total is therefore . The paper uses and . Queries used for gathering the initial samples are excluded.
We evaluate our method using the classification accuracy of the distilled student on the real testsets of the respective datasets. For comparison, we also report the teacher accuracy, the accuracy of a student trained from scratch using cross-entropy loss, the accuracy obtained through classical knowledge distillation, and the total number of teacher queries used for synthetic-data generation and augmentation.
Results
Table 1 reports student test accuracy across the four teacher student configurations, together with the teacher-query budget consumed by ZOPGA-KD. Despite operating in the black-box setting, ZOPGA-KD recovers most of the performances corresponding to the teacher accuracy on LeNet/MNIST, LeNet/Fashion-MNIST, AlexNet/CIFAR10, and ResNet/CIFAR10, respectively.
Compared with ZSDB3KD, the only black-box, data-free baseline, ZOPGA-KD achieves slightly improved accuracy on LeNet/MNIST (97.40% vs. 96.54%) and substantially higher accuracy on the other evaluated settings: 80.06% vs. 72.31% on LeNet/Fashion-MNIST and 78.41% vs. 59.46% on AlexNet/CIFAR-10, corresponding to improvements of 7.75% and 18.95%, respectively. More notably, ZOPGA-KD outperforms even the white-box data-free methods like ZSKD and Wang (2021a). On AlexNet/CIFAR10 it exceeds both ZSKD (69.56%) by 8.85% and Wang (2021a) (73.91%) by 4.5%. It further matches DB3KD-MBD on AlexNet/CIFAR-10 (78.41% vs. 78.30%) and exceeds it by 10.66% on ResNet/CIFAR-10, even though the student network have access to real training data. We present a representative set of synthetic samples from the ZOPGA-KD generation process in Fig. 3.
5 Conclusion
We propose a novel data-free knowledge distillation method (ZOPGA-KD) that utilizes Zeroth-Order PGA to generate synthetic data, which is then used to train the student network. The proposed method assumes that the teacher network parameters and original data on which the teacher is trained are not available due to privacy or any other reasons. ZOPGA-KD results are evaluated for LeNet-5 LeNet-5-Half on MNIST and Fashion-MNIST, AlexNet AlexNet-Half and ResNet-34 ResNet-18 on CIFAR-10. The proposed method outperforms existing generator-free black-box approaches, achieving performance comparable to—and occasionally exceeding—state-of-the-art white-box methods.
Two obvious future directions of our work would be to a). generalize our method to the hard label setting and b). extend it to more complex datasets such as CIFAR-100 and TinyImageNet. Another important direction would be to further optimize the data generation algorithm to reduce the number of queries. In Table 1 we observe that the number of queries required to get high confidence data samples is highly sensi-

Figure 3: Representative synthetic samples generated by ZOPGA-KD. From top to bottom, the rows correspond to the AlexNet/CIFAR-10, ResNet/CIFAR-10, LeNet/Fashion-MNIST, and LeNet/MNIST teacher-to-student configurations.
tive to the model architecture. Overall, these findings provide a strong basis for future investigations into this phenomenon.
Appendix

Figure 4: A few samples of initial smooth gradient noise images.
6 Initial Noise Images
ZOPGA works on initial noise images to evolve them into a desired synthetic dataset with high-confidence samples.
Fig. 4 shows a few such initial samples. These images are generated by random constant color gradients along random directions.
7 Data Augmentation
In this section, we describe the data augmentations used during the student training. As mentioned in the manuscript, we use two base geometric transformations followed by operations chosen from a set of options (see Ref. (Cubuk et al. 2020)). The exact implementations of these transformations can be found in Ref. (PyTorch Documentation).
Base Geometric transformations
We use the following base geometric transformations:
-
Random crop with reflection padding
-
Random horizontal flip
For MNIST, we switch off the horizontal flip.
Additional Operations
On top of the base geometric transformations, we apply four additional operations chosen from the set of 17 operations
Table 2: Summary of Data Augmentations and Image Transformations.
| Category | Transformations |
|---|---|
| Geometric | Rotation, Affine transformation, Change of perspective, Zoom-crop |
| Photometric & Color | Color jitter, Grayscale conversion, Sharpness adjustment, Contrast adjustment, Equalize, Posterize, Solarize, Pixel inversion |
| Blur & Noise | Gaussian blur, Gaussian noise, Salt-and-pepper noise |
| Erasing & Occlusion | Random pixel erasing, Replacing random patches with random colors |
Table 3: Hyperparameter configurations for our experiments.
| System | Samples () | Batch Size |
|---|---|---|
| LeNet (MNIST) | 24K | 16 |
| LeNet (FMNIST) | 48K | 16 |
| AlexNet (CIFAR10) | 40K / 200K† | 128 |
| ResNet (CIFAR10) | 40K / 200K† | 512 |
†Samples used in additional student experiments.
8 Hyperparameter Details
We train all of our student models for 200 epochs. The confidence threshold and the maximum number of steps are chosen to be 0.999 and 2000 steps, respectively. In Table 3, we present the batch sizes for the student training with synthetic data. Additional hyperparameter details are provided in Table 4.
9 Additional Runs
Table 5 summarizes our additional experiments. We evaluate ZOPGA-KD on AlexNet-CIFAR10 and ResNet-CIFAR10 with a larger synthetic dataset of 200K samples. We also evaluate ResNet with 40K samples and a lower confidence threshold (). With 200K synthetic samples, ResNet reaches 91.32% accuracy, a 3.34-point improvement over the 40K-sample setting. At , accuracy reaches 82.45% while the query budget drops by 56.61% and accuracy falls by 5.52 percentage points.
Table 4: Additional hyperparameter settings for the ZOPGA pipeline and student training.
| Phase | Hyperparameter | Value |
|---|---|---|
| ZO-PGA Generation | Step Size () / Smoothing Parameter () | 0.5 / 0.01 |
| Queries per Step () / Confidence Threshold () | 8 / 0.999 | |
| EMA Momentum | 0.9 | |
| Student DFKD | Initial LR / Weight Decay | |
| LR Scheduler (Step/LR-decay) | StepLR (25 epochs / 0.5) | |
| Student CE and KD Baselines | Initial LR/Weight Decay | |
| LR Scheduler (step/LR-decay) | StepLR (25 epochs / 0.5) | |
| KD Loss Temperature |
Table 5: Queries and accuracy metrics across additional runs.
| Metric / Setting | AlexNet (200K) | ResNet (200K) | ResNet (40K, ) |
|---|---|---|---|
| Batch Size (BS) | 128 | 512 | 512 |
| Queries used | 921.34M | 161.41M | 15.68M |
| Teacher-CE (%) | 84.93 | 95.13 | 95.31 |
| Student-CE (%) | 84.76 | 94.53 | 93.93 |
| Student-KD (%) | 82.81 | 94.57 | 93.90 |
| ZOPGA-KD (%) | 79.81 | 91.32 | 82.45 |
References
Braun, S.; Mundt, M.; and Kersting, K. 2024. Deep classifier mimicry without data access. In International Conference on Artificial Intelligence and Statistics, 4762–4770. PMLR.
Chen, H.; Wang, Y.; Xu, C.; Yang, Z.; Liu, C.; Shi, B.; Xu, C.; Xu, C.; and Tian, Q. 2019. Data-free learning of student networks. In Proceedings of the IEEE/CVF international conference on computer vision, 3514–3522.
Cubuk, E. D.; Zoph, B.; Shlens, J.; and Le, Q. V. 2020. Randaugment: Practical automated data augmentation with a reduced search space. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition workshops, 702–703.
Deng, L. 2012. The mnist database of handwritten digit images for machine learning research [best of the web]. IEEE signal processing magazine, 29(6): 141–142.
Fang, G.; Mo, K.; Wang, X.; Song, J.; Bei, S.; Zhang, H.; and Song, M. 2022. Up to 100x faster data-free knowledge distillation. In Proceedings of the AAAI conference on artificial intelligence, volume 36, 6597–6604.
Fang, G.; Song, J.; Shen, C.; Wang, X.; Chen, D.; and Song, M. 2019. Data-free adversarial distillation. arXiv preprint arXiv:1912.11006.
Hinton, G.; Vinyals, O.; and Dean, J. 2015. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531.
Hong, Z.; Chen, R.; Wang, Z.; Han, B.; Du, B.; and Liu, T. 2025. When data-free knowledge distillation meets non-transferable teacher: Escaping out-of-distribution trap is all you need. arXiv preprint arXiv:2507.04119.
Ilyas, A.; Engstrom, L.; Athalye, A.; and Lin, J. 2018. Black-box adversarial attacks with limited queries and information. In International conference on machine learning, 2137–2146. PMLR.
Ilyas, A.; Engstrom, L.; and Madry, A. 2018. Prior convictions: Black-box adversarial attacks with bandits and priors. arXiv preprint arXiv:1807.07978.
Kariyappa, S.; Prakash, A.; and Qureshi, M. K. 2021. MAZE: Data-free model stealing attack using zeroth-order gradient estimation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 13814–13823.
Kim, T.; Oh, J.; Kim, N.; Cho, S.; and Yun, S.-Y. 2021. Comparing Kullback-Leibler divergence and mean squared error loss in knowledge distillation. arXiv preprint arXiv:2105.08919.
Krizhevsky, A.; Hinton, G.; et al. 2009. Learning multiple layers of features from tiny images. Technical report, University of Toronto, Toronto, ON, Canada.
Micaelli, P.; and Storkey, A. 2019. Zero-shot knowledge transfer via adversarial belief matching. Advances in neural information processing systems, 32.
Nayak, G. K.; Mopuri, K. R.; Shaj, V.; Radhakrishnan, V. B.; and Chakraborty, A. 2019. Zero-shot knowledge distillation in deep networks. In International conference on machine learning, 4743–4751. PMLR.
Nesterov, Y.; and Spokoiny, V. 2017. Random gradient-free minimization of convex functions. Foundations of Computational Mathematics, 17(2): 527–566.
PyTorch Documentation. n.d. Transforming and augmenting images. https://docs.pytorch.org/vision/0.22/transforms.html. Accessed: 2026-07-29.
Rosenthal, J.; Enouen, E.; Pham, H. V.; and Tan, L. 2023. DisGUIDE: Disagreement-guided data-free model extraction. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, 9614–9622.
Salvatore, A.; Fort, S.; and Ganguli, S. 2026. Solving adversarial examples requires solving exponential misalignment. arXiv preprint arXiv:2603.03507.
Truong, J.-B.; Maini, P.; Walls, R. J.; and Papernot, N. 2021. Data-free model extraction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 4771–4780.
Tu, C.-C.; Ting, P.; Chen, P.-Y.; Liu, S.; Zhang, H.; Yi, J.; Hsieh, C.-J.; and Cheng, S.-M. 2019. AutoZOOM: Autoencoder-based Zeroth Order Optimization Method for Attacking Black-box Neural Networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, 742–749.
Wang, Z. 2021a. Data-free knowledge distillation with soft targeted transfer set synthesis. In Proceedings of the AAAI conference on artificial intelligence, volume 35, 10245–10253.
Wang, Z. 2021b. Zero-shot knowledge distillation from a decision-based black-box model. In International conference on machine learning, 10675–10685. PMLR.
Xiao, H.; Rasul, K.; and Vollgraf, R. 2017. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747.
Yin, H.; Molchanov, P.; Alvarez, J. M.; Li, Z.; Mallya, A.; Hoiem, D.; Jha, N. K.; and Kautz, J. 2020. Dreaming to distill: Data-free knowledge transfer via deepinversion. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 8715–8724.
Yuan, X.; Chen, K.; Huang, W.; Zhang, J.; Zhang, W.; and Yu, N. 2024. Data-free hard-label robustness stealing attack. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, 6853–6861.
Zhang, J.; Chen, C.; and Lyu, L. 2022. Ideal: Query-efficient data-free learning from black-box models. arXiv preprint arXiv:2205.11158.