Open Sesame! Universal Black-Box Jailbreaking of Large Language Models

Raz Lapid, Ron Langberg, Moshe Sipper

Research output: Contribution to journalArticlepeer-review

Abstract

Large language models (LLMs), designed to provide helpful and safe responses, often rely on alignment techniques to align with user intent and social guidelines. Unfortunately, this alignment can be exploited by malicious actors seeking to manipulate an LLM’s outputs for unintended purposes. In this paper, we introduce a novel approach that employs a genetic algorithm (GA) to manipulate LLMs when model architecture and parameters are inaccessible. The GA attack works by optimizing a universal adversarial prompt that—when combined with a user’s query—disrupts the attacked model’s alignment, resulting in unintended and potentially harmful outputs. Our novel approach systematically reveals a model’s limitations and vulnerabilities by uncovering instances where its responses deviate from expected behavior. Through extensive experiments, we demonstrate the efficacy of our technique, thus contributing to the ongoing discussion on responsible AI development by providing a diagnostic tool for evaluating and enhancing alignment of LLMs with human intent. To our knowledge, this is the first automated universal black-box jailbreak attack.

Original languageAmerican English
Article number7150
JournalApplied Sciences (Switzerland)
Volume14
Issue number16
DOIs
StatePublished - 1 Aug 2024

Keywords

  • Adversarial Deep Dearning
  • Genetic Algorithm
  • LLM Alignment
  • Large Language Models

All Science Journal Classification (ASJC) codes

  • General Materials Science
  • Instrumentation
  • General Engineering
  • Process Chemistry and Technology
  • Computer Science Applications
  • Fluid Flow and Transfer Processes

Fingerprint

Dive into the research topics of 'Open Sesame! Universal Black-Box Jailbreaking of Large Language Models'. Together they form a unique fingerprint.

Cite this