Sequential Subset Matching for Dataset Distillation

Jiawei Du, Qin Shi, Joey Tianyi Zhou

Abstract

Dataset Distillation (DD) aims to condense large-scale datasets into small, synthetic subsets that retain the performance of the original data when used for training. However, current state-of-the-art methods often suffer from a "coupling issue," where synthetic images are optimized simultaneously and become redundant, focusing primarily on low-level features. This paper introduces Sequential Subset Matching (SeqMatch), a novel strategy that optimizes synthetic data in sequential stages. By matching different phases of a model's training trajectory, SeqMatch ensures that synthetic datasets capture a hierarchical range of features, from basic textures to complex semantic structures. Our experiments demonstrate that SeqMatch consistently improves performance across various benchmarks, particularly at higher images-per-class (ipc) settings.

Introduction

In the era of massive datasets, Dataset Distillation has emerged as a critical technique for reducing the computational and storage overhead of deep learning. The goal is to create a "tiny" version of a dataset (e.g., 10 or 50 images per class) that allows a neural network to achieve accuracy comparable to one trained on the full dataset.

Despite recent progress, existing methods like Matching Training Trajectories (MTT) face a significant bottleneck: static optimization. By treating the entire synthetic dataset as a single block and optimizing all images at once, these methods fail to account for the dynamic nature of how neural networks learn. This paper identifies the "coupling issue," where synthetic instances act as error compensators for one another, leading to a focus on easy, low-level features and a failure to capture the high-level abstractions necessary for generalization.

The Problem: The Coupling Trap

When a synthetic dataset is optimized as a whole, the optimization process tends to prioritize features that provide the quickest reduction in loss—typically low-level edges and textures. Because all images are updated simultaneously, they become "coupled"; if one image fails to represent a specific feature, others shift to compensate for that specific error. This prevents the synthetic images from becoming independent, diverse representations of the class. Consequently, the distilled dataset lacks the "hard" features that models typically acquire during the later stages of training on a full dataset.

Proposed Method: Sequential Subset Matching (SeqMatch)

To address the coupling issue, we propose Sequential Subset Matching (SeqMatch). SeqMatch is a plug-and-play strategy that can be integrated into existing trajectory-matching distillation frameworks. The core idea is to mirror the natural curriculum of deep learning—moving from simple feature extraction to complex semantic understanding—within the synthetic data itself.

The SeqMatch Pipeline

  1. Subset Division: The total synthetic budget $S$ is divided into $K$ equal, disjoint subsets.
  2. Sequential Optimization: Instead of optimizing $S$ at once, we optimize the first subset to match the early stages of a "teacher" model's training trajectory.
  3. Freezing and Conditioning: Once the first subset is optimized, its parameters are frozen. The second subset is then optimized to match the next stage of the teacher's trajectory, conditioned on the knowledge already captured by the first subset. This process continues until all $K$ subsets are optimized.
  4. Sequential Evaluation: During the training of a target model, the subsets are introduced in the same order they were distilled, ensuring the model follows the intended learning hierarchy.

By forcing the optimization to occur in stages, SeqMatch breaks the coupling between images. The early subsets capture "prototypical" class features, while later subsets are forced to capture the abstract, complex patterns required for high-level generalization.

Experimental Results

We evaluated SeqMatch across standard benchmarks, including MNIST, SVHN, CIFAR-10, CIFAR-100, and subsets of ImageNet (at $128 \times 128$ resolution).

Performance Gains

SeqMatch consistently outperforms baseline methods, with the most significant gains observed at higher images-per-class (ipc) counts, where the coupling issue is most prevalent:

  • CIFAR-100 (ipc=50): SeqMatch achieved 51.2% accuracy, a 3.5% improvement over the standard MTT baseline.
  • SVHN (ipc=50): Performance reached 92.1%, approaching the full dataset accuracy of 95.4%.
  • ImageNet Subsets: On the "ImageFruit" subset, SeqMatch provided a 4.3% boost over the baseline.

Cross-Architecture Generalization

A key metric for distilled data is its ability to train models with different architectures than the one used during distillation. Synthetic data generated via SeqMatch using a simple ConvNet showed superior performance when used to train more complex architectures like ResNet-18 and VGG-11, suggesting that the sequential approach captures more robust, architecture-independent features.

Discussion and Limitations

SeqMatch demonstrates that the order in which synthetic data is optimized is as important as the optimization objective itself. By respecting the hierarchical nature of feature acquisition, we can create more efficient and representative synthetic datasets.

However, this approach introduces a trade-off in training time. Because subsets are optimized sequentially, the total distillation time increases—roughly doubling or tripling depending on the number of subsets $K$. Future work will focus on adaptive budget allocation (determining if harder features require more images) and potential parallelization of the sequential process to reduce computational overhead.

Conclusion

Sequential Subset Matching (SeqMatch) offers a simple yet powerful shift in how we approach dataset distillation. By breaking the coupling of synthetic instances and following a temporal learning curriculum, SeqMatch enables the creation of tiny datasets that better represent the complexity of their full-scale counterparts.

Summary updated

BibTeX
@inproceedings{du2023sequential,
  author = {Jiawei Du and Qin Shi and Joey Tianyi Zhou},
  title = {{Sequential Subset Matching for Dataset Distillation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=c9fXCzR5fK},
}
Figure