Abstract
Adversarial Contrastive Learning (ACL) is a powerful unsupervised technique for learning representations that are resilient to adversarial attacks. However, the computational cost of generating adversarial examples for every training image makes it prohibitively slow for large-scale datasets. We introduce Robustness-Aware Coreset Selection (RCS), a method that speeds up ACL by up to 4x by selecting a small, highly informative subset of unlabeled data. By minimizing "representational divergence" through a submodular maximization framework, RCS enables efficient robust representation learning even on massive datasets like ImageNet-1K.
The Computational Challenge of ACL
Adversarial Contrastive Learning (ACL) learns data representations that are useful for downstream tasks and resilient to perturbations. The primary bottleneck is the "compute tax": generating adversarial versions of every training image at every epoch is extremely slow. While coreset selection (choosing a representative data subset) is a common speedup technique, existing methods typically require ground-truth labels to identify important data points. Since ACL operates on unlabeled data, a new approach was needed to select subsets that preserve robustness without label supervision.
Methodology: Robustness-Aware Coreset Selection (RCS)
The core idea of RCS is to select a data subset that minimizes Representational Divergence (RD). RD measures the distance in feature space between a natural image and its virtual adversarial counterpart. A low RD indicates that small perturbations do not significantly alter the model's perception of the image.
To implement RCS efficiently, the authors:
- Formulate a Proxy Problem: They prove that the RCS objective can be transformed into a submodular maximization problem, moving it from a combinatorial explosion to a solvable task.
- Greedy Search: Due to submodularity, a greedy algorithm provides a theoretical guarantee of near-optimality.
- Efficiency Optimizations: The process uses last-layer gradients and adversarial data approximations to minimize the overhead of the selection phase itself.
Experimental Evaluation
The researchers evaluated RCS on CIFAR-10, CIFAR-100, STL-10, and ImageNet-1K. The results demonstrate that robust models can be trained using only 10-20% of the data, provided the coreset is selected strategically.
Efficiency and Robustness Trade-offs
As shown in Figure 1, RCS (star shapes) consistently achieves higher robust accuracy than random selection (triangles) while being significantly faster than training on the full dataset (squares). On CIFAR datasets, RCS achieved a 4x speedup with negligible loss in the model's ability to transfer robustness to downstream tasks.
Performance Across Speed-up Ratios
Detailed analysis across various downstream tasks shows that RCS consistently outperforms random selection across different speed-up ratios. Even as the speed-up factor increases, the robust test accuracy remains significantly higher than baseline random sampling methods, highlighting the effectiveness of the robustness-aware selection criteria.
Large-Scale Benchmarking
On ImageNet-1K, training on the full set would take roughly 650 hours. Using RCS, the authors obtained a robust representation in a fraction of that time, outperforming standard Contrastive Learning in robustness transferability. This represents the first successful attempt to run ACL on the full ImageNet-1K dataset efficiently.
Conclusion
RCS demonstrates that robustness is fundamentally about stability; labels are not required to find "hard" examples for robustness. By focusing on images where the model's internal representation is most easily shaken, RCS achieves significant computational savings. Future work could involve applying RCS to other domains, such as Natural Language Processing (NLP) or Audio, where adversarial training remains computationally expensive.
Summary updated