Understanding and Achieving Efficient Robustness with Adversarial Supervised Contrastive Learning

Anh Bui, Trung Le, He Zhao, Paul Montague, Seyit Camtepe +1 more
1/25/2021
cs.LGcs.AIcs.CV
contrastive-ssl

Official code: tuananhbui89/ASCL (11 stars, Python, last commit 2023-01-31).

Abstract

Contrastive learning (CL) has recently emerged as an effective approach to learning representation in a range of downstream tasks. Central to this approach is the selection of positive (similar) and negative (dissimilar) sets to provide the model the opportunity to `contrast' between data and class representation in the latent space.

Show full abstract

In this paper, we investigate CL for improving model robustness using adversarial samples. We first designed and performed a comprehensive study to understand how adversarial vulnerability behaves in the latent space. Based on this empirical evidence, we propose an effective and efficient supervised contrastive learning to achieve model robustness against adversarial attacks. Moreover, we propose a new sample selection strategy that optimizes the positive/negative sets by removing redundancy and improving correlation with the anchor. Extensive experiments show that our Adversarial Supervised Contrastive Learning (ASCL) approach achieves comparable performance with the state-of-the-art defenses while significantly outperforms other CL-based defense methods by using only $42.8\%$ positives and $6.3\%$ negatives.

View on arXivView PDF

Code Implementations(1)

tuananhbui89/ASCLOfficial100%

The implementation for the paper "Adversarial Supervised Contrastive Learning"

110PythonJan 25, 20213 years ago

Similar Papers

Cite this paper

@article{bui2021understanding,
  title  = {Understanding and Achieving Efficient Robustness with Adversarial Supervised Contrastive Learning},
  author = {Anh Bui and Trung Le and He Zhao and Paul Montague and Seyit Camtepe and Dinh Phung},
  year   = {2021},
  eprint = {2101.10027},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.10027}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2101.10027.svg)](https://codeofpaper.com/paper/2101.10027)

Discussion