Dataset Distillation via Factorization

Songhua Liu, Kai Wang, Xingyi Yang, Jingwen Ye, Xinchao Wang

TL;DR

HaBa (Hallucinator-Basis factorization) reimagines dataset distillation by decomposing synthetic data into "Bases" and "Hallucination networks." This combinatorial approach allows a tiny set of parameters to generate an exponentially larger variety of training samples, significantly boosting performance and cross-architecture generalization while reducing storage costs by up to 65%.

What Problem Does This Paper Address?

Deep learning models are notoriously data-hungry, but massive datasets are difficult to store, transmit, and process. Dataset Distillation (DD) aims to solve this by creating a tiny synthetic dataset (e.g., just 10 images per class) that can train a model to nearly the same accuracy as the full original dataset.

However, traditional DD methods treat each synthetic image as an independent "pixel-grid." This approach has two major flaws:

  1. Redundancy: It ignores the shared structural relationships and common features between different images in a dataset.
  2. Overfitting: Training a large model on a handful of static images often leads to overfitting, as the model quickly "memorizes" the limited synthetic samples rather than learning generalizable features.

Methods

The authors propose HaBa, a "plug-and-play" strategy that factorizes the distilled dataset into two distinct components:

  • Bases ($B$): Coarse, representative templates that capture the essential content and structure of the data.
  • Hallucinators ($H$): Small neural networks (encoder-decoder style) that take a basis as input and "hallucinate" a detailed, high-quality training sample.
The intuition behind HaBa: factorizing a dataset into bases and hallucinators to increase representation capability.

The magic of this approach lies in its combinatorial gain: any basis can be paired with any hallucinator. If you have 10 bases and 5 hallucinators, you can dynamically generate 50 unique training images. This allows the distilled data to scale exponentially in informativeness without a corresponding linear increase in storage requirements.

To ensure these "hallucinations" are actually useful and diverse, the authors introduce an adversarial contrastive constraint. They set up a min-max game where a feature extractor (the adversary) tries to make images generated from different hallucinators look similar, while the hallucinators are optimized to produce diverse, discriminative features.

The overall pipeline of the HaBa method, showing how bases and hallucinators are combined and optimized.

Key Insights and Ideas

  • From Storage to Generation: Instead of thinking of a distilled dataset as a static folder of images, HaBa treats it as a generative process. This shift from "storing samples" to "storing a recipe" is far more parameter-efficient.
  • Diversity Prevents Overfitting: By constantly generating slightly different versions of the data during training, HaBa acts as a powerful form of learned data augmentation, helping models converge to better minima.
  • Cross-Architecture Generalization: One of the biggest hurdles in DD is that synthetic data often only works well on the specific model architecture used to create it. HaBa's increased diversity helps the distilled data capture more "universal" features, leading to a ~10% accuracy boost when testing on unseen architectures.

Key Results

The method was evaluated on standard image classification benchmarks including SVHN, CIFAR-10, and CIFAR-100.

  • Superior Accuracy: On CIFAR-10 with 10 images per class, HaBa achieved 69.9% accuracy, significantly outperforming the previous state-of-the-art (MTT) at 65.3%.
  • Parameter Efficiency: HaBa can reduce the total number of compressed parameters by up to 65% while maintaining or exceeding baseline performance.
  • Faster Convergence: Models trained on HaBa-distilled data reach lower test losses faster and with greater stability than those trained on standard distilled sets.

Qualitatively, visualizations in the paper show that while the "Bases" look like noisy, abstract templates, the "Hallucinators" successfully inject distinct styles and fine details, creating a highly diverse set of training samples from a very compact representation.

Limitations and Future Work

  • Computational Overhead: The process of online pairwise combination between hallucinators and bases increases training time and GPU memory usage compared to simple static image loading.
  • Scaling Plateaus: The authors note that as the number of synthetic images grows very large, the relative performance gain of factorization may diminish.
  • Future Directions: The authors suggest exploring class-wise relationships—for example, allowing similar classes (like "cat" and "dog") to share certain hallucinators while keeping others unique to further optimize parameter usage.

Summary updated

BibTeX
@inproceedings{liu2022dataset,
  author = {Songhua Liu and Kai Wang and Xingyi Yang and Jingwen Ye and Xinchao Wang},
  title = {{Dataset Distillation via Factorization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=luGXvawYWJ},
}
Figure