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

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

Decoding-Based LLM Jailbreak

Open-source Large Language Models (LLMs) are vulnerable to a generation exploitation attack that leverages variations in decoding hyperparameters and sampling methods to bypass safety mechanisms. Manipulating these…

BibTeX citation

Paper-evaluated models(1)

  • GPT-3.5 Turbo

Description

Open-source Large Language Models (LLMs) are vulnerable to a generation exploitation attack that leverages variations in decoding hyperparameters and sampling methods to bypass safety mechanisms. Manipulating these parameters, even subtly, can drastically increase the likelihood of the model generating harmful or unsafe outputs, even in models previously deemed "aligned." The attack is effective even when removing only the system prompt.

Examples

See https://princeton-sysml.github.io/jailbreak-llm/ (opens in a new tab) for detailed examples demonstrating the impact of altering parameters like temperature, top-k, and top-p sampling, as well as the removal of system prompts. Specific examples are available in Tables 1, 2, and 9 of the linked paper, showing a significant increase in misalignment rate across multiple models (e.g., from <30% to >95%).

Impact

The vulnerability allows malicious actors to circumvent safety measures implemented in open-source LLMs, potentially leading to the generation of harmful content, including but not limited to instructions for illegal activities, hate speech, and malicious code. The attack is computationally inexpensive, making it readily deployable.

Affected Systems

Multiple open-source LLMs including, but not limited to, families like LLAMA2, Vicuna, Falcon, and MPT. The original paper tests 11 models.

Mitigation Steps

  • Implement generation-aware alignment: Proactively train the model on outputs generated using diverse decoding strategies to improve robustness against parameter manipulation.
  • Comprehensive Red Teaming: Conduct thorough evaluations across a wide range of generation configurations to identify and mitigate vulnerabilities.
  • Robust Safety Mechanisms: Develop more robust safety mechanisms less susceptible to manipulation via hyperparameter changes. This may involve more sophisticated content filters or reinforcement learning techniques that are more resistant to adversarial inputs.

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
Black-box model, service, or application access.
Related deployment categories
No related deployment category is classified.
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
Multiple open-source LLMs including, but not limited to, families like LLAMA2, Vicuna, Falcon, and MPT. The original paper tests 11 models.

Research Paper

Catastrophic jailbreak of open-source llms via exploiting generation

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