SODA: Selective Optimization with Deferred BN Alignment for Efficient Dataset Distillation

Xinyue Bi, Jiacheng Cui, Yaxin Luo, Xinyi Shang, Jiacheng Liu, Xiaohan Zhao, Zhiqiang ShenNeurIPS 2026

TL;DR

When condensing massive image datasets into tiny, synthetic training sets—a process called dataset distillation—modern methods spend up to 60% of their compute budget matching internal network statistics at every single layer. The authors introduce SODA, a plug-in framework showing that skipping this statistical alignment early on, and later applying it only to the most "out-of-whack" layers, doesn't just make distillation over $1.5\times$ faster—it actually produces better, more generalizable synthetic images.

What Problem Does This Paper Address?

As deep learning models scale up, storing and repeatedly training on massive datasets becomes a major bottleneck. Dataset distillation flips the script: instead of shrinking the model, we shrink the dataset, synthesizing a tiny set of hyper-informative "surrogate" images (say, 10 images per class) that can train a new model nearly as well as the full dataset.

To scale this to massive benchmarks like ImageNet-1K, current state-of-the-art methods rely on uni-level optimization. Instead of constantly referencing the massive original dataset, they optimize synthetic images by passing them through pre-trained "teacher" networks. They combine two objectives: Cross-Entropy (CE) loss (to ensure a dog looks like a dog to the classifier) and Batch Normalization (BN) alignment (forcing the synthetic images' internal feature means and variances to match the cached running statistics of real data).

The authors uncover two hidden traps in standard BN alignment:

  1. A memory-bandwidth bottleneck: Computing backward gradients for means and variances across high-resolution feature maps has terrible arithmetic intensity (~2.25 FLOPs/byte, roughly $36\times$ below an RTX 4090's compute ridge point). Profiling shows BN alignment eats up 39.1% to 59.4% of total backward latency.
  2. Over-constraining: BN gradients across neighboring layers are heavily correlated. Forcing synthetic pixels to match every BN layer in a teacher network acts like overly aggressive weight decay—overfitting the synthetic images to teacher-specific quirks and hurting downstream generalization.

Methods

Standard distillation methods enforce BN alignment uniformly across all $L$ layers for every single optimization step $T$. SODA (Selective Optimization with Deferred BN Alignment) breaks this habit across both time and space:

Figure 1: Overview of SODA. Phase I (0 →αT): BN alignment is deferred entirely, with opti- mization driven solely by cross-entropy loss under ffast, allowing class-discriminative structure to form unimpeded. Phase II (αT →T): full ensemble supervision is activated alongside Selective BN Alignment, which scores each BN layer by its normalized mean-variance mismatch and selects the minimal subset satisfying coverage ratio ρ. Scores are recomputed every ∆iterations.
  • Phase I: Deferred BN Alignment (Temporal): For the first fraction of optimization steps ($\alpha T$, typically the first 30%), SODA turns off BN alignment entirely. The synthetic images are optimized purely via Cross-Entropy loss using only the lightest, fastest teacher model in the ensemble. This lets clear class semantics form unimpeded without paying the heavy BN memory tax.
  • Phase II: Selective BN Alignment (Spatial): For the remaining steps, full teacher-ensemble supervision kicks in alongside BN alignment—but only on a dynamic subset of layers. SODA scores each BN layer by its normalized mean-and-variance mismatch against the teacher's cached stats. It sorts the layers and greedily selects the smallest subset accounting for a target fraction ($\rho = 0.5$) of the total mismatch, rescaling the loss to keep gradient magnitudes steady. To avoid overhead, these scores are only recomputed every $\Delta = 5$ steps.

Datasets

The authors evaluate SODA across standard image classification benchmarks spanning various resolutions and scales (no new datasets are introduced):

  • CIFAR-100 ($32\times32$)
  • Tiny-ImageNet ($64\times64$)
  • ImageNet-1K ($224\times224$) and two of its 10-class subsets: ImageNette (distinct objects) and ImageWoof (fine-grained dog breeds).

Key Insights and Ideas

  • Semantic formation vs. distributional refinement: Tracking gradient norms reveals a natural phase transition. Early on, CE gradients dwarf BN gradients as the image forms basic class features. Applying BN constraints too early introduces premature distributional bias that actually slows down intra-class clustering:
Figure 3: Left: CE/BN gradient norm ratio throughout optimization. Above the dashed line: CE- dominant semantic formation phase; below: BN-dominant distributional refinement phase. Right: t-SNE visualization of synthetic image features under Full BN alignment and Deferred BN alignment.
  • Implicit alignment is free: You don't need to micromanage every layer. When SODA explicitly updates only the most mismatched BN layers, the mismatch error in the unselected layers drops concurrently—fixes in top-mismatch layers naturally propagate through the network:
Figure 4: Mean rfeature of frequently-selected layers (those with selection ratios above the median) and rarely-selected layers (those with selection ratios at or below the median).
  • Why less alignment generalizes better: Through theoretical and empirical analysis, the authors show that layers with high statistical mismatch produce alignment gradients that are shared across diverse teacher architectures (3.0–$8.6\times$ more shared energy). Layers with low mismatch mostly carry idiosyncratic, teacher-specific noise. Skipping them prevents synthetic images from overfitting to the teacher's specific architecture!

Key Results

Plugged into the state-of-the-art FADRM+ baseline, SODA simultaneously speeds up generation and boosts accuracy across the board:

  • Speedup: On ImageNet-1K, SODA cuts synthesis time to 0.71 seconds per image (distilling a 50-images-per-class set in 9.8 hours)—a $1.54\times$ speedup over FADRM+ (15.1 hours) and $7\times$ faster than EDC (69.3 hours). On CIFAR-100, it achieves a $1.80\times$ speedup.
  • Accuracy Gains: On ImageNet-1K, SODA beats FADRM+ by +7.7% at 1 image-per-class (IPC=1, ResNet-50) and +1.7% at IPC=10 (ResNet-18). On fine-grained ImageWoof (IPC=50), it jumps ahead by up to +5.1%.
  • Cross-Architecture Transfer: Synthetic ImageNet-1K data generated by SODA outperforms all baselines when used to train 9 unseen student architectures, including both CNNs (MobileNetV2, ConvNeXt) and Vision Transformers (Swin-Tiny, DeiT-Tiny).
  • Cleaner Visuals: Qualitatively, relaxing redundant BN constraints eliminates the fragmented, noisy background textures seen in baseline synthetic images, leaving sharper, intact foreground subjects.

Limitations and Future Work

  • Fixed Hyperparameters: Currently, the skip ratio ($\alpha = 0.3$) and coverage threshold ($\rho = 0.5$) are static hyperparameters kept constant throughout distillation. Adapting $\alpha$ and $\rho$ dynamically on the fly during optimization is left for future work.
  • Single-Teacher Speedup Ceiling: Part of SODA's Phase I speedup comes from swapping a heavy multi-teacher ensemble for a single fast teacher. When plugged into single-teacher frameworks like $\text{SRe}^2\text{L}$, that specific saving disappears, yielding a more modest (though still solid) $1.22\times$ speedup alongside +0.4% accuracy.
  • Broader Paradigms: While the authors show a promising proof-of-concept extending selective layer scoring to gradient-matching distillation ($1.22\times$ speedup on CIFAR-10), systematically adapting SODA to non-BN distillation paradigms remains an open avenue.

Summary updated

Abstract

Recent AI research has increasingly evolved along two complementary directions: model-centric learning, which improves architectures and training algorithms, and data-centric learning, which improves the quality and compression of training data. Within data-centric learning, dataset distillation on large-scale datasets has attracted growing attention, with decoupled distillation methods like SRe$^2$L, G-VBSM, LPQLD, FADRM have emerged as a representative paradigm. These methods typically synthesize compact datasets by matching the Batch Norm statistics of a teacher network, using BN alignment as an effective training objective. However, modern networks often contain many BN layers, and enforcing alignment at every layer introduces substantial computational redundancy. More importantly, we observe that not all BN layers provide equally informative supervision or consistent performance gains. Motivated by this, we propose SODA, a novel Selective Optimization with Deferred BN Alignment framework for efficient dataset distillation. SODA selectively identifies and optimizes informative BN alignment objectives while deferring unnecessary or low-value alignment computations, substantially improving both distillation efficiency and synthetic data quality. We further provide a theoretical analysis explaining why selective and deferred BN alignment can simultaneously reduce optimization cost and improve generalization. Extensive experiments across multiple datasets of CIFAR-100, Tiny-ImageNet, ImageNet-1K and its subsets thereof demonstrate that SODA achieves state-of-the-art performance while offering significantly improved computational efficiency over existing BN-matching-based dataset distillation methods, surpassing FADRM+ by +1.7\% on ImageNet-1K IPC=10 under ResNet-18 while delivering a $1.54\times$ speedup.
BibTeX
@inproceedings{bi2026soda,
  author = {Xinyue Bi and Jiacheng Cui and Yaxin Luo and Xinyi Shang and Jiacheng Liu and Xiaohan Zhao and Zhiqiang Shen},
  title = {{SODA: Selective Optimization with Deferred BN Alignment for Efficient Dataset Distillation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=hAi08GriqP},
}
Figure