NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Flexible Dataset Distillation: Learn Labels Instead of Images

Ondrej Bohdal, Yongxin Yang, Timothy M. HospedalesarXiv 2020

Introduction

Training modern deep neural networks requires massive datasets, which is computationally expensive and logistically challenging. Dataset distillation aims to solve this by condensing the knowledge of a large dataset (e.g., 60,000 images) into a tiny synthetic set (e.g., 100 images) that can train a model to similar performance levels.

However, traditional distillation methods are notoriously brittle. They focus on synthesizing images for fixed labels, resulting in synthetic data that acts like adversarial examples—highly overfitted to specific training conditions. If a user tries to train a model on these images using a standard optimizer, a different number of training steps, or a new architecture, performance typically collapses. This paper introduces Label Distillation (LD), a paradigm shift that meta-learns synthetic labels for real images, creating highly flexible and robust distilled datasets.

The Method: Learning Labels, Not Pixels

To overcome the limitations of image-based distillation, the authors flip the approach: they use a small, randomly selected set of real images and synthesize soft labels (probability distributions over classes) for them.

The Label Distillation framework allows for cross-dataset transfer, such as learning Japanese characters (KMNIST) from English letters (EMNIST).

The Meta-Learning Loop

The core of the approach is a novel meta-learning algorithm. A "base model" is trained on the small set of real images using synthetic labels. The model is then evaluated on the massive, real target dataset. The resulting error is backpropagated to update the synthetic labels themselves.

To ensure these labels are useful throughout the entire training process, the authors employ a "Reset" trick: whenever the model's accuracy plateaus, they reset the weights to a new random initialization. This forces the synthetic labels to remain effective for models at any stage of training, rather than just at the end of a specific optimization path.

Stability via Ridge Regression

Standard meta-learning often requires unstable second-order gradients. To address this, the authors replace the final classification layer with a differentiable Ridge Regression (RR) solver. This allows for the computation of "pseudo-gradients" using a closed-form mathematical solution, making the optimization strictly first-order, significantly faster, and more stable than traditional methods.

Key Results and Flexibility

Label Distillation (LD) significantly outperforms prior image-based Dataset Distillation (DD) in both raw accuracy and generalizability. On MNIST with just 10 images per class, LD achieves 87.27% accuracy, compared to 79.5% for prior methods.

Robustness to Training Parameters

The most significant advantage of LD is its flexibility. Unlike previous synthetic images that require a hardcoded training schedule, LD datasets work with off-the-shelf optimizers and varying training durations.

Label Distillation (LD) maintains high accuracy even when the number of training steps deviates by 20%, whereas traditional Dataset Distillation (DD) performance collapses.

As shown in the experimental results, when the number of training steps is altered by ±20% during testing, LD's accuracy remains stable. In contrast, traditional DD methods see a massive drop in performance if the test conditions deviate even slightly from the training conditions.

Cross-Architecture and Cross-Dataset Transfer

LD demonstrates impressive transferability. Labels distilled using an AlexNet architecture successfully train LeNet and ResNet-18 models. Even more striking is cross-dataset distillation: the authors successfully trained a model to recognize Japanese characters (KMNIST) using only images of English letters (EMNIST) with distilled labels. The meta-learned labels reflect visual similarities (e.g., a Japanese character resembling a blend of 'X' and 'R'), allowing for "less-than-one-shot" learning where a 49-class classifier can be trained using only 10 or 20 base images.

Conclusion

Label Distillation represents a major step toward making distilled datasets a practical tool for general-purpose machine learning. By focusing on the mathematical smoothness of labels rather than the complexity of natural image statistics, the authors have created a method that is robust, flexible, and capable of surprising cross-domain feats. While absolute performance on complex datasets like CIFAR-10 still trails full-dataset training, the flexibility of LD opens new doors for efficient model training and data compression.

Summary updated

BibTeX
@misc{bohdal2020flexible,
  author = {Ondrej Bohdal and Yongxin Yang and Timothy M. Hospedales},
  title = {{Flexible Dataset Distillation: Learn Labels Instead of Images}},
  year = {2020},
  eprint = {2006.08572},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.08572},
}
Figure