Abstract
Defending large language models (LLMs) against jailbreaks—prompts designed to bypass safety filters—remains an open challenge. While broad safety categories are often ill-defined, this paper investigates whether a "perfect" defense can be built for a narrowly-defined harmful behavior: assisting a user in building a bomb. We evaluate standard safety training, adversarial training, and input/output classifiers, finding that all are susceptible to sophisticated attacks. We introduce a "transcript-classifier" defense using Chain-of-Thought (CoT) and structural tagging that significantly improves robustness, though it still falls short of a complete solution.
Introduction
The AI safety community has struggled to define the boundaries of "harmful" content, often leading to fuzzy defense strategies. By narrowing the focus to a single, egregious behavior—the LLM bomb-defense problem—we test the limits of current safety paradigms. In this context, "harm" is strictly defined as providing actionable technical details for building a lethal device beyond what is publicly available on platforms like Wikipedia. Despite this narrow scope, we find that jailbreak defense remains an unsolved challenge.
Methodology and Defense Baselines
We evaluated four primary defense categories against a suite of attacks including HarmBench, PAIR (Prompt Automatic Iterative Refinement), and adversarial suffixes:
- Standard Safety Training: Evaluating frontier models (Claude-3, GPT-4o) that have undergone RLHF/RLAIF.
- Static Adversarial Training: Fine-tuning models (specifically GPT-3.5 Turbo) on thousands of known jailbreak attempts.
- Classifier-based Baselines: Using external models like LlamaGuard to monitor and block harmful exchanges.
- CoT-4o Transcript-Classifier: Our proposed defense which analyzes the full conversation transcript using advanced structural and reasoning layers.
The Transcript-Classifier Defense
The CoT-4o approach introduces several layers of protection to prevent the model from being tricked by its own output or the user's input.
As illustrated in the figure above, the system first converts the request and response into a transcript wrapped in XML tags with random UUIDs. It applies transformations like capitalization to mitigate prompt injection—where a model's own output might trick a classifier into declaring a transcript "safe." An LLM classifier then performs a multi-step Chain-of-Thought (CoT) analysis, checking for specific indicators of harm (e.g., "Asks for ingredients," "Mentions instructions") before issuing a final verdict. This stochastic, multi-step reasoning makes it significantly harder for automated optimization attacks to find a single "magic string" that bypasses the filter.
Results and Key Insights
Our evaluation revealed critical vulnerabilities in existing paradigms and the relative strengths of the transcript-classifier approach.
The "Dry-Ice" Blind Spot
A significant finding was the near-universal vulnerability of frontier models to "dry-ice bomb" prompts. Because these are often perceived as harmless science experiments, models like GPT-4o and Claude-3 frequently provided lethal instructions that bypassed standard filters. Standard GPT-4o had a 100% Attack Success Rate (ASR) on this custom dataset.
Defense Performance and Trade-offs
The CoT-4o classifier proved the most robust, achieving a 0.12% ASR against PAIR and Dry-Ice attacks. It also demonstrated a "capabilities match" advantage; GPT-4o-based classifiers could catch harmful instructions in foreign languages (e.g., Gujarati) that smaller, specialized classifiers missed. However, this robustness came with a utility trade-off. In its strictest configuration, the classifier exhibited a high refusal rate on benign tasks (AlpacaEval), occasionally blocking safe prompts out of extreme caution.
Limitations and Conclusion
Despite the technical advancements of the transcript-classifier, it is not a "perfect" defense. Every defense tested was broken by at least one type of attack, and human red-teamers eventually bypassed the CoT-4o system using creative "fictional AI learning model" scenarios. Furthermore, the current binary output lacks a tunable threshold for balancing safety and utility. This study confirms that even in a narrow domain, jailbreak defense remains a complex, unsolved challenge, requiring further research into calibrated classifiers and scalable oversight.
Summary updated