paper-with-me

홈 › Papers

Advancing Adversarial Suffix Transfer Learning on Aligned Large Language Models

2024-08-27 · Hongfu Liu, Yuxi Xie, Ye Wang, Michael Shieh

Language Language Models (LLMs) face safety concerns due to potential misuse by malicious users. Recent red-teaming efforts have identified adversarial suffixes capable of jailbreaking LLMs using the gradient-based search algorithm Greedy Coordinate Gradient (GCG). However, GCG struggles with computational inefficiency, limiting further investigations regarding suffix transferability and scalability across models and data. In this work, we bridge the connection between search efficiency and suffix transferability. We propose a two-stage transfer learning framework, DeGCG, which decouples the search process into behavior-agnostic pre-searching and behavior-relevant post-searching. Specifically, we employ direct first target token optimization in pre-searching to facilitate the search process. We apply our approach to cross-model, cross-data, and self-transfer scenarios. Furthermore, we introduce an interleaved variant of our approach, i-DeGCG, which iteratively leverages self-transferability to accelerate the search process. Experiments on HarmBench demonstrate the efficiency of our approach across various models and domains. Notably, our i-DeGCG outperforms the baseline on Llama2-chat-7b with ASRs of $43.9$ ($+22.2$) and $39.0$ ($+19.5$) on valid and test sets, respectively. Further analysis on cross-model transfer indicates the pivotal role of first target token optimization in leveraging suffix transferability for efficient searching.

📄 PDF Abstract BibTeX arXiv:2408.14866

Code (1)

Waffle-Liu/DeGCG 공식 구현 pytorch

Tasks

Red TeamingTransfer Learning

Similar Papers 제목 키워드 기반

AmpleGCG: Learning a Universal and Transferable Generative Model of Adversarial Suffixes for Jailbreaking Both Open and Closed LLMs

2024-04-11 · Zeyi Liao, Huan Sun

As large language models (LLMs) become increasingly prevalent and integrated into autonomous systems, ensuring their safety is imperative. Despite significant strides toward safety alignment, recent work GCG~\citep{zou20…

Safety Alignment

Universal and Transferable Adversarial Attacks on Aligned Language Models

2023-07-27 · Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr 외

Because "out-of-the-box" large language models are capable of generating a great deal of objectionable content, recent work has focused on aligning these models in an attempt to prevent undesirable generation. While ther…

Adversarial AttackIngenuity

Iterative Self-Tuning LLMs for Enhanced Jailbreaking Capabilities

2024-10-24 · Chung-En Sun, Xiaodong Liu, Weiwei Yang, Tsui-Wei Weng 외

Recent research has shown that Large Language Models (LLMs) are vulnerable to automated jailbreak attacks, where adversarial suffixes crafted by algorithms appended to harmful queries bypass safety alignment and trigger …

Safety Alignment

Toward Understanding the Transferability of Adversarial Suffixes in Large Language Models

2025-10-24 · Sarah Ball, Niki Hasrati, Alexander Robey, Avi Schwarzschild 외 arxiv

Discrete optimization-based jailbreaking attacks on large language models aim to generate short, nonsensical suffixes that, when appended onto input prompts, elicit disallowed content. Notably, these suffixes are often t…

Semantic Similarity

Detecting Fluent Optimization-Based Adversarial Prompts via Sequential Entropy Changes

2026-05-19 · Mohammed Alshaalan, Miguel R. D. Rodrigues arxiv

Optimization-based adversarial suffixes can jailbreak aligned large language models (LLMs) while remaining fluent, weakening static and windowed perplexity-based detectors. We cast adversarial suffix detection as an onli…