[Submitted on 2 Dec 2026]
Title:When Low Precision Weakens Adversarial Attacks:Analysis and Targeted Corrections
View PDF HTML (experimental)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.
Additional Features
References & Citations
Loading...
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender (What is IArxiv?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.