Introduction
Deep learning's success is heavily reliant on massive datasets, yet training on web-scale data is computationally prohibitive and storage-intensive. Dataset Condensation (DC) has emerged as a solution, aiming to synthesize a tiny, highly informative set of images (e.g., 10 images per class) that can train models to achieve performance comparable to the full dataset. However, existing DC methods struggle with "multi-domain" data—datasets containing a mix of styles like photos, sketches, and cartoons. This paper introduces the Domain-Aware Module (DAM) to address the style collapse that occurs in these heterogeneous environments.
The Challenge: Domain Collapse
Most DC research assumes homogeneous data. When standard methods encounter multi-domain datasets like PACS (Photo, Art, Cartoon, Sketch), the synthetic images tend to lose their stylistic diversity, gravitating toward a single dominant style. This "domain collapse" results in significant performance drops—often exceeding 10%—when moving from single-domain to multi-domain training settings. To bridge this gap, the authors propose Multi-Domain Dataset Condensation (MDDC), ensuring synthetic images retain the rich domain features of the source data.
The Domain-Aware Module (DAM)
DAM is a plug-and-play component designed to encode diverse domain features into a single set of synthetic images without increasing storage costs. It introduces two primary innovations:
- Learnable Spatial Masks: Rather than creating separate images for every domain, DAM utilizes learnable spatial masks paired with each synthetic image. Using a "temperatured softmax," these masks determine which regions of an image represent specific domains. This allows a single image to act as a "mosaic," where different areas capture different domain-specific features (e.g., the texture of a sketch and the colors of a photo) without interfering with the core class features.
- Frequency-Based Pseudo-Domain Labeling: In many real-world scenarios, explicit domain labels are unavailable. DAM leverages the Fast Fourier Transform (FFT) to identify styles. The authors discovered that low-frequency amplitude statistics serve as an effective proxy for domain information. By sorting real images based on these statistics, they assign "pseudo-labels" that supervise the DAM during condensation.
Importantly, DAM is a training-time-only module. Once condensation is complete, the masks and domain logic are discarded, leaving a standard set of high-quality synthetic images compatible with any neural network architecture.
Experimental Results
The researchers integrated DAM into three state-of-the-art DC frameworks: Gradient Matching (DC), Distribution Matching (DM), and Trajectory Matching (MTT). They evaluated the module across standard benchmarks (CIFAR, Tiny ImageNet) and complex multi-domain datasets (PACS, VLCS, Office-Home, DomainNet).
Key findings include:
- Performance Recovery: On the PACS dataset at 10 images per class (IPC), DAM improved the MTT baseline from 45.9% to 50.6%.
- Superior Generalization: In "leave-one-domain-out" tests, DAM-enhanced datasets consistently outperformed baselines. For instance, when training on three domains and testing on the unseen PACS Photo domain, DAM improved accuracy by as much as 14%.
- Cross-Architecture Robustness: Images condensed using DAM on simple ConvNets generalized better to complex architectures like Vision Transformers (ViT) than those produced by standard DC methods.
Conclusion and Limitations
DAM effectively mitigates domain collapse in dataset condensation, allowing synthetic images to capture the diversity of multi-domain source data efficiently. While it significantly boosts accuracy and generalization, the primary trade-off is computational overhead; the condensation phase takes roughly twice as long due to the optimization of spatial masks and domain-specific losses. Future work may focus on refining the FFT-based heuristic to automatically discover even more nuanced domain boundaries in unlabelled data.
Summary updated