NeuroBreak: Unveil Internal Jailbreak Mechanisms in Large Language Models

Chuhan Zhang, Ye Zhang, Bowen Shi, Yuyou Gan, Tianyu Du, Shouling Ji, Dazhan Deng, Yingcai Wu · OpenReview

Abstract

In deployment and application, large language models (LLMs) typically undergo safety alignment to prevent illegal and unethical outputs. However, the continuous advancement of jailbreak attack techniques, designed to bypass safety mechanisms with adversarial prompts, has placed increasing pressure on the security defenses of LLMs. Strengthening resistance to jailbreak attacks requires an in-depth understanding of the security mechanisms and vulnerabilities of LLMs. However, the vast number of parameters and complex structure of LLMs make analyzing security weaknesses from an internal perspective a challenging task. This paper presents NeuroBreak, a top-down jailbreak analysis system designed to analyze neuron-level safety mechanisms and mitigate vulnerabilities. We carefully design system requirements through collaboration with three experts in the field of AI security. The system provides a comprehensive analysis of various jailbreak attack methods. By incorporating layer-wise representation probing analysis, NeuroBreak offers a novel perspective on the model's decision-making process throughout its generation steps. Furthermore, the system supports the analysis of critical neurons from both semantic and functional perspectives, facilitating a deeper exploration of security mechanisms. We conduct quantitative evaluations and case studies to verify the effectiveness of our system, offering mechanistic insights for developing next-generation defense strategies against evolving jailbreak attacks.

Introduction

Despite rigorous safety alignment processes such as Reinforcement Learning from Human Feedback (RLHF), Large Language Models (LLMs) remain vulnerable to jailbreak attacks. These adversarial prompts are specifically engineered to trick models into generating harmful content, such as instructions for illegal activities.

The primary challenge for researchers is that LLMs operate as massive "black boxes." While the harmful outputs are visible, identifying where and why internal safety mechanisms fail is difficult. Existing interpretability tools often lack the granularity to capture the multi-layer "tug-of-war" between a model’s utility (helpfulness) and its safety requirements. NeuroBreak addresses this by tracing the evolution of a jailbreak from input tokens down to individual firing neurons.

Methodology

NeuroBreak employs a top-down, multi-granular analysis framework integrated into a visual interface. The technical pipeline consists of several key components:

  • Jailbreak Probing: The system utilizes linear probes—classifiers trained on internal hidden states—to detect harmful semantics at every layer. This allows researchers to pinpoint the exact layer where a model begins to diverge toward a toxic response.
  • Neuron Identification (SNIP): To isolate critical parameters, the system uses SNIP scores (a perturbation-based attribution method) to identify "safety neurons" essential for refusing prompts and "utility neurons" necessary for general tasks.
  • Functional Archetypes: Neurons are categorized into four roles based on their alignment with a "toxicity vector": Toxic Enhancement, Benign Suppression, Toxic Suppression (defensive), and Benign Enhancement.
The NeuroBreak technical pipeline, illustrating jailbreak probing, neuron identification (SNIP), and functional analysis.

Visual Analytics Interface

The system features a comprehensive dashboard designed for expert analysis. It includes Streamgraphs to visualize semantic evolution across layers, PCA-based scatter plots for decision boundaries, and a Radial Neuron View to explore upstream influences on safety nodes.

The NeuroBreak visual analytics interface, featuring the Control Panel, Metric View, Representation View, Layer View, Neuron View, and Instance View.

Datasets

The study utilizes SALAD-Bench, a comprehensive safety benchmark covering template-based attacks (e.g., AutoDan, HJB), optimization-based attacks (GCG), and rewriting attacks (TAP). Utility is evaluated using the Alpaca dataset and standard EleutherAI LM tasks to ensure model performance remains intact after safety hardening.

Key Insights

  • The "Decision Gatekeeper" Layer: Analysis revealed that Layer 11 often serves as a critical decision point where successful jailbreaks begin to diverge significantly from unsuccessful ones.
  • Template vs. Rewriting Attacks: Template attacks like AutoDan often use "distraction" text to weaken detection, whereas TAP attacks rewrite core instructions to create covert, multimodal internal representations that are harder for standard safety layers to intercept.
  • Neuron "Flipping": In successful jailbreaks, neurons that typically contribute to safe behavior were found to "flip" their contribution, promoting harmful semantics in the final layers.
  • Targeted Hardening: Adjusting only the identified "safety neurons" (less than 0.2% of total parameters) proved as effective as full-model fine-tuning.

Key Results

NeuroBreak was compared against full fine-tuning and LoRA with significant results:

  • Security: On the GCG attack, NeuroBreak reduced the Attack Success Rate (ASR) to 0%, slightly outperforming full fine-tuning (0.01%).
  • Utility Preservation: While full fine-tuning caused utility scores to drop from 0.61 to 0.58, the NeuroBreak approach maintained the original 0.61 score.
  • Efficiency: The system demonstrates that safety is concentrated in specific neural pathways, allowing for highly efficient model hardening.

Limitations and Future Work

Current analysis is limited to the attacks within SALAD-Bench; real-world "zero-day" jailbreaks may present different behaviors. Additionally, the reliance on linear probes may miss non-linear adversarial shifts. Future research will explore dynamic adversarial training where defense systems evolve in real-time alongside emerging attacks.

Summary updated

Abstract

In deployment and application, large language models (LLMs) typically undergo safety alignment to prevent illegal and unethical outputs. However, the continuous advancement of jailbreak attack techniques, designed to bypass safety mechanisms with adversarial prompts, has placed increasing pressure on the security defenses of LLMs. Strengthening resistance to jailbreak attacks requires an in-depth understanding of the security mechanisms and vulnerabilities of LLMs. However, the vast number of parameters and complex structure of LLMs make analyzing security weaknesses from an internal perspective a challenging task. This paper presents NeuroBreak, a top-down jailbreak analysis system designed to analyze neuron-level safety mechanisms and mitigate vulnerabilities. We carefully design system requirements through collaboration with three experts in the field of AI security. The system provides a comprehensive analysis of various jailbreak attack methods. By incorporating layer-wise representation probing analysis, NeuroBreak offers a novel perspective on the model's decision-making process throughout its generation steps. Furthermore, the system supports the analysis of critical neurons from both semantic and functional perspectives, facilitating a deeper exploration of security mechanisms. We conduct quantitative evaluations and case studies to verify the effectiveness of our system, offering mechanistic insights for developing next-generation defense strategies against evolving jailbreak attacks.
BibTeX
@misc{zhang2025neurobreak,
  author = {Chuhan Zhang and Ye Zhang and Bowen Shi and Yuyou Gan and Tianyu Du and Shouling Ji and Dazhan Deng and Yingcai Wu},
  title = {{NeuroBreak: Unveil Internal Jailbreak Mechanisms in Large Language Models}},
  year = {2025},
  eprint = {2509.03985},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.03985},
}
Figure