[Paper Review] Self-Damaging Contrastive Learning
This paper proposes Self-Damaging Contrastive Learning (SDCLR), a novel unsupervised representation learning framework that improves robustness to long-tailed data by dynamically pruning the target model to create a 'self-competitor' for contrastive learning. By contrasting the full and pruned models, SDCLR implicitly identifies and emphasizes hard-to-learn, long-tail samples, significantly improving both overall and balanced accuracy in linear evaluation across full-shot and few-shot settings.
The recent breakthrough achieved by contrastive learning accelerates the pace for deploying unsupervised training on real-world data applications. However, unlabeled data in reality is commonly imbalanced and shows a long-tail distribution, and it is unclear how robustly the latest contrastive learning methods could perform in the practical scenario. This paper proposes to explicitly tackle this challenge, via a principled framework called Self-Damaging Contrastive Learning (SDCLR), to automatically balance the representation learning without knowing the classes. Our main inspiration is drawn from the recent finding that deep models have difficult-to-memorize samples, and those may be exposed through network pruning. It is further natural to hypothesize that long-tail samples are also tougher for the model to learn well due to insufficient examples. Hence, the key innovation in SDCLR is to create a dynamic self-competitor model to contrast with the target model, which is a pruned version of the latter. During training, contrasting the two models will lead to adaptive online mining of the most easily forgotten samples for the current target model, and implicitly emphasize them more in the contrastive loss. Extensive experiments across multiple datasets and imbalance settings show that SDCLR significantly improves not only overall accuracies but also balancedness, in terms of linear evaluation on the full-shot and few-shot settings. Our code is available at: https://github.com/VITA-Group/SDCLR.
Motivation & Objective
- To address the vulnerability of contrastive learning to long-tailed, imbalanced unlabeled data in real-world applications.
- To develop a class-agnostic method that automatically balances representation learning without requiring prior knowledge of class distributions.
- To leverage model memorization dynamics—specifically, the tendency of deep networks to forget long-tail samples upon pruning—as a signal for adaptive sample mining.
- To improve both overall and balanced downstream performance in linear evaluation protocols under long-tailed data splits.
Proposed method
- SDCLR introduces a dual-branch architecture: a main target model and a dynamically pruned 'self-competitor' model derived from the target during training.
- The self-competitor is created via magnitude-based pruning of the target model's weights, with pruning applied online and updated in sync with the target model.
- The two branches share weights for non-pruned parameters and maintain independent batch normalization layers to preserve representation diversity.
- Contrastive loss is computed between the feature representations of the same input under the target and self-competitor branches, encouraging alignment while emphasizing samples that are most affected by pruning.
- The method implicitly identifies long-tail samples as those whose features change significantly under pruning, thus receiving higher attention in the loss.
- The framework is compatible with standard contrastive learning pipelines like SimCLR and can be applied without modifying the data distribution or introducing class-specific loss weighting.
Experimental results
Research questions
- RQ1Can model pruning be used as a proxy to identify hard-to-learn, long-tail samples in an unsupervised, class-agnostic manner?
- RQ2Does contrasting a full model with a pruned version improve representation learning robustness on long-tailed data distributions?
- RQ3How does SDCLR compare to standard contrastive learning and other baselines in terms of linear separability and few-shot accuracy under long-tailed settings?
- RQ4What is the optimal pruning ratio for balancing model capacity and effective mining of difficult samples?
Key findings
- SDCLR significantly improves linear evaluation accuracy on long-tailed CIFAR100 splits, achieving 48.23% ± 0.20% linear separability and 24.68% ± 0.36% few-shot accuracy, outperforming SimCLR and MocoV2.
- The method reduces the performance gap between high-frequency and low-frequency classes, with minor-class samples showing a 3.5× increase in influence on the pruned model’s feature changes compared to many-class samples.
- Ablation studies show that pruning ratio has a strong trade-off: performance peaks around 90% pruning, beyond which model capacity loss degrades performance.
- Random dropout baseline with 90% dropout yields only 15.48% ± 0.42% few-shot accuracy, confirming that structured pruning is essential for effective sample mining.
- Grad-CAM visualization confirms that SDCLR learns more discriminative attention maps on tail-class images than SimCLR, indicating better localization of class-relevant features.
- The sparse branch, even when weak, improves the generalization of the dense target model, demonstrating co-evolutionary learning benefits.
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.