Target-Driven Attack for Large Language Models

Chong Zhang, Mingyu Jin, Dong Shu, Taowen Wang, Dongfang Liu, Xiaobo Jin*

*Corresponding author for this work

Research output: Chapter in Book or Report/Conference proceedingConference Proceedingpeer-review

Abstract

Current large language models (LLM) provide a strong foundation for large-scale user-oriented natural language tasks.Many users can easily inject adversarial text or instructions through the user interface, thus causing LLM model security challenges like the language model not giving the correct answer.Although there is currently a large amount of research on black-box attacks, most of these black-box attacks use random and heuristic strategies.It is unclear how these strategies relate to the success rate of attacks and thus effectively improve model robustness.To solve this problem, we propose our target-driven black-box attack method to maximize the KL divergence between the conditional probabilities of the clean text and the attack text to redefine the attack's goal.We transform the distance maximization problem into two convex optimization problems based on the attack goal to solve the attack text and estimate the covariance.Furthermore, the projected gradient descent algorithm solves the vector corresponding to the attack text.Our target-driven black-box attack approach includes two attack strategies: token manipulation and misinformation attack.Experimental results on multiple Large Language Models and datasets demonstrate the effectiveness of our attack method.

Original languageEnglish
Title of host publicationECAI 2024 - 27th European Conference on Artificial Intelligence, Including 13th Conference on Prestigious Applications of Intelligent Systems, PAIS 2024, Proceedings
EditorsUlle Endriss, Francisco S. Melo, Kerstin Bach, Alberto Bugarin-Diz, Jose M. Alonso-Moral, Senen Barro, Fredrik Heintz
PublisherIOS Press BV
Pages1752-1759
Number of pages8
ISBN (Electronic)9781643685489
DOIs
Publication statusPublished - 16 Oct 2024
Event27th European Conference on Artificial Intelligence, ECAI 2024 - Santiago de Compostela, Spain
Duration: 19 Oct 202424 Oct 2024

Publication series

NameFrontiers in Artificial Intelligence and Applications
Volume392
ISSN (Print)0922-6389
ISSN (Electronic)1879-8314

Conference

Conference27th European Conference on Artificial Intelligence, ECAI 2024
Country/TerritorySpain
CitySantiago de Compostela
Period19/10/2424/10/24

Fingerprint

Dive into the research topics of 'Target-Driven Attack for Large Language Models'. Together they form a unique fingerprint.

Cite this