Skip to content

This repository contains code to solve different tasks related to building, training and creating adversarial examples for classification models on the MNIST and CIFAR10 datasets.

Notifications You must be signed in to change notification settings

KyriakosPsa/Neural-Networks-Adversarial-Examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adversarial Neural Network Examples

This work is one of a series of three distinct repositories that collectively constitute the coursework focused on Neural Networks for the Data Science & Information Technologies masters course: Μ124 - Machine Learning at the National and Kapodistrian University of Athens (NKUA) during the Fall 2022 semester. The two other repositories deal with:

This repository contains code to solve tasks related to building, training, and creating adversarial examples for classification models on the MNIST and CIFAR10 datasets.

Overview

The following were done

  • Two Convolutional Neural Network (CNN) models to classify iamges in the MNIST and CIFAR10 datasets with test accuracy of $0.99%$ and $0.80%$ respectively.

  • A generative network model able to create fake images from noise for both datasets image

  • A composite Generative Adversarial Network (GAN) that combines the generator and the dataset-specific frozen CNN classifier model. This composite model generates adversarial examples in the form of fake images that resemble the real training images but with added noise to mislead the model into misclassifying them as a different target class. image


Results

The CNN classifiers performed adequately on both datasets: MNIST (top), CIFAR (bottom):

imageimage

When the GAN was used to "attack" the CNN classifier by generating images that a human would classify as the correct class but the model would misclassify, it proved to be highly successful.

MNIST dataset GAN example:

image

CIFAR10 dataset GAN example:

image

About

This repository contains code to solve different tasks related to building, training and creating adversarial examples for classification models on the MNIST and CIFAR10 datasets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published