Frequency Domain-Based Dataset Distillation

DongHyeok Shin, Seungjae Shin, Il-chul Moon

Dataset distillation compresses massive datasets into tiny synthetic ones, allowing researchers to train machine learning models efficiently. However, traditional methods waste strict memory budgets by optimizing every single pixel. This paper introduces FreD (Frequency Domain-based Dataset Distillation), a novel parameterization method that optimizes data in the frequency domain instead, keeping only the most informative frequency components. This drastically reduces the memory footprint per image, allowing researchers to pack more synthetic images into the same budget and significantly boosting downstream model accuracy.

The Spatial Bottleneck in Dataset Distillation

Dataset distillation aims to synthesize a very small dataset that can train a machine learning model to the same performance level as the original, massive dataset. Because the primary goal is compression, these synthetic datasets are constrained by a strict memory budget.

Most existing methods operate in the spatial domain—meaning they optimize the raw pixels of the synthetic images. The problem is that it is difficult to determine which pixels are "unimportant," so the algorithm is forced to spend its memory budget storing every pixel for every synthetic image. This spatial inefficiency creates a severe bottleneck: it limits the total number of synthetic images you can generate, which in turn limits the diversity and representational power of the distilled dataset.

The FreD Approach: Optimizing Frequencies

To solve this memory bottleneck, the authors propose FreD. Instead of optimizing raw pixels, FreD optimizes the images' frequency representations.

Comparison of dataset distillation pipelines, highlighting FreD's static transform approach.

The method operates through four key steps:

  1. Frequency Transform: The method uses standard transforms (like the Discrete Cosine Transform, or DCT) to move data from the spatial domain to the frequency domain.
  2. Binary Masking via EVR: Not all frequencies are equally important. FreD calculates the Explained Variance Ratio (EVR) of the original dataset's frequency dimensions. It then creates a class-specific binary mask that keeps only the top-$k$ most informative dimensions, which tend to be low-frequency components.
  3. Synthetic Frequency Memory: FreD only allocates memory for and optimizes these $k$ selected frequency dimensions, ignoring the rest.
  4. Inverse Transform: During the training forward-pass, FreD applies a static, parameter-free Inverse Frequency Transform to convert these sparse frequency arrays back into spatial images that the neural network can process.

Crucially, FreD is a parameterization method. This means it is orthogonal to existing distillation objectives (like Gradient Matching or Trajectory Matching) and can be seamlessly plugged into existing frameworks.

Key Insights and Mechanisms

  • Gradients are concentrated in the frequency domain: While the gradients used to update synthetic images are scattered uniformly across pixels in the spatial domain, they are highly concentrated in just a few dimensions in the frequency domain. This means you only need a fraction of the data to capture the core features.
Gradient concentration in spatial vs. frequency domains.
  • EVR is a highly efficient filter: Using a statistical metric like EVR to select frequency dimensions naturally isolates the most crucial components without requiring a complex, learned neural network filter.
  • Inherent robustness to corruption: Corruptions (like adversarial attacks or texture shifts) typically degrade a model's predictive ability by messing with high-frequency details. Because FreD selectively stores core frequency components and discards the rest, models trained on FreD's synthetic data are surprisingly robust to these distribution shifts.
  • The Quantity vs. Quality Trade-off: By compressing the memory required per image, FreD allows you to store more images. The authors found that at extreme low budgets, having a larger quantity of lower-resolution (frequency-compressed) images yields better performance than having a tiny number of high-resolution images.

Experimental Results

The authors evaluated FreD across a variety of standard and novel benchmarks, including 2D images (SVHN, CIFAR-10/100, ImageNet-Subset), 3D Point Clouds (3D MNIST), and robustness benchmarks (CIFAR-10-C, ImageNet-Subset-C).

  • Massive gains at extreme low budgets: On CIFAR-10 with a budget of just 1 Image Per Class (IPC=1), FreD achieved 60.6% accuracy, a massive 10.6% absolute improvement over the next best method (IDC at 50.0%). On SVHN, it beat the runner-up by 12.4%.
  • Cross-architecture generalization: When synthetic data was generated using one architecture and tested on others (AlexNet, VGG11, ResNet18), FreD outperformed baselines by up to 10.6%, proving the distilled features aren't overfit to a specific network.
  • Synergy with existing methods: FreD can be combined with other spatial parameterization methods. When combined with HaBa, it achieved 62.3% on CIFAR-10 (IPC=2), compared to HaBa alone at 56.8%.
  • Success on 3D Data: On 3D MNIST, FreD improved accuracy to 54.9% (vs. 51.9% for the baseline) at IPC=1, proving the frequency approach works beyond standard 2D images.

Limitations and Future Work

The authors acknowledge a strict trade-off between the quantity of data instances and the quality of their reconstruction. Because FreD controls the dimension budget per instance ($k$), finding the optimal balance requires tuning based on the total available budget. For very small budgets, maximizing the number of images (smaller $k$) works best, but for larger budgets, allocating more dimensions per image (larger $k$) is preferable.

For future work, the successful integration of FreD with spatial methods (like HaBa) suggests that hybrid approaches—simultaneously leveraging the strengths of both the spatial and frequency domains—could push the boundaries of dataset distillation even further.

Summary updated

BibTeX
@inproceedings{shin2023frequency,
  author = {DongHyeok Shin and Seungjae Shin and Il-chul Moon},
  title = {{Frequency Domain-Based Dataset Distillation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=NEawU0TgKG},
}
Figure