Abstract
NeuroStrike exposes a critical vulnerability in Large Language Model (LLM) safety alignment. By demonstrating that safety mechanisms are localized in a tiny fraction of "safety neurons" (less than 0.6% of MLP layers), this framework enables the systematic bypassing of ethical guardrails. Through white-box pruning and black-box profiling using surrogate models, NeuroStrike achieves high attack success rates across more than 20 models, including proprietary systems like Google’s Gemini, while maintaining general model utility. This research suggests that current sparse alignment techniques create a predictable internal state that can be targeted and neutralized.
Introduction
Current LLMs undergo rigorous safety alignment, typically via Reinforcement Learning from Human Feedback (RLHF), to prevent the generation of harmful content. However, these defenses are often treated as a "black box" by both developers and researchers. Existing "jailbreak" attacks usually rely on manual prompt engineering or trial-and-error, which lacks scalability and a deep understanding of the model's internal mechanics.
NeuroStrike moves beyond surface-level prompt manipulation to investigate the internal circuitry of safety. It asks a fundamental question: Is safety alignment distributed across the entire network, or is it localized? The findings reveal that safety is a "winning ticket" held by a tiny fraction of neurons, creating a significant security loophole.
The NeuroStrike Framework
The NeuroStrike framework operates in two primary modes: white-box neuron pruning and black-box profiling. Both methods rely on the discovery that safety-related refusals (e.g., "I'm sorry, I cannot...") produce a distinct and sparse neural signature within the model's Multi-Layer Perceptron (MLP) layers.
White-box Attack: Surgical Pruning
In the white-box setting, the attacker has access to the model's internal weights and activations. The process involves three steps:
- Identification: The model is fed a balanced set of benign and malicious prompts while recording MLP layer activations.
- Localization: Using logistic regression, researchers identify neurons that consistently fire for malicious inputs but remain inactive for benign ones. These "safety neurons" are found to be extremely sparse, making up less than 0.6% of a given layer.
- Neutralization: During inference, these specific neurons are "pruned" (activations set to zero). This effectively disables the model's ability to recognize and refuse harmful requests without damaging its general reasoning capabilities.
Black-box Attack: Profiling and Transfer
For proprietary models like Gemini, where internal weights are inaccessible, NeuroStrike employs a profiling strategy using open-weight "surrogate" models from the same architectural family (e.g., using Gemma to attack Gemini).
As shown in the workflow above, the attacker trains a prompt generator using Group Relative Policy Optimization (GRPO). The reward function is designed to be "stealthy": it rewards prompts that successfully jailbreak the surrogate model while simultaneously minimizing the activation of the surrogate's safety neurons. These optimized prompts are then transferred to the target black-box model, where they are highly effective at flying under the radar of the internal safety circuitry.
Key Insights and Results
Extreme Sparsity and Transferability
Safety is not a holistic property of the model. Disabling just a few hundred neurons in a model with billions of parameters is enough to collapse its ethical guardrails. Furthermore, these safety neurons are highly conserved within model families. A map of safety neurons created for a small model (like Llama-3-8B) is remarkably effective when used to attack its larger or fine-tuned siblings.
Performance Metrics
- Attack Success Rate (ASR): In white-box tests, pruning increased the average ASR from 12.1% to 76.9% across 11 open-source models. In black-box tests, the profiling attack achieved a 63.7% average ASR against the Gemini family.
- Utility Preservation: Removing safety neurons had negligible impact on general intelligence. Performance on standard benchmarks like MMLU and HellaSwag remained stable, proving these neurons are highly specialized for refusal tasks.
- Cross-Modal Vulnerability: Safety neurons identified via text were found to control safety for visual inputs as well. Pruning "text" safety neurons resulted in a 100% ASR on unsafe image inputs in multimodal models.
Conclusion
NeuroStrike demonstrates that sparse alignment creates a single point of failure. To counter such attacks, developers may need to move toward multi-objective alignment that distributes safety responsibilities across more neurons or utilize complex architectures like Mixture-of-Experts (MoE) to make safety circuitry harder to profile. Future safety research must look beyond the prompt and address the vulnerabilities inherent in how models internally represent and enforce ethical boundaries.
Summary updated