Semantic operator naming lets prompts fully bypass GPT-5.4 safety
Involuntary In-Context Learning can override safety alignment with 100% success using semantic operator naming
Security & privacy arXiv 21 Apr 2026 Attack Prototype evidence
Published as “Involuntary In-Context Learning: Exploiting Few-Shot Pattern Completion to Bypass Safety Alignment in GPT-5.4”
Why it matters
The work shows that current safety alignment can be subverted by simple prompt engineering, highlighting an urgent need for defenses that are robust to arbitrary in-context patterns.
Summary
IICL can force GPT-5.4 to produce harmful content by framing requests as abstract operator evaluations, achieving a perfect 100% bypass when using the answer/is_valid operator pair and 24.0% bypass on the HarmBench benchmark versus 0.0% for direct queries. The attack works with only ten few-shot examples, and its success depends on abstract framing, interleaved ordering, and semantic operator naming, while temperature has no effect. However, the overall bypass rate is modest (24% on HarmBench, 1.7% average on GPT-5.4) and six of ten tested models are completely robust.
What they found 3
- Using the answer/is_valid operator pair yields a perfect 100% bypass rate.
“The operator pair answer/is_valid achieves a perfect 100% bypass rate (50 out of 50 probes) with 95% CI [92.9%, 100.0%].”
- Abstract operator framing is essential; direct Q&A yields zero bypass.
“Abstract framing achieves 58%, function framing achieves 22%, and both direct and no-framing conditions achieve 0%.”
- Interleaved example ordering maximizes bypass (76%) while harmful-first ordering drops to 6%.
“Interleaved ordering achieves the highest rate at 76%, followed by benign-first (52%), random (38%), and harmful-first (6%).”
Caveats 7
- On the HarmBench benchmark the attack only reaches 24.0% bypass (48/200) compared to 0.0% for direct queries.
- Across all probes on GPT-5.4 the average bypass rate is 1.7%, indicating limited overall effectiveness.
- Six of the ten evaluated models exhibit 0% bypass, showing that many deployments remain fully robust.
- First, all experiments are conducted against a single provider (OpenAI).
- Second, the HarmBench evaluation uses a 20-query subset rather than the full benchmark.
- Third, our automated judge (gpt-4.1-mini) may introduce systematic biases.
- Fourth, all analysis is conducted under black-box conditions.
What’s new here 4
- Introduces abstract operator framing with few-shot examples to override safety alignment, unlike prior attacks that use raw harmful demonstrations.
- Shows that semantic operator naming (answer/is_valid) yields a perfect 100% bypass, a factor not explored before.
- Provides a systematic seven-experiment ablation identifying the relative importance of framing, ordering, example counts, and naming.
- Demonstrates that temperature does not affect the attack, contrary to assumptions about stochastic sampling.