Attacking large language models with projected gradient descentAttacking Large Language Models with Projected Gradient Descent
AI summary
The paper proposes using projected gradient descent (PGD) on continuously relaxed input prompts to generate adversarial prompts, and the authors claim it achieves damage comparable to current discrete optimization attacks while being up to an order of magnitude faster. Existing adversarial prompt attacks typically require more than 100,000 LLM calls, are computationally expensive, and are difficult to use for quantitative analysis and adversarial training. The authors claim that ordinary gradient attacks previously mostly failed, and the key is controlling the error introduced by the continuous relaxation.