TL;DR
Dataset distillation compresses massive datasets into tiny synthetic ones, but most existing methods rely on slow, heuristic optimization. This paper proves that for Kernel Ridge Regression (KRR), you only need one data point per class to perfectly recover the original model's performance, providing an exact analytical solution. This mathematical breakthrough yields an algorithm that is up to 15,840$\times$ faster than previous state-of-the-art methods while offering provable privacy guarantees.
The Dataset Distillation Bottleneck
Modern deep learning models are trained on increasingly massive datasets, which incurs huge computational costs and makes iterating on models difficult. Dataset distillation (DD) aims to solve this by synthesizing a tiny, artificial dataset that can train a model to achieve the same performance as the original, massive dataset.
However, most current DD algorithms formulate this as a highly complex, computationally brutal bilevel optimization problem (e.g., matching gradients or training trajectories). They lack solid theoretical guarantees, and previous theoretical attempts suggested that you need a huge number of distilled points—scaling with the dimension of the data ($d$) or the total number of original data points ($n$)—which defeats the purpose of distillation. The authors set out to find the true theoretical minimum number of points needed for KRR and to use that math to build a faster, provable algorithm.
A Mathematical Approach to Distillation
Instead of using gradient descent to slowly learn the optimal synthetic pixels, the authors take a purely mathematical approach. They focus on Linear Ridge Regression (LRR) and Kernel Ridge Regression (KRR)—foundational models that are often used in theoretical analyses of neural networks.
They set up a system of equations to find the exact conditions under which a model trained on a synthetic dataset yields the exact same weights as a model trained on the full dataset. They analyze two types of feature mappings:
- Surjective mappings: Where every feature vector can be mapped back to an input image (e.g., invertible NNs, some fully-connected and convolutional networks).
- Non-surjective mappings: Where this reverse mapping isn't perfectly 1-to-1 (e.g., deep linear NNs).
Based on their proofs, they introduce a direct, analytical algorithm that uses Singular Value Decomposition (SVD) and matrix pseudoinverses to instantly compute the distilled dataset, completely bypassing iterative training loops.
Key Theoretical Insights
The theoretical findings drastically reduce the required size of distilled datasets compared to prior work.
- The "One Per Class" Rule: For LRR and KRR with surjective feature mappings, exactly one data point per class ($k$ points total) is necessary and sufficient to perfectly recover the original model's parameters. This is a massive theoretical leap from prior work that required $n$ or $d$ points.
- Deep Linear NNs Need $k+1$: For non-surjective mappings like deep linear networks, one point per class isn't quite enough, but the authors prove that $k+1$ points can be sufficient.
- Math Beats Optimization: Because the distilled data can be solved analytically via linear algebra, we can completely skip the notoriously slow optimization loops used in methods like KIP (Kernel Inducing Points).
Experimental Results and "Privacy for Free"
The authors evaluate their method on standard computer vision benchmarks for dataset distillation, including MNIST, CIFAR-10, and CIFAR-100.
- Mind-Blowing Speedups: The analytical approach absolutely crushes the previous state-of-the-art (KIP) in efficiency. On CIFAR-100 (at 50 images per class), the proposed algorithm is ~15,840$\times$ faster, taking just 25 GPU seconds compared to KIP's estimated ~110 hours.
- Higher Accuracy: The method doesn't just match KIP; it slightly outperforms it. For example, on CIFAR-10 (50 images/class), it hits 47.77% accuracy compared to KIP's 47.48%, while running in 20 seconds instead of 3,510 seconds.
- Theory Verified: In controlled experiments, the analytically computed datasets perfectly matched the original models' test accuracies for Linear, Fully-Connected, and Random Fourier Feature models, proving the math works in practice.
Furthermore, the analytical solution contains free variables. This means you can initialize the synthetic data with pure random Gaussian noise instead of real images.
The resulting distilled images look like pure static, completely hiding the original training data, yet they still train the model perfectly. This grants formal differential privacy guarantees "for free," unlike optimization-based methods that often leak visual features of the original data.
Limitations and Future Directions
- Deep Non-Linear Networks: While the theory shows $k$ points aren't enough for deep non-linear neural networks with non-surjective mappings, the authors acknowledge they haven't yet pinpointed the exact minimum number of points needed for these complex models. This remains an open question.
- Fixed Feature Mappings: The analysis assumes fixed feature mappings (which is standard for KRR). In practice, deep learning involves training all layers of a network (learnable feature mappings). Extending this analytical framework to fully trainable neural networks is a highly promising, albeit challenging, direction for future research.
Summary updated