TL;DR
The researchers introduce TESLA, a memory-efficient dataset distillation framework that scales the state-of-the-art "Matching Training Trajectories" (MTT) method to large-scale datasets like ImageNet-1K. By reducing memory complexity from linear to constant and introducing a novel soft-label assignment strategy, they achieved an 18.2% absolute accuracy gain over previous methods and successfully distilled ImageNet-1K to 50 images per class on a single GPU.
What Problem Does This Paper Address?
Dataset Distillation aims to compress a massive dataset (like ImageNet-1K with over a million images) into a tiny, highly informative synthetic set. Models trained on this "distilled" set should ideally perform nearly as well as those trained on the original. This is vital for accelerating neural network training, reducing storage, and enabling applications like federated learning.
The current gold standard for distillation is Matching Training Trajectories (MTT). MTT works by making a "student" model (trained on synthetic data) follow the same parameter path as a "teacher" model (trained on real data). However, MTT has a massive bottleneck: to calculate gradients, it "unrolls" multiple optimization steps, requiring GPU memory that grows linearly with the number of steps. For large datasets like ImageNet-1K, MTT quickly runs out of memory (OOM), limiting it to tiny datasets or very few images per class (IPC).
Methods
The authors propose two major innovations to overcome these hurdles, combined into an algorithm called TESLA (TrajEctory matching with Soft Label Assignment).
- Constant Memory Computation: The core mathematical contribution is a rearrangement of the MTT loss gradient. Instead of storing $T$ separate computational graphs for $T$ unrolled steps, they show that the gradient can be computed by caching a single accumulated gradient vector. This reduces the memory footprint from $O(T)$ to $O(1)$, allowing them to scale to much longer trajectories and larger datasets without hitting memory limits.
- Soft Label Assignment (SLA): Distilling datasets with many classes (like ImageNet's 1,000) is notoriously difficult with standard "hard" labels. The authors found that simply learning labels alongside images was insufficient. Instead, they use the teacher model's own predictions at specific "target steps" in its training trajectory to provide "soft labels" for the synthetic images. This "train-free" method injects rich information about class relationships directly into the distillation process.
Datasets
The researchers evaluated their method on three standard benchmarks:
- CIFAR-10: 10 classes, 50k training images.
- CIFAR-100: 100 classes, 50k training images.
- ImageNet-1K: 1,000 classes, ~1.28 million training images (resized to 64x64 for consistency with prior work).
Key Insights and Ideas
- Exact Gradients, Less Memory: The "constant memory" trick isn't an approximation; it produces the exact same gradients as the original MTT but with a $\sim 6\times$ reduction in memory footprint on ImageNet-1K.
- The Importance of "When": Not all soft labels are equal. The authors discovered that using labels from a fully trained teacher (the "last epoch") actually performs worse than using labels from the specific point in time the student is trying to match (the "target step"). This is because the student needs labels that are relevant to its current stage of learning.
- Scaling IPC: Because of the memory efficiency, TESLA is the first method capable of scaling to 50 images per class on ImageNet-1K on a single GPU. Previous methods were stuck at 2 IPC.
Key Results
- SOTA Performance: TESLA sets new records across the board. On ImageNet-1K with 50 IPC, it achieves 27.9% accuracy—just a 5.9% drop from training on the full dataset, despite using only 4.2% of the data.
- Efficiency Gains: Compared to the original MTT, TESLA achieves a $6\times$ memory reduction on ImageNet-1K with only a negligible (2%) increase in runtime.
- Cross-Architecture Transfer: Synthetic datasets generated by TESLA transfer well to unseen architectures. For instance, data distilled using a simple ConvNet still yields high performance when training a ResNet-18 or a Vision Transformer (ViT).
Limitations and Future Work
While TESLA significantly advances the field, some limitations remain:
- Teacher Dependency: Like MTT, TESLA still requires pre-trained "teacher" trajectories. Storing these checkpoints takes significant disk space.
- Resolution: Experiments were conducted at 64x64 resolution. Scaling to full-resolution ImageNet (224x224) remains a future challenge.
- The Gap: While the gap to full-dataset performance is closing, it hasn't disappeared. Future work may look into removing the requirement for teacher models entirely or finding even more informative ways to condense data.
Summary updated