Skip to content
conftrace_
2024 NeurIPS NeurIPS 2024

Many-shot Jailbreaking

We investigate a family of simple long-context attacks on large language models: prompting with hundreds of demonstrations of undesirable behavior. This attack is newly feasible with the larger context windows recently deployed by language model providers like Google DeepMind, OpenAI and Anthropic. We find that in diverse, realistic circumstances, the effectiveness of this attack follows a power law, up to hundreds of shots. We demonstrate the success of this attack on the most widely used state-of-the-art closed-weight models, and across various tasks. Our results suggest very long contexts present a rich new attack surface for LLMs.

👥 Mega-Team - 34 authors
🌉 Interdisciplinary Bridge - Artificial Intelligence and Natural Language Processing

More from NeurIPS 2024

All NeurIPS 2024 papers →