[Paper Review] Scaling Up Dataset Distillation to ImageNet-1K with Constant Memory
This paper proposes TESLA, a memory-efficient trajectory-matching method for dataset distillation that reduces GPU memory complexity from O(T) to O(1) by reorganizing gradient computation, enabling scaling to ImageNet-1K with up to 50 images per class (IPC). It further introduces soft label assignment (SLA) using teacher model outputs to improve convergence on large-class datasets, achieving 27.9% top-1 accuracy on ImageNet-1K at 50 IPC—18.2% absolute gain over prior SOTA—while using only 4.2% of the original data.
Dataset Distillation is a newly emerging area that aims to distill large datasets into much smaller and highly informative synthetic ones to accelerate training and reduce storage. Among various dataset distillation methods, trajectory-matching-based methods (MTT) have achieved SOTA performance in many tasks, e.g., on CIFAR-10/100. However, due to exorbitant memory consumption when unrolling optimization through SGD steps, MTT fails to scale to large-scale datasets such as ImageNet-1K. Can we scale this SOTA method to ImageNet-1K and does its effectiveness on CIFAR transfer to ImageNet-1K? To answer these questions, we first propose a procedure to exactly compute the unrolled gradient with constant memory complexity, which allows us to scale MTT to ImageNet-1K seamlessly with ~6x reduction in memory footprint. We further discover that it is challenging for MTT to handle datasets with a large number of classes, and propose a novel soft label assignment that drastically improves its convergence. The resulting algorithm sets new SOTA on ImageNet-1K: we can scale up to 50 IPCs (Image Per Class) on ImageNet-1K on a single GPU (all previous methods can only scale to 2 IPCs on ImageNet-1K), leading to the best accuracy (only 5.9% accuracy drop against full dataset training) while utilizing only 4.2% of the number of data points - an 18.2% absolute gain over prior SOTA. Our code is available at https://github.com/justincui03/tesla
Motivation & Objective
- To overcome the prohibitive memory cost of trajectory-matching-based dataset distillation (MTT) when scaling to large datasets like ImageNet-1K.
- To investigate whether MTT’s strong performance on CIFAR-10/100 generalizes to ImageNet-1K, which has a much larger number of classes.
- To address the poor convergence of MTT on ImageNet-1K when using hard labels for synthetic samples.
- To develop a hyperparameter-free, train-free method for injecting informative label signals into synthetic samples during distillation.
- To achieve state-of-the-art performance on ImageNet-1K with significantly higher compression rates than prior methods.
Proposed method
- Proposes a novel gradient computation procedure that caches and rearranges trajectory matching gradients to reduce memory complexity from O(T) to O(1), where T is the number of unrolled SGD steps.
- Introduces Soft Label Assignment (SLA), which uses the logits from pre-trained teacher models to generate soft labels for synthetic images, without learning labels jointly.
- Employs a teacher model ensemble from multiple training epochs to provide dynamic, high-quality soft labels during synthetic image optimization.
- Combines the constant-memory MTT implementation with SLA to enable end-to-end training on ImageNet-1K with up to 50 IPCs on a single GPU.
- Uses only the reference model weights and no additional hyperparameters in SLA, making it compatible with existing MTT frameworks.
- Employs a train-free, inference-based label injection strategy that avoids the instability of joint label optimization.
Experimental results
Research questions
- RQ1Can trajectory-matching-based dataset distillation (MTT) be scaled to ImageNet-1K despite its high memory cost due to unrolled optimization?
- RQ2Does the strong performance of MTT on small datasets like CIFAR-10/100 transfer to large-scale datasets such as ImageNet-1K?
- RQ3Why does MTT fail to converge effectively on ImageNet-1K when using hard labels for synthetic samples?
- RQ4Can soft label assignment from teacher models significantly improve the performance of MTT on large-class datasets without introducing additional hyperparameters?
- RQ5Is it possible to achieve SOTA performance on ImageNet-1K with 50 IPCs using a single GPU and constant memory?
Key findings
- TESLA reduces the memory complexity of MTT from O(T) to O(1) with negligible computational overhead, enabling scaling to ImageNet-1K.
- The method achieves 27.9% top-1 accuracy on ImageNet-1K at 50 IPCs—only a 5.9% drop from full-dataset training—while using just 4.2% of the original data.
- TESLA is the first method to scale MTT to 50 IPCs on ImageNet-1K, achieving 18.2% absolute accuracy gain over the prior SOTA.
- Soft label assignment (SLA) improves performance by 7.0 percentage points on ImageNet-1K at 1 IPC compared to hard labels, with no additional hyperparameters.
- The distilled dataset from TESLA generalizes well across architectures, outperforming prior methods on ResNet18 and ViT when trained on CIFAR-10, CIFAR-100, and ImageNet-1K.
- Ablation studies confirm that SLA alone improves performance from 0.7% (hard labels) to 7.7% (soft labels) at 1 IPC, and that soft labels from early training epochs are more effective than those from the final epoch.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.