A Note on Implementation Errors in Recent Adaptive Attacks Against Multi-Resolution Self-Ensembles

Stanislav FortarXiv 2025 · DOI

Introduction

In the adversarial machine learning community, the evaluation of new defenses often follows a predictable cycle: a defense is proposed, and shortly after, an adaptive attack is published claiming to "break" it. However, the validity of such breaks depends entirely on adhering to established constraints, most notably the $L_\infty$ perturbation bound. This note examines a recent attack by Zhang et al. [2024] against multi-resolution self-ensemble defenses, revealing that the reported "total collapse" of the defense was the result of a significant implementation error rather than a fundamental vulnerability.

The Compounding Error Bug

The core of the issue lies in how perturbations were calculated across multiple rounds of the adaptive attack. While each individual round of optimization was correctly bounded by a small epsilon ($\epsilon$), the attack code used the perturbed output of one round as the starting point for the next. This led to a linear accumulation of noise.

Figure 1: An illustration of the compounding error, where the total perturbation reaches $\ell_\infty = 83/255$, far exceeding the standard limit.

As shown in Figure 1, this error allowed the total perturbation to grow significantly. In some instances, the distortion reached magnitudes as high as $160/255$—twenty times the standard $8/255$ limit. Such large perturbations are easily visible to the human eye and violate the premise of "imperceptible" adversarial noise.

Corrected Evaluation

When the attack is re-implemented to strictly enforce the $L_\infty \le 8/255$ constraint relative to the original image, the results change dramatically.

Figure 2: A correctly bounded attack adhering to the standard $\ell_\infty = 8/255$ limit, resulting in a visually subtle perturbation.

Under the standard constraints shown in Figure 2, the multi-resolution self-ensemble defense remains remarkably robust. The adversarial accuracy on CIFAR-100, previously reported as near zero, jumps to over 20%. While not invincible, the defense is far more effective than the bugged attack suggested.

Perceptual Alignment

Beyond correcting the quantitative record, this investigation uncovered a fascinating qualitative property of strong defenses. When a properly bounded attack does succeed in fooling the model, the resulting adversarial image often undergoes a semantic shift that is perceptible to humans.

In a live study at EPFL, participants were shown successfully attacked images and asked to classify them. Interestingly, human observers often "misclassified" these images in the same way the model did. For example, an image of a "house" perturbed to be classified as a "road" actually began to resemble a road to human eyes. This suggests that as models become more robust, the gap between adversarial "bugs" and semantic "features" narrows.

Conclusion

This technical note serves as a reminder of the importance of rigorous code audits in adversarial ML research. The "break" of multi-resolution self-ensembles was largely an artifact of a 20x violation of perturbation bounds. Once corrected, the defense demonstrates significant residual robustness. Furthermore, the alignment between model errors and human perception in successful attacks suggests that future evaluations may need to move beyond simple norm-based metrics toward more nuanced, perceptually-grounded assessments.

Summary updated

BibTeX
@misc{fort2025note,
  author = {Stanislav Fort},
  title = {{A Note on Implementation Errors in Recent Adaptive Attacks Against Multi-Resolution Self-Ensembles}},
  year = {2025},
  eprint = {2501.14496},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.14496},
}
Figure