Skip to main content
. 2026 Sep 9;26(18):5727. doi: 10.3390/s26185727
Algorithm 1 Security-Aware Compression Search
  •   1:

    Input: full-precision model M0, training set D, adversarial budget ϵ, weights α,β,γ, rounds R

  •   2:

    Output: compressed model M*

  •   3:

    Initialize candidate pool C←{M0}

  •   4:

    for r=1 to R do

  •   5:

            Generate pruned/quantized candidates Cr from C

  •   6:

            for each candidate Mi∈Cr do

  •   7:

                    Train or fine-tune Mi on D

  •   8:

                    Compute Accclean(Mi) on clean validation split

  •   9:

                    Compute Accrobust(Mi) under FGSM at budget ϵ

  • 10:

                    Compute CR(Mi) using Equation (2)

  • 11:

                    Compute S(Mi) using Equation (4)

  • 12:

            end for

  • 13:

            Keep top decile of Cr ranked by S, discard the rest

  • 14:

            C← surviving candidates

  • 15:

    end for

  • 16:

    M*←arg maxMi∈CS(Mi)

  • 17:

    return M*