Walk through the main jailbreak techniques conceptually. Why does safety training fail against them?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
The unifying explanation: safety training is distributional - the model learns to refuse on a distribution of harmful prompts seen in RLHF - while capabilities generalise far beyond that distribution. Attackers move off-distribution, where the refusal reflex wasn't reinforced but the underlying capability still fires. High level, not a how-to:
- Roleplay / persona framing - wrap the request in fiction, a hypothetical, or an "unfiltered AI" character. The refusal was trained on direct requests; the fictional frame is out of distribution.
- Many-shot - fill a long context with hundreds of fabricated dialogue turns where the "assistant" happily complied. In-context learning overrides the trained tendency; effectiveness scales with context length (Anthropic, 2024).
- Encoding / obfuscation - base64, ROT13, leetspeak, or low-resource languages. Comprehension generalises to these forms but safety training didn't cover them, so the model decodes-and-complies.
- Optimised adversarial suffixes - GCG (Zou et al., 2023) gradient-searches a token string that maximises compliance; these transfer across models, showing the vulnerability is structural, not a one-off.
- Multi-turn escalation (crescendo) - start benign, ratchet toward the target over turns so no single message trips the refusal.
- Best-of-N - perturb the same request many ways (capitalisation, spacing) and submit until one lands, exploiting the model's brittleness to surface form.
Full worked answer
The unifying explanation: safety training is distributional - the model learns to refuse on a distribution of harmful prompts seen in RLHF - while capabilities generalise far beyond that distribution. Attackers move off-distribution, where the refusal reflex wasn't reinforced but the underlying capability still fires. High level, not a how-to:
- Roleplay / persona framing - wrap the request in fiction, a hypothetical, or an "unfiltered AI" character. The refusal was trained on direct requests; the fictional frame is out of distribution.
- Many-shot - fill a long context with hundreds of fabricated dialogue turns where the "assistant" happily complied. In-context learning overrides the trained tendency; effectiveness scales with context length (Anthropic, 2024).
- Encoding / obfuscation - base64, ROT13, leetspeak, or low-resource languages. Comprehension generalises to these forms but safety training didn't cover them, so the model decodes-and-complies.
- Optimised adversarial suffixes - GCG (Zou et al., 2023) gradient-searches a token string that maximises compliance; these transfer across models, showing the vulnerability is structural, not a one-off.
- Multi-turn escalation (crescendo) - start benign, ratchet toward the target over turns so no single message trips the refusal.
- Best-of-N - perturb the same request many ways (capitalisation, spacing) and submit until one lands, exploiting the model's brittleness to surface form.
Why these persist: refusals are a thin, learned layer over a capable base model; there's no hard gate removing the capability, so any framing that dodges the learned trigger while preserving meaning tends to work. Defence is an arms race - providers add adversarial examples and classifiers (e.g., constitutional classifiers), attackers find new distributions. For an application engineer the lesson is you can't assume the provider's model won't be jailbroken; your product must be safe even if it is.
What a good answer covers
- The unifying explanation: safety training is distributional - the model learns to refuse on a…
- Attackers move off-distribution, where the refusal reflex wasn't reinforced but the underlying…
- Roleplay / persona framing - wrap the request in fiction, a hypothetical, or an "unfiltered AI" character
- Many-shot - fill a long context with hundreds of fabricated dialogue turns where the "assistant" happily…
- Encoding / obfuscation - base64, ROT13, leetspeak, or low-resource languages
Key terms: distributional · generalise · Roleplay / persona framing · Many-shot · Encoding / obfuscation · Optimised adversarial suffixes · Multi-turn escalation (crescendo) · Best-of-N
In the glossary: RLHF · In-context learning · GCG · Best-of-N
Interviewer follow-ups to expect
Why does many-shot get more effective as context windows grow?
- Roleplay / persona framing - wrap the request in fiction, a hypothetical, or an "unfiltered AI" character. The refusal was trained on direct requests; the fictional frame is out of distribution.
- Many-shot - fill a long context with hundreds of fabricated dialogue turns where the "assistant" happily complied. In-context learning overrides the trained tendency; effectiveness scales with context length (Anthropic, 2024).
- Encoding / obfuscation - base64, ROT13, leetspeak, or low-resource languages. Comprehension generalises to these forms but safety training didn't cover them, so the model decodes-and-complies.
- Optimised adversarial suffixes - GCG (Zou et al., 2023) gradient-searches a token string that maximises compliance; these transfer across models, showing the vulnerability is structural, not a one-off.
- Multi-turn escalation (crescendo) - start benign, ratchet toward the target over turns so no single message trips the refusal.
- Best-of-N - perturb the same request many ways (capitalisation, spacing) and submit until one lands, exploiting the model's brittleness to surface form.
What does the transferability of GCG suffixes tell you about the nature of the vulnerability?
As an app developer, why can't you rely on the provider having patched all of these?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep