[Paper Review] IDEAL: Query-Efficient Data-Free Learning from Black-box Models
This paper proposes IDEAL, a query-efficient, data-free knowledge distillation method that trains a student model using only hard-label outputs from a black-box teacher model. By decoupling data generation from model distillation and querying the teacher only once per sample, IDEAL achieves state-of-the-art performance with a 50x reduction in query cost compared to prior methods, improving accuracy by 5.83% on CIFAR-10 with just 2% of the query budget.
Knowledge Distillation (KD) is a typical method for training a lightweight student model with the help of a well-trained teacher model. However, most KD methods require access to either the teacher's training data or model parameters, which is unrealistic. To tackle this problem, recent works study KD under data-free and black-box settings. Nevertheless, these works require a large number of queries to the teacher model, which incurs significant monetary and computational costs. To address these problems, we propose a novel method called \emph{query-effIcient Data-free lEarning from blAck-box modeLs} (IDEAL), which aims to query-efficiently learn from black-box model APIs to train a good student without any real data. In detail, IDEAL trains the student model in two stages: data generation and model distillation. Note that IDEAL does not require any query in the data generation stage and queries the teacher only once for each sample in the distillation stage. Extensive experiments on various real-world datasets show the effectiveness of the proposed IDEAL. For instance, IDEAL can improve the performance of the best baseline method DFME by 5.83% on CIFAR10 dataset with only 0.02x the query budget of DFME.
Motivation & Objective
- To address the challenge of training high-performance student models under realistic constraints: no access to teacher data, no access to model parameters, only hard-label outputs, and limited query budgets.
- To reduce the number of queries to a black-box teacher model, which is costly in real-world applications such as commercial APIs.
- To develop a data-free knowledge distillation framework that maintains high performance despite minimal interaction with the teacher model.
- To enable practical deployment of lightweight student models in edge-device scenarios where data and model access are restricted.
Proposed method
- IDEAL trains the student model in two stages: data generation and model distillation, with no queries required during data generation.
- During distillation, the teacher model is queried only once per synthetic sample, drastically reducing query cost.
- A generator network is trained to synthesize data using a combination of information loss and cross-entropy loss, without requiring gradient estimation from the teacher.
- The generator is reinitialized at the start of each training epoch to avoid dependency on previous generator states, enabling stable and efficient training.
- The student model is trained using both synthetic data and knowledge distillation from the teacher’s hard-label predictions.
- The method leverages a dual-loss objective during data generation: $L_{infor}$ for feature diversity and $L_{ce}$ for class discrimination, ensuring high-quality synthetic samples.
Experimental results
Research questions
- RQ1Can a student model achieve high performance in knowledge distillation when only provided with hard-label outputs from a black-box teacher model and with a severely limited number of queries?
- RQ2Is it possible to generate high-quality synthetic data for knowledge distillation without accessing the teacher’s model parameters or training data?
- RQ3How can the training process be structured to minimize query interactions with the teacher while maintaining model performance?
- RQ4What components are essential for effective data generation and distillation in a data-free, black-box, hard-label setting?
Key findings
- IDEAL improves the performance of the best baseline (DFME) by 5.83% on the CIFAR-10 dataset while using only 2% of the query budget.
- With a query budget of 200K, IDEAL achieves 63.77% top-1 accuracy on CIFAR-10, outperforming DFME and ZSDB3 even when they are allowed 10 million queries.
- Visualizations show that IDEAL generates more diverse and meaningful synthetic data compared to DFME and ZSDB3, which produce low-quality or highly similar samples.
- Ablation studies confirm that both the information loss ($L_{infor}$) and cross-entropy loss ($L_{ce}$) are critical for performance, with removal causing significant degradation.
- The generator reinitialization strategy is essential, as removing it leads to a 10.9% drop in accuracy on CIFAR-10, indicating its role in stabilizing training.
- Optimal performance is achieved with a balanced $E_{τ}$ value during data generation, as both too small and too large values degrade performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.