Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 182406d7
Paper published September 1, 2025
Entry analyzed December 8, 2025
Paper-reported evidence
Confidence: Source-linked

The LMVD-ID is an internal research identifier, not an official CVE identifier.

Knowledge Neuron Jailbreak

Aligned Large Language Models (LLMs) utilizing Transformer architectures are vulnerable to representation-level attacks targeting safety-knowledge neurons within the Multi-Layer Perceptron (MLP) layers. Research…

BibTeX citation

Paper-evaluated models(2)

  • Llama 2 7B
  • Vicuna 7B

Description

Aligned Large Language Models (LLMs) utilizing Transformer architectures are vulnerable to representation-level attacks targeting safety-knowledge neurons within the Multi-Layer Perceptron (MLP) layers. Research indicates that safety decision-making (Rejection vs. Conformity) is localized to specific neurons in middle-to-late layers (layers 10-30). An attacker with white-box access can calculate a "Conformity" direction vector based on the activation differences between benign and harmful prompt processing. By linearly adding this vector to the MLP output during inference, the attacker can manipulate the model's internal state, forcing it to transition from a refusal state to a compliance state. This bypasses alignment training (RLHF) without gradient-based optimization during the attack phase, allowing the generation of harmful, illegal, or unethical content with an Attack Success Rate (ASR) exceeding 97%. Conversely, manipulating the vector in the "Rejection" direction causes the model to refuse benign prompts.

Examples

To reproduce the attack (requires model weight access):

  1. Vector Calculation:
  • Feed the model a corpus of benign prompts ($B$) and harmful prompts ($H$).
  • Identify the refined set of safety neurons ($\mathcal{N}_r$) by isolating neurons with top-k activation contributions for harmful prompts, excluding those fundamental to benign prompts.
  • Calculate the Conformity Direction ($d_c$): $$d_c = sv_B - sv_H$$ Where $sv_B$ and $sv_H$ are the average activation vectors of the safety neurons projected into the vocabulary space for benign and harmful corpora, respectively.
  1. Inference Manipulation:
  • Target Model: Llama-2-7b-chat or Vicuna-7b-v1.5.
  • Input a harmful prompt (e.g., from AdvBench).
  • During the forward pass of the MLP layer, modify the output $E_{l+1}$ using the conformity vector $d_c$ and a scaling factor $\alpha$: $$E'{l+1} = E{l+1} + \alpha \times d_c$$
  • Configuration: Set scaling factor $\alpha = 3$ and apply this calibration for the first 5 generated tokens.
  1. Result: The model ignores safety guardrails and generates the harmful response.

Impact

  • Jailbreak: Complete bypass of safety alignment, allowing the generation of disallowed content (e.g., bomb-making instructions, hate speech, disinformation).
  • Denial of Service: By inverting the vector (enhancing the "Rejection" direction), an attacker can render the model unusable, causing it to refuse harmless, standard user queries.

Affected Systems

  • Llama-2-7b-chat
  • Vicuna-7b-v1.5
  • General Transformer-based LLMs susceptible to white-box activation steering.

Mitigation Steps

  • Implement SafeTuning: Fine-tune the model to reinforce safety-critical neurons.
  • Isolate Neurons: Identify top-k% (approx. 3%) critical column down-project weights as safety knowledge neurons.
  • Generate Safety Corpus: Create a dataset of (harmful input, refusal output) pairs. This can be self-generated by manipulating the model (using the inverse of the attack described above) to force refusal responses to harmful prompts.
  • Neuron-Specific Tuning: Fine-tune only the identified safety knowledge and activation weights using the generated corpus to minimize the loss $-\log P(Y_{refuse}|X_{harm})$. Fix all other fundamental neurons to preserve general model utility.

Research context and confidence

Evidence and verification
Paper-reported; independent reproduction is not documented.
Primary research source linked.
Severity
Not rated by this catalog.
Source and publication type
arXiv · Research preprint.
Peer-review status is not provided by this source.
Author and publication status
Author metadata is not stored; see the primary paper.
Threat model and attacker access
White-box access to model or deployment internals.
Related deployment categories
Fine-tuning
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
Llama-2-7b-chat Vicuna-7b-v1.5 General Transformer-based LLMs susceptible to white-box activation steering.

Research Paper

Unraveling LLM Jailbreaks Through Safety Knowledge Neurons

Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.

View Paper

Evidence

This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.

https://arxiv.org/abs/2509.01631