atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

Short-length Adversarial Training Helps LLMs Defend Long-length Jailbreak Attacks: Theoretical and Empirical Evidence

NeurIPS 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: Adversarial prompts for language models · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows theoretically (linear transformers on in-context regression) and empirically (AT on five 7-8B LLMs with GCG suffixes) that adversarial training with suffix length ~sqrt(M) defends against suffix jailbreaks of length M, with ASR correlating with sqrt(M_test)/M_train.

Problem

Adversarial training for LLM jailbreak defense typically uses long adversarial suffixes, which are expensive to synthesize; it is unclear how the AT suffix length affects robustness to attacks with other suffix lengths.

Approach

Model the problem as adversarial in-context learning on linear self-attention models with a suffix attack, prove a robust generalization bound scaling with sqrt(M_test)/M_train, and test the implied short-AT-defends-long-attack relationship on real LLMs with GCG-based adversarial training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train with GCG adversarial suffixes of length 20 (ablation)LLMs evaluated against suffix jailbreak attacks · Suffix jailbreak attacks with suffix length up to 120ASR: at least 30%Helped
Increase adversarial suffix length during AT (ablation)LLMs evaluated against suffix jailbreak attacks · Suffix jailbreak attacksASRHelped
Use GCG AT; correlate test suffix length with AT suffix length as √M_test/M_trainVicuna-7B, Mistral-7B, Llama-2-7B, Llama-3-8B, and Qwen2.5-7B · GCG suffix attacksASR correlation with √M_test/M_train: 0.93; 0.86; 0.88; 0.76; 0.87Mixed
Use single-attack GCG AT rather than training on multiple attacksLLMs evaluated against unseen jailbreak attacks · BEAST and GCQASR correlation with √M_test/M_trainMixed
Apply short-length adversarial training (ablation)Vicuna-7B · PAIRASR (%): 84.0 -> around 50%Helped
Apply short-length adversarial training (ablation)Qwen2.5-7B · PAIRASR (%): 71.0 -> around 25%Helped
Further increase AT suffix length after short-length training (ablation)LLMs evaluated against PAIR · PAIRASRNo clear effect
Use short-length adversarial training (ablation)Vicuna-7B and Qwen2.5-7B · DeepInceptionASR (%): 76.0 -> 0.0; 89.0 -> 0.0Helped
Apply adversarial training (ablation)Adversarially trained LLMs · AlpacaEval2LC-WinRateHurt
Increase adversarial suffix length during AT from 20 or 30 to 50 (ablation)LLM adversarial training · AT runtimetime cost: around 30% to 60% longerHurt

Surprising findings

Limitations

Experimental setup

Datasets: HarmBench Alpaca AdvBench AlpacaEval

Benchmarks: HarmBench test subset AdvBench subset AlpacaEval2

Metrics: attack success rate Pearson correlation coefficient length-controlled win rate

Baselines: GCG BEAST AmpleGCG AutoDAN GCQ PAIR DeepInception

Builds on: GCG in-context learning theory of linear self-attention LoRA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy