scimeatlas

Research map / Large language models / Language, safety and interpretability

PIG: Privacy Jailbreak Attack on LLMs via Gradient-based Iterative In-Context Optimization

Yidan Wang, Yanan Cao, Yubing Ren, Fang Fang, Zheng Lin, Binxing Fang

ACL 2025Large language models › Language, safety and interpretabilityapproach: Jailbreak attacks and defensesopen problems in this approach17 citations (OpenAlex)

Chinese Academy of Sciences · University of Chinese Academy of Sciences · Guangzhou University

Read the paperPlace an idea next to itCheck your own paper ↗

10measured effects
5improved
3no clear effect
1hurt
1mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
combine random, entity and dynamic token selection strategies (PIG) instead of a single strategy (ablation)PIG · TrustLLM, LLaMA2-7b, 100 epochs (augmented)ASR: PIG-R 68.6%, PIG-E 31.4%, PIG-D 82.9% -> PIG 85.7%Improved
initialize the optimized tokens with in-context privacy demonstrations instead of random tokens (PIG vs GCG) (ablation)gradient-based suffix optimization · TrustLLM, LLaMA2-7b, 100 epochs (normal)ASR: 14.3% -> 100%Improved
increase the number of in-context demonstrations (0 to 50 shots) (ablation)in-context privacy attack without optimization · TrustLLM subsample of 70, white- and black-box modelsASRNo clear effect
apply PIG-R instead of GCG on AdvBench (50 samples, 500 epochs)GCG · AdvBench, LLaMA2-7bASR: 58% -> 100%Improved
apply PIG-R instead of GCG on AdvBench (time)GCG · AdvBench, Mistral-7btime: 8h 11min -> 1h 18minImproved
add five-shot demonstrations to Enron prefix promptsPrefix attack · Enron Email, Vicuna-7bASR: 0.00% -> 47.0%Improved
add five-shot demonstrations to Enron prefix promptsPrefix attack · Enron Email, LLaMA2-7b and Mistral-7bRtA: LLaMA2-7b RtA 77.0%, Mistral-7b RtA 58.0%No clear effect
PIG in the zero-shot Enron settingPIG · Enron Email, x=0ASR: 0.00% on all four models (AM 100%)No clear effect
use PIG on LLaMA2-7b with the augmented (defensive) template vs normalPIG · TrustLLM, LLaMA2-7bASR: 100% -> 91.4%Hurt
transfer PIG prompts from white-box to black-box APIsPIG · TrustLLM, Claude-3.5 (augmented)ASR: Nor. 85.7%, Aug. 31.4%Mixed

Open problems in jailbreak attacks and defenses

How can jailbreak attacks and defenses be tested on real deployed models, in more languages, with judges that can be trusted?

All 5 open problems and what was already tried →

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