Skip to content

An online-learning defense against iterative jailbreak attacks on large language models via prompt optimizationOnline Learning Defense against Iterative Jailbreak Attacks via Prompt Optimization

arXiv· arXiv:2510.17006· Masahiro Kaneko, Zeerak Talat, Timothy Baldwin·Indexed by this site · 23 days ago· Originally publishedDefenses
AI summary

The researchers propose a framework that dynamically updates defense strategies through online learning, using reinforcement learning to optimize prompts against iterative jailbreak attacks on large language models. To prevent overfitting to the narrow range of input rewrites explored in attacks, the study also proposes Past-Direction Gradient Damping (PDGD). Experiments on three large language models show that the method significantly outperforms five existing defense methods against five iterative jailbreak attacks, while also improving response quality on harmless tasks.

Read originalarxiv.org