Skip to content

98k-bot/model_differential_privacy

Repository files navigation

[Reducing Model Overlearning]

This repository contains the original implementation of the paper - Reducing Overlearning through Disentangled Representations by Suppressing Unknown Tasks.

Introduction

  1. Generate synthetic dataset (Can skip this with custom dataset)
  2. Train a deep learning model for one task (currently training DenseNet model, can replace this with custom DL model)
  3. Extract features of dataset on the DL model (can chose any custom layer)
  4. Train neural network classifier model for other auxillary tasks (can replace this with custom classifier)
  5. Computer Model trust score

Overall Input:

  • Image data: (N, h, w, 3) where 'N' is the number of images, 'hxw' is the dimension of each image
  • Image label: (N, m) where 'm' is the number of tasks performed using the same image - m_1 can be a 3-class classification task, m_2 maybe a 7-class classification task etc. One of the 'm' is a primary task and the rest of the 'm' becomes auxillary tasks.
  • DL model: 'keras' or 'tf.keras' compatible DL model object (trained or vanilla). The DL model is trained on the primary task.

Overall Output:

  • Trust score: [0-1], on how much the input DL model performs trustworthy learning on the input image data

Approach:

Dependencies

This code requires Keras 2+ and works in Python 3.6+

Quick Start

Install Prerequisites

$ git clone https://github.com/dl-model-recommend/model-trust.git

$ cd model-trust

$ pip install -r requirements.txt

Run the entire code

$ python main.py

There are four primary paramter files for customization:

  • make_dataset/dataset_params.py
  • train_DL_model/model_params.py
  • train_classifier_model/classification_params.py
  • compute_model_trust/trust_params.py

Results for DenseNet model

Ideal Matrix DenseNet Trust Matrix

DenseNet Trust Score: 0.7572

Questions/Bugs

Please submit a Github issue if you have any questions or find any bugs.

model_differential_privacy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages