Jailbreaking the Matrix: Nullspace Steering for Controlled Model Subversion

Vishal Pramanik, Maisha Maliha, Susmit Jha, Sumit Kumar Jha

Introduction

Despite rigorous safety alignment techniques like Reinforcement Learning from Human Feedback (RLHF), Large Language Models (LLMs) remain vulnerable to jailbreaks—adversarial prompts designed to elicit harmful or prohibited content. Most existing attacks operate at the "surface level," relying on clever prompt engineering, automated suffix optimization (e.g., GCG), or paraphrasing. These methods are often brittle, easily defeated by simple defenses, and offer little insight into the internal mechanics of model refusal.

To address this gap, researchers have developed Head-Masked Nullspace Steering (HMNS), a circuit-level intervention that bypasses LLM safety filters by intervening directly in the model's internal computations. By treating jailbreaking as a control theory problem rather than a creative writing exercise, HMNS achieves state-of-the-art attack success rates with significantly fewer attempts than traditional prompt-based methods.

The HMNS Methodology

HMNS is a white-box, mechanism-aware intervention that operates in a closed-loop detection-intervention cycle. It shifts the battleground from the input text to the model's internal matrix representations through three primary steps:

HMNS Method Schematic
  1. Causal Head Attribution: The algorithm performs counterfactual ablation by temporarily silencing individual attention heads and measuring the resulting change in the output distribution (via KL divergence). This identifies the "causal heads" most responsible for the model's default refusal behavior.
  2. Targeted Masking: Once the top refusal heads are identified, HMNS suppresses their write paths. It zero-masks the columns of their out-projection matrices for the current forward pass, effectively muting the model's internal safety mechanisms.
  3. Nullspace Steering: To steer the model toward a helpful (albeit prohibited) response, HMNS injects a small perturbation vector into the residual stream. Crucially, this vector is constrained to the nullspace (the orthogonal complement) of the muted heads' subspace. Because the steering vector is orthogonal to the write paths of the silenced heads, those heads cannot "see" or cancel out the intervention, making the jailbreak locally irreproducible by the model's own safety circuitry.

Experimental Setup

The efficacy of HMNS was evaluated across four major jailbreak benchmarks: AdvBench, HarmBench, JBB-Behaviors, and StrongReject. The researchers also tested the method on a Multi-Turn Human Jailbreaks (MHJ) dataset to validate its performance in long-context conversations. Evaluations were conducted on LLaMA-2-7B-Chat, Phi-3-Medium (14B), and LLaMA-3.1-70B.

Key Findings and Results

The study reveals several critical insights into model safety and the effectiveness of geometry-aware steering:

  • Safety is Sparse and Localizable: Safety alignment is not diffused equally across the entire model; rather, it concentrates in a sparse set of causal heads that can be pinpointed and bypassed.
  • The "Moving Target" of Attribution: The heads responsible for refusal change dynamically as the model generates text. A static intervention fails, but HMNS's closed-loop approach—re-identifying causal heads at every step—allows the attack to adapt to the model's shifting internal state.
Attack Success Rate Comparison
  • State-of-the-Art Performance: HMNS outperformed previous best methods by an average of 5–6 percentage points in Attack Success Rate (ASR) across all tested models and datasets.
  • Extreme Efficiency: While traditional attacks often require dozens or hundreds of queries, HMNS typically succeeds with an Average Query Count (ACQ) of approximately 2. To better capture this, the authors introduced Compute-Normalized Metrics like FLOPs per Success (FPS) and Internal Pass Count (IPC).
  • Defense Resilience and Scalability: HMNS remained highly effective against models protected by six different types of defenses (including SmoothLLM and SafeDecoding). Furthermore, the method proved even more effective on larger models (e.g., 70B), suggesting that as models grow more complex, their internal causal structures become increasingly exploitable by geometry-aware steering.

Limitations and Future Directions

As a white-box method, HMNS requires access to the model's internal weights and activations, precluding its direct use against closed-API models. Additionally, the internal ablation passes introduce computational latency, though this is partially mitigated by proxy pre-selection techniques.

Future work will explore "black-box transfer," investigating whether steering vectors derived from open-weight models can successfully attack closed systems. Conversely, the principles of nullspace steering could be inverted to create more robust defenses, enforcing safety constraints at the circuit level.

Summary updated

BibTeX
@inproceedings{pramanik2026jailbreaking,
  author = {Vishal Pramanik and Maisha Maliha and Susmit Jha and Sumit Kumar Jha},
  title = {{Jailbreaking the Matrix: Nullspace Steering for Controlled Model Subversion}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=qlf6y1A4Zu},
}
Figure