Skip to content

zhoutianxun/data_free_KD_regression

Repository files navigation

data_free_KD_regression

This repository contains the data and code for the paper: "Synthetic data generation method for data-free knowledge distillation in regression neural networks" https://arxiv.org/abs/2301.04338

Set up environment

git clone https://github.com/zhoutianxun/data_free_KD_regression.git
cd data_free_KD_regression
conda env create -f environment.yml
conda activate data_free_KD

Run experiments

Regression datasets

First, unzip CTScan and Indoorloc datasets (compressed due to Github file size limit), located under ./datasets

Types of models in this experiment

  1. teacher
  2. baseline (simple gaussian sampling)
  3. student (1) with generator sampling, decreasing alpha
  4. student (2) with sampling by direct optimization of the generator loss function, decreasing alpha
  5. student (3) with generator sampling, alpha=1
  6. student (4) with sampling by direct optimization of the generator loss function, alpha=1

If you would like to rerun all experiments:

python run_all_experiments.py

If you would like to view results only: Change line 7 in run_all_experiments.py to

rerun = False

Then,

python run_all_experiments.py

MNIST experiment

Experiment can be run through jupyter notebook: mnist_regression.ipynb

cd data_free_KD_mnist
jupyter notebook

Protein solubility case-study experiment

Experiment can be run through jupyter notebook: regression_model_protein.ipynb

cd protein_solubility_case_study
jupyter notebook

About

Data-free Knowledge Distillation for Regression

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published