CaO2: Rectifying Inconsistencies in Diffusion-Based Dataset Distillation

Haoxuan Wang, Zhenghao Zhao, Junyi Wu, Yuzhang Shang, Gaowen Liu, Yan Yan

TL;DR

This paper introduces CaO2, a novel two-stage framework for diffusion-based dataset distillation that addresses critical inconsistencies between the distillation and evaluation objectives. By aligning the generation process with how the distilled dataset will be used for training, CaO2 achieves state-of-the-art performance on large-scale datasets like ImageNet, outperforming previous methods.

What Problem Does This Paper Address?

The rapid growth of data in machine learning has led to significant storage and computational demands. Dataset distillation (DD) aims to create compact synthetic datasets that capture the essence of large, high-resolution datasets, enabling efficient training and reducing resource requirements. While recent diffusion-based DD methods have shown promise, they often overlook the evaluation objective, leading to two key inconsistencies:

  1. Objective Inconsistency: The process of generating synthetic data diverges from the objective used to evaluate its quality (e.g., classification accuracy). This means the generated images might not be optimal for the downstream task.
  2. Condition Inconsistency: Generated images may not perfectly match their intended class labels due to limitations in the diffusion models themselves, leading to suboptimal conditional likelihoods and impacting the distilled dataset's fidelity.

These inconsistencies hinder the effectiveness of current diffusion-based DD approaches, especially on large-scale datasets.

Methods

CaO2 proposes a two-stage framework to rectify these inconsistencies:

  • Stage 1: Objective-guided Sample Selection: This stage addresses Objective Inconsistency. It first generates a larger pool of candidate images for a given class using a pre-trained diffusion model. Then, a lightweight pre-trained classifier is used to select samples that are confidently classified as belonging to their intended class. This ensures that the selected samples are more discriminative for the evaluation objective. The selection strategy can be adapted based on the dataset difficulty, prioritizing easier samples for lower IPC (Images Per Class) settings and harder samples for higher IPC.
  • Stage 2: Condition-aware Latent Optimization: This stage tackles Condition Inconsistency. It refines the latent representations of the selected images by optimizing them to maximize their conditional likelihood with respect to their class. This process is performed without retraining the diffusion backbone, making it efficient. The optimization uses a diffusion loss and an L∞ norm regularization to prevent the latents from shifting into regions associated with other classes. The framework also introduces a task-oriented variation for the input condition, using true labels for easier tasks and unconditional labels for harder tasks.

CaO2 is designed to be a plug-and-play module, applicable to various diffusion model backbones and even masked autoregressive models like MAR.

Datasets

The paper evaluates CaO2 on the following datasets:

  • ImageNet: The primary large-scale dataset used for evaluation.
  • ImageWoof: A subset of ImageNet containing 10 dog breeds, used to test representativeness.
  • ImageNette: A simpler subset of ImageNet with 10 easily distinguishable categories, used to test diversity.
  • ImageNet-100: A subset of ImageNet with 100 randomly selected classes.

The experiments are conducted across different Images Per Class (IPC) settings: 1, 10, and 50.

Key Insights and Ideas

  • The critical gap in diffusion-based DD: The paper highlights that current diffusion-based methods, while efficient, often ignore the downstream evaluation objective, leading to suboptimal distilled datasets.
  • Two key inconsistencies: Identifying "Objective Inconsistency" and "Condition Inconsistency" provides a clear framework for understanding the limitations of existing approaches.
  • Sample selection as a crucial first step: Using a lightweight classifier to select class-confident samples is an effective way to align the distillation process with the evaluation objective, especially for challenging datasets.
  • Latent optimization for refinement: Directly optimizing image latents to maximize conditional likelihood is a computationally efficient way to improve the fidelity of generated images without retraining the entire diffusion model.
  • Task-dependent conditioning: Adapting the conditioning strategy (true labels vs. unconditional labels) based on task difficulty is crucial for maximizing performance.
  • Generalizability of CaO2: The framework's ability to integrate with different model backbones (DiT, MAR) and serve as a plug-and-play module demonstrates its broad applicability.

Key Results

  • State-of-the-art performance: CaO2 achieves state-of-the-art accuracy on ImageNet and its subsets, outperforming previous methods by an average of 2.3% accuracy.
  • ImageWoof and ImageNette: CaO2 achieved an average accuracy improvement of 1.6% on ImageWoof and 4.3% on ImageNette compared to the best baselines.
  • ImageNet-100 and ImageNet-1K: The method showed an average accuracy improvement of 1.8% on ImageNet-100 and 1.5% on ImageNet-1K.
  • Efficiency: The two-stage framework is efficient, avoiding the need to retrain the diffusion backbone.
  • Qualitative improvements: Visualizations show that CaO2 produces more discriminative and visually refined images compared to other methods.

Limitations and Future Work

  • Limitations:
    • The paper notes that while a larger image pool can provide more diversity, it doesn't always guarantee improved performance, and selecting from it might reduce representativeness.
  • The effectiveness of the current selection criterion, while good, might not consistently identify optimal samples, suggesting room for improvement.
  • Future Work:
    • Developing more advanced and complex selection protocols could further enhance performance.
  • The paper suggests that CaO2 can be seamlessly integrated with different model backbones and serves as a versatile plug-and-play approach, implying potential for further exploration in various generative model architectures and downstream tasks.

Summary updated

BibTeX
@inproceedings{wang2025cao,
  author = {Haoxuan Wang and Zhenghao Zhao and Junyi Wu and Yuzhang Shang and Gaowen Liu and Yan Yan},
  title = {{CaO2: Rectifying Inconsistencies in Diffusion-Based Dataset Distillation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure