[Paper Review] Dataset Condensation with Contrastive Signals
This paper proposes Dataset Condensation with Contrastive signals (DCC), a novel method that improves dataset condensation by modifying the gradient matching loss to capture inter-class contrastive signals, addressing the failure of existing methods on fine-grained classification tasks. DCC outperforms state-of-the-art baselines like DC and DSA across CIFAR-10, CIFAR-100, and SVHN, especially under low-shot settings, and demonstrates strong applicability in continual learning.
Recent studies have demonstrated that gradient matching-based dataset synthesis, or dataset condensation (DC), methods can achieve state-of-the-art performance when applied to data-efficient learning tasks. However, in this study, we prove that the existing DC methods can perform worse than the random selection method when task-irrelevant information forms a significant part of the training dataset. We attribute this to the lack of participation of the contrastive signals between the classes resulting from the class-wise gradient matching strategy. To address this problem, we propose Dataset Condensation with Contrastive signals (DCC) by modifying the loss function to enable the DC methods to effectively capture the differences between classes. In addition, we analyze the new loss function in terms of training dynamics by tracking the kernel velocity. Furthermore, we introduce a bi-level warm-up strategy to stabilize the optimization. Our experimental results indicate that while the existing methods are ineffective for fine-grained image classification tasks, the proposed method can successfully generate informative synthetic datasets for the same tasks. Moreover, we demonstrate that the proposed method outperforms the baselines even on benchmark datasets such as SVHN, CIFAR-10, and CIFAR-100. Finally, we demonstrate the high applicability of the proposed method by applying it to continual learning tasks.
Motivation & Objective
- To address the poor performance of existing dataset condensation (DC) methods on fine-grained image classification tasks where task-irrelevant features dominate.
- To identify that class-wise gradient matching in DC fails to utilize contrastive signals between classes, leading to performance degradation below random selection.
- To propose a new loss function that enables synthetic data optimization to capture inter-class differences through collective gradient matching across all classes.
- To stabilize training via a bi-level warm-up strategy that improves optimization dynamics and convergence.
- To validate the method's effectiveness on both general benchmarks and continual learning scenarios.
Proposed method
- Proposes a modified gradient matching loss that aggregates gradients across all classes rather than per-class, enabling the synthetic dataset to reflect inter-class contrastive signals.
- Introduces a bi-level warm-up strategy that decouples the warm-up phase into inner and outer optimization loops to stabilize training and prevent divergence.
- Employs kernel velocity tracking to analyze training dynamics and justify the need for the bi-level warm-up mechanism.
- Applies the method in a bi-level optimization framework, where the synthetic dataset is optimized to match the full gradient distribution of the original dataset.
- Uses a classifier head trained during the inner loop to guide the generation of synthetic data, ensuring alignment with downstream task performance.
- Applies the method to continual learning by replacing the ring buffer in ER-RB with DCC-generated synthetic data, reducing memory footprint while improving accuracy.
Experimental results
Research questions
- RQ1Why do existing dataset condensation methods like DC underperform on fine-grained classification tasks despite their success on general benchmarks?
- RQ2To what extent do contrastive signals between classes contribute to the performance of dataset condensation in low-shot and fine-grained settings?
- RQ3Can a modified gradient matching loss that considers all classes collectively improve the quality of synthetic datasets compared to class-wise matching?
- RQ4How does the bi-level warm-up strategy affect the stability and convergence of the DCC optimization process?
- RQ5Can DCC-generated synthetic datasets effectively replace real data buffers in continual learning to prevent catastrophic forgetting?
Key findings
- On the fine-grained Automobile dataset, DCC achieves 13.27% test accuracy with 10 images per class, outperforming DC (11.0%) and random selection (12.2%).
- On CIFAR-100 with 1 image per class, DCC achieves 13.27% accuracy, significantly outperforming DC (11.98%) and DSAC (12.91%) without warm-up.
- The bi-level warm-up strategy improves DCC performance by up to 1.3% on CIFAR-100 (10 images per class), demonstrating its critical role in optimization stability.
- In continual learning on the {Lizard-Truck-Insect} sequence, DCC improves average accuracy by 6.7% over the standard ER-RB baseline and 2.5% over DSA.
- DCC consistently outperforms DC and DSA across all benchmarks (SVHN, CIFAR-10, CIFAR-100), especially under low-shot regimes, confirming its robustness and generalization.
- Kernel velocity analysis confirms that the bi-level warm-up mitigates instability in early training, particularly during the phase of high gradient velocity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.