Deep Learning Project 236781.
Paper: https://arxiv.org/pdf/1911.07198.pdf Repo: https://github.com/yanemcovsky/SIAM
The basic implementation for the flags inputs: --vote_thresh --k_predic --close_pred_thresh --repeat
The basic implementation for the flags inputs: --vote_thresh --k_predic --close_pred_thresh --repeat
We implemented ResNet_Cifar_FilteredMonteCarlo class, that inherits from the ResNet_Cifar regular class its methods, overrides the method monte_carlo_predict with our code. The main difference is that the class gets new input class w_assign_fn, FilterByThresholdSoftmax and FilterByThresholdKPredictions and close prediction, which calculates the threshold and the k predictions and the cpt.
After regular training as mentioned in the repository https://github.com/yanemcovsky/SIAM
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --vote_thresh <threshold> --attack epgd --epochs <epochs_num> --m_test <test_num> --m_train <train_num> --noise_sd <noise_num> --repeat <repeat_num> --resume <trained_path>
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --vote_thresh 0.05 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.1 --repeat 5 --resume src/results/2020-04-07_03-22-06 > Weighted-Smoothing/results\ analysis/Threshold_outputs/out1_t005_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --vote_thresh 0.05 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.2 --repeat 5 --resume src/results/2020-04-07_03-22-06 > Weighted-Smoothing/results\ analysis/Threshold_outputs/out2_t005_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --vote_thresh 0.05 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.3 --repeat 5 --resume src/results/2020-04-07_03-22-06 > Weighted-Smoothing/results\ analysis/Threshold_outputs/out3_t005_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --vote_thresh 0.05 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.4 --repeat 5 --resume src/results/2020-04-07_03-22-06 > Weighted-Smoothing/results\ analysis/Threshold_outputs/out4_t005_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --vote_thresh 0.05 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.5 --repeat 5 --resume src/results/2020-04-07_03-22-06 > Weighted-Smoothing/results\ analysis/Threshold_outputs/out5_t005_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --k_predic <k_num> --attack epgd --epochs <epochs_num> --m_test <test_num> --m_train <train_num> --noise_sd <noise_num> --repeat <repeat_num> --resume <trained_path>
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --k_predic 1 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.1 --repeat 5 --resume src/results/2020-04-07_03-22-06 > Weighted-Smoothing/results\ analysis/KPredictions_outputs/out1_k1_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --k_predic 1 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.2 --repeat 5 --resume src/results/2020-04-07_19-21-44 > Weighted-Smoothing/results\ analysis/KPredictions_outputs/out2_k1_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --k_predic 1 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.3 --repeat 5 --resume src/results/2020-04-08_11-43-28 > Weighted-Smoothing/results\ analysis/KPredictions_outputs/out3_k1_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --k_predic 1 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.4 --repeat 5 --resume src/results/2020-04-09_03-59-23 > Weighted-Smoothing/results\ analysis/KPredictions_outputs/out_k1_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --k_predic 1 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.5 --repeat 5 --resume src/results/2020-04-09_21-48-05 > Weighted-Smoothing/results\ analysis/KPredictions_outputs/out5_k1_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --close_pred_thresh <cpt> --attack epgd --epochs <epochs_num> --m_test <test_num> --m_train <train_num> --noise_sd <noise_num> --repeat <repeat_num> --resume <trained_path>
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --vote_thresh 0.05 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.1 --repeat 5 --resume src/results/2020-04-07_03-22-06 > Weighted-Smoothing/results\ analysis/ClosePrediction_outputs/out1_cpt05_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --vote_thresh 0.05 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.2 --repeat 5 --resume src/results/2020-04-07_03-22-06 > Weighted-Smoothing/results\ analysis/ClosePrediction_outputs/out2_cpt05_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --vote_thresh 0.05 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.3 --repeat 5 --resume src/results/2020-04-07_03-22-06 > Weighted-Smoothing/results\ analysis/ClosePrediction_outputs/out3_cpt05_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --vote_thresh 0.05 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.4 --repeat 5 --resume src/results/2020-04-07_03-22-06 > Weighted-Smoothing/results\ analysis/ClosePrediction_outputs/out4_cpt05_attack.txt
python3 run_attack.py --weight-noise --cpni --smooth mcpredict --vote_thresh 0.05 --attack epgd --epochs 50 --m_test 16 --m_train 16 --noise_sd 0.5 --repeat 5 --resume src/results/2020-04-07_03-22-06 > Weighted-Smoothing/results\ analysis/ClosePrediction_outputs/out5_cpt05_attack.txt
Weighted-Smoothing/results\ analysis/Threshold_outputs
python3 threshold_draw.py
Weighted-Smoothing/results\ analysis/KPredictions_outputs
python3 kpredictions_draw.py
Weighted-Smoothing/results\ analysis/ClosePrediction_outputs/
python3 close_draw.py