Training deep learning models on massive datasets like ImageNet is slow and expensive. Dataset Distillation (DD) offers a solution: compress a massive dataset into a tiny handful of synthetic "representative" images. If you train a model on these few synthetic images, it should perform nearly as well as if it had seen the whole thing.
While supervised distillation (using labels) has come a long way, it has a major flaw: the resulting synthetic data is often "overfit" to specific labels and doesn't transfer well to new, downstream tasks. In a new paper from ICLR 2024, researchers introduce KRR-ST, a method for Self-Supervised Dataset Distillation, designed specifically to create tiny datasets that power efficient transfer learning.
TL;DR
The authors propose a way to distill massive unlabeled datasets into a few synthetic samples that are perfect for self-supervised pre-training. By replacing stochastic self-supervised losses with a stable, deterministic matching objective (KRR-ST), they overcome the training instability that plagued previous attempts and achieve state-of-the-art transfer learning performance.
What Problem Does This Paper Address?
Most dataset distillation methods are supervised. They try to find synthetic images that make a model predict the correct labels. However, labels are a "narrow" signal. If you distill a dataset to recognize 100 specific bird species, that distilled data might be useless if you later want to train a model to detect airplanes.
Self-Supervised Learning (SSL) is the standard way to learn general-purpose features that transfer well. Naturally, we’d want to distill datasets using SSL objectives (like SimCLR or Barlow Twins).
The challenge? SSL relies heavily on randomness—random data augmentations or masking. The authors prove mathematically that when you try to use these stochastic losses in a "bilevel optimization" (the math behind distillation), the gradients become biased. This leads to massive training instability, making it nearly impossible to "distill" the essence of the data using standard SSL tricks.
Methods: Introducing KRR-ST
To fix the instability, the authors propose Kernel Ridge Regression on Self-supervised Target (KRR-ST). The core idea is to remove the randomness from the distillation loop entirely.
- The Target Model: First, they train a "Teacher" model on the full, original dataset using a standard SSL method (Barlow Twins). This model represents the "gold standard" of feature representations.
- The Inner Loop (Training on Synthetic Data): Instead of using a complex SSL loss with augmentations, they use a simple Mean Squared Error (MSE). They train a model to ensure its representations of the synthetic images match a set of learnable "target features."
- The Outer Loop (Optimizing Synthetic Data): They update the synthetic images so that a model trained on them produces features that look just like the "Teacher" model's features when looking at real data.
- Efficiency Trick: To make this fast, they use Kernel Ridge Regression. They freeze the main body of the neural network and only solve for the final linear layer using a closed-form mathematical solution. This avoids the need for thousands of expensive training steps inside the distillation loop.
Datasets
The authors evaluated their method by distilling "Source" datasets and transferring the knowledge to "Target" datasets:
- Source (Distillation): CIFAR-100, TinyImageNet, and the full ImageNet-1K.
- Target (Evaluation): A wide battery of tasks including CIFAR-10, Aircraft, Stanford Cars, CUB2011 (birds), Stanford Dogs, and Flowers.
Key Insights and Ideas
- The Bias Proof: The paper’s most significant theoretical contribution is proving that the gradient of synthetic samples with respect to an SSL objective is biased when randomness (augmentations) is involved. This explains why previous attempts at SSL distillation failed.
- MSE is All You Need: By switching from contrastive/SSL losses to a deterministic MSE matching objective, they achieved stable convergence.
- Visual Realism: Interestingly, the synthetic images produced by KRR-ST look much more like "real" objects than those produced by supervised methods, which often look like abstract, high-frequency noise. This visual fidelity is likely why the data generalizes so well to different model architectures.
Key Results
KRR-ST consistently outperformed supervised distillation baselines (like DSA, DM, and MTT) in transfer learning scenarios:
- Superior Transfer: When distilling TinyImageNet to just 2,000 images (2% of the original), KRR-ST achieved 71.16% accuracy on the Flowers dataset, while the best supervised baseline only reached ~66%.
- Architecture Agnostic: Data distilled using a simple 4-layer CNN worked remarkably well when used to pre-train much larger models like ResNet-18, VGG11, and MobileNet.
- Data-Free Knowledge Distillation: The method proved highly effective for "Target Data-Free KD," where a student model must learn from a teacher without having access to the teacher's original training data.
Limitations and Future Work
- One-Time Cost: The method requires pre-training a self-supervised "target model" on the full dataset first. While this is a standard step in many pipelines, it is a prerequisite for the distillation process.
- Computational Scale: While more efficient than previous bilevel methods, distilling ImageNet-1K still requires significant GPU resources.
- Beyond Classification: The current work focuses on image classification. Future research could explore whether these distilled sets work for object detection or segmentation.
Paper Citation: Lee, D. B., Lee, S., Ko, J., Kawaguchi, K., Lee, J., & Hwang, S. J. (2024). Self-Supervised Dataset Distillation for Transfer Learning. International Conference on Learning Representations (ICLR).
Summary updated