PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
May 28, 20240 citationsOpen Access

Improved Generation of Adversarial Examples Against Safety-aligned LLMs

View Full Paper
QLQizhang LiYGYiwen GuoWZWangmeng Zuo

Key Points

  • Attack success rates increased by over 30%, demonstrating improved effectiveness of adversarial examples.
  • Adversarial prompts utilize gradient-based methods and transfer-based innovations for enhanced performance.
  • Empirical analysis identifies successful mechanisms of gradient adaptations on various models like Llama-2-7B-Chat and AdvBench settings. The findings indicate significant potential in refining adversarial strategies against safety-aligned language models.

Abstract

Despite numerous efforts to ensure large language models (LLMs) adhere to safety standards and produce harmless content, some successes have been achieved in bypassing these restrictions, known as jailbreak attacks against LLMs. Adversarial prompts generated using gradient-based methods exhibit outstanding performance in performing jailbreak attacks automatically. Nevertheless, due to the discrete nature of texts, the input gradient of LLMs struggles to precisely reflect the magnitude of loss change that results from token replacements in the prompt, leading to limited attack success rates against safety-aligned LLMs, even in the white-box setting. In this paper, we explore a new perspective on this problem, suggesting that it can be alleviated by leveraging innovations inspired in transfer-based attacks that were originally proposed for attacking black-box image classification models. For the first time, we appropriate the ideologies of effective methods among these transfer-based attacks, i.e., Skip Gradient Method and Intermediate Level Attack, for improving the effectiveness of automatically generated adversarial examples against white-box LLMs. With appropriate adaptations, we inject these ideologies into gradient-based adversarial prompt generation processes and achieve significant performance gains without introducing obvious computational cost. Meanwhile, by discussing mechanisms behind the gains, new insights are drawn, and proper combinations of these methods are also developed. Our empirical results show that the developed combination achieves >30% absolute increase in attack success rates compared with GCG for attacking the Llama-2-7B-Chat model on AdvBench.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Li et al. (2024) studied this question.

synapsesocial.com/papers/68e68365b6db64358760bb2ehttps://doi.org/10.48550/arxiv.2405.20778
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1AdvPrompter: Fast Adaptive Adversarial Prompting for LLMs2024 · 4 citations
  2. 2SM-GCG: Spatial Momentum Greedy Coordinate Gradient for Robust Jailbreak Attacks on Large Language Models2025
  3. 3Boosting Jailbreak Attack with Momentum2024
  4. 4Adversarial Tuning: Defending Against Jailbreak Attacks for LLMs2024 · 1 citations
  5. 5Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing2024