What Anthropic’s Many-Shot Jailbreaking Research Found

Matthew Berman reviews a 2024 study of long-context safety failures and the limits of its tested mitigations.

MBMatthew BermanVortrag · Forward Future
Kanal
Matthew Berman
Veröffentlicht
7. Apr. 2024
Video
18:47
Lesezeit
3 Min.
Folien
3
Original
Englisch
Auf YouTube öffnen
Beim Scrollen schrumpft das Video in die rechte untere Ecke und läuft weiter. Untertitel folgen Ihrer Lesesprache.
LesespracheIn 2 Sprachen verfügbar
Diesen Artikel gibt es noch nicht auf Deutsch, daher wird das Original (Englisch) angezeigt.
ZUSAMMENFASSUNG

In 30 Sekunden

Matthew Berman explains Anthropic’s April 2024 research into many-shot jailbreaking: long simulated dialogues can increase unsafe responses in some tested models. He reviews the reported scaling trends, possible connection to in-context learning and mitigation experiments. The paper does not establish a universal attack or a complete defense, and Berman’s own informal test produced a refusal.

  1. 1A long-context attack surfaceThe research considers how expanding context windows affect the space available for adversarial material.
  2. 2In-context learning hypothesisThe paper relates its scaling trends to learning from examples within a prompt.
  3. 3Measured scalingThe displayed chart shows rising harmful-response rates in specific experimental categories.
  4. 4Topic diversityThe researchers found effects even when examples differed from the target category in a tested setting.
  5. 5Mitigation trade-offsPrompt classification and modification reduced success in one test, while context limits reduce useful capacity.

Das Wichtigste

  1. Longer contexts expand useful input capacity as well as the space for adversarial material.
  2. The researchers observed increasing unsafe-response rates with more examples in particular tested settings.
  3. In-context learning is a proposed explanation for the observed pattern, not proof that a model literally forgets safety rules.
  4. Results on model size and topic diversity cannot be assumed to hold for every model or deployment.
  5. One prompt-classification and modification test reduced attack success from 61% to 2%, without guaranteeing universal protection.
  6. A single informal refusal does not establish that the vulnerability has been solved.
VOLLTEXT

Den bearbeiteten Text nach Kapiteln lesen

Nur das Transkript
01

The study and long contexts

Berman introduces the 2024 research and its relationship to model context windows.

In April 2024, Anthropic published research on “many-shot jailbreaking,” a technique that can cause some language models to produce responses their safety training ordinarily discourages. I discuss the results, their proposed relationship to long context windows and the defenses the researchers tested. The findings concern specific models and experiments, not proof of a universal bypass.

A context window determines how much material a model can process in a request and response. Longer windows make it possible to provide more documents and examples, but also give attackers more room to place adversarial material in a prompt. The paper examines how that increased capacity changes the attack surface.

The research describes a long simulated dialogue containing many examples of unsafe behavior, followed by a target request. In the tested settings, a larger number of examples could raise the probability of an unsafe response. The model is processing the supplied context; its underlying weights are not being fine-tuned in that interaction.

I suggest an analogy in which a model becomes overloaded and “forgets” its safety instructions. That is an intuitive interpretation, not an established mechanism. The researchers connect the pattern to in-context learning, but the observations alone do not prove that a model literally forgets a rule.

02

Scaling and model behavior

He examines in-context learning, example counts and the scope of the model comparisons.

The paper compares this behavior with ordinary in-context learning, in which examples can help a model perform benign tasks without changing its weights. Anthropic reports that, in the conditions it tested, larger models sometimes required shorter prompts to produce harmful outputs. This is a measured trend in the study, not a claim that every larger model is less safe.

The displayed chart shows harmful-response rates increasing with the number of examples across several categories in the researchers' experiment. The particular threshold and rates depend on the model, prompt and evaluation setup; they should not be generalized to all systems or all kinds of harmful requests.

Harmful responses and number of examples
FOLIE 1 / 3Harmful responses and number of examplesThe research chart displays rates across tested categories as the number of examples increases.

The researchers also report that combining many-shot attacks with previously studied methods increased effectiveness in their experiments and could reduce the required prompt length. I speculate about a possible combination, but I did not establish that my suggested variant works.

The paper examines models including Claude 2, GPT-3.5, GPT-4, Llama 2 and Mistral 7B. Shorter context windows can limit how much material fits in a prompt, but that also limits legitimate uses. Model names and behavior here reflect the 2024 study, not a current assessment of every deployment.

Comparing scaling patterns
FOLIE 2 / 3Comparing scaling patternsThe plots compare a harmful-response measure with in-context learning trends on benign tasks.
03

Topic diversity and defenses

The researchers study mismatched topics, training-based defenses and prompt-level mitigations.

The researchers tested whether the examples and target needed to share a topic. They found that diverse examples from other categories could still affect results in a tested category. The authors suggest that a broadly transferable attack might be possible, but that is a possibility arising from their experiments, not proof of an attack that works universally.

The paper assesses fine-tuning and reinforcement-learning mitigations. In the tested settings, training could reduce harmful responses at shorter prompt lengths or require a longer attack, while performance still degraded as more examples were added. The results do not show that all possible safety training is ineffective.

Anthropic discusses restricting context length as one possible defense, with the downside of sacrificing useful long inputs. It also reports better results from classifying and modifying prompts before the model receives them: in one case, the measured attack success rate fell from 61% to 2%. This is a result for that particular test, not a general guarantee.

Mitigation results and trade-offs
FOLIE 3 / 3Mitigation results and trade-offsAnthropic describes context limits, fine-tuning and a prompt-level mitigation in its 2024 post.
04

An informal test and conclusions

Berman reports a refusal in his own test and discusses the continuing trade-off.

Anthropic says it notified other developers before publication and implemented mitigations on its own systems. In my informal test, a ChatGPT model refused the target request despite the examples I supplied. One refusal does not prove the issue is solved, and my test is not a controlled reproduction of the paper.

The paper illustrates a broader trade-off: longer context can make assistants more useful while also expanding opportunities for adversarial input. I expect model developers and attackers to continue adapting, so the effectiveness of a defense needs ongoing evaluation.

Mehr aus diesem Kanal

12 Folien34:21EN
Matthew Berman· 27. Okt. 2026Matthew Berman Examines Anthropic’s IPO Filing, AI Growth and GovernanceMatthew Berman, Sam Altman · Forward FutureThe presenter reviews the S-1’s financial metrics, compute strategy and voting structure while questioning the tension between rapid AI development and safety.AnthropicAI SafetyEnterprise-KI+2
6 Folien25:50EN
Matthew Berman· 24. Okt. 2026Kimi K3.1 Pro Tested: Strong 3D Demos, Uneven Results and Competitive PricingMatthew Berman · Forward FutureMatthew Berman tests the open-weight model on coding, 3D rendering and visual explanations, then compares benchmark results and prices.Open-weight modelsBenchmarksAI cost & performance+1
2 Folien32:20EN
Matthew Berman· 23. Okt. 2026Who Is Local AI For? The Costs, Trade-offs and a Hybrid FutureMatthew Berman · Forward FutureMatthew Berman weighs data control and independence against hardware cost, setup complexity and inference speed.Local inferenceOpen-weight modelsAI cost & performance+1
6 Folien1:03:37EN
Matthew Berman· 23. Okt. 2026Matthew Berman’s Team Tests Kimi K3.1 on Animation, Games, and ChartsMatthew Berman, Alex, Brian · Forward FutureA live team AMA turns into an informal test of Kimi K3.1, from personal-agent workflows to motion graphics, a browser game, and a benchmark chart.Coding-AgentenGenerative mediaEvals+2
0:53EN
Matthew Berman· 22. Okt. 2026Sam Altman on AI and the Discovery of New KnowledgeSam Altman · OpenAIAltman expects progress in mathematical discovery to extend to biology, materials and energy.AI for scienceMathematicsComputational Biology+1
Folien0:22EN
Matthew Berman· 21. Okt. 2026A Robot Bodyguard Video Shows Dramatic Rescue ScenariosMatthew Berman · Forward FutureMatthew Berman reacts to a short robot demonstration depicting fighting and vehicle-rescue scenarios.RoboticsEvals