E-SMAD: A simple and effective ensemble adversarial defense for student modelsE-SMAD: A Simple yet Effective Ensemble of Student Models for Adversarial Defense
The authors propose E-SMAD, which distills multiple student models using label-level temperature scaling and applies an ensemble defense; on MNIST, with temperature range [20, 29], PGD's ASR is 1.90% (Table III).
Untargeted white-box adversarial attacks against multiclass classifiers: the attacker makes the predicted label differ from the true label via a perturbation constrained by ∥δ∥l ≤ ϵ, without specifying a target wrong class. The defense goal is to maintain correct predictions under such perturbations while preserving clean accuracy.
- DNNs are susceptible to adversarial examples, and the authors consider the robustness of single-student distillation to be limited, while existing ensemble defenses often lack a mechanism for producing complementary decision boundaries. The authors aim to balance adversarial robustness and clean accuracy.
- E-SMAD first trains a temperature-scaled teacher, then assigns the minimum temperature to the true class and randomly permutes the temperatures for non-true classes, independently distilling multiple students; at inference it averages the student logits and then outputs predictions via softmax.
- The experiments cover MNIST, Fashion-MNIST, CIFAR-10 and FGSM, BIM, PGD, C&W. E-SMAD reduces ASR in most scenarios, but under C&W on CIFAR-10 the ASR is 100.00%; compared with ADP, GPMR, and GAL, it also has both wins and losses.
- The authors leave the number of students, heterogeneous architectures and more complex datasets for future research. The experiments use three students, with the same architecture for teacher and students; the number of repetitions, variance or statistical significance tests are not reported, nor is an adaptive attack evaluation against E-SMAD.
- Evaluated models
- E-SMAD
- Benchmarks
- MNISTFashion-MNISTCIFAR-10
- Metrics
- Clean Acc.ASR
E-SMAD is an adversarial defense method that distills a teacher model into multiple student models with label-level temperature scaling; each student learns complementary decision boundaries, and ensemble inference stabilizes predictions. The method is evaluated on MNIST, Fashion-MNIST, and CIFAR-10 under FGSM, BIM, PGD, and C&W attacks, maintaining high clean-sample accuracy and reducing attack success rate (ASR), with robustness superior to compared defense methods.
Related events and news
1 events · 0 news mentions
- This event's paper
E-SMAD:一种简单而有效的学生模型集成对抗防御方法
Paper analysis
What problem does this paper attempt to solve?
For adversarial examples against multiclass classifiers, the authors use label-level temperature scaling to build a student ensemble, balancing robustness and clean accuracy.
The core question is how to use knowledge distillation and student ensembles to improve the robustness of multiclass classifiers to adversarial examples while maintaining clean accuracy.
- Application background: The authors take autonomous driving, medical diagnosis and industrial inspection as examples, considering that high-confidence misclassification caused by small perturbations brings safety risks; the experimental subjects of their method are image classifiers.
- Shortcomings of existing methods: The authors state that adversarial training has issues of training overhead, generalization to unknown attacks and the accuracy–robustness trade-off; preprocessing defenses are susceptible to adaptive attacks; existing ensembles often lack effective construction of complementary decision boundaries and usually require training complete models simultaneously.
- Core hypothesis: Single-student, uniform-temperature distillation limits representation diversity. The authors hypothesize that assigning different temperatures to non-true classes can let students learn complementary inter-class relationships and decision boundaries, and the ensemble can reduce sensitivity to perturbations.
- Proposed method: E-SMAD (Ensemble of Student Models for Adversarial Defense) distills a teacher into multiple independently trained students and averages logits at inference; the authors evaluate FGSM, BIM, PGD, C&W on MNIST, Fashion-MNIST, CIFAR-10.
- Threat model: The setting in Section III-A is as follows.
- Goal: untargeted attack, only requiring the predicted label to differ from the true label, without specifying a wrong class.
- Knowledge: Section IV-A calls the four evaluated attacks white-box; the paper does not further specify whether the attacker knows the defense's full temperature configuration.
- Capability: Generate xadv = x + δ, with perturbation satisfying ∥δ∥l ≤ ϵ; experimental attacks include FGSM, BIM, PGD, C&W.
- Victim system and defense goal: Multiclass classifier; the defense hopes to maintain correct predictions within the perturbation constraint and preserve clean accuracy.
What related research exists?
Related work is divided into adversarial attacks, adversarial training and preprocessing, ensemble defenses, and distillation defenses; the experimental baselines are ADP, GPMR, and GAL.
Adversarial attack methods
- Szegedy et al. (2013) and Goodfellow et al. (2014): The former formulates adversarial example generation as a constrained optimization with L-BFGS, the latter proposes the single-step gradient attack FGSM; the paper treats the two as representatives of optimization-based and gradient-based attacks.
- Kurakin et al. (2018) and Madry et al. (2017): BIM iterates FGSM with small step sizes; PGD adds projection, constraining the perturbation within an ϵ-ball. The paper notes that iteration brings computational overhead.
- Carlini and Wagner (2017): C&W jointly optimizes attack success and perturbation magnitude; the paper states that it can bypass various defenses including defensive distillation, but the optimization is complex and gradient-dependent.
Adversarial training and preprocessing defenses
- Madry et al. (2017): Formulates adversarial training as min–max optimization, incorporating adversarial examples into training. The paper notes its training cost, generalization to unseen attacks, and clean accuracy trade-off issues.
- Feature squeezing, MagNet, PNDetector: Detect or handle adversarial examples through input compression, detection–reconstruction, and comparison of positive and negative image representations, respectively. The paper considers such methods not to change the model's decision boundary, and thus fragile against adaptive attacks.
Ensemble defenses
- Perrone and Cooper (1995), Strauss et al. (2017), Li et al. (2021), Cheng et al. (2020): Study the relationship between member error decorrelation, error correlation, and voting ensembles and robustness.
- ADP, GPMR, GAL: Pang et al. (2019) promote ensemble diversity during training; Dabouei et al. (2020) simultaneously promote gradient direction diversity and balance gradient magnitude; Kariyappa and Qureshi (2019) use a gradient alignment loss to reduce transferability between members.
Distillation defenses and the positioning of this paper
- Hinton et al. (2015) and Papernot et al. (2016): The former proposes knowledge distillation, the latter applies distillation to adversarial defense; the paper considers the regularization brought by soft targets to smooth the decision boundary.
- Class-aware distillation and multi-student distillation: Zhang et al. (2022) study class-aware logit distillation, Chang et al. (2022) study one-teacher multi-student distillation. The paper points out that neither explicitly uses temperature design to induce complementary decision boundaries among students.
- Experimental baselines and benchmarks: Table IV compares ADP, GPMR, GAL, using MNIST, Fashion-MNIST, CIFAR-10; Tables I–III additionally compare the teacher model and the average of student models. The authors position E-SMAD as a defense that constructs student diversity via label-level temperature permutations and then performs logit ensembling.
How does the paper address this problem?
E-SMAD distills independent students using a low temperature for the true class and randomly permuted temperatures for non-true classes, and averages logits at inference.
E-SMAD's overall idea is: fix a temperature-scaled teacher, independently train students with different label-level temperature configurations, and then perform ensemble inference by averaging logits. Figure 1 uses three students as an example; the experiments also use three students.
Problem Setting and Teacher Training
- Classification and attack target: The teacher maps inputs to K-class logits, and after softmax takes the class with the highest probability. The defense corresponds to untargeted attacks with perturbations constrained by ∥δ∥l ≤ ϵ, and the hope is that the defended model predicts the true label both before and after perturbation.
- Teacher supervision: The teacher is trained on the training set with temperature-scaled cross-entropy until convergence, and then fixed. Its experimental temperature is 20; the authors state that temperature scaling makes the outputs smoother, preserving inter-class similarity information.
- Teacher loss: Lteacher=−1/N∑i=1Nlog pyi(xi), where the probabilities are obtained by dividing the teacher logits by temperature τ and then applying softmax.
Label-Level Temperature Scaling and Soft Targets
- Temperature list: First define a list with one temperature per class, τ = [τ1, …, τK]. For each student, the true class always takes the smallest temperature τtrue in the list, to maintain sharper supervision for the correct class.
- Permutation of non-true classes: Remove τtrue from the list, randomly permute the remaining K−1 temperatures for each student, and then assign them in order to the non-true classes sorted by class index. Different students therefore receive different softened supervision.
- Soft target construction: Divide the teacher's logit for each class by that student's corresponding class temperature, then apply softmax to obtain that student's soft target. The authors state that higher temperatures flatten the contribution of the corresponding non-true class logits, while lower temperatures preserve finer confidence information.
Student Optimization and Independent Training
- Student output: Students use the same architecture as the teacher; their logits are likewise scaled by the per-class temperatures, and the KL divergence from the teacher's soft targets is computed.
- Combined objective: Ltotal(m)=α LCE(m)+(1−α)Ldistill(m), where CE uses the true labels and the student's softmax without temperature scaling, and the distillation term matches the teacher's soft targets; α ∈ [0, 1] controls the weight of the two terms, and the paper does not report the value of α used in the experiments.
- Training method: Students are trained independently of each other, and the entire ensemble does not need to be trained simultaneously. The authors present this as a feature for building ensembles when computational resources are limited, but do not report training time.
Ensemble Inference
- Logit averaging: Average the raw logits of the M students per class, then apply softmax and argmax; prediction probabilities are not averaged, and majority voting is not used.
- Reason given by the authors: Logit aggregation preserves the relative magnitudes before softmax and the inter-class confidence relationships, and leverages the complementary knowledge learned from different temperature permutations; the authors believe this is less prone to over-smoothing than probability averaging.
Implementation Parameters and Success Criteria
- Optimization settings: Adam, learning rate 0.001, weight decay 0.0001, batch size 128, at most 200 epochs, with early stopping based on validation accuracy; unless otherwise stated, all methods use the same optimization settings.
- Network architecture: ResNet-like CNN, with a first layer of 3×3 convolution with 64 channels, followed by three groups of residual blocks with 64, 128, and 256 channels in order, with two residual blocks per group; the p values of Dropout at two places are 0.15 and 0.25, respectively.
- Student temperature configurations: The three ranges are [2, 11], [10, 19], and [20, 29], respectively; no training is performed during the ensemble stage.
- Evaluation criteria: Clean Acc. is the proportion of correctly classified unperturbed test samples; ASR is the proportion of test samples that were originally correctly classified but are misclassified after the attack, with lower values indicating higher robustness to that attack.
What experiments did the paper conduct?
Three temperature experiments compared with ADP, GPMR, GAL show: E-SMAD reduces ASR in most settings, but high ASR remains on C&W and complex datasets.
Experimental Setup
- Models evaluated: The teacher and students are all the same ResNet-like CNN; MNIST and Fashion-MNIST use single-channel input, and CIFAR-10 uses three-channel input. Each E-SMAD ensemble contains three students, and the paper does not give other model names.
- Datasets: MNIST is 70,000 28×28 grayscale images, with 60,000 for training and 10,000 for testing; Fashion-MNIST uses the same split and resolution; CIFAR-10 is 60,000 32×32 RGB images, with 50,000 for training and 10,000 for testing.
- Attacks: All four are untargeted white-box. FGSM has ϵ = 0.1; BIM and PGD both have ϵ = 0.1, step size α = 0.01, and 10 iterations; C&W has initial constant c = 1.0, 9 binary search steps, and at most 100 iterations per round.
- Comparisons: Tables I–III compare the teacher model, average of student models, and E-SMAD; Table IV compares ADP, GPMR, GAL, and E-SMAD, where E-SMAD uses the temperature range [20, 29].
- Metrics: Clean Acc. and ASR; the denominator of ASR is the test samples that were originally correctly classified. The paper does not state the number of samples actually used for attacks in each table, nor does it report the number of repetitions, variance, or statistical significance tests.
- Evaluation method: Results are computed from classification predictions and label changes after attack; the paper does not use an LLM judge or human scoring.
Main Results
The table below lists the defense method comparison from Table IV; E-SMAD's temperature range is [20, 29]. To control length, only ASR is listed; exceptions for clean accuracy are explained after the table.
Swipe horizontally to read the table
Dataset Attack ADP ASR GPMR ASR GAL ASR E-SMAD ASR MNIST FGSM 3.40% 3.30% 46.30% 1.10% MNIST BIM 6.30% 4.50% 58.70% 1.80% MNIST PGD 8.70% 3.70% 70.40% 1.90% MNIST C&W 16.50% 21.30% 20.90% 30.90% Fashion-MNIST FGSM / BIM 80.70% / 100.00% 48.90% / 60.40% 47.90% / 71.90% 22.90% / 32.00% Fashion-MNIST PGD / C&W 100.00% / 88.60% 54.20% / 89.80% 72.90% / 81.40% 78.90% / 94.30% CIFAR-10 FGSM / BIM 91.20% / 100.00% 97.90% / 100.00% 88.00% / 100.00% 34.90% / 40.50% CIFAR-10 PGD / C&W 100.00% / 100.00% 100.00% / 100.00% 100.00% / 96.60% 88.70% / 100.00% - The authors' overall interpretation: The authors state that E-SMAD achieves lower ASR in most attack scenarios and maintains competitive clean accuracy; in Table IV's "Number of Best Results", E-SMAD has the best ASR 8 times, while ADP, GPMR, and GAL have 1, 1, and 2, respectively.
- Exceptions: Under C&W on MNIST, E-SMAD's ASR is higher than the three baselines; under PGD and C&W on Fashion-MNIST, it is also not the lowest. Under C&W on CIFAR-10, E-SMAD, ADP, and GPMR are all 100.00%, and GAL is 96.60%.
- Clean accuracy: In Table IV, ADP on MNIST and CIFAR-10 is 99.74% and 92.51%, respectively, higher than E-SMAD's 99.67% and 91.83%; E-SMAD on Fashion-MNIST is 94.70%, higher than the other methods in that table.
Temperature Ranges and Student Aggregation
- MNIST: In Tables I–III, the teacher's PGD ASR is 54.20%; E-SMAD under [2, 11], [10, 19], and [20, 29] is 16.00%, 4.10%, and 1.90%, respectively. However, under C&W with [2, 11], E-SMAD is 34.20%, higher than the teacher's 30.50%; under [20, 29] it is 30.90%, also slightly higher than the teacher and student average of 30.50%.
- Fashion-MNIST: The teacher's FGSM ASR is 88.00%, and E-SMAD under the three temperature ranges is 73.60%, 43.40%, and 22.90% in order; BIM under [20, 29] is 32.00%. However, under BIM with [2, 11], E-SMAD is 97.50%, higher than the student average of 97.47%.
- CIFAR-10: The teacher's FGSM ASR is 90.80%, and E-SMAD under the three temperature ranges is 87.80%, 63.30%, and 34.90% in order; BIM under [20, 29] is 40.50%. Under all three temperature ranges, C&W is 100.00%; under BIM with [2, 11], E-SMAD is 99.60%, higher than the teacher's 99.50%.
Discussion of Input Complexity and Computational Cost
- Cross-dataset phenomenon: Section V-B points out that on MNIST, the clean accuracy of each student and the ensemble is high and ASR is low; on Fashion-MNIST, individual students perform inconsistently while the ensemble can reduce ASR; on CIFAR-10, the ASR of each model is high, but the ensemble outperforms the students in most cases.
- The authors' interpretation: The authors believe that input dimensionality and intra-class diversity affect robustness, and that higher temperatures generally bring lower ASR; at the same time, they explicitly state that optimization-intensive attacks such as C&W remain an open challenge on complex datasets.
- Computational cost: Section V-D explains that each student has the same architecture and capacity as the teacher, and inference requires multiple forward passes, but they can be parallelized. The authors state that the additional cost is acceptable; the paper does not report specific latency, training time, number of queries, or hardware comparison figures.
Other Ablations and Analyses
- Number of students: Only three students are evaluated; Section V-A does not give experimental figures for varying the number of students.
- Student architecture: All students have the same architecture as the teacher; Section V-C does not give heterogeneous architecture experiments.
- Temperature trend: Based on Tables I–III, the authors state that [10, 19] and [20, 29] produce lower ASR than [2, 11] on almost all datasets and attacks, but there are exceptions in the cells listed above, such as C&W and BIM.
- Best result counts: In Table I, E-SMAD's best counts for clean accuracy / ASR are 8 / 5, in Table II they are 12 / 8, and in Table III they are 12 / 9; these counts are given directly in the last row of each table.
- Adaptive attacks: Related Work discusses the impact of adaptive attacks on preprocessing defenses, but the experimental section does not report adaptive attacks against E-SMAD.
What are some points that can be further explored?
The authors list the number of students, heterogeneous architectures and more complex datasets as future directions; the existing experiments do not report adaptive attacks or repeated statistics.
Limitations and future directions noted by the authors
- Number of students not yet systematically studied: Section V-A states that currently only three students are used, and the effect of changing the number of students on robustness, diversity and inference cost remains an open question, left for future work.
- Generalization to larger datasets: Section V-B proposes that evaluation on larger and more diverse datasets such as ImageNet could further examine generalization ability and practical applicability; the current experiments do not include these datasets.
- Homogeneous students may limit diversity: Section V-C states that all students share the same architecture, which is sufficient for low-dimensional inputs but may limit decision boundary diversity; later work could vary depth, width or residual connections.
- Interaction between architecture and distillation ensemble: Section V-C proposes that different architectures need to be systematically evaluated to clarify how model design affects the distillation ensemble and its scalable deployment.
- Strong optimization attacks remain a challenge: The overall conclusion of Section IV-B states that the effect of smoothing the distribution is limited on optimization-intensive attacks such as C&W, and high ASR on complex datasets remains an open challenge.
- Future plans in the conclusion: Section VI explicitly lists heterogeneous student architectures, varying ensemble sizes, more complex datasets as future work.
Scope of experimental coverage
- Data and attacks: Experiments cover MNIST, Fashion-MNIST, CIFAR-10, and FGSM, BIM, PGD, C&W; all attacks are untargeted white-box, with parameters in Section IV-A.
- Models and ensemble: Both teacher and students are the same ResNet-like CNN, with three students per ensemble; there are no corresponding experimental results for the number of students or heterogeneous architectures, see Section V-A, V-C.
- Defense comparison: Table IV includes ADP, GPMR, GAL and E-SMAD; Tables I–III additionally include the teacher model and the average of student models.
- Statistics and efficiency information: The paper does not report the number of repetitions, confidence intervals or statistical significance tests, nor does it report specific training time, inference latency or hardware overhead.
- Adaptive attacks: The paper discusses adaptive attacks in Related Work, but Experiments does not report an adaptive attack evaluation against E-SMAD.
Summarize the main content of the paper
E-SMAD uses temperature-differentiated distillation to construct a student ensemble; it reduces ASR in most settings, but failure cases remain on C&W and CIFAR-10.
E-SMAD is an ensemble distillation defense for multiclass image classifiers, aiming to reduce ASR under untargeted white-box adversarial attacks while maintaining clean accuracy.
- Problem motivation: The authors consider the robustness of single-student uniform-temperature distillation to be limited, and existing ensemble defenses often lack a mechanism for constructing complementary decision boundaries, so they attempt to combine structured temperature design with student ensembles.
- Method highlights: The teacher is trained at temperature 20 and then fixed; each student uses the minimum temperature for the true class and randomly permuted higher temperatures for non-true classes. The three students are trained independently with CE and KL distillation losses, and at inference the raw logits are averaged before softmax.
- MNIST results: In Table III, with temperature range [20, 29], the ASR of FGSM, BIM, PGD is 1.10%, 1.80%, 1.90%, respectively, versus 7.70%, 22.30%, 54.20% for the teacher; but under C&W, E-SMAD is 30.90% versus 30.50% for the teacher.
- More complex datasets: In the same table, Fashion-MNIST FGSM, BIM ASR is 22.90%, 32.00%, and CIFAR-10 is 34.90%, 40.50%; CIFAR-10 clean accuracy is 91.83% versus 90.29% for the teacher.
- Main exceptions: CIFAR-10 C&W is 100.00% under all three temperature settings; in Table IV, MNIST C&W E-SMAD is also higher than ADP, GPMR, GAL, so the results are not superior for all model and attack combinations.
- Authors' conclusion: The authors state that increasing temperature generally improves robustness while maintaining clean accuracy, and E-SMAD achieves a good robustness–accuracy balance in most comparisons; they also consider strong optimization attacks still hard to defend against, and leave the number of students, heterogeneous architectures and more complex datasets for future research.
Research lineage
3 foundations · 0 follow-ups in libraryNo later in-library follow-ups recorded yet.
Hover or focus a connected paper to inspect the citation context.