Code Monkey home page Code Monkey logo

dummyrepo's Introduction

Verification of Neural Networks: Specifying Global Robustness using Generative Models



We present experiments exploring the notions of global correctness and global robustness defined in our research paper:

Nathanaël Fijalkow and Mohit Kumar Gupta

The experiments are in Jupter notebook format:

All experiments use Tensorflow, and pre-trained models can be used (see /Models).

Random Walk results

  • Images generated in a random walk:

  • Confidence score for images generated in a random walk:

Analysis of an image classifier using a generative model

  • Classifier confidence score with images:

  • Prediction accuracy (of the image classifer) across the generated images:


  • Percentage of images with > 90% prediction: 86.84 %
  • Percentage of images with > 97% prediction: 83.95 %
  • Percentage of images with > 99% prediction: 81.49 %
  • Evaluating the Global Correctness

    • Outliers (generated during evaluation):

    Searching for realistic adversarial examples: White box approach

    Searching for realistic adversarial examples: Black box approach

    Prerequisites

    • Linux or macOS
    • Python 3/2
    • Tensorflow

    Getting Started

    Installation

    pip3 install tensorflow numpy
    • Install Jupyter Notebook
    pip3 install jupyter
    • Clone this repo:
    git clone https://github.com/mohitiitb/NeuralNetworkVerification_GlobalRobustness.git
    cd NeuralNetworkVerification_GlobalRobustness

    Testing

    • All experiments use pre-trained models (see /Models).

    • To generate/train a classifier (optional)

    python3 train_classifer.py
    • To generate/train a GAN (optional)
    python3 train_gan.py
    • Go through the jupyter notebooks they are self explanatory and easy to run.

    Datasets

    dummyrepo's People

    Contributors

    mohitiitb avatar

    Watchers

     avatar paper2code - bot avatar

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.