Llm-ga: A gradient-based multi-label adversarial attack by large language models
Deep neural networks (DNNs) are highly sensitive to small, meticulously crafted perturbations, which have been utilized in adversarial attacks, threatening the reliability of DNNs in practical applications. Current adversarial attack methods rely heavily on expert design, requiring significant researcher effort. In this paper, we introduce LLM-GA, a Large Language Model-based Gradient Attack method, specifically designed for generating adversarial attacks against multi-label classification models. Based on the prompts and algorithm templates provided by attackers, LLM-GA can automatically generate ideas for attack algorithms and produce corresponding code implementations. This significantly improves the efficiency of designing adversarial attack algorithms. To generate more effective attack algorithms, LLM-GA leverages evolutionary algorithms to iteratively refine its ideas. Experimental results demonstrate that LLM-GA outperforms three existing gradient-based adversarial attacks in terms of both attack success rate and perturbation size. The code for this paper is available https://github.com/liuyujiang123/LLM-GA.
Authors
- Wenjian Luo (ORCID: https://orcid.org/0000-0002-8357-1655)
- Yamin Hu (ORCID: https://orcid.org/0000-0002-6077-8709)
- Zhijian Chen (ORCID: https://orcid.org/0000-0002-5844-0135)
- Shiyin Wang (ORCID: https://orcid.org/0009-0004-7206-4975)
Institutions
- Southern University of Science and Technology (CN)
Publication Details
- Journal
- Complex & Intelligent Systems
- Published
- 2025-12-12
- DOI
- https://doi.org/10.1007/s40747-025-02184-1
- Primary Topic
- Adversarial Robustness in Machine Learning
- Type
- article
- Field-Weighted Citation Impact
- 0.00