Efficient LLM Jailbreak via Adaptive Dense-to-sparse Constrained Optimization

Kai Hu, Weichen Yu, Yining Li, Kai Chen, Tianjun Yao +5 more
5/15/2024
cs.LG

No official code found. Best implementation: hukkai/adc_llm_attack (6 stars, MIT, last commit 2025-03-03).

Abstract

Recent research indicates that large language models (LLMs) are susceptible to jailbreaking attacks that can generate harmful content. This paper introduces a novel token-level attack method, Adaptive Dense-to-Sparse Constrained Optimization (ADC), which has been shown to successfully jailbreak multiple open-source LLMs. Drawing inspiration from the difficulties of discrete token optimization, our method relaxes the discrete jailbreak optimization into a continuous optimization process while gradually increasing the sparsity of the optimizing vectors. This technique effectively bridges the gap between discrete and continuous space optimization. Experimental results demonstrate that our method is more effective and efficient than state-of-the-art token-level methods. On Harmbench, our approach achieves the highest attack success rate on seven out of eight LLMs compared to the latest jailbreak methods. Trigger Warning: This paper contains model behavior that can be offensive in nature.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2024] Efficient LLM Jailbreak via Adaptive Dense-to-sparse Constrained Optimization

63Jinja, ShellMay 30, 20241 years agoMIT

Cite this paper

@article{hu2024efficient,
  title  = {Efficient LLM Jailbreak via Adaptive Dense-to-sparse Constrained Optimization},
  author = {Kai Hu and Weichen Yu and Yining Li and Kai Chen and Tianjun Yao and Xiang Li and Wenhe Liu and Lijun Yu and Zhiqiang Shen and Matt Fredrikson},
  year   = {2024},
  eprint = {2405.09113},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.09113},
  url    = {http://arxiv.org/abs/2405.09113v2},
  journal = {NEURIPS 2024 2024}
}

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

Discussion