Algorithm 1 Offline poisoned training sample detection |
-
1:
Train f using , , and
-
2:
for all do
-
3:
← Deep features of the poisoned data extracted by model f
-
4:
Add to the backdoor feature set
-
5:
end for
-
6:
for all do
-
7:
← Deep features of the benign data extracted by model f
-
8:
Add to the benign feature set
-
9:
end for
-
10:
Train using and
-
11:
for all do
-
12:
← Deep features extracted by model f
-
13:
if then
-
14:
Retention
-
15:
else
-
16:
Delete x from
-
17:
end if
-
18:
end for
-
19:
Train f with the cleaned to obtain a no-backdoor DNN model.
|