Shapes are not enough: CONSERVAttack and its use for finding vulnerabilities and uncertainties in machine learning applications
Organizations: Institute of Physics, University of Bonn, Germany. · Bonn-Aachen Institute of Technology, University of Bonn, Germany. · Physics Institute III A, RWTH Aachen University, Germany. · Physics Institute III B, RWTH Aachen University, Germany.
Abstract
In High Energy Physics, as in many other fields of science, the application of machine learning techniques has been crucial in advancing our understanding of fundamental phenomena. Increasingly, deep learning models are applied to analyze both simulated and experimental data. In most experiments, a rigorous regime of testing for physically motivated systematic uncertainties is in place. The numerical evaluation of these tests for differences between the data on the one side and simulations on the other side quantifies the effect of potential sources of mismodelling on the machine learning output. In addition, thorough comparisons of marginal distributions and (linear) feature correlations between data and simulation in "control regions" are applied. However, the guidance by physical motivation, and the need to constrain comparisons to specific regions, does not guarantee that all possible sources of deviations have been accounted for. We therefore propose a new adversarial attack - the CONSERVAttack - designed to exploit the remaining space of hypothetical deviations between simulation and data after the above mentioned tests. The resulting adversarial perturbations are consistent within the uncertainty bounds - evading standard validation checks - while successfully fooling the underlying model. We further propose strategies to mitigate such vulnerabilities and argue that robustness to adversarial effects must be considered when interpreting results from deep learning in particle physics.
Figures & tables
| Task | ||||||||
| Higgs | 0.0005 | 0.0005 | 10 | 4.0 | 1.0 | 0.006 | 0.0002 | True |
| TTvsWW | 0.005 | 0.01 | 10 | 6.5 | 1.0 | 0.003 | 0.003 | True |
Appendix figures & tables30 assets
Supplementary material from the paper’s appendix.
Appendix
| Higgs - Signal-Background Classifier | ||
| Layer | Nodes | Activation Function |
| Input Layer | 30 | - |
| Dense | 300 | ReLU |
| BatchNormalization | - | - |
| Dense | 102 | ReLU |
| BatchNormalization | - | - |
| Higgs - Adversarial Detector Model | ||
| Layer | Nodes | Activation Function |
| Input Layer | 30 | - |
| Dense | 300 | ReLU |
| BatchNormalization | - | - |
| Dense | 102 | ReLU |
| BatchNormalization | - | - |
| TT vs. WW - Jet Tagger | ||
| Layer | Nodes | Activation Function |
| Input Layer | 87 | - |
| Dense | 300 | ReLU |
| BatchNormalization | - | - |
| Dense | 102 | ReLU |
| BatchNormalization | - | - |
| TT vs. WW - Adversarial Detector Model | ||
| Layer | Nodes | Activation Function |
| Input Layer | 87 | - |
| Dense | 300 | ReLU |
| BatchNormalization | - | - |
| Dense | 102 | ReLU |
| BatchNormalization | - | - |
| Adversarial Attack Hyperparameters | ||
| Parameter Name | Type | Description |
| x | Numpy Array | Input data to be attacked. |
| y | Numpy Array | True labels for the input data. |
| model | str | Path to the trained model. |
| min_change | float | Minimum allowed change per feature in each step. |
| step | float | Step size for candidate feature changes. |
| Higgs Attack Hyperparameter Choice | |
| Parameter Name | Value |
| min_change | 0.0005 |
| step | 0.0005 |
| n_iterations | 10 |
| num_bins | 200 |
| alpha | 4.0 |
| Higgs Attack Hyperparameter Choice | |
| Parameter Name | Value |
| min_change | 0.002 |
| step | 0.006 |
| n_iterations | 10 |
| num_bins | 200 |
| alpha | 6.5 |
| Higgs Attack Hyperparameter Choice | |
| Parameter Name | Value |
| min_change | 0.003 |
| step | 0.02 |
| n_iterations | 10 |
| num_bins | 100 |
| alpha | 6.0 |
| Higgs Attack Hyperparameter Ranges | |
| Parameter Name | Value / Range |
| min_change | [0.001, 0.005] (uniform) |
| step | [0.005, 0.03] (uniform) |
| n_iterations | 10 |
| num_bins | 100 |
| alpha | [3.0, 10.0] (uniform) |
| Higgs Attack Hyperparameter Choice (Test) | |
| Parameter Name | Value |
| min_change | 0.003 |
| step | 0.01 |
| n_iterations | 10 |
| num_bins | 100 |
| alpha | 8.0 |
| DisCo Attack Hyperparameter Choice | |
| Parameter Name | Value |
| min_change | 0.015 |
| step | 0.06 |
| n_iterations | 10 |
| num_bins | 30 |
| alpha | 4.0 |
| DisCo Detector Attack Hyperparams. (Train) | |
| Parameter Name | Value |
| min_change | 0.07 |
| step | 0.08 |
| n_iterations | 10 |
| num_bins | 30 |
| alpha | 4.0 |
| DisCo Detector Attack Hyperparams. (Test) | |
| Parameter Name | Value |
| min_change | 0.01 |
| step | 0.05 |
| n_iterations | 10 |
| num_bins | 30 |
| alpha | 4.0 |
| Limited Data Attack Hyperparameters | |
| Parameter Name | Value |
| min_change | 0.005 |
| step | 0.02 |
| n_iterations | 10 |
| num_bins | 30 |
| alpha | 6.0 |
| TTvsWW Attack Hyperparameter Choice | |
| Parameter Name | Value |
| min_change | 0.005 |
| step | 0.01 |
| n_iterations | 10 |
| num_bins | 200 |
| alpha | 6.5 |
| TTvsWW Attack Hyperparameter Choice | |
| Parameter Name | Value |
| min_change | 0.003 |
| step | 0.02 |
| n_iterations | 10 |
| num_bins | 100 |
| alpha | 6.5 |
| TTvsWW Attack Hyperparameter Choice | |
| Parameter Name | Value |
| min_change | 0.01 |
| step | 0.01 |
| n_iterations | 10 |
| num_bins | 100 |
| alpha | 6.0 |
| TTvsWW Attack Hyperparam. Ranges (Train) | |
| Parameter Name | Value / Range |
| min_change | [0.001, 0.005] (uniform) |
| step | [0.005, 0.03] (uniform) |
| n_iterations | 10 |
| num_bins | 100 |
| alpha | [3.0, 10.0] (uniform) |
| TTvsWW Attack Hyperparameters (Test) | |
| Parameter Name | Value |
| min_change | 0.002 |
| step | 0.005 |
| n_iterations | 10 |
| num_bins | 100 |
| alpha | 8.0 |
| DonutDummy Attack Hyperparameters (Test) | |
| Parameter Name | Value |
| min_change | 0.001 |
| num_candidates | 150 |
| n_iterations | 10 |
| num_bins | 70 |
| alpha | 6.0 |
| DonutDummy Detector Attack Hyperparams. | |
| Parameter Name | Value |
| min_change | 0.001 |
| num_candidates | 150 |
| n_iterations | 10 |
| num_bins | 60 |
| alpha | 6.0 |