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.
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
-
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.
The CNN classifiers performed adequately on both datasets: MNIST (top), CIFAR (bottom):
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:
CIFAR10 dataset GAN example: