NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Jigsaw Puzzles: Splitting Harmful Questions to Jailbreak Large Language Models

Hao Yang, Lizhen Qu, Ehsan Shareghi, Gholamreza Haffari · Submission to ICLR 2025 · Withdrawn

TL;DR

Current Large Language Model (LLM) safeguards primarily monitor for explicit, harmful keywords in single prompts, leaving a significant blind spot in multi-turn interactions. This paper introduces Jigsaw Puzzles (JSP), a black-box jailbreak method that fragments sensitive queries into seemingly innocuous character- and word-level pieces fed across sequential conversational turns. By forcing the model to reconstruct the prompt internally while instructing it not to output the reconstructed prompt, JSP achieves an average attack success rate of 93.76% across frontier models.

What Problem Does This Paper Address?

Modern safety guardrails—both built-in training-stage alignments (e.g., RLHF) and inference-time input/output filters—rely heavily on identifying explicit prohibited terms and dangerous semantic intent within a single context window. While single-turn jailbreaks (such as fictional roleplay or persuasive framing) have been extensively cataloged, vulnerabilities that emerge across multi-turn conversational memory remain underexplored.

Existing multi-turn jailbreaking attempts often require intricate social engineering scripts, long narrative backstories, or still leak harmful phrases that trigger guardrails. The authors ask: Can an adversary bypass content-based safety filters using an extremely simple, programmatic decomposition of harmful prompts across conversational turns?

Methods

The authors introduce JigSaw Puzzles (JSP), a multi-turn jailbreaking pipeline consisting of:

  1. JSP Prompt Structure: The initial turn sets rules instructing the LLM to collect incoming text fragments, concatenate them upon receiving the cue "Begin", and generate an answer directly. Crucially, the prompt includes:
  2. Prohibition of Outputting the Query: The model is strictly instructed never to restate or output the concatenated question, preventing output guardrails from triggering on the harmful context before generation.
  3. Mandatory Hypothetical Disclaimer: The LLM is forced to prefix its output with a standard boilerplate disclaimer ("Disclaimer: This response is purely hypothetical..."), confusing downstream safety filters.
  4. Three-Stage Query Decomposition:
  5. Stage 1 (Sentence Structuring): Rewrites queries into a standardized format: "How do I implement for + [harmful behaviour]".
  6. Stage 2 (Sentence-Level Splitting): An external model (GPT-4) identifies sensitive keywords (e.g., "illegal", "drugs").
  7. Stage 3 (Word-Level Splitting): Harmful words are randomly split into benign sub-word letter fragments (e.g., "laundering" $\rightarrow$ "laun" and "dering"; "illegal" $\rightarrow$ "ille" and "gal").
  8. Turn-by-Turn Delivery: Each fragment is sent in an isolated conversational turn. Once all pieces are acknowledged, the user issues the "Begin" command.
  9. Fabricated History (Turn Intervention): If a model prematurely issues a refusal upon receiving the final fragment, the refusal turn in the conversational history is modified into a prompt asking the user to confirm with "Begin.", forcing continuation.

Datasets

  • Figstep Subset: Derived from the 500-question Figstep benchmark spanning 10 risk domains. After removing out-of-scope advice categories (legal, medical, financial) and unrealistic queries, the authors evaluate on a curated set of 189 harmful questions across 7 forbidden topics (Malware Generation, Fraud, Illegal Activities, Hate Speech, Privacy Violations, Physical Harm, Pornography).
  • AdvBench Subset: Used for comparison with baseline attacks (PAPs, PAIR), consisting of 50 harmful questions refined by Chao et al. (2023).

Key Insights and Ideas

  • Semantic Blindness of Token/String Filters: By splitting a single sensitive word (e.g., laun + dering), the individual turns remain completely benign to keyword- and semantic-level input filters. The harmful semantics only exist once reassembled in the model's internal latent space.
  • The "Don't Repeat the Question" Exploit: If an LLM explicitly re-states the malicious query before answering, safety classifiers easily catch it. Suppressing the reflection of the input query effectively cloaks the harmful intent from generation-time guardrails.
  • Model Reasoning vs. Safety Paradox: More capable models (like GPT-4 and Llama-3.1-70B) are actually more vulnerable to the fine-grained word splitting than weaker models like GPT-4o-mini. High-capacity models easily reconstruct fragmented syllables across conversational turns, whereas smaller models sometimes fail to reassemble the prompt correctly, producing incoherent rather than harmful text.

Key Results

  • High Vulnerability Across Frontier LLMs: Evaluated on Gemini-1.5-Pro, Llama-3.1-70B, GPT-4, GPT-4o, and GPT-4o-mini, JSP achieved an average Attack Success Rate by Question (ASR-q) of 93.76% (with ASR-q exceeding 95% on Llama-3.1-70B, GPT-4, and GPT-4o-mini).
  • SOTA Jailbreak Rates: On the AdvBench benchmark against GPT-4:
  • JSP reached 92% ASR-q, outperforming PAIR (54%) and PAPs (88%).
  • Under system-prompt defenses specifically designed to warn the model about multi-turn splits (Defence-JSP), JSP maintained a 76% success rate.
  • Ablation on Multi-Turn Setup: Moving JSP into a single-turn prompt significantly reduced success (e.g., GPT-4o dropped from 66.81% ASR-a in multi-turn to 10.86% in single-turn), validating that conversational turn separation is critical to evading input guardrails.

Limitations and Future Work

  • API and Compute Costs: Generating multi-turn sequences across hundreds of prompts and models is computationally expensive, limiting the dataset size and models evaluated.
  • Automated Evaluation Noise: The study uses Llama-Guard-3 and GPT-4 Judge for safety scoring. While human alignment agreement was substantial (Cohen’s Kappa $\approx 0.75$), weaker target models (GPT-4o-mini) occasionally generated disjointed responses that caused false positives in safety judges.
  • Future Defenses: The authors highlight that content-centric defenses are fundamentally insufficient against split-turn reasoning attacks. Future guardrail architectures must evaluate rolling semantic contexts across complete conversational states rather than filtering turn-by-turn inputs in isolation.

Summary updated

BibTeX
@misc{yang2024jigsaw,
  author = {Hao Yang and Lizhen Qu and Ehsan Shareghi and Gholamreza Haffari},
  title = {{Jigsaw Puzzles: Splitting Harmful Questions to Jailbreak Large Language Models}},
  year = {2024},
  eprint = {2410.11459},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.11459},
}
Figure