Documented Exercise · OBS.EX0004

Many-Shot Long-Context Jailbreaking Evaluation

Anthropic (2024) evaluated how expanding context windows up to hundreds of simulated dialogue demonstrations affects safety refusal stability in frontier LLMs. By filling long prompts with many synthetic question-answer turns before a final restricted query, attack compliance rose monotonically with shot count across multiple model families, reaching 61% in an illustrative baseline case before mitigation. Prompt-based classification/mitigation reduced that illustrative case to 2%, though vendor notes emphasize missing denominators prevent cross-technique ranking. The takeaway is that long-context in-context learning can override RLHF refusal priors unless paired with context-aware input classifiers and defense-in-depth.

Exercise dossier metadata

Case ID
OBS.EX0004
Classification
Exercise
Date
Evaluation scope
Long-Context Frontier LLMs · In-Context Conditioning Scaling Study
Reference URI
https://www.anthropic.com/research/many-shot-jailbreaking

Inspect OBS.EX0004 in Interactive Incidents & Cases Hub

Mapped AI security techniques

Mapped defensive controls

Source citation records