|
Algorithm 1 Security-Aware Compression Search |
-
1:
Input: full-precision model , training set D, adversarial budget , weights , rounds R
-
2:
Output: compressed model
-
3:
Initialize candidate pool
-
4:
for to R do
-
5:
Generate pruned/quantized candidates from
-
6:
for each candidate do
-
7:
Train or fine-tune on D
-
8:
Compute on clean validation split
-
9:
Compute under FGSM at budget
-
10:
Compute using Equation (2)
-
11:
Compute using Equation (4)
-
12:
end for
-
13:
Keep top decile of ranked by S, discard the rest
-
14:
surviving candidates
-
15:
end for
-
16:
-
17:
return
|