When Low Precision Weakens Adversarial Attacks:Analysis and Targeted Corrections
Adversarial attacks induce misclassification through small changes to model inputs. Their success rate is a practical measure of model robustness. Modern GPUs can accelerate these attacks with reduced-precision arithmetic, but numerical errors can weaken the search and lead to inflated robustness estimates, much as obfuscated gradients do. Robustness benchmarks such as RobustBench conventionally run attacks in FP32. We examine why reduced precision weakens attacks and how to retain its speed advantage while preserving attack success relative to FP32. Decomposing the loss gap into evaluation error at a fixed candidate and error from a changed search path shows that rounded decision values discard adversarial examples during the search, and that in BF16 rounding amplified before sensitive normalization layers misdirects it. Guided by this analysis, we compute the values behind the attack's decisions in FP32 while keeping the gradient computation in low precision, and run the operators that feed sensitive normalization layers in higher precision. Successes found during the search usually persist into the final updates, when loss comparisons are also least reliable. Limiting value…
- arXiv
- 2612.03977
- Authors
- Erh-Chung Chen, Che-Rung Lee
- Categories
- cs.LG · cs.CV