| Sets and labels | |
|---|---|
| real training set (a batch of it per step), distilled set | |
| number of distilled images | |
| label matrices, one row per image, one column per class | |
| predictions on the real images of the model trained on | |
| labels solved in closed form (Label Solve) | |
| Kernel regression | |
| kernel and its feature map, | |
| features of the real and the distilled images, one row per image | |
| kernel matrices between real and distilled, and among distilled images | |
| ridge penalty, | |
| ridge weights fitted on | |
| Networks | |
| network output with weights ; random initial weights | |
| neural tangent kernel of the architecture | |
| NTK values between and the distilled images, and among them | |
| output at initialization and after training to convergence | |
| pixel positions per image | |
| last-hidden-layer features of a finite network, and their kernel (FRePo) | |
| Paper symbols | |
| KIP writes and , the target and support sets | |
| KIP writes , FRePo | |
| FRePo writes | |
Context. Dataset distillationlearning a few synthetic training images per class, often 1 to 50, that train a network from scratch nearly as well as the full real training set. Reading note: Dataset distillation seeks a small synthetic set that trains a network to score well on real data. Because that real-data score depends on the distilled images only through the inner training run, direct optimization has to differentiate through training. Matching methods keep ordinary training and replace the objective; trajectory matching(Cazenavette et al., 2022) start a network at a saved checkpoint of a real-data run, train it a few steps on the synthetic images, and minimize its distance to a later checkpoint. Reading note: Matching training trajectories, for instance, scores how closely a short synthetic run tracks a real-data run. Kernel methods keep the real-data objective and replace the inner learner. Kernel ridge regressionridge regression in the feature space of a kernel ; its fit and its predictions are explicit matrix formulas in the training points trains in closed form. An infinitely wide network trained by gradient descent behaves as kernel regression with its neural tangent kernelNTK: , the inner product of the output's parameter gradients at the random initial weights , with the output of the network with weights ; at infinite width it is the same for every initialization and stays fixed during training. Reading note: The neural tangent kernel. Nguyen et al. (2021) turned this correspondence into KIP (kernel inducing points), first with fully connected kernels and then with convolutional kernels in a second paper that year. Zhou et al. (2022) replaced the infinite-width kernel with finite-network features in FRePo (neural feature regression with pooling).
Kernel ridge regression turns the trained model's real-data predictions into an explicit formula in the distilled images. Gradient descent then optimizes the pixels and labels directly, with no inner run to unroll. Under a small ConvNet NTK, kernel regression on one KIP image per class of CIFAR-10 matches 128 random real images per class. The sets also transfer to finite networks. On a 128-channel ConvNet, the width most distillation papers evaluate with, 10 KIP images per class of CIFAR-10 reach 57.6% test accuracy (Cazenavette et al., 2022). At that budget in their benchmark, random real images reach 26.0%, gradient matching with augmentation reaches 52.1%, and trajectory matching reaches 65.3%. Convolutional NTKs are expensive to compute. KIP's released sets took thousands of GPU-hours and never went past 32 × 32 images. FRePo keeps the closed-form loss but substitutes the last-layer features of a pool of small networks trained alongside the images. On CIFAR-100 at one image per class, it came within a point of trajectory matching in a hundredth of the time. That speedup opened up 128 × 128 images and 64 × 64 ImageNet-1k. Its headline numbers rely on a wider network than the field's standard. On many-class benchmarks they also rely on learned labels, which carry most of its ImageNet-1k accuracy.
Setting and kernel ridge regression. Let the real training set; in practice each step uses a random batch of it, 5,000 images in the convolutional KIP runs and 1,024 in FRePo be the real training set and the distilled set, a few images per class whose pixels are optimized, with the number of images the distilled set. Stack their labels as rows in the labels of the real and the distilled images; each row is a mean-centered one-hot vector, or for a learned row, posing classification as regression on mean-centered one-hot labelsone-hot vectors with subtracted from every entry, the number of classes. Write the kernel as for a feature map a map from an image to a vector, possibly infinite-dimensional, whose inner products give the kernel; for the NTK it is the gradient . Stack the features of and as rows of the matrix whose rows are for the distilled images ; does the same for the real images and , so the kernel matrices are , the matrix of kernel values between distilled images and , the kernel values between every real and every distilled image. A linear model fitted on with ridge penalty the ridge penalty; the convolutional KIP paper and FRePo scale it to the kernel, solves . Because can be infinite-dimensional, the push-through identity for any matrix and ; multiply both sides by on the left and on the right to check moves the inverse to the sample matrix. Multiplying the fitted weights by gives the real-set predictions :
KIP's single-level objective and Label Solve. KIP minimizes the squared prediction error of on the real data over the distilled images and, optionally, their labels:The bilevel problem collapses to a single level, since the loss depends on the pixels only through and . Gradients with respect to those two matrices need only linear solves against the matrix . Backpropagation then pushes those gradients through the kernel function into the pixels, with no training run to unroll. For fixed images, is linear in , so the loss is quadratic in . Its minimum-norm minimizer has a closed form, called Label Solve:where denotes the pseudoinverse.
When kernel regression matches a trained network. Kernel regression equals a trained neural network only in an idealized limit, and only on average over initializations. Put a network in the NTK parametrizationeach layer's weights drawn with unit variance and multiplied by in the forward pass, so that the kernel has a finite limit as the width grows (Jacot et al., 2018) and send its width to infinity. Train all weights on under the squared losswhy: the infinitely wide network trains as its linearization, a linear model in the features , and least squares on a linear model has a closed-form solution; with cross-entropy the trained linear model has no closed form by gradient flow, or by gradient descent with a small enough step. In that limit the network stays equal to its linearization around the random initial weights . At convergence, its prediction at is (Lee et al., 2019)Here the output of the network at its random initial weights ; stacks it over the distilled images, and it has mean zero over the initialization is the zero-mean output at initialization, while the row of NTK values between the image and each distilled image ; is the NTK matrix among the distilled images and hold the NTK values from to and within . Because is deterministic in this limit, the same for every initialization, only the terms are random. Averaging over cancels them, though any single trained network still differs from the mean by a random term. Setting in KIP recovers this mean predictor at , and KIP keeps tiny in practice. Using the NNGP kernelneural network Gaussian process kernel: , the covariance of an infinitely wide network's outputs at random initialization instead gives the Bayesian posterior mean of the infinitely wide network, with as the observation noise variance. A finite network does not stay linear. Its kernel moves during training, so sets distilled in the limit must be tested on finite networks.
How KIP runs in practice. KIP initializes as a class-balanced random subset of real images and updates the pixels, and optionally , with Adam. At each step it draws a real batch, forms and , and backpropagates the squared error into the distilled pixels. The first KIP paper used cheap kernels, those of shallow fully connected networks and an RBF kernel. Each entry depends on two images only through the dot products , , and . A one-hidden-layer network trained on 100 KIP images of CIFAR-10 reached 45.7%, against 44.9% for gradient matching on a ConvNet. The second paper switched to the NTK of a 4-layer ConvNet with average pooling. That architecture has an extra input convolutional layer relative to the 3-layer ConvNet of earlier matching papers, and drops instance normalization, which the infinite-width limit excludes.
Why convolutional kernels are expensive. Convolutional NTKs are slow because each kernel entry tracks correlations across all pairs of spatial positions. With the number of pixel positions of an image, height times width; 1,024 for 32 × 32 images pixel positions per image, each convolutional layer costs per kernel entry and global pooling costs . On a V100 GPU, an 18 × 18 block of ConvNet kernel entries takes 80 ms. One step with 100 distilled images against 5,000 real images therefore takes about 120 GPU-seconds for the kernel matrices alone and 460 GPU-seconds with gradients. The authors distributed blocks across hundreds of GPUs and report thousands of GPU-hours for the released sets. Doubling resolution from 32 × 32 to 64 × 64 multiplies the pooling cost alone by 16 (computed here from the scaling). Every KIP result stays at 32 × 32 or smaller.
Kernel accuracy versus finite-network transfer. Under the kernel itself with ZCA whiteningthe linear map , with the covariance of the training images' pixels and a regularizer, which flattens the pixel spectrum; the convolutional KIP paper calls it a crucial ingredient for its color-image results, KIP sets punch far above their size. On CIFAR-10, one fixed-label KIP image per class reaches 58.5%, against 58.1% for 128 random real images per class. Learning the labels raises that kernel accuracy to 64.7%. Finite networks lose part of that advantage, and on CIFAR-10 the learned-label gain does not carry over. At 10 images per class, learned labels lift kernel accuracy from 67.6% to 75.6% but drop a 1,024-channel ConvNet from 62.7% to 58.9%. The best CIFAR-10 transfers therefore keep labels fixed. On CIFAR-100, the best finite-network transfers sit 17 to 18 points below the kernel. As the linearization predicts, wider networks narrow the gap, and KIP's strongest transfers use 1,024 channels per layer with no normalization. Cazenavette et al.'s 128-channel re-run above lands 5 points below KIP's 1,024-channel number, even after searching over checkpoints, weight decay, augmentation, whitening, label learning, and instance normalization. Without ZCA whitening, 10-image-per-class transfer drops to 49.2%.
FRePo: replacing the NTK with finite-network features. FRePo keeps KIP's closed-form loss while replacing the expensive infinite-width kernel with features from a finite ConvNet. Split the network into a body with weights and a linear readout, and write the last hidden layer's activations for image in a finite network with weights , a vector of fixed length for the last hidden layer's features. Fitting only the readout on by ridge regression repeats the derivation above with . The readout predicts on the real batch, using the finite-network conjugate kernel, the kernel of a network's last hidden layer, here of a finite network in the middle of training . FRePo scores those predictions with the same squared loss. The gradient into the distilled pixels takes one backward pass through the body with held fixed.
The network pool and what FRePo's gradient omits. To avoid overfitting a single random initialization, FRePo draws from a pool of ten networks. Each step samples one network, evaluates the closed-form loss on a real batch, updates the distilled images and labels, and trains that network for one step on the current distilled set. Each network resets after 100 of its own updates. The pool supplies features across initializations and training stages, beating a single periodically reset network. Because is frozen during differentiation, FRePo's gradient omits how the distilled images shape the body's features during training. Zhou et al. liken the scheme to one-step truncated backpropagation through training, with the last layer solved in closed form in place of a gradient step. No derivation guarantees that images good for fitting the readout on given features also train the whole network well. The paper rests that premise on experiment.
Speed, larger images, and cross-architecture transfer. On the 128-channel ConvNet, one FRePo step takes 10.9 ms and 0.39 GB of GPU memory. On the same GPU and architecture, one trajectory-matching step unrolled over 15 inner steps takes 486 ms and 4.9 GB. On CIFAR-100 at one image per class, FRePo reached 23.4% in 38 seconds, while trajectory matching needed 3,805 seconds to reach 24.0%. That speed made higher-resolution datasets practical. On ImageWooften dog breeds from ImageNet, here at 128 × 128, built to be hard to tell apart; its companion ImageNette has ten easily separated classes at 128 × 128 and 10 images per class, FRePo reaches 42.2%, against 35.8% for trajectory matching and 27.0% for random real images. FRePo sets also transfer across architectures better than matching methods and KIP. At 10 CIFAR-10 images per class, a VGG network with batch normalization reaches 59.4% on FRePo's set, against 46.6% on trajectory matching's and 30.1% on KIP's. KIP's set fares much better on networks without normalization than on VGG with batch normalization. Zhou et al. suggest that matching methods transfer worse because of the instance normalizationnormalizing each channel of each image's activations to zero mean and unit variance over the spatial positions they train with.
The wide-network requirement and scaling cost. Zhou et al. note that kernel regression on needs a feature dimension much larger than , so FRePo doubles the channel count at each downsampling layer. They also train the network pool with batch normalization and evaluate without normalization. With that wider architecture, FRePo matches trajectory matching on CIFAR-10 at 10 images per class (65.5% against 65.3%). On CIFAR-100 it leads at one image per class (28.7% against 24.3%) and trails at 50 (44.3% against 47.7%). When distilled with the 128-channel instance-norm ConvNet used by trajectory matching, FRePo trails at 10 images per class on both CIFAR-10 (59.6% against 65.3%) and CIFAR-100 (31.2% against 40.1%). Step time also grows with the distilled set size, because each step passes all of through the body and solves an linear system. One step takes 11 ms at 100 images and 123 ms at 6,400, making tens of thousands of distilled images difficult.
Learned labels carry most of FRePo's gain on many classes. FRePo jointly learns the distilled labels and trains the evaluation network with squared loss on them. On CIFAR-10 at 10 images per class, learned labels barely move accuracy (65.5% against 65.4% fixed). On CIFAR-100 at one image per class, they add 3.3 points (28.7% against 25.4%). On ImageNet-1k at one image per class, learned labels supply most of the score, lifting accuracy from 1.6% fixed to 7.5%. Under the same squared-loss training, random real images reach 1.1% and the full dataset reaches 19.8%. Learned labels are soft labelstargets that give every class a probability; how much of distillation's progress they account for (Qin et al., 2024; Dey et al., 2026). Reading note: Soft labels in dataset distillation.
Consequences and limits. Kernel ridge regression collapses distillation into a single-level problem with an exact inner solve for the kernel model. For finite networks, every performance claim rests on transfer experiments. Transfer accuracy drops on mismatched architectures, and on CIFAR-10 it also drops as width shrinks or when labels are learned. Later re-evaluationscomparisons of distilled sets with selected and random real images under the same labels and training. Reading note: Dataset distillation stressed comparisons against selected real subsets and against random real images given labels of the same kind. Neither paper includes a selected subset in its distillation benchmarks. KIP does run Label Solve on random real images, and its learned images beat that baseline. At 10 CIFAR-10 images per class, Label Solve on random real images reaches 53.6% under kernel regression, against 75.6% for KIP's learned images and labels. On a 1,024-channel ConvNet, the same comparison is 49.3% against 58.9%. FRePo omits this baseline, and both papers rely on ZCA whitening for color-image results.
Terms
- Kernel distillation
- Replace training on the distilled set by kernel ridge regression, whose trained predictions are a formula in the distilled images.
- KIP loss
- , minimized over the distilled images and optionally their labels.
- Push-through
- : ridge weights through an solve.
- Label Solve
- For fixed images the loss is quadratic in ; the minimum-norm minimizer is .
- Exactness
- With the NTK and , the predictor is the mean over initializations of an infinitely wide network in the NTK parametrization, trained to convergence by gradient flow on the squared loss.
- KIP cost
- Convolutional kernel entries and their gradients; about 460 GPU-seconds per step for 100 images, thousands of GPU-hours, 32 × 32 only.
- Transfer
- 57.6% on the 128-channel ConvNet at 10 images per class of CIFAR-10, against 26.0% random real and 65.3% trajectory matching; on CIFAR-10 learned labels transfer worse than fixed.
- FRePo
- Same loss with the last-hidden-layer kernel of finite networks from a pool of ten, each trained on the distilled set and reset after 100 steps.
- FRePo's costs
- Needs features much wider than the set; trails trajectory matching on the standard ConvNet; on ImageNet-1k most of its gain is learned labels.
Sources
- Timothy Nguyen, Zhourong Chen, and Jaehoon Lee. Dataset Meta-Learning from Kernel Ridge-Regression. International Conference on Learning Representations (ICLR), 2021.
- Timothy Nguyen, Roman Novak, Lechao Xiao, and Jaehoon Lee. Dataset Distillation with Infinitely Wide Convolutional Networks. Advances in Neural Information Processing Systems, 2021.
- Yongchao Zhou, Ehsan Nezhadarya, and Jimmy Ba. Dataset Distillation using Neural Feature Regression. Advances in Neural Information Processing Systems, 2022.
- George Cazenavette, Tongzhou Wang, Antonio Torralba, Alexei A. Efros, and Jun-Yan Zhu. Dataset Distillation by Matching Training Trajectories. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022.
- Jaehoon Lee, Lechao Xiao, Samuel S. Schoenholz, Yasaman Bahri, Roman Novak, Jascha Sohl-Dickstein, and Jeffrey Pennington. Wide Neural Networks of Any Depth Evolve as Linear Models Under Gradient Descent. Advances in Neural Information Processing Systems, 2019.
Connected notes
- The neural tangent kernelLazy training and feature learning · Scale decides whether features move
Any model becomes lazy, its tangent kernel effectively frozen, when its output scale grows and its initial output is cancelled; for a width- network a output normalization is lazy in the limit and the mean-field is not.
- Surprises in High-Dimensional Ridgeless Least Squares InterpolationBenign overfitting · Scale decides whether features move
Random features with no linear part have a covariance within of the identity in Frobenius norm, so their limiting risk is that of an isotropic linear model.
- Feature learning from one gradient stepHigh-dimensional SGD · Scale decides whether features move
One first-layer gradient step of order one leaves the features equivalent to a linear model plus Gaussian noise, so the error cannot fall below the target's nonlinear part, while a step of order moves each neuron along the target and, when (Theorem 11), beats every kernel with samples.
- Parametrization across width and depthDeep Learning Alchemy · Scale decides whether features move
A parametrization is feature-learning when the hidden features change by order one during training, and the initialization, the output multiplier and the learning rate must scale with width to get that change. For Adam with updates fully aligned to their inputs, the hidden-matrix learning rate falls like 1/width and so does the readout's multiplier.