Paper: "Detecting Brittle Decisions for Free: Leveraging Margin Consistency in Deep Robust Classifiers."
- Clone this repository with
git clone [email protected]:ngnawejonas/margin-consistency.git - Install the requirements
pip install -r requirements.txt
- Edit the configuration file
params.yamlto specify:- the attack (fab for fab attack, cw for carlini-wagner, clever for clever score or otherwise for auto-attack)
- a folder to save the results
- Run
$python3 eval.pyor use the scriptrun.sh
Use notebook/xpLinf-TrainDNet.ipynb for analysis
If you used this code, please cite our paper:
@inproceedings{
ngnawe2024detecting,
title={Detecting Brittle Decisions for Free: Leveraging Margin Consistency in Deep Robust Classifiers},
author={Jonas Ngnawe and Sabyasachi Sahoo and Yann Batiste Pequignot and Frederic Precioso and Christian Gagn{\'e}},
booktitle={The Thirty-eighth Annual Conference on Neural Information Processing Systems},
year={2024},
url={https://openreview.net/forum?id=XHCYZNmqnv}
}