Cited by 32Adversarial Robustness in Machine LearningSecurity and Verification in ComputingAdvanced Malware Detection Techniques

Many-shot Jailbreaking

Anil, Cem, Durmus, Esin, Panickssery, Nina, Sharma, Mrinank, Benton, Joe, Kundu, Sandipan, Batson, Joshua, Tong, Meg +26 more·2024·Advances in Neural Information Processing Systems 37

Abstract

We investigate a family of simple long-context attacks on large language models: prompting with hundreds of demonstrations of undesirable behavior. This is newly feasible with the larger context windows recently deployed by Anthropic, Ope-nAI and Google DeepMind. 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.

Integrity signals

Registry

Crossref · 10.52202/079017-4121

Cites

0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Even alignment-trained refusals are not inviolable.

    “even these alignment-trained refusals are not inviolable (Hubinger et al. 2024; Anil et al. 2024)”

    From Governance Decay: How Context Compaction Silently Erases Safety Constraints in Long-Horizon LLM Agents (2026) · cites this paper as Anil et al. 2024

  • Prior works have found that the negative log-likelihood (NLL) for ground-truth test outputs decreases predictably as the context length increases.

    “Prior works [68, 2, 27] have found that the negative log-likelihood (NLL) for ground-truth test outputs decreases predictably as the context length increases.”

    From Many-Shot In-Context Learning (2024) · cites this paper as [2]

  • Our results demonstrate that we can override pre-training biases themselves.

    “Furthermore, while Anil et al. [2] use many-shot learning to override preferences learned during RLHF phase to elicit the biases stemming from pretraining, our results in §4.1 demonstrate that we can also override pre-training biases themselves.”

    From Many-Shot In-Context Learning (2024) · cites this paper as [2]

  • Anil et al. used many-shot prompting up to 256 shots to jailbreak language models.

    “Concurrently to our work, Anil et al. [2] used many-shot prompting (upto 256 shots) to jailbreak language models.”

    From Many-Shot In-Context Learning (2024) · cites this paper as [2]

  • Prior works have reported smaller next-token prediction loss with longer contexts, and Jeon et al. also show this using theoretical analysis.

    “Prior works [68, 2, 27, 16] have reported smaller next-token prediction loss with longer contexts, which Jeon et al. [25] also show using theoretical analysis.”

    From Many-Shot In-Context Learning (2024) · cites this paper as [2]

Cites

The publisher hasn’t deposited this paper’s reference list.

Cited by

Sorted by citations

Authors
Anil, C., Durmus, E., Panickssery, N., Sharma, M., Benton, J., Kundu, S., Batson, J., Tong, M., Mu, J., Ford, D., Mosconi, F., Agrawal, R., Schaeffer, R., Bashkansky, N., Svenningsen, S., Lambert, M., Radhakrishnan, A., Denison, C., Hubinger, E., Bai, Y., Bricken, T., Maxwell, T., Schiefer, N., Sully, J., Tamkin, A., Lanhan, T., Nguyen, K., Korbak, T., Kaplan, J., Ganguli, D., Bowman, S., Perez, E., Grosse, R., & Duvenaud, D.
Venue
Advances in Neural Information Processing Systems 37
Published
2024
Pages
129696-129742
ISSN
1049-5258 (ISSN-L)
OpenAlex
W4415800797
Cited by
25
References
0
Citations by year
2026: 23 · 2025: 2
FWCI
7.38
Type
conference paper
Language
en
Open access
closed
Locations
neural information processing systems (publishedVersion)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
  • Physical Sciences › Computer Science › Artificial Intelligence › Security and Verification in Computing
  • Physical Sciences › Computer Science › Signal Processing › Advanced Malware Detection Techniques
Keywords
jailbreaking, few-shot learning, adversarial attacks, large language models

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review