Adversarial contrastive learning (ACL) does not require expensive data annotations but outputs a robust representation that withstands adversarial attacks and also generalizes to a wide range of downstream tasks. However, ACL needs tremendous running time to generate the adversarial variants of all training data, which limits its scalability to large datasets. To speed up ACL, this paper proposes a robustness-aware coreset selection (RCS) method. RCS does not require label information and searches for an informative subset that minimizes a representational divergence, which is the distance of the representation between natural data and their virtual adversarial variants. The vanilla solution of RCS via traversing all possible subsets is computationally prohibitive. Therefore, we theoretically transform RCS into a surrogate problem of submodular maximization, of which the greedy search is an efficient solution with an optimality guarantee for the original problem. Empirically, our comprehensive results corroborate that RCS can speed up ACL by a large margin without significantly hurting the robustness transferability. Notably, to the best of our knowledge, we are the first to conduct ACL efficiently on the large-scale ImageNet-1K dataset to obtain an effective robust representation via RCS. Our source code is at https://github.com/GodXuxilie/Efficient_ACL_via_RCS.
翻译:对抗对比学习(ACL)无需昂贵的数据标注,却能输出鲁棒的表示,既能抵御对抗攻击,又适用于广泛的下游任务。然而,ACL需耗费大量运行时间生成所有训练数据的对抗变体,这限制了其在大型数据集上的可扩展性。为加速ACL,本文提出一种鲁棒性感知核心集选择(RCS)方法。RCS无需标签信息,通过搜索信息量丰富的子集最小化表示散度——即自然数据与其虚拟对抗变体在表示空间中的距离。直接遍历所有可能子集的朴素RCS解法计算代价高昂。因此,我们通过理论推导将RCS转化为子模最大化问题,其贪心搜索不仅高效,且对原问题具有最优性保证。实验表明,我们的综合结果证明RCS能在不显著损害鲁棒迁移性的前提下大幅加速ACL。值得注意的是,据我们所知,这是首次在大规模ImageNet-1K数据集上通过RCS高效执行ACL并获取有效鲁棒表示的工作。我们的源代码发布于https://github.com/GodXuxilie/Efficient_ACL_via_RCS。