Skip to content

Commit 08396a4

Browse files
committed
removed noise injection due to redundancy with model poisoning
1 parent b8fb65f commit 08396a4

File tree

3 files changed

+0
-106
lines changed

3 files changed

+0
-106
lines changed

nebula/addons/attacks/attacks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,10 @@ def create_attack(engine) -> Attack:
116116
from nebula.addons.attacks.dataset.labelflipping import LabelFlippingAttack
117117
from nebula.addons.attacks.model.gllneuroninversion import GLLNeuronInversionAttack
118118
from nebula.addons.attacks.model.modelpoison import ModelPoisonAttack
119-
from nebula.addons.attacks.model.noiseinjection import NoiseInjectionAttack
120119
from nebula.addons.attacks.model.swappingweights import SwappingWeightsAttack
121120

122121
ATTACK_MAP = {
123122
"GLL Neuron Inversion": GLLNeuronInversionAttack,
124-
"Noise Injection": NoiseInjectionAttack,
125123
"Swapping Weights": SwappingWeightsAttack,
126124
"Delayer": DelayerAttack,
127125
"Flooding": FloodingAttack,

nebula/addons/attacks/model/noiseinjection.py

Lines changed: 0 additions & 60 deletions
This file was deleted.

nebula/frontend/templates/deployment.html

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ <h5>Robustness <i class="fa fa-shield"></i>
156156
<label>
157157
<input type="checkbox" id="mod-neuroninversion" value='GLLNeuronInversionAttack' style="margin-right: 10px;">GLL Neuron Inversion
158158
</label>
159-
<label>
160-
<input type="checkbox" id="mod-noiseinjection" value='NoiseInjectionAttack' style="margin-right: 10px;">Noise Injection
161-
</label>
162159
<label>
163160
<input type="checkbox" id="mod-swappingweights" value='SwappingWeightsAttack' style="margin-right: 10px;">Swapping Weights
164161
</label>
@@ -501,7 +498,6 @@ <h5 class="step-title">Attack Type</h5>
501498
<option>Sample Poisoning</option>
502499
<option>Model Poisoning</option>
503500
<option>GLL Neuron Inversion</option>
504-
<option>Noise Injection</option>
505501
<option>Swapping Weights</option>
506502
<option>Delayer</option>
507503
<option>Flooding</option>
@@ -559,12 +555,6 @@ <h5 id="target_changed_label-title" class="step-title" style="display: none;">Ta
559555
placeholder="target changed label" min="0" value="7"
560556
style="display: inline; width: 20%">
561557
</div>
562-
<h5 id="strength-title" class="step-title" style="display: none;">Noise strength</h5>
563-
<div class="form-check form-check-inline" id="strength-container" style="display: none;">
564-
<input type="number" class="form-control" id="strength"
565-
placeholder="Noise strength" value="10000"
566-
style="display: inline; width: 20%">
567-
</div>
568558
<h5 id="layer_idx-title" class="step-title" style="display: none;">Layer</h5>
569559
<div class="form-check form-check-inline" id="layer_idx-container" style="display: none;">
570560
<input type="number" class="form-control" id="layer_idx"
@@ -2876,40 +2866,6 @@ <h5 class="step-title">Schema of deployment</h5>
28762866
document.getElementById("flooding-factor-title").style.display = "none";
28772867
document.getElementById("flooding-factor-container").style.display = "none";
28782868
}
2879-
else if(this.value == "Noise Injection"){
2880-
document.getElementById("poisoned-node-title").style.display = "block";
2881-
document.getElementById("poisoned-node-percent-container").style.display = "block";
2882-
document.getElementById("poisoned-sample-title").style.display = "none";
2883-
document.getElementById("poisoned-sample-percent-container").style.display = "none";
2884-
document.getElementById("poisoned-noise-title").style.display = "none";
2885-
document.getElementById("poisoned-noise-percent-container").style.display = "none";
2886-
document.getElementById("noise-type-title").style.display = "none";
2887-
document.getElementById("noise-type-container").style.display = "none";
2888-
document.getElementById("targeted-title").style.display = "none";
2889-
document.getElementById("targeted-container").style.display = "none";
2890-
document.getElementById("target_label-title").style.display = "none";
2891-
document.getElementById("target_label-container").style.display = "none";
2892-
document.getElementById("target_changed_label-title").style.display = "none";
2893-
document.getElementById("target_changed_label-container").style.display = "none";
2894-
document.getElementById("strength-title").style.display = "block";
2895-
document.getElementById("strength-container").style.display = "block";
2896-
document.getElementById("layer_idx-title").style.display = "none";
2897-
document.getElementById("layer_idx-container").style.display = "none";
2898-
document.getElementById("delay-title").style.display = "none";
2899-
document.getElementById("delay-container").style.display = "none";
2900-
document.getElementById("start-attack-title").style.display = "block";
2901-
document.getElementById("start-attack-container").style.display = "block";
2902-
document.getElementById("stop-attack-title").style.display = "block";
2903-
document.getElementById("stop-attack-container").style.display = "block";
2904-
document.getElementById("attack-interval-title").style.display = "block";
2905-
document.getElementById("attack-interval-container").style.display = "block";
2906-
document.getElementById("target-percentage-title").style.display = "none";
2907-
document.getElementById("target-percentage-container").style.display = "none";
2908-
document.getElementById("selection-interval-title").style.display = "none";
2909-
document.getElementById("selection-interval-container").style.display = "none";
2910-
document.getElementById("flooding-factor-title").style.display = "none";
2911-
document.getElementById("flooding-factor-container").style.display = "none";
2912-
}
29132869
else if(this.value == "Swapping Weights"){
29142870
document.getElementById("poisoned-node-title").style.display = "block";
29152871
document.getElementById("poisoned-node-percent-container").style.display = "block";

0 commit comments

Comments
 (0)