Glossary

What is Many-shot jailbreaking?

In Turkish: Çok örnekli jailbreak · Topic: Safety and ethics

An attack that uses a long context window to pack a prompt with many fake question-and-answer examples, nudging a model to break its safety rules. The model continues the pattern and may answer a request it would normally refuse.

How does it work?

The attacker places dozens or even hundreds of made-up dialogues inside a single prompt. In these dialogues, an AI assistant willingly answers questions that would normally be refused. The real request comes at the very end. Because models tend to continue patterns found in their context, the model may override the refusal behavior it learned in training and reply in the same style. The larger the context window, the more examples fit, and the stronger the effect tends to be. It is often described as an unwanted side effect of in-context learning.

Why does it matter?

As context windows grow, new attack surfaces appear, and this method shows that a gain in capability can also bring a security risk. Developers look for defenses by classifying and filtering prompts or by further training models to resist such inputs. It is also a good example for understanding the logic behind many jailbreak stories in the news.

Example

Instead of asking a chatbot a single question, someone pastes a long fictional transcript in which a fake assistant complies with every request, then adds the real request at the end.

FAQ

How is many-shot jailbreaking different from an ordinary jailbreak?

An ordinary jailbreak usually relies on one clever prompt or a role-play scenario. Many-shot jailbreaking fills the context with a large number of examples to steer the model step by step.

Does it work on models with short context windows?

Because the method needs many examples, it is limited on models with short context windows. That is why it is usually associated with long context windows.

All terms