Squeeze, Recover and Relabel: Dataset Condensation at ImageNet Scale From A New Perspective

Zeyuan Yin, Eric Xing, Zhiqiang Shen

Abstract

Dataset condensation (or distillation) aims to reduce massive datasets into a small, representative synthetic subset that maintains high training performance. Historically, these methods have been limited by a "scalability wall" due to the computational intensity of bilevel optimization. This paper introduces SRe$^2$L (Squeeze, Recover, and Relabel), a novel framework that decouples the condensation process into three independent stages. By leveraging Batch Normalization (BN) statistics and soft-labeling, SRe$^2$L achieves a breakthrough 60.8% validation accuracy on ImageNet-1K with only 50 images per class. This represents a 32.9% improvement over previous state-of-the-art methods while being up to 52x faster and significantly more memory-efficient.

Introduction

As deep learning models grow in complexity, the datasets required to train them have expanded to millions of samples. Dataset condensation offers a solution by creating a tiny synthetic version of a dataset that can train a model to nearly the same accuracy as the original. This is particularly valuable for applications like neural architecture search (NAS) and continual learning, where models must be trained repeatedly.

However, existing condensation methods have largely been confined to small-scale datasets like CIFAR-10 or Tiny-ImageNet. The primary bottleneck is the reliance on bilevel optimization, where an inner loop updates model parameters and an outer loop updates synthetic data. This process requires unrolling training steps, which is prohibitively memory-intensive and slow at the standard ImageNet resolution of 224x224. SRe$^2$L addresses this by proposing a tripartite, decoupled approach that eliminates the need for nested optimization.

Methodology: The SRe$^2$L Framework

The core innovation of SRe$^2$L is the transformation of a complex nested optimization into a linear, three-stage pipeline:

1. Squeeze (Stage 1)

Instead of updating the model and data simultaneously, the framework first "squeezes" the knowledge of the entire original dataset into a standard pre-trained "teacher" model. This model serves as a compact repository of the essential features and distributions found in the real data.

2. Recover (Stage 2)

The synthetic images are synthesized by matching the Batch Normalization (BN) statistics of the squeezed teacher model. Rather than comparing synthetic images directly to real images, the algorithm optimizes synthetic pixels so that their mean and variance at every layer match the "running mean" and "running variance" stored in the teacher. This single-level optimization is significantly faster and requires far less GPU memory than traditional methods.

3. Relabel (Stage 3)

Synthetic images generated through BN matching often resemble abstract collages of features rather than natural images. Assigning a single "hard" label to these complex images is suboptimal. In the final stage, the teacher model provides soft labels (probability distributions) for various crops of the synthetic images. This ensures that the labels are perfectly aligned with the synthesized visual information, allowing a student model to learn more nuanced information from a limited number of samples.

Experimental Results

Performance on ImageNet-1K

SRe$^2$L demonstrates unprecedented scalability on the full ImageNet-1K dataset. With 50 Images Per Class (IPC), SRe$^2$L achieved 60.8% accuracy. For comparison, the previous state-of-the-art method, TESLA, reached only 27.9%. This massive leap in performance proves that the decoupled approach is far more effective for high-resolution, large-scale data.

Efficiency and Scalability

Beyond accuracy, SRe$^2$L offers dramatic improvements in computational efficiency. Compared to the popular Matching Training Trajectories (MTT) method, SRe$^2$L is 16x to 52x faster and utilizes 6x to 11x less GPU memory during the synthesis phase. It is the first method to effectively condense ImageNet at the standard 224x224 resolution, whereas prior work was often restricted to 64x64 or smaller.

Cross-Architecture Generalization

A key strength of SRe$^2$L is its architecture-agnostic nature. The authors found that condensed data produced using a ResNet-18 teacher could successfully train a Vision Transformer (DeiT-Tiny) to respectable accuracies. This suggests that the synthesized data captures fundamental visual features rather than just overfitting to the specific architecture of the teacher model.

Discussion and Future Work

While SRe$^2$L represents a significant milestone, a performance gap remains between models trained on condensed data (60.8%) and those trained on the full ImageNet-1K dataset (~76-80%+). Additionally, the use of soft labels increases the storage footprint of the condensed dataset, as a vector of 1,000 probabilities must be stored for each image.

Future research directions include extending this framework to even larger datasets, such as ImageNet-21K, and exploring its application in other domains like Natural Language Processing (NLP) and speech recognition, where data scale remains a primary challenge.

Summary updated

BibTeX
@inproceedings{yin2023squeeze,
  author = {Zeyuan Yin and Eric Xing and Zhiqiang Shen},
  title = {{Squeeze, Recover and Relabel: Dataset Condensation at ImageNet Scale From A New Perspective}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=5Fgdk3hZpb},
}
Figure