atlas

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

Efficient Adversarial Training in LLMs with Continuous Attacks

NeurIPS 2024 · Adversarial robustness and security › Attacks on text and graphs · approach: Adversarial prompts for language models · 10 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.

Proposes CAT and CAPO, efficient adversarial training for LLMs using continuous embedding-space attacks, showing robustness extrapolates to discrete attacks (GCG, AutoDAN, PAIR) at ~299x lower compute than R2D2.

Problem

Adversarial training for LLMs with discrete attacks (e.g., GCG) is computationally prohibitive, and existing methods like R2D2 trade off utility and robustness poorly.

Approach

Replace discrete suffix attacks in adversarial training with continuous embedding-space attacks, combined with an unlikelihood loss (CAT) or an adversarial IPO loss that needs no utility data (CAPO).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace discrete R2D2 attacks with continuous attacks in CAT/CAPOAdversarial training on Mistral · Training computeF/B (total): 165,632,000 -> 234,000 (CAT); 165,632,000 -> 552,960 (CAPO)Helped
Train Phi-3-mini with CATPhi-3-mini · HarmBench testGCG ASR (%): 25 -> 5Helped
Train Phi-3-mini with CAPO instead of CATPhi-3-mini · HarmBench testPAIR ASR (%): 40 -> 0Helped
Train Gemma-2B-IT with CATGemma-2B-IT · HarmBench testGCG ASR (%): 70 -> 5Helped
Train Mistral with CATMistral · HarmBench testPAIR ASR (%): 90.0 -> 77.5Helped
Train Zephyr-7B with CAPOZephyr-7B · HarmBench testPAIR ASR (%): 87.5 -> 10Helped
Use CAT instead of R2D2Zephyr-7B · Harmlessanswered queries (%): 42.5 -> 100Helped
Remove adversarial attacks during CAPO training (ablation)Gemma-2B · GCGASR difference: -2.5No clear effect
Reduce CAPO attack iterations to one (ablation)Gemma-2B · GCGASR difference: -62.5Helped
Vary epsilon from 0.0125 to 0.1 (ablation)Gemma-IPO with CAPO · GCG lossloss: approximately 14.9 -> near 0Helped
Vary IPO beta from 0 to 0.5 (ablation)Gemma-IPO with CAPO · GCG lossloss: 6.1 -> 0.8Helped
Use log(1 - harmful-output probability) instead of negative log harmful-output probability for away loss (ablation)CAPO · Robustness-utility trade-offtrade-offHurt

Surprising findings

Limitations

Experimental setup

Datasets: HarmBench UltraChat200k MMLU ARC-E ARC-C MT-Bench

Benchmarks: HarmBench MMLU ARC-E ARC-C MT-Bench Harmless PoliteHarmbench

Metrics: attack success rate accuracy MT-Bench score refusal count GCG loss

Baselines: R2D2 Zephyr-7B NPO Llama-2-7B-chat Mistral-7B-Instruct-v0.1

Builds on: R2D2 IPO DPO unlikelihood training HarmBench

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