Enhancing Adversarial Robustness of Deep Neural Networks Through Supervised Contrastive Learning

Longwei Wang, Navid Nayyem, Abdullah Rakin
12/27/2024
cs.LGcs.AI

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Adversarial attacks exploit the vulnerabilities of convolutional neural networks by introducing imperceptible perturbations that lead to misclassifications, exposing weaknesses in feature representations and decision boundaries. This paper presents a novel framework combining supervised contrastive learning and margin-based contrastive loss to enhance adversarial robustness. Supervised contrastive learning improves the structure of the feature space by clustering embeddings of samples within the same class and separating those from different classes. Margin-based contrastive loss, inspired by support vector machines, enforces explicit constraints to create robust decision boundaries with well-defined margins. Experiments on the CIFAR-100 dataset with a ResNet-18 backbone demonstrate robustness performance improvements in adversarial accuracy under Fast Gradient Sign Method attacks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{wang2024enhancing,
  title  = {Enhancing Adversarial Robustness of Deep Neural Networks Through Supervised Contrastive Learning},
  author = {Longwei Wang and Navid Nayyem and Abdullah Rakin},
  year   = {2024},
  eprint = {2412.19747},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.19747v1}
}

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/2412.19747.svg)](https://codeofpaper.com/paper/2412.19747)

Discussion