QROA: A Black-Box Query-Response Optimization Attack on LLMs - Archive ouverte HAL
Pré-Publication, Document De Travail Année : 2024

QROA: A Black-Box Query-Response Optimization Attack on LLMs

Résumé

Large Language Models (LLMs) have surged in popularity in recent months, yet they possess concerning capabilities for generating harmful content when manipulated. This study introduces the Query-Response Optimization Attack (QROA), an optimization-based strategy designed to exploit LLMs through a black-box, query-only interaction. QROA adds an optimized trigger to a malicious instruction to compel the LLM to generate harmful content. Unlike previous approaches, QROA does not require access to the model's logit information or any other internal data and operates solely through the standard query-response interface of LLMs. Inspired by deep Q-learning and Greedy coordinate descent, the method iteratively updates tokens to maximize a designed reward function. We tested our method on various LLMs such as Vicuna, Falcon, and Mistral, achieving an Attack Success Rate (ASR) over 80\%. We also tested the model against Llama2-chat, the fine-tuned version of Llama2 designed to resist Jailbreak attacks, achieving good ASR with a suboptimal initial trigger seed. This study demonstrates the feasibility of generating jailbreak attacks against deployed LLMs in the public domain using black-box optimization methods, enabling more comprehensive safety testing of LLMs.
Fichier principal
Vignette du fichier
Attack_LLM_NeurIPS24-6.pdf (1.13 Mo) Télécharger le fichier
Capture d’écran 2024-05-22 à 18.35.43.png (271.23 Ko) Télécharger le fichier
Capture d’écran 2024-05-22 à 18.40.58.png (270.91 Ko) Télécharger le fichier
Capture d’écran 2024-05-22 à 18.44.55.png (272 Ko) Télécharger le fichier
QROA.png (1.33 Mo) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-04597309 , version 1 (03-06-2024)
hal-04597309 , version 2 (16-10-2024)

Identifiants

Citer

Hussein Jawad, Nicolas J.-B. BRUNEL. QROA: A Black-Box Query-Response Optimization Attack on LLMs. 2024. ⟨hal-04597309v2⟩
114 Consultations
75 Téléchargements

Altmetric

Partager

More