A systematic study tested five types of jailbreak attacks against seven language models and compared several defenses. Obfuscation was especially successful: these attacks achieved a mean success rate of 54.3 percent and had nonzero success against every model in the evaluation.
The attack types included direct requests, roleplay scenarios, hypothetical framing, instruction overrides, and obfuscated inputs. The models covered different versions of Llama, Mistral, Qwen, Gemma, and Phi. The researchers also report that model size did not reliably predict resistance in this sample; models within the same architecture family showed markedly different vulnerability profiles.
Four defenses were tested on the two most vulnerable models: keyword blacklisting, self-reminder prompts, paraphrase-based sanitization, and perplexity-based filtering. Self-reminder prompting was the most consistent, according to the study: it reduced the attack success rate from 44 to 10 percent on Mistral-7B and from 48 to 5 percent on Llama-3.1-8B. For these tests, the authors report no additional inference cost and no false positives.
The findings apply to the models and test conditions examined; they do not establish that other systems are generally robust. The paper also provides publicly available code and datasets. Read the original paper on arXiv