Reproduce “Attacking Large Language Models with Projected Gradient Descent” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Simon Geisler, Tom Wollschläger, M. H. I. Abdalla, Johannes Gasteiger, Stephan Günnemann
Researchers at Technical University of Munich and Google Research developed a Projected Gradient Descent (PGD) based adversarial attack for Large Language Models (LLMs) that efficiently generates "jailbreak" prompts. This method achieves comparable attack success rates to state-of-the-art discrete optimization techniques while operating up to an order of magnitude faster across various LLMs.
Key insights
- Gradient-based attacks, when coupled with carefully constructed continuous relaxation and error-controlling projections, can be highly effective for generating adversarial prompts against LLMs, challenging the prior dominance of discrete optimization.
- The Tsallis entropy projection (specifically the Gini index) effectively guides the continuous optimization towards discrete solutions by restricting the search space, for example, from 65,000 to 10 possibilities per token.
- Providing efficient tools for discovering LLM vulnerabilities is critical for advancing and evaluating LLM alignment, enabling practical large-scale quantitative analysis and robust adversarial training.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.