Fail-Closed Alignment for Large Language Models

Zachary Coalson, Beth Sohler, Aiden Gabriel, Sanghyun Hong

TL;DR

Current large language model (LLM) safety mechanisms are inherently "fail-open": prompt-based jailbreaks can completely collapse a model's alignment by suppressing just a single dominant refusal direction in its activation space. To fix this, the authors introduce fail-closed alignment, a progressive training framework that forces LLMs to build multiple, causally independent safety pathways. The resulting models are exceptionally resilient against diverse jailbreak attacks while maintaining high utility and low over-refusal rates.

What Problem Does This Paper Address?

In traditional software and systems engineering, safety-critical mechanisms are designed to be "fail-closed"—if a firewall crashes or a smart lock loses power, the system defaults to a secure, restricted state.

LLM alignment, however, behaves as a "fail-open" system. Because safety is typically enforced implicitly through training objectives like Reinforcement Learning from Human Feedback (RLHF), the internal representation of refusal behavior is unconstrained. The authors demonstrate that despite refusal behavior spanning multiple latent features, it ultimately relies on a single dominant linear direction in the activation space.

When an adversarial prompt (a jailbreak) exerts pressure on the model, it effectively suppresses this dominant direction, causing the safety alignment to collapse entirely. If an attacker can neutralize this single point of failure, the model defaults to unsafe compliance.

Figure 1. Refusal in current LLMs is dependent on a single dominant feature that jailbreaks suppress. (Left) ASR on 200 harmful prompts before and after ablating the DIM refusal feature across four models. Ablation causes ASR to spike, showing that refusal depends on a single linear direction. (Right) Average cosine similarity of the refusal feature in the activation space on the harmful prompts under different jailbreaks. All attacks substantially reduce activation of the refusal feature, indicating they largely succeed by suppressing the same internal mechanism. Details on the prompts, prompt-based jailbreaks, and ASR calculation are provided in §4.1.

Methods

The authors propose a progressive alignment framework (Algorithm 1) that structurally enforces functional redundancy by construction. Instead of simply training models on harder adversarial examples, they iteratively eliminate learned safety pathways to force the model to find new ones:

  1. Identify: Locate the model's current dominant refusal direction using Refusal Direction Optimization (RDO), a gradient-based feature extraction technique.
  2. Ablate: Construct a Multi-Feature Ablation (MFA) operator using orthogonal projection (via QR decomposition) to completely remove the span of all previously discovered refusal directions from the model's hidden states.
  3. Train: Fine-tune the model to successfully generate refusal responses while the MFA operator is actively blocking all known safety pathways. This forces the model to reconstruct its safety mechanisms within a brand-new, independent subspace.

To ensure the model doesn't start indiscriminately refusing benign prompts, they regularize the training process using a token-wise KL-divergence loss against the original base model on safe inputs. This entire loop is repeated for $K=10$ iterations.

Datasets

  • Safety Training: The CircuitBreaker adversarial training dataset, consisting of 5,000 harmful prompts covering diverse topics.
  • Utility Training: 4,500 instruction-following prompts from Alpaca and 200 prompts from XSTest (a benchmark of benign prompts that superficially resemble harmful requests).
  • Evaluation Benchmarks:
  • Jailbreaks: Evaluated using 200 prompts from HarmBench and AdvBench against four prominent attacks: GCG, AutoDAN, PAIR, and HumanJailbreaks.
  • General Utility: Zero-shot accuracy measured across BoolQ, RTE, HellaSwag, WinoGrande, ARC-C, and OpenBookQA.

Note on Curation: Rather than using static, pre-generated completions from other models (like GPT-4), the authors dynamically generated completions directly from the target model's base version to prevent "response drift" and better preserve the model's native behavior.

Key Insights and Ideas

  • Alignment as an Architectural Property: Robustness shouldn't just be a byproduct of richer training data; it must be structurally organized within the representation space via engineered redundancy.
  • Jailbreaks Share an Underlying Mechanism: Despite their semantic diversity (ranging from automated token optimization to role-play obfuscation), different jailbreaks succeed primarily by doing the exact same thing internally: suppressing the model's primary refusal feature.
  • The Shift to Non-Linear Safety: During the iterative training loop, the first five discovered directions ($r_1$–$r_5$) show strong linear activation on harmful prompts. However, later iterations ($r_6$–$r_{10}$) exhibit near-zero linear activation, implying that when pushed, the model adapts by encoding safety through more complex, non-linear operations.
Figure 3. Causal effects and activations of refusal features identified by our method on Llama3-8B. For each feature discovered during training (r1, . . . , r10): (Left) ASR on harmful prompts when ablating this feature together with all previously identified features, and CR on harmless prompts when adding the feature, shown both for our method and when MFA is replaced with single-feature ablation; (Right) average cosine similarity of the feature with the model’s activations on harmful prompts under different prompt-based jailbreak attacks. Each feature is projected onto the orthogonal complement of the span of all previously features to isolate individual contributions.

Key Results

  • State-of-the-Art Robustness: The fail-closed alignment method reduced average attack success rates (ASR) by 92–97% compared to baseline defenses, maintaining an ASR of $\le$ 4% across all tested model families (Llama2-7B, Llama3-8B, Gemma2-2B, and Gemma2-9B).
  • Defeating Black-Box Attacks: It proved uniquely effective against the highly adaptive PAIR attack, making it the only defense evaluated where PAIR failed to achieve an ASR above 17.5%.
  • Preserved Utility & Low Over-Refusal: The models achieved the highest benign compliance rate (86% on average) among robust methods, proving they can still distinguish between truly harmful requests and safe, look-alike prompts.
  • LoRA Compatibility: The framework generalizes perfectly to parameter-efficient fine-tuning. Implementing it via LoRA (~5% of total parameters) matched the performance of full-scale fine-tuning within 0.6%.

Limitations and Future Work

  • Uncharted Non-Linear Mechanisms: Because the framework relies on linear direction optimization (RDO) to find and block safety pathways, it cannot explicitly track or structure the non-linear safety mechanisms that the model begins to develop in later training iterations. The authors highlight the exploration of these non-linear representations as a vital next step.
  • Residual Vulnerabilities: While the defense drastically mitigates vulnerabilities, it does not completely eliminate them; rare bypasses still occurred when models were hit with complex "Developer Mode" style prompt injections.

Summary updated

BibTeX
@inproceedings{coalson2026fail,
  author = {Zachary Coalson and Beth Sohler and Aiden Gabriel and Sanghyun Hong},
  title = {{Fail-Closed Alignment for Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=qJN2JFwGdt},
}
Figure