Enhancing Generalization of Universal Adversarial Perturbation through Gradient Aggregation

X. Liu, Yaoyao Zhong, Yuhang Zhang, Lixiong Qin, Weihong Deng
2/14/2026

No official code found. Best implementation: liuxuannan/Stochastic-Gradient-Aggregation (28 stars, PyTorch, last commit 2023-08-17).

Abstract

Deep neural networks are vulnerable to universal adversarial perturbation (UAP), an instance-agnostic perturbation capable of fooling the target model for most samples. Compared to instance-specific adversarial examples, UAP is more challenging as it needs to generalize across various samples and models. In this paper, we examine the serious dilemma of UAP generation methods from a generalization perspective – the gradient vanishing problem using small-batch stochastic gradient optimization and the local optima problem using large-batch optimization. To address these problems, we propose a simple and effective method called Stochastic Gradient Aggregation (SGA), which alleviates the gradient vanishing and escapes from poor local optima at the same time. Specifically, SGA employs the small-batch training to perform multiple iterations of inner pre-search. Then, all the inner gradients are aggregated as a one-step gradient estimation to enhance the gradient stability and reduce quantization errors. Extensive experiments on the standard ImageNet dataset demonstrate that our method significantly enhances the generalization ability of UAP and outperforms other state-of-the-art methods. The code is available at https://github.com/liuxuannan/Stochastic-Gradient-Aggregation.

View on arXivView PDF

Code Implementations(1)

PyTorch

Official implementation of the ICCV2023 paper: Enhancing Generalization of Universal Adversarial Perturbation through Gradient Aggregation

283Shell, PythonAug 11, 20233 years ago
deep-learningiccv2023pytorchuniversal-adversarial-perturbations

Similar Papers

Cite this paper

@article{liu2026enhancing,
  title  = {Enhancing Generalization of Universal Adversarial Perturbation through Gradient Aggregation},
  author = {X. Liu and Yaoyao Zhong and Yuhang Zhang and Lixiong Qin and Weihong Deng},
  year   = {2026},
  eprint = {2308.06015},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2308.06015},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.06015.svg)](https://codeofpaper.com/paper/2308.06015)

Discussion