SyncAI.news, a Varaisys broadcasting
When Low Precision Weakens Adversarial Attacks:Analysis and Targeted Corrections
EC

Erh-Chung Chen, Che-Rung Lee

· 1 min read

ResearcharXiv cs.LG

When Low Precision Weakens Adversarial Attacks:Analysis and Targeted Corrections

arXiv:2612.03977v1 Announce Type: new Abstract: 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 correction to those updates recovers most of its benefit and retains most of the low-precision speedup. We evaluate attack strength and cost using the gradient-based attacks of AutoAttack on RobustBench models across CIFAR-10, CIFAR-100 and ImageNet, in TF32, FP16 and BF16. The refined schedule runs at close to the native low-precision speed while essentially preserving the attack success rate of the FP32 attack, and correcting every update matches the FP32 attack on almost all evaluated models, which confirms the analysis.

Original source

This story was published by arXiv cs.LG and written by Erh-Chung Chen, Che-Rung Lee. SyncAI.news shows a preview; the complete article is on the publisher's site.

Read the full story on arxiv.org

Similar News