TL;DR
What if you could compress a massive dataset like ImageNet down to just one synthetic image per class—and do it in minutes using a fraction of standard GPU memory? By mathematically unpacking how linear probes learn on pre-trained vision models, the authors discover that expensive gradient-matching techniques are secretly just computing simple directional vectors between class averages. Using this insight, they introduce Statistical Flow Matching (SFM), achieving better downstream accuracy while slashing GPU memory by 10× and runtime by 4×.
What Problem Does This Paper Address?
Modern computer vision relies heavily on massive, pre-trained self-supervised models (like CLIP or DINO-v2). Usually, you freeze these backbones and train a lightweight linear classifier on top for your specific task. Dataset Distillation (DD) tries to make this even faster by synthesizing a tiny "surrogate" dataset—say, 1 image per class (IPC=1)—that trains that linear probe nearly as well as the full dataset.
The current state-of-the-art for this setup, Linear Gradient Matching (LGM), optimizes synthetic images until the gradients they trigger on a randomly initialized linear classifier match the gradients triggered by batches of real images. While clever, LGM is a computational hog. At every single step, it loads thousands of real images and applies up to 10 differentiable augmentations per synthetic image to keep the optimization stable. Holding all those computation graphs in memory for backpropagation easily balloons past 160 GB of VRAM.
Methods
The authors pause and look closely at the math behind LGM's randomly initialized linear classifier. Because feature backbones end with LayerNorm, initial logit variances are tiny, meaning initial class probabilities are essentially uniform ($1/C$). Consequently, the randomly sampled classifier weights cancel out in expectation!
The gradient with respect to a class simplifies into a clean analytical vector pointing from the target class's feature center toward the non-target classes' feature center. The authors call this relative vector a "flow" (distinct from generative flow matching). LGM was simply matching noisy, batch-level local flows at high computational cost.
To fix this, the authors propose Statistical Flow Matching (SFM):
- Precompute Global Flows: Pass the real dataset through the frozen backbone once to compute exact, global class centers and construct a fixed "statistical flow" for each class.
- Direct Alignment: Optimize the synthetic images (using just a single augmentation pass) by minimizing the cosine distance between their synthetic flow and the fixed global statistical flow. No real-image dataloaders during training, and no random linear classifiers needed.
- Classifier Inheritance (Optional Plug-in): When evaluating synthetic images on a different backbone than the one used to distill them, feature misalignment hurts accuracy. Instead of training a new classifier from scratch, SFM trains a lightweight linear projector on the synthetic images to align the new backbone's features with the original backbone's features, then reuses the original pre-trained classifier.
Datasets
The authors evaluate SFM on standard 224×224 resolution vision benchmarks—no new datasets are introduced, ensuring direct comparability with prior work:
- Broad Recognition: ImageNet-1k and its subsets (ImageNet-100, ImageFruits, ImageNette, ImageWoof).
- Fine-Grained Classification: Stanford Dogs and CUB-200-2011 (bird species).
- Backbones Tested: ViT-B versions of CLIP, DINO-v2, EVA-02, and MoCo-v3.
Key Insights and Ideas
- Random classifiers were a placebo: Prior work assumed sampling random linear classifiers at every distillation step helped synthetic images generalize. Both theory and ablation experiments prove the optimization is completely insensitive to those weights.
- Why LGM creates visual artifacts: Matching batch-level statistics creates a moving target at every step, introducing artifacts into synthetic images unless smoothed out by heavy multi-augmentation. Matching a static, global target produces crisp structures with a single augmentation.
- Synthetic images live on the edge: PCA visualizations reveal that SFM doesn't synthesize bland "average" images at the center of a class cluster. Instead, pushing away from non-target centers drives synthetic samples out to the discriminative boundaries of the distribution.
- Contrast matters at scale: Matching only target class centers works fine for 10-class datasets (ImageFruits), but including the push toward non-target centers (the full flow) becomes crucial as class counts scale to 100 or 1,000.
Key Results
Comparison between LGM and SFM in terms of distillation time, GPU memory usage, and validation accuracy on ImageNet-100.
- Massive Efficiency Gains: On ImageNet-100 (IPC=1, EVA-02), single-augmentation SFM matches or beats 10-augmentation LGM while cutting GPU memory by 10× (16 GB vs. 165 GB) and runtime by 4× (18 min vs. 80 min).
- Superior Accuracy, Especially Fine-Grained: Single-augmentation LGM frequently collapses on fine-grained datasets (e.g., 16.4% on CUB-200 with CLIP), whereas single-augmentation SFM hits 67.6%—even beating 10-augmentation LGM (62.2%). On ImageNet-1k (CLIP), single-augmentation SFM reaches 67.1%, outperforming multi-augmentation LGM (63.0%).
- Cross-Model Generalization: Synthetic data distilled on one backbone transfers reliably to unseen backbones (with DINO-v2 proving the strongest all-rounder). Adding the Classifier Inheritance plug-in boosts cross-architecture accuracy by another 2–10%, consistently beating soft-label distillation.
Limitations and Future Work
Currently, SFM processes all classes simultaneously during synthetic optimization. While light at 1 augmentation, scaling up the number of augmentations or total classes still increases GPU memory linearly (causing out-of-memory limits for multi-augmentation SFM* on full ImageNet-1k). However, because SFM's global targets are static and class-independent, the authors note a straightforward fix for future work: processing classes sequentially in fixed-size blocks, which will cap VRAM usage at a constant, user-definable budget.
Summary updated