PANDAS: Improving Many-shot Jailbreaking via Positive Affirmation, Negative Demonstration, and Adaptive Sampling
AMAvery MaYangchen Pan
Amir-massoud Farahmand AMAvery Ma
Yangchen Pan

Amir-massoud Farahmand
+3
PANDAS improves many-shot jailbreaking of LLMs by replacing randomly sampled fabricated dialogues with Positive Affirmations, Negative Demonstrations, and topic-aware Adaptive Sampling. It also introduces ManyHarm, a dataset of harmful question–answer pairs, and shows via experiments that PANDAS significantly outperforms baselines in long-context scenarios. Attention analysis reveals how long-context vulnerabilities are exploited and how PANDAS enhances the attack.

OpenReview · January 24, 2025