mlsanityData to 7 Oct 2026

Mitigating Many-Shot Jailbreaking

arXiv 2504.09604 ↗First posted 13 Apr 2025cs.LG cs.AI cs.CRcited by 3

On the map: LLM safety and security → Jailbreaking

Abstract (arXiv)

Many-shot jailbreaking (MSJ) is an adversarial technique that exploits the long context windows of modern LLMs to circumvent model safety training by including in the prompt many examples of a "fake" assistant responding inappropriately before the final request. With enough examples, the model's in-context learning abilities override its safety training, and it responds as if it were the "fake" assistant. In this work, we probe the effectiveness of different fine-tuning and input sanitization approaches on mitigating MSJ attacks, alone and in combination. We find incremental mitigation effectiveness for each, and show that the combined techniques significantly reduce the effectiveness of MSJ attacks, while retaining model performance in benign in-context learning and conversational tasks. We suggest that our approach could meaningfully ameliorate this vulnerability if incorporated into model safety post-training.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 10 of its 27 references that are in the map. First posted on arXiv 13 Apr 2025.

Builds on

10 of 27 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMs22 Jul

Other references · 9

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  3. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,009
  4. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  5. 2023LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Datasetcited by 449
  6. 2024OR-Bench: An Over-Refusal Benchmark for Large Language Modelscited by 222
  7. 2022Extracting Latent Steering Vectors from Pretrained Language Modelscited by 217
  8. 2022Why Can GPT Learn In-Context? Language Models Implicitly Perform Gradient Descent as Meta-Optimizerscited by 204
  9. 2024Inspection and Control of Self-Generated-Text Recognition Ability in Llama3-8b-Instructcited by 15

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 2.

3 papers.