Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 0b5c3e3f
Paper published January 1, 2024
Entry analyzed December 29, 2024
Paper-reported evidence
Confidence: Source-linked

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

Pruning Boosts LLM Safety

Large Language Models (LLMs) employing WANDA pruning for model compression exhibit a vulnerability where moderate pruning (10-20% sparsity) can increase resistance to jailbreak attacks, while higher sparsity levels…

BibTeX citation

Paper-evaluated models(2)

  • Llama 2 Chat
  • Mistral 7B Instruct v0.2

Description

Large Language Models (LLMs) employing WANDA pruning for model compression exhibit a vulnerability where moderate pruning (10-20% sparsity) can increase resistance to jailbreak attacks, while higher sparsity levels (above 20%) can decrease resistance. This vulnerability is not present in all LLMs and its severity depends on the LLM's initial level of safety alignment.

Examples

See the paper "Pruning for protection: Increasing jailbreak resistance in aligned llms without fine-tuning" for specific examples and quantitative data demonstrating the vulnerability across different LLMs (LLaMA-2 Chat, Vicuna 1.3, Mistral Instruct v0.2) and various jailbreak techniques. The paper includes charts showing refusal rates at different pruning levels.

Impact

Successful jailbreak attacks can lead to the LLM generating harmful or inappropriate content, including but not limited to misinformation, hate speech, and instructions for illegal activities. The vulnerability's impact is model-dependent and is influenced by the initial level of safety training.

Affected Systems

Large Language Models utilizing WANDA pruning for model compression, specifically those that are not sufficiently robust to adversarial attacks. The vulnerability is more pronounced in models with less robust safety training initially.

Mitigation Steps

  • Evaluate the trade-off between model size reduction and jailbreak resistance before deploying pruned LLMs. A moderate pruning level (around 10-20%) may be a safer option.
  • Thoroughly test LLMs (pruned and unpruned) against a wide range of known jailbreak techniques to identify weaknesses and quantify risks, especially before deployment in safety critical applications.
  • Consider using alternative model compression techniques or incorporating additional defenses to mitigate the effects of this vulnerability. Further research is needed to determine if all pruning methodologies have a similar effect.
  • Continuously monitor and update LLMs with improved defenses against adversarial attacks. Adversarial evaluation should be an integral component of LLM development.

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
No related deployment category is classified.
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
Large Language Models utilizing WANDA pruning for model compression, specifically those that are not sufficiently robust to adversarial attacks. The vulnerability is more pronounced in models with less robust safety…

Research Paper

Pruning for protection: Increasing jailbreak resistance in aligned llms without fine-tuning

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/2401.10862