TL;DR
This paper introduces the Hierarchical Memory Network (HMN), a novel architecture for dataset condensation that mirrors the natural hierarchy of image data (dataset, class, and instance levels). By sharing features across these tiers and implementing a "double-end" pruning strategy, HMN achieves state-of-the-art accuracy while significantly reducing GPU memory consumption compared to traditional trajectory-based methods.
What Problem Does This Paper Address?
Deep learning thrives on massive datasets, but training on them is computationally expensive and storage-intensive. Data Condensation (DC) aims to solve this by synthesizing a tiny "distilled" dataset that allows a model to reach nearly the same accuracy as if it were trained on the full original dataset.
Recent advances moved from storing raw synthetic images to data parameterization, where data is stored in compact "containers" (like neural network weights) that generate images on the fly. However, existing methods often treat all synthetic images as independent or use flat factorization. They overlook a fundamental truth: images share features hierarchically. For example, all images in a dataset share "dataset-level" traits, all cats share "class-level" traits, but each cat image has unique "instance-level" details. Ignoring this hierarchy leads to redundant information storage and lower efficiency.
Methods
To better align data condensation with this hierarchical nature, the authors propose the Hierarchical Memory Network (HMN). This novel architecture organizes condensed information into three distinct tiers:
- Dataset-level memory: Stores information common to the entire dataset.
- Class-level memories: Stores features specific to each category (e.g., "dog" vs. "car").
- Instance-level memories: Stores the unique "fingerprint" of a specific synthetic image.
To generate an image, HMN uses a feature extractor on the dataset memory, concatenates it with the class and instance memories, and passes the result through a shared decoder.
Post-Condensation Pruning
Because the instance-level memories are independent, HMN is uniquely suited for pruning. The authors introduce an Over-budget HMN Double-end Pruning algorithm. They first condense an "over-budget" HMN (generating more images than the target budget allows) and then use the Area Under the Margin (AUM) metric to identify which synthetic images are redundant or detrimental. They prune both the "easiest" (redundant) and "hardest" (potentially noisy/detrimental) images to fit the final storage budget.
Key Insights and Ideas
- Hierarchy is Efficiency: By explicitly separating shared features from unique ones, HMN can "pack" more useful information into the same storage budget (measured in Images Per Class, or IPC).
- Independence Enables Pruning: In previous factorization methods, changing one "basis vector" affected multiple images, making it hard to remove specific redundant data. In HMN, pruning an instance-level memory only affects one image, allowing for surgical precision in cleaning the synthetic dataset.
- Batch-based Loss is Enough: Usually, "trajectory-based" losses (which simulate long training runs) perform best but require massive GPU memory. HMN is so efficient that it outperforms those expensive methods even when using a simpler, low-memory "batch-based" gradient matching loss.
- The "Double-End" Strategy: Borrowing from coreset selection theory, the authors found that pruning both the most redundant (high AUM) and the most confusing (low AUM) synthetic images yields the best final model performance.
Key Results
The researchers evaluated HMN on five widely used public benchmarks (CIFAR-10, CIFAR-100, SVHN, Tiny-ImageNet, and ImageNet-10), revealing several major advantages:
- Superior Accuracy: On CIFAR-10 with a 10 IPC budget, HMN achieved 73.7% accuracy, significantly outperforming other parameterized methods like IDC (67.5%) and HaBa (69.9%).
- Memory Efficiency: HMN is a highly efficient alternative. For CIFAR-10 (50 IPC), HMN required only 10.4 GB of GPU memory, whereas competing methods like HaBa required 48.2 GB, and others ran out of memory entirely.
- Cross-Architecture Transfer: Synthetic data generated by HMN using a simple ConvNet transferred well to other architectures like VGG16, ResNet18, and DenseNet121, consistently outperforming baselines.
- Continual Learning: In class-incremental settings, HMN improved performance by up to 16% in low-budget scenarios compared to previous state-of-the-art methods.
Limitations and Future Work
- Pruning Overhead: While the pruning step is relatively "cheap" (adding only 2-3% computational overhead), it still requires an initial over-budget condensation phase.
- Hyperparameter Sensitivity: The performance of HMN is tied to the size of the memories in each tier. While the paper provides a study on instance-memory size, finding the optimal balance for new datasets might require tuning.
- Future Directions: The authors suggest that combining HMN with trajectory-based losses (if GPU memory allows) could push accuracy even higher. They also see potential in exploring more sophisticated feature extractors beyond the identity functions used in very low-budget settings.
Summary updated