Zer0-Jack: A Memory-efficient Gradient-based Jailbreaking Method for Black-box Multi-modal Large Language Models

Tiejin Chen, Kaishen Wang, Hua Wei
11/12/2024
cs.LGcs.AI

No official code found. Best implementation: DaRL-GenAI/Zer0-Jack (1 star, last commit 2026-01-25).

Abstract

Jailbreaking methods, which induce Multi-modal Large Language Models (MLLMs) to output harmful responses, raise significant safety concerns. Among these methods, gradient-based approaches, which use gradients to generate malicious prompts, have been widely studied due to their high success rates in white-box settings, where full access to the model is available. However, these methods have notable limitations: they require white-box access, which is not always feasible, and involve high memory usage. To address scenarios where white-box access is unavailable, attackers often resort to transfer attacks. In transfer attacks, malicious inputs generated using white-box models are applied to black-box models, but this typically results in reduced attack performance. To overcome these challenges, we propose Zer0-Jack, a method that bypasses the need for white-box access by leveraging zeroth-order optimization. We propose patch coordinate descent to efficiently generate malicious image inputs to directly attack black-box MLLMs, which significantly reduces memory usage further. Through extensive experiments, Zer0-Jack achieves a high attack success rate across various models, surpassing previous transfer-based methods and performing comparably with existing white-box jailbreak techniques. Notably, Zer0-Jack achieves a 95\% attack success rate on MiniGPT-4 with the Harmful Behaviors Multi-modal Dataset on a black-box setting, demonstrating its effectiveness. Additionally, we show that Zer0-Jack can directly attack commercial MLLMs such as GPT-4o. Codes are provided in the supplement.

View on arXivView PDF

Code Implementations(1)

(EACL'26 Main) Zer0-Jack: A memory-efficient gradient-based jailbreaking method for black box Multi-modal Large Language Models

10CSS, HTMLJan 24, 20268 months ago

Similar Papers

Cite this paper

@article{chen2024zerjack,
  title  = {Zer0-Jack: A Memory-efficient Gradient-based Jailbreaking Method for Black-box Multi-modal Large Language Models},
  author = {Tiejin Chen and Kaishen Wang and Hua Wei},
  year   = {2024},
  eprint = {2411.07559},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.07559v1}
}

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/2411.07559.svg)](https://codeofpaper.com/paper/2411.07559)

Discussion