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

Zeyuan Yin, Eric P. Xing, Zhiqiang Shen

TL;DR

The paper introduces SRe$^2$L (Squeeze, Recover, and Relabel), a novel framework that successfully scales dataset condensation to the full ImageNet-1K dataset. By decoupling the traditional, computationally expensive bilevel optimization into three independent stages, the authors achieve a staggering 60.8% validation accuracy on ImageNet-1K with only 50 images per class—outperforming previous state-of-the-art methods by over 30% while being up to 52x faster.

What Problem Does This Paper Address?

Dataset condensation (or distillation) aims to shrink a massive dataset into a tiny, representative subset that can train a model to nearly the same accuracy as the original. While highly desirable for efficient neural architecture search and continual learning, existing methods hit a "scalability wall."

Most prior approaches rely on bilevel optimization: an inner loop that updates model parameters and an outer loop that updates the synthetic data. This process is incredibly memory-intensive and slow because it requires unrolling many training steps. Consequently, most research has been stuck on small-scale datasets like CIFAR-10 or Tiny-ImageNet. Scaling these methods to the 1.2 million images of ImageNet-1K at standard resolutions (224x224) was previously considered computationally prohibitive for most researchers.

Methods

The authors propose a tripartite "decoupled" approach that turns a complex nested optimization into a linear pipeline:

  1. Squeeze (Stage 1): Instead of updating the model and data simultaneously, they first "squeeze" the knowledge of the entire dataset into a standard pre-trained model (the "teacher"). This model encapsulates the essential features and distributions of the real data.
  2. Recover (Stage 2): They synthesize condensed images by matching the Batch Normalization (BN) statistics of the squeezed model. Instead of looking at real images during this stage, the algorithm optimizes synthetic pixels so that their mean and variance at every layer match the "running mean" and "running variance" stored in the pre-trained teacher. This is a single-level optimization, making it much faster and lighter on memory.
  3. Relabel (Stage 3): Since the synthetic images might contain features from multiple classes or look "abstract," the authors use the teacher model to provide soft labels (probabilities) for various crops of the synthetic images. This ensures the labels are perfectly aligned with the synthesized visual information.

Datasets

The study focuses on large-scale benchmarks to prove scalability:

  • Tiny-ImageNet: 200 classes, 500 images per class, 64x64 resolution.
  • ImageNet-1K: The full-scale industry standard with 1,000 classes and ~1.28 million images at 224x224 resolution.
  • CIFAR-100: Used for additional validation and comparison with prior work.

Key Insights and Ideas

  • Decoupling is the Key: The most significant "aha moment" is that we don't need the real data and synthetic data in the same GPU memory at the same time. By using a pre-trained model as a proxy (via BN statistics), the authors bypass the memory bottleneck of bilevel optimization.
  • BN Statistics are Sufficient: The paper demonstrates that the global statistics stored in Batch Normalization layers are a remarkably dense and effective representation of the original dataset's distribution.
  • Soft Labels Matter: Synthetic images often look like "collages" of features. Assigning a single hard label is suboptimal. Using a teacher to "relabel" these images with soft probabilities allows the student model to learn much more nuanced information from a limited number of samples.
  • Architecture Agnostic: Because the stages are decoupled, you can "squeeze" with one architecture (e.g., ResNet-50) and train a completely different "student" (e.g., a Vision Transformer) on the resulting condensed data with high success.

Key Results

  • Performance Leap: On ImageNet-1K with 50 Images Per Class (IPC), SRe$^2$L achieved 60.8% accuracy. For context, the previous best (TESLA) only managed 27.9%—a massive 32.9% improvement.
  • Efficiency Gains: Compared to the popular MTT (Matching Training Trajectories) method, SRe$^2$L is 16x to 52x faster and uses 6x to 11x less GPU memory during the synthesis phase.
  • Resolution Scalability: It is the first method to effectively condense ImageNet at the standard 224x224 resolution, whereas most previous work was limited to 64x64 or smaller.
  • Cross-Architecture Generalization: Condensed data produced by a ResNet-18 "teacher" successfully trained a Vision Transformer (DeiT-Tiny) to respectable accuracies, proving the data isn't just overfitted to one specific model type.

Limitations and Future Work

  • The Gap Remains: While 60.8% is a breakthrough for condensed data, it still trails behind training on the full ImageNet-1K dataset (~76-80%+). Dataset condensation is not yet a "lossless" replacement.
  • Storage Overhead: Relabeling requires storing soft labels (vectors of 1,000 probabilities) for every synthetic image, which increases the storage footprint of the "condensed" dataset compared to just storing images and hard labels.
  • Future Directions: The authors suggest extending this framework to even larger datasets like ImageNet-21K and exploring other modalities such as Natural Language Processing (NLP) and speech, where the scale of data is an even greater challenge.

Summary updated

BibTeX
@inproceedings{yin2023squeeze,
  author = {Zeyuan Yin and Eric P. 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