DANCE: Dual-View Distribution Alignment for Dataset Condensation

Hansong Zhang, Shikun Li, Fanzhao Lin, Weiping Wang, Zhenxing Qian, Shiming Ge

Abstract

Dataset condensation addresses the problem of data burden by learning a small synthetic training set that preserves essential knowledge from the larger real training set. To date, the state-of-the-art (SOTA) results are often yielded by optimization-oriented methods, but their inefficiency hinders their application to realistic datasets. On the other hand, the Distribution-Matching (DM) methods show remarkable efficiency but sub-optimal results compared to optimization-oriented methods. In this paper, we reveal the limitations of current DM-based methods from the inner-class and inter-class views, i.e., Persistent Training and Distribution Shift. To address these problems, we propose a new DM-based method named Dual-view distribution AligNment for dataset CondEnsation (DANCE), which exploits a few pre-trained models to improve DM from both inner-class and inter-class views. Specifically, from the inner-class view, we construct multiple "mid encoders" to perform pseudo long-term distribution alignment, making the condensed set a good proxy of the real one during the whole training process; while from the inter-class view, we use the expert models to perform distribution calibration, ensuring the synthetic data remains in the real class region during condensing. Experiments demonstrate the proposed method achieves a SOTA performance while maintaining comparable efficiency with the original DM across various scenarios.

Introduction

Training modern deep learning models requires massive datasets, posing significant storage and computational challenges. Dataset Condensation (DC) aims to mitigate this by synthesizing a small, highly informative version of a large dataset. Existing DC methods generally fall into two categories:

  1. Optimization-oriented methods: These match gradients or parameters between real and synthetic data. While accurate, they are computationally expensive and memory-intensive.
  2. Distribution-Matching (DM) methods: These align the statistical distributions of real and synthetic features. They are efficient but often yield sub-optimal results due to two primary issues: Persistent Training (failure to remain an effective proxy throughout a model's lifecycle) and Distribution Shift (synthetic features drifting into incorrect class regions).

Methodology: Dual-View Distribution Alignment

DANCE introduces a "Dual-View" approach to address the limitations of standard Distribution Matching by aligning distributions from both inner-class and inter-class perspectives.

The DANCE framework architecture, illustrating the dual-view alignment using mid-encoders (phi_mid) and expert models (phi_expert).

Inner-Class View: Pseudo Long-Term Distribution Alignment (PLTDA)

To ensure synthetic data is effective for models at various training stages, DANCE employs Pseudo Long-Term Distribution Alignment (PLTDA). Instead of the costly process of training numerous models from scratch, the authors create "mid-encoders" using a convex combination (weighted average) of a randomly initialized encoder and a pre-trained expert encoder. This efficiently simulates the feature representations of models at different levels of maturity.

Inter-Class View: Distribution Calibration

To prevent "Distribution Shift," DANCE utilizes pre-trained expert models for Distribution Calibration. This process acts as a constraint, ensuring that synthetic data points remain within the valid feature space regions defined by the expert model for their respective classes. This prevents synthetic images from drifting into "no man's land" or the territory of other classes.

Experiments and Results

DANCE was evaluated across various benchmarks, including low-resolution (CIFAR-10/100), medium-resolution (TinyImageNet), and high-resolution (ImageNet-1K subsets at 128x128) datasets.

Comparison of test accuracy across condensation steps, showing DANCE's superior performance and stability compared to standard DM.

Key Findings

  • Superior Accuracy: DANCE consistently outperforms existing methods. On CIFAR-10 with 50 images per class (IPC), DANCE reached 76.1% accuracy, a significant improvement over the original DM's 63.0%.
  • High-Resolution Dominance: On 128x128 ImageNet subsets, DANCE often improved accuracy by over 10% compared to the next best method (e.g., 80.2% vs. 58.1% on ImageNette at 10 IPC).
  • Efficiency: Despite its performance gains, DANCE maintains the high speed of DM-based methods. It requires significantly less GPU memory and time than optimization-heavy alternatives like MTT or IDC.
  • Expert Model Utility: Unlike other expert-based methods requiring massive trajectory libraries, DANCE achieves competitive results using just a single pre-trained expert model.

Conclusion

DANCE effectively bridges the gap between efficient distribution matching and high-accuracy optimization-oriented condensation methods. By addressing persistent training and distribution shift through its dual-view alignment strategy, it provides a scalable solution for dataset condensation. While it relies on pre-trained expert models, its efficiency and performance across diverse resolutions make it a powerful tool for reducing the data burden in modern AI training.

Summary updated

BibTeX
@inproceedings{zhang2024dance,
  author = {Hansong Zhang and Shikun Li and Fanzhao Lin and Weiping Wang and Zhenxing Qian and Shiming Ge},
  title = {{DANCE: Dual-View Distribution Alignment for Dataset Condensation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=T51hbpTt6g},
}
Figure