DANCE: Dual-View Distribution Alignment for Dataset Condensation

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

Introduction

Training modern deep learning models requires massive datasets, which impose significant costs in terms of storage, memory, and computation. Dataset Condensation (DC) has emerged as a solution to this challenge, aiming to synthesize a tiny, highly informative version of a dataset (e.g., reducing 5,000 images per class to just 10) that allows models to achieve performance comparable to training on the full original set.

Historically, DC methods have been divided into two categories: Optimization-oriented methods, which produce high-quality synthetic data but are extremely slow and memory-intensive, and Distribution-Matching (DM) methods, which are computationally efficient but often lag in accuracy. The paper "DANCE: Dual-View Distribution Alignment for Dataset Condensation" introduces a framework that bridges this gap, providing the speed of DM with the performance of optimization-based approaches.

The Dual-View Approach

The authors identify two primary weaknesses in existing DM methods. First, the Persistent Training Gap: standard DM matches data distributions using randomly initialized models, failing to account for how a model's perception of data evolves during training. Second, Distribution Shift: synthetic images often drift into the "no man's land" between classes or cross into incorrect class regions, creating confusion for the final classifier.

DANCE addresses these issues through a dual-view alignment strategy:

1. Inner-Class View: Progressive Linear Trajectory Distribution Alignment (PLTDA)

To account for the evolving data distribution during training, DANCE introduces "Middle Encoders." Rather than the computationally expensive process of training hundreds of models during condensation, the authors use a mathematical shortcut: a convex combination (interpolation) of a randomly initialized model and a pre-trained "expert" model. This allows the synthetic data to remain a faithful proxy of the real data throughout the entire hypothetical training trajectory without the overhead of full model training.

2. Inter-Class View: Distribution Calibration

To prevent synthetic data from drifting out of its class boundaries, DANCE utilizes pre-trained Expert Models to act as anchors. By applying a loss function that penalizes synthetic images if an expert model cannot correctly classify them, DANCE ensures that the condensed data stays firmly within the "real class region." This prevents the synthetic images from becoming "adversarial noise"—features that might satisfy a random encoder but hold no semantic meaning for a trained model.

Additionally, DANCE incorporates Factoring and Upsampling techniques (derived from IDC), where large synthetic images are decomposed into smaller "mini-images" and then upsampled. This allows the condensed set to store significantly more diverse information within the same storage constraints.

Experimental Results

DANCE was evaluated across a wide range of resolutions, from low-resolution datasets like CIFAR-10 to high-resolution (128x128) ImageNet subsets. The results demonstrate that DANCE sets new benchmarks for efficiency and accuracy:

  • CIFAR-10: At 50 images per class (IPC), DANCE achieved 76.1% accuracy, significantly outperforming the original DM (63.0%) and the previous optimization-based state-of-the-art, IDC (74.5%).
  • TinyImageNet: At 10 IPC, DANCE reached 26.4%, a substantial improvement over the next best method, IDM (21.9%).
  • High-Resolution Subsets: On the ImageNette subset (10 IPC), DANCE achieved 80.2% accuracy, whereas the popular MTT method only reached 63.0%.

Beyond accuracy, DANCE is roughly 10x to 100x faster per iteration than optimization-based methods like MTT and requires significantly less GPU memory, making high-quality dataset condensation accessible to researchers with limited hardware resources.

Limitations and Future Outlook

While DANCE represents a major advancement, it is not without limitations. The method relies on the availability of pre-trained "expert" models trained on the full dataset. Furthermore, while the synthetic images capture essential class-specific features, they often retain a "painterly" or abstract appearance compared to real photographs.

The ultimate challenge for the field remains scaling these techniques to condense the full ImageNet-1K dataset at its native resolution (224x224 or higher) efficiently. However, by successfully blending the speed of distribution matching with the precision of expert-guided optimization, DANCE provides a robust foundation for future work in large-scale dataset synthesis.

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