Abstract
Data-Free Image Synthesis (DFIS) aims to recover training data from a pre-trained classifier without access to the original dataset, a task often hindered by the "prior knowledge gap" where synthetic images lack natural realism. We present DDIS (Diffusion-assisted Data-free Image Synthesis), a novel framework that leverages pre-trained text-to-image diffusion models as a powerful image prior. By introducing Domain Alignment Guidance (DAG) to match a classifier's internal Batch Normalization statistics and Class Alignment Tokens (CAT) to capture specific class nuances, DDIS generates high-fidelity synthetic data. Our results show that DDIS significantly outperforms traditional inversion methods in image quality and downstream knowledge distillation tasks, while reducing the computational time for large-scale generation from thousands of hours to just over a hundred.
Introduction
In the modern AI ecosystem, researchers often possess powerful pre-trained models but lack access to the original training data due to privacy, copyright, or proprietary restrictions. Data-Free Image Synthesis (DFIS) attempts to solve this by "inverting" a model—effectively asking it to generate images that represent its learned knowledge.
However, traditional DFIS methods face a fundamental challenge: the search space for all possible images is infinite. Without a strong understanding of natural image structures, these methods often produce "unnatural" or noisy patterns. This lack of a strong image prior limits the utility of synthetic data for downstream applications like model pruning or knowledge distillation. DDIS addresses this by bridging the gap between a general-purpose generative model and a specific, pre-trained classifier.
Methodology
DDIS leverages the "common sense" of an off-the-shelf Text-to-Image (T2I) diffusion model (such as Stable Diffusion) to guide the synthesis process. The framework introduces two primary innovations to align the diffusion model with the target classifier.
1. Domain Alignment Guidance (DAG)
Most modern classifiers utilize Batch Normalization (BN) layers, which store the "running statistics" (mean and variance) of the original training data. These statistics act as a compact repository of the data's domain DNA. DAG uses these statistics to guide the diffusion sampling process. By nudging the latent variables at each denoising step, DAG ensures the generated images match the specific style or domain—such as oil paintings, cartoons, or high-resolution photos—that the classifier expects.
2. Class Alignment Token (CAT)
Generic text prompts (e.g., "a dog") are often insufficient for precise data recovery, as classifiers may have been trained on specific breeds or contexts. Furthermore, T2I models often struggle with lexical ambiguity or compound nouns; for instance, a model might generate a literal "tiger" when the classifier expects a "tiger cat." DDIS optimizes a "pseudo-word" token embedding ($S_c$) for each class. This token captures the specific visual attributes the classifier associates with a label, effectively steering the generative process toward the correct semantic features.
Unlike previous methods that require optimizing every pixel of every synthetic image, DDIS optimizes a single CAT per class and then utilizes standard diffusion sampling. This shift from high-dimensional pixel space to low-dimensional token space makes the process significantly more efficient for large-scale data generation.
Experimental Results
The researchers evaluated DDIS across five distinct domains, including ImageNet-1k (Photos), the PACS dataset (Art & Cartoon), and specialized datasets for Manga and Caricature.
Image Quality and Fidelity
On the ImageNet-1k benchmark, DDIS achieved an FID score of 30.31, representing a massive improvement over previous state-of-the-art methods like DeepInversion (187.63) and PlugInInversion (220.62). A lower FID indicates that the synthetic images are significantly closer to the real data distribution.
Downstream Performance
In Data-Free Knowledge Distillation (DFKD) tasks, student models trained on DDIS-generated data outperformed those trained on other synthetic sources. For example, on the PACS-cartoon domain, DDIS reached an accuracy of 47.06%, while the next best method (using standard SD 2.1 prompts) only achieved 38.12%.
Computational Efficiency
One of the most striking advantages of DDIS is its speed. Generating a dataset of 100,000 ImageNet-style images took 126 hours with DDIS. In contrast, traditional DeepInversion would require an estimated 18,444 hours to complete the same task. While each individual diffusion step is more complex than a pixel-gradient step, the reduction in total required iterations leads to a massive overall speedup.
Limitations and Future Work
Despite its success, DDIS faces certain hurdles:
- The Sketch Barrier: The framework struggled with the Sketch domain. Because sketches are abstract and lack the rich textures found in photos or paintings, the BN-based guidance was less effective at capturing the domain's essence.
- Architectural Dependency: DAG currently relies on Batch Normalization layers. As many modern architectures (like Vision Transformers) move toward LayerNorm, future work must explore model-agnostic domain guidance techniques.
- Step Complexity: While total iterations are lower, the computational cost per diffusion step remains high, suggesting room for optimization in the sampling process.
Conclusion
DDIS demonstrates that pre-trained diffusion models can serve as an effective bridge for data-free knowledge transfer. By aligning domain statistics and class-specific semantics, the framework produces high-quality, usable data that was previously impossible to recover, opening new doors for model compression and distillation in data-restricted environments.
Summary updated