Sam Babichenko

Reading notes / Dataset distillation

Dataset distillation via drifting

Cazenavette et al., 2026

Data and samples
pdatap_{\rm data}distribution of the real images of one class
S\mathcal Sdistilled set of one class, ∣S∣=10|\mathcal S|=10 or 5050 images
xxa distilled image, or a generated sample in Deng et al.
yya real image, or a target sample in the field
A∼PAA\sim P_Aa random augmentation: resized crop, flip, Gaussian noise
δz\delta_zpoint mass at zz
ϕ\phifrozen pretrained feature extractor
zzan augmented view's features, z=ϕ(A(x))z=\phi(A(x))
nnaugmented views per image per step, 10 by default
Drifting
ffone-step generator, x=f(ε)x=f(\varepsilon)
ε\varepsilonthe generator's input noise
ppdata distribution the generator targets; pdatap_{\rm data} in distillation
qqdistribution of the generated or distilled samples
kkkernel k(x,y)=e−∥x−y∥/τk(x,y)=e^{-\|x-y\|/\tau}
τ\taukernel temperature, 0.5 in the distillation runs
VVdrifting field V=V+−V−V=V^+-V^-
V+,V^+, V−V^-pull toward the data, push from the other samples
m+,m^+, m−m^-kernel-weighted averages of the data and of the other samples
sg\mathrm{sg}stop-gradient
ℓ,\ell, LLper-sample loss and total loss
Z+,Z^+, Z−Z^-summed kernel weights of the real and of the synthetic targets (Technical notes)
Images and evaluation
PrP_rlayer of the Laplacian pyramid at resolution r×rr\times r
r5(yj)r_5(y_j)distance from a real image yjy_j to its 5th-nearest real neighbor, in coverage
ddcosine distance in an evaluation encoder's feature space
MMnumber of real validation images of a class, in coverage
Paper symbols
kkCazenavette et al. write κ\kappa for the kernel
VVDeng et al. write Vp,q\mathbf V_{p,q}, showing its dependence on pp and qq
∣S∣|\mathcal S|IPC, images per class

Context. learning a small synthetic training set that can replace a large real one when a model is trained on it (Wang et al., 2018); it extends coreset selection, the choice of a representative subset of the real data, by letting the examples themselves be optimized. Reading note: Dataset distillation compresses a large dataset down to 10 or 50 synthetic images per class; on ImageNet-1k, each of the 1,000 classes holds about 1,300 real images. Most ImageNet-scale methods optimize those synthetic images through a pretrained classifier. squeeze, recover and relabel (Yin et al., 2023): train a classifier on the real data, synthesize images from noise that it assigns to the target class while matching its BatchNorm statistics, the per-layer feature means and variances of the real data, then label them with its soft predictions and its refinements, for instance, synthesize images that a fixed classifier scores confidently for their class. Images fitted to a decision boundary inherit that classifier's biases and tend to look alike within a class. They work mainly for training a student network on a teacher network's outputs; in this benchmark the teacher recomputes the target of every augmented training image at every step (Hinton et al., 2015) rather than from-scratch training. Cazenavette et al. (2026) drop the classifier and adapt the drifting field of Deng et al. (2026), a one-step generative method. The field pulls each synthetic image toward the real images of its class and pushes it away from the other synthetic images. The set then spreads across the class distribution rather than collapsing onto a few typical prototypes.

Drifted images train a classifier from scratch far better than classifier-distilled images, even with no classification loss during distillation. On ImageNet-1k at 10 images per class from noise, a ResNet-18 trained from scratch with one-hot labels reaches 27.0% top-1 accuracy on drifted images. The best noise-started classifier-based method reaches 11.7%. Drifted sets also span far more of each class in the feature spaces of encoders they were never distilled with. Self-supervised extractors produce the strongest sets, while a supervised extractor matching the student's own architecture gives the weakest. That points to matching the class distribution in a rich feature space as the source of the gain. The method needs random augmented copies of each image to work at all. Distilling ImageNet-1k at 10 images per class takes about 250 GPU-hours.

Setting. Each class is distilled independently. Write the distribution of the real images of one class; the real images are samples from it for the distribution of real images in one class and the distilled set of one class, ∣S∣|\mathcal S| synthetic images; ∣S∣=10|\mathcal S|=10 or 5050 here (images per class, IPC in the paper) for its distilled set. Ten static images cannot cover a continuous class distribution. The method therefore targets the distribution of the distilled images under random augmentations A∼PAA\sim P_A:EA∼PA[1∣S∣∑x∈SδA(x)]≈pdata,\begin{aligned}&\mathbb E_{A\sim P_A}\Big[\tfrac1{|\mathcal S|}\textstyle\sum_{x\in\mathcal S}\delta_{A(x)}\Big]\\&\qquad\approx p_{\rm data},\end{aligned}where δz\delta_z is the point mass at zz. A frozen pretrained an image encoder that maps an image to feature vectors; the drift happens in its output space, and its weights are never changed maps images into the feature space where comparisons take place. The main ImageNet-1k benchmarks test three extractors: a supervised ImageNet ResNet-18, and two self-supervised vision transformers trained without labels, a self-supervised ViT-B encoder (Chen et al., 2021), trained without labels so that two augmented views of one image get similar features and views of different images dissimilar ones and a self-supervised vision transformer (Siméoni et al., 2025), here the ViT-B size, trained without labels on a large image collection. Distilled images start from noise or from the real-image patch composites of (Sun et al., 2024) crops patches from real images, keeps those a pretrained classifier scores highest for the class, and stitches several into one image, without optimizing any pixel. Reading note: Distilling ImageNet from real patches, the initialization used by the strongest earlier methods.

Drifting (Deng et al., 2026). Cazenavette et al. borrow their field from a one-step generative setting. A one-step a network that maps noise ε\varepsilon to a sample x=f(ε)x=f(\varepsilon) in one forward pass; qq is the distribution of its outputs maps noise ε\varepsilon to samples x=f(ε)x=f(\varepsilon) with distribution qq, targeting q=pq=p for a data distribution pp. Instead of differentiating a divergence between qq and pp, drifting specifies a a vector field V(x)V(x) computed from samples of pp and of qq that gives each sample's displacement, and that is zero everywhere once q=pq=p V(x)V(x) that tells each sample where to move and equals zero everywhere once q=pq=p. Because VV depends on the whole sample distribution qq, training avoids differentiating through VV. It regresses each sample xx onto its moved copy x+V(x)x+V(x), held fixed with a stop-gradient sg\mathrm{sg}:L=Eε ℓ(f(ε)),ℓ(x)=∥x−sg(x+V(x))∥2,∇ℓ(x)=−2V(x).\begin{aligned}L&=\mathbb E_\varepsilon\,\ell(f(\varepsilon)),\\\ell(x)&=\|x-\mathrm{sg}(x+V(x))\|^2,\\\nabla\ell(x)&=-2V(x).\end{aligned}Each gradient step nudges the generator's outputs along VV. The loss itself equals E∥V∥2\mathbb E\|V\|^2, which vanishes at equilibrium. Samples drift toward pp across the ordinary gradient steps of training, and once trained, ff generates in one forward pass. On 256 × 256 ImageNet, this generator reached an Fréchet inception distance: a distance between Gaussian fits to the Inception-network features of generated and of real images; lower is better of 1.54.

The drifting field is a pull toward the data minus a push away from the other samples. Using the a weight k(x,y)k(x,y) that decays with the Euclidean distance between xx and yy, unsquared; the distillation paper writes κ\kappa k(x,y)=e−∥x−y∥/τk(x,y)=e^{-\|x-y\|/\tau} with the length over which the kernel weight falls by a factor ee; with the paper's feature rescaling, τ=0.5\tau=0.5 makes that length half the mean distance between the embeddings (computed here from its appendix), defineV+(x)=Ey∼p[k(x,y)(y−x)]Ey∼p[k(x,y)],V−(x)=Ey∼q[k(x,y)(y−x)]Ey∼q[k(x,y)],\begin{aligned}V^+(x)&=\frac{\mathbb E_{y\sim p}[k(x,y)(y-x)]}{\mathbb E_{y\sim p}[k(x,y)]},\\V^-(x)&=\frac{\mathbb E_{y\sim q}[k(x,y)(y-x)]}{\mathbb E_{y\sim q}[k(x,y)]},\end{aligned}and set V(x)=V+(x)−V−(x)V(x)=V^+(x)-V^-(x), omitting xx itself from the qq expectation. Both denominators normalize the kernel weights. Each term is therefore the vector from xx to a local weighted average, m+(x)=Ep[k(x,y) y]/Ep[k(x,y)]m^+(x)=\mathbb E_p[k(x,y)\,y]/\mathbb E_p[k(x,y)], the average of the data weighted by closeness to xx; the empirical denoiser of a diffusion model is an average of the same form, with Gaussian weights. Reading note: Generalization in diffusion models over the data and m−(x)=Eq[k(x,y) y]/Eq[k(x,y)]m^-(x)=\mathbb E_q[k(x,y)\,y]/\mathbb E_q[k(x,y)], the same weighted average over the other samples over the other samples. The xx terms cancel in the difference, leavingV(x)=m+(x)−m−(x).V(x)=m^+(x)-m^-(x).Whenever q=pq=p, the two averages coincide and V(x)=0V(x)=0 everywhere. The converse can fail for a general field; Deng et al. give only a heuristic argument that zero drift forces q≈pq\approx p here.

Both pull and push are indispensable. Without the push, a unit step x←x+V+(x)=m+(x)x\leftarrow x+V^+(x)=m^+(x) reduces to a (Cheng, 1995) the update x←m+(x)x\leftarrow m^+(x), repeated; it climbs to a nearby peak of the data's density smoothed by a kernel update. It climbs to a nearby mode of the kernel-smoothed data density, so nearby samples collapse onto the same peak. In Deng et al.'s ImageNet ablation, the pull alone gave an FID of 177 against 8.5 with both terms. Reweighting either term by 1.5 also broke matching, pushing the FID to 41 and 46 because pull and push no longer cancel at q=pq=p.

From a generator to a set of images. Cazenavette et al. keep the same drifting field and optimize the distilled images S\mathcal S directly in the feature space of ϕ\phi. At each step, every distilled image x∈Sx\in\mathcal S gets nn independent draws A1,…,An∼PAA_1,\dots,A_n\sim P_A per step, applied to every image of the set, and each view's feature vector z=ϕ(A(x))z=\phi(A(x)) acts as one sample in the field. All real images of the class serve as positive targets, giving about 1,300 unaugmented embeddings. All n∣S∣n|\mathcal S| views serve as negative targets, so views of the same image repel one another too. The lossz=ϕ(A(x)),L=∑A, x∥z−sg(z+V(z))∥2\begin{aligned}z&=\phi(A(x)),\\L&=\textstyle\sum_{A,\,x}\|z-\mathrm{sg}(z+V(z))\|^2\end{aligned}backpropagates through ϕ\phi and the augmentation to the pixels, updating each image so its views move along VV to first order. Drifting relies on a pretrained feature space so kernel distances reflect semantic similarity. Deng et al. could not make drifting work on ImageNet without a feature encoder.

In the figure six images drift in the plane, with the identity for ϕ\phi and a random Gaussian shift for the augmentation. The class is a crescent of 180 real points. The six images start clumped in its hollow, and each gets ten shifted views per step. The field uses the paper's kernel normalizations and feature rescaling at τ=0.5\tau=0.5, without drift rescaling. Instead of Adam, each image takes a plain step along the mean drift of its views. With pull and push, the images space themselves nearly evenly along the crescent, and together with their views they cover 71% of the real points after 150 steps. With pull alone, they collapse into two clumps of three and cover 22%. A real point is drawn darker when an image or view lies within the distance to its fifth-nearest real neighbor, which is the coverage metric defined below (computed here).

Three implementation choices drive much of the empirical performance. First, each image is parameterized as a layers PrP_r at resolutions r×rr\times r for r=1,2,4,…,256r=1,2,4,\dots,256; the image is x=sigmoid(∑rresize(Pr))x=\mathrm{sigmoid}\big(\sum_r\mathrm{resize}(P_r)\big), each layer upsampled to full size by bicubic interpolation; coarse layers carry the layout, fine ones the detail that starts at 8 × 8, adds one finer layer every 200 steps, and passes through a sigmoid to keep pixels in range. Optimizing raw pixels directly yields adversarial patterns. Second, a fixed color decorrelation biases pixel channels toward natural colors. Third, for vision transformers, drifting runs separately on the the summary token a vision transformer adds to its patch tokens and on every patch token, each with its own loss. Distillation runs Adam at learning rate 0.001 for 10,000 steps from noise or 5,000 steps from RDED images. At 10 images per class, that takes about 0.25 GPU-hours per class.

Training classifiers from scratch. Each distilled set is evaluated on ImageNet-1k by training a ResNet-18 from scratch under identical recipes across three seeds. The paper tests three target regimes. the one-hot class of each image; no teacher is involved use no teacher, and one fixed target per image, computed once before training by a pretrained ResNet-18 teacher as its temperature-softened prediction averaged over 10 random crops fix one teacher prediction per image. Knowledge distillation instead supplies fresh targets at every step from a four-classifier ensemble, which the authors treat as teacher transfer rather than pure dataset evaluation. Baselines split by initialization. The noise-started group covers SRe2L and four refinements, including (Shao et al., 2024) SRe2L's statistic matching carried out over several backbones, layers and statistics at once; the real-started group covers RDED and four others, including (Cui et al., 2025) optimizes images that start from real patches through several pretrained models, mixing the original patches back in at intervals like a residual connection and (Cui et al., 2025) combines the statistics and predictions of a committee of pretrained models, also for its soft labels. Drifting wins every hard- and soft-label setting within its initialization group. Under knowledge distillation, scores compress, yet the best drifted set still beats every baseline by smaller margins. The largest gap appears with hard labels from noise at 10 images per class, where MoCo-v3 drifting reaches 27.0% against 11.7% for G-VBSM. With hard labels from real patches at 10 images per class, drifting reaches 28.9% against RDED's 22.1%.

Which feature extractor drives the gain. Among the three encoders, the self-supervised ViTs, MoCo-v3 and DINOv3, produce the strongest distilled sets. The supervised ResNet-18 extractor produces the weakest of the three, even though it was trained on ImageNet labels and matches the student's exact architecture. Even so, its sets still beat individual baselines in 49 of 60 comparisons. Each drifted set relies on a single frozen extractor, whereas strong baselines such as G-VBSM, FADRM+, and CV-DD distill against ensembles of backbones.

Feature-space coverage. To test whether drifted sets span each class rather than memorizing a few typical views, the authors score ten random crops per distilled image in the feature spaces of an image encoder trained against text captions (Tschannen et al., 2025) and MoCo-v3. They track the fraction of the real validation images yjy_j of a class with a distilled point inside their ball of radius r5(yj)r_5(y_j), the distance to their 5th-nearest real neighbor: 1M∑j=1M1{min⁡id(ϕ(xi),ϕ(yj))≤r5(yj)}\tfrac1M\sum_{j=1}^M\mathbf 1\{\min_id(\phi(x_i),\phi(y_j))\le r_5(y_j)\}, with dd the cosine distance and MM the number of validation images (Naeem et al., 2020); averaged over classes, each real validation image gets the label of its nearest distilled point in cosine distance, and a a linear classifier trained on the frozen features of the distilled points and tested on the real validation images. At 10 images per class from noise, the DINOv3 set covers 77.0% of real validation images in SigLIP2 space and 83.4% in MoCo-v3 space. At the same size, noise-started baselines cover at most 9.7%, and real-started baselines at most 36.5%. Against the real-started sets, nearest-neighbor and linear-probe gaps are only a few points, with RDED ahead by under a point in two nearest-neighbor cells. Those two metrics only require separating classes, whereas coverage rewards spanning each class. Scoring a set in the space it was drifted in seems to inflate coverage. In MoCo-v3 space, the MoCo-v3 set reaches 91.9% against 83.4% for DINOv3, so the comparison omits self-evaluation cells.

What drives the gain. Ablations vary one setting at a time from the noise-started DINOv3 default at 10 images per class. Drifting a single fixed view per image collapses every metric, down to 0.2% hard-label accuracy and 1.0% SigLIP2 coverage. One random view per step recovers 7.5% accuracy and 35.8% coverage. Adding more views lifts those numbers to 21.3% and 77.0% at ten views. Replacing the Laplacian pyramid with raw pixels drops hard-label accuracy to 3.3% and coverage to 41.9%. Removing color decorrelation drops them to 16.5% and 62.0%. Nearest-neighbor and linear-probe accuracy barely move in either ablation, confirming that those metrics miss image quality. Drifting every patch token alongside the CLS token lifts hard-label accuracy from 11.8% to 21.3%. Extreme temperatures, τ=0.05\tau=0.05 or τ=5\tau=5, both lower coverage.

Comparison with diffusion-based distillation. Five recent methods generate distilled images by steering a Minimax, D4M, D3HR, CaO2 and ManifoldGD (Minimax's model is trained on ImageNet itself; D4M uses Stable Diffusion, trained on web images), which steer the sampling of such a model toward representative and diverse images of each class. Cazenavette et al. keep them outside the main tables because they rely on a generative prior. With fixed soft labels, the best drifted set matches the best diffusion method. With hard labels, drifting ties at 10 images per class and trails at 50, reaching 41.1% against 44.3% for CaO2. Under knowledge distillation, drifting trails slightly. In feature space, the real-started DINOv3 set beats all five diffusion methods in every cell. The noise-started DINOv3 set leads everywhere except SigLIP2 coverage, where ManifoldGD edges it out at 77.4% against 77.0% at 10 images per class.

Extractor style and other modalities. Each encoder stamps its own inductive bias onto the distilled images. Distilling the monarch butterfly class across seven extractors yields seven visibly distinct sets, with CLIP giving murky images with ill-defined backgrounds. Cross-evaluated across all seven feature spaces, CLIP-distilled sets get the lowest average coverage and DINOv3-distilled sets the highest. The same pyramid extends to audio and video at 5 samples per class. The authors test one-dimensional audio on 8 genres of FMA using MusicFM features, and three-dimensional video on 51 actions of HMDB51 using VideoMAE-v2 features. In both modalities, drifting beats (Welling, 2009) as a coreset method: it picks real examples one at a time so that the mean feature of those picked stays as close as possible to the class mean on linear-probe and nearest-neighbor accuracy. On audio, it reaches 51.4% and 52.6% against 45.6% and 39.9%. As a visual check, the authors drift a single 2048 × 2048 canvas with many random crops toward the SigLIP2 features of Monet's or Qi Baishi's paintings. The canvas reproduces each painter's style and recurring subjects, such as water lilies and squirrels.

Consequences and limits. Drifting needs only a frozen self-supervised encoder to produce diverse per-class sets. Those sets train a classifier from scratch with one-hot labels far better than classifier-distilled images. The encoder defines what class coverage means. Each leaves its own visual style on the set, and a set tends to score best in the space it was drifted in. Distilling ImageNet-1k at 10 images per class takes about 250 GPU-hours before sweeps, though independent per-class optimization parallelizes cleanly. Methods backed by a large pretrained diffusion model still hold a small edge with hard labels at 50 images per class and under knowledge distillation, at the cost of that generative prior. All evidence in the paper is empirical.

Terms

Dataset distillation
A few synthetic examples per class that stand in for the full training set; usually optimized through a classifier.
Drifting field
V(x)=m+(x)−m−(x)V(x)=m^+(x)-m^-(x): kernel-weighted average of the data near xx minus that of the other samples; zero everywhere when q=pq=p.
Drifting loss
∥x−sg(x+V(x))∥2\|x-\mathrm{sg}(x+V(x))\|^2, gradient −2V(x)-2V(x): each step moves samples along VV.
Pull only
Mean shift, x←m+(x)x\leftarrow m^+(x): samples climb to the same peaks and collapse; the push spreads them.
Distillation by drifting
Drift the distilled images' augmented views in a pretrained feature space toward all real images of the class and away from every other view.
Augmented views
Without them every metric collapses (0.2% accuracy, 1.0% coverage); ten views per image per step work best.
Coverage
Fraction of real images whose 5th-nearest-neighbor ball contains a distilled point; the DINOv3 set from noise reaches 77-83% at 10 per class, baselines at most 37%.
Evaluation targets
Hard labels (one-hot, no teacher), soft labels (one fixed teacher target per image), knowledge distillation (fresh teacher target every step).
Headline
ImageNet-1k, 10 per class, from noise, hard labels: 27.0% against 11.7% for the best classifier-based method.

Sources

  • George Cazenavette, Angelina Quan, Giannis Daras, Antonio Torralba, and Vincent Sitzmann. Dataset Distillation via Drifting. Advances in Neural Information Processing Systems, 2026.

Connected notes

  • Naming the best of several Gaussian arms with error at most δ\delta takes at least about 4σ2log⁡(1/δ)/(μ1−μ2)24\sigma^2\log(1/\delta)/(\mu_1-\mu_2)^2 samples, so the cost grows without bound as the top two means approach each other, and a tolerance ε\varepsilon on the named arm keeps it finite.

  • Expected reward is linear in the policy, so its maximum is a vertex of the simplex, all mass on the best sequence, even for a reward that ranks every sequence correctly; the KL penalty makes the target the tilt πrefer/β/Z\pi_{\rm ref}e^{r/\beta}/Z, which puts mass wherever the reference does and concentrates on the best sequences only as β→0\beta\to0.

  • On a 0/1 reward, RL raises the chance pxp_x of solving problems the model often solves and can push it to zero on problems it rarely solves; in Yue et al.'s runs the starting model overtakes the trained one in pass@kk as kk grows, and longer training raises pass@1 while pass@256 falls.

  • Standard policy gradients push answers in proportion to their probability and create rank bias that favors popular proofs, whereas unlikeliness rewards, pass@kk objectives weighting prompts by k(1−q)k−1k(1-q)^{k-1}, and RepExp's novelty bonus keep rarer solutions in play.

Threads