Papers
Topics
Authors
Recent
Search
2000 character limit reached

Silencing the Guardrails: Inference-Time Jailbreaking via Dynamic Contextual Representation Ablation

Published 9 Apr 2026 in cs.AI | (2604.07835v1)

Abstract: While LLMs have achieved remarkable performance, they remain vulnerable to jailbreak attacks that circumvent safety constraints. Existing strategies, ranging from heuristic prompt engineering to computationally intensive optimization, often face significant trade-offs between effectiveness and efficiency. In this work, we propose Contextual Representation Ablation (CRA), a novel inference-time intervention framework designed to dynamically silence model guardrails. Predicated on the geometric insight that refusal behaviors are mediated by specific low-rank subspaces within the model's hidden states, CRA identifies and suppresses these refusal-inducing activation patterns during decoding without requiring expensive parameter updates or training. Empirical evaluation across multiple safety-aligned open-source LLMs demonstrates that CRA significantly outperforms baselines. These results expose the intrinsic fragility of current alignment mechanisms, revealing that safety constraints can be surgically ablated from internal representations, and underscore the urgent need for more robust defenses that secure the model's latent space.

Summary

  • The paper introduces Contextual Representation Ablation (CRA), a method for jailbreak attacks on LLMs by altering latent space dynamics during inference.
  • CRA achieves up to 76% attack success rate on LLMs, outperforming existing methods, and is computationally efficient with minimal degradation.
  • Findings reveal that safety guardrails are often encoded as linear, low-rank subspaces, making them vulnerable to dynamic, white-box attacks.

Silencing the Guardrails: Dynamic Inference-Time Jailbreaking of LLMs via Contextual Representation Ablation

Introduction

This paper introduces CONTEXTUAL REPRESENTATION ABLATION (CRA), a white-box inference-time intervention for jailbreaking safety-aligned LLMs (2604.07835). Unlike traditional prompt-based or computationally expensive gradient-driven attacks, CRA leverages geometric properties of the model’s latent space to dynamically silence refusal behaviors during generation. The work provides an incisive analysis of the mechanisms underlying LLM refusal and demonstrates significant bypass rates on a range of state-of-the-art open-source chat models.

Prior approaches to LLM jailbreaking generally fall into (1) black-box methods that operate on the token/input space (e.g., prompt engineering, adversarial triggers), and (2) white-box optimization over the token or embedding space using gradients. The former suffer from low transferability and high query complexity, while the latter are hindered by discrete search inefficiency and semantic degradation.

An emerging alternative is direct manipulation of inference dynamics or intermediate representations. Generation-exploitation attacks, alteration of sampling strategies, and permanent layer editing (as in LED) have all been shown to degrade guardrails, but typically induce substantial side effects or require dangerous weight modifications, risk general model degradation, or lack contextual adaptiveness. The representation engineering paradigm, including recent work identifying low-dimensional “refusal subspaces” [Arditi et al., 2024], underpins CRA, which distinguishes itself through dynamic, instance-specific interventions rather than static or global ablation.

Methodology

CRA conceptualizes jailbreaking as a problem of geometric intervention in the continuous latent space of LLMs. During autoregressive decoding, the method dynamically attributes refusal behavior to a specific, low-rank subspace of the activations (“refusal subspace”) for each instance. The process proceeds in two steps:

  1. Instance-Specific Refusal Attribution: CRA uses a gradient-based attribution w.r.t. the logit of canonical refusal tokens. This produces a Refusal Importance Score (RIS) vector for each layer, aggregating structural sensitivity (normalized gradient norm), functional salience (gradient-activation product), and subspace dominance (top-k filtering to isolate active components).
  2. Dynamic Subspace Masking: For each token generation step, a binary mask is created over the top RIS neurons, and these are softly (or fully) suppressed by projection onto the orthogonal complement of the detected refusal subspace. Suppression intensity can be scaled, and, if the refusal recurs, the masking width is adaptively increased.

This intervention is strictly “on-the-fly” and reversible, affecting only current-step activations, ensuring minimal degradation of benign capabilities.

Experimental Results

The empirical evaluation encompasses four major safety-aligned LLMs (Llama-2-Chat, Vicuna, Guanaco, Mistral) on stringent benchmarks (AdvBench, PKU-Alignment, ToxicChat) using rigorous, multi-model LLM-as-a-judge protocols. Key findings include:

  • Attack Effectiveness: CRA achieves up to 76.0% attack success rate (ASR-O) on Llama-2, outperforming PEZ by 15.2x and consistently surpassing inference-time and discrete optimization baselines across all models and datasets.
  • Mechanistic Validation: Neural ablation studies show that CRA’s precision targeting of refusal subspaces is critical—random suppression yields far lower bypass rates and greater collateral degradation. Suppression exhibits a clear “phase transition”: only strong (X ≈ 1) ablation overcomes robust alignment barriers.
  • Computational Efficiency: CRA executes orders-of-magnitude faster than gradient-search and iterative black-box attacks, combining near-optimal attack rates with minimal overhead.

Strong retention of linguistic fluency and diversity is observed at the sweet spot of suppression intensity, confirming that latent interventions can be precise and minimally destructive.

Theoretical and Practical Implications

The work exposes a crucial limitation of current RLHF and alignment regimes: safety guardrails are frequently encoded as linear, low-rank subspaces in hidden state space, separable from the bulk of general reasoning. This geometric regularity makes them susceptible to dynamic, white-box masking attacks. Importantly, CRA’s success is largely independent of model architecture or training recipe, highlighting a structural weakness in the representation-centric approach to LLM refusal.

From a defense perspective, the results indicate that input-centric and even hybrid token-latent attacks are less tractable than direct latent intervention. Defensive strategies must evolve beyond static alignment and input filtering to methods that (i) secure or disperse the encoding of safety, (ii) monitor for activation space manipulations, and (iii) employ redundancy or obfuscation in refusal representations. The demonstrated attack transferability underscores the urgency of such next-generation representation-robust alignment techniques.

Limitations and Future Directions

CRA is evaluated primarily on dense Transformer LLMs. It remains an open question how mixtures of experts, quantized architectures, or state-space models encode refusal behaviors and how susceptible these representations are to similar dynamic masking interventions. Additionally, the minor overhead introduced by hidden-state gradient computations may have latency implications in ultra-low-latency deployment scenarios.

Mitigation may require the development of latent-space integrity monitors or the training of models to encode safety constraints in high-rank or distributed manifolds, making such subspace ablation much harder. Further, adaptive or adversarial training against inference-time interventions such as CRA is an open area for future work.

Conclusion

CRA establishes that robust safety alignment in LLMs can be surgically disabled at inference time via dynamic, context-aware manipulation of low-dimensional refusal subspaces. It delivers high attack success rates with low computational cost, and its effectiveness generalizes across architectures and datasets. The findings expose the geometric fragility of current alignment mechanisms and call for more robust, representation-focused defense strategies in future LLM deployment and safety research.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.