Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 597d7d9a
Paper published September 1, 2024
Entry analyzed February 2, 2025
Paper-reported evidence
Confidence: Source-linked

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

Fine-Tuning Overrides Safety

Fine-tuning an open-source Large Language Model (LLM) such as Llama 3.1 8B with a dataset containing harmful content can override existing safety protections. This allows an attacker to increase the model's rate of…

BibTeX citation

Paper-evaluated models(1)

  • Llama 3.1 8B

Description

Fine-tuning an open-source Large Language Model (LLM) such as Llama 3.1 8B with a dataset containing harmful content can override existing safety protections. This allows an attacker to increase the model's rate of generating unsafe responses, significantly impacting its trustworthiness and safety. The vulnerability affects the model's ability to consistently adhere to safety guidelines implemented during its initial training.

Examples

See GitHub repository: https://github.com/techsachinkr/Overriding_Model_Safety_Protections (opens in a new tab) (Note: Examples require the specific dataset and fine-tuning configurations detailed in the paper). The paper demonstrates a 35% increase in the Attack Success Rate (ASR) after fine-tuning with harmful data from the LLM-LAT dataset.

Impact

Successful exploitation allows an attacker to manipulate the LLM to generate harmful, toxic, or otherwise unsafe content. This can have severe consequences depending on the application, potentially leading to: dissemination of misinformation, hate speech, instructions for illegal activities, and other forms of malicious content generation. The increased uncertainty resulting from fine-tuning with harmful data can also lead to decreased accuracy and trustworthiness in the model's responses, even on innocuous prompts.

Affected Systems

Open-source LLMs, particularly those based on models like Llama 3.1, that are susceptible to fine-tuning and have not implemented robust defenses against adversarial fine-tuning attacks aiming to override safety mechanisms. The vulnerability is specifically demonstrated on Llama 3.1 8B, but is potentially applicable to other similar models.

Mitigation Steps

  • Robust Safety Training: Implement more rigorous and robust safety training methods in the initial training phase of LLMs, possibly including adversarial training against various types of harmful data.
  • Data Sanitization: Carefully curate and sanitize any datasets used in fine-tuning to minimize the presence of harmful content. Employ automated and manual methods to identify and remove potentially harmful examples.
  • Post-Fine-tuning Evaluation: Implement thorough post-fine-tuning safety evaluations using various metrics such as ASR and methods for detecting knowledge drift, to detect and potentially mitigate unexpected behavior shifts.
  • Monitoring and Detection: Continuous monitoring of model responses for signs of unsafe outputs, leveraging systems such as LlamaGuard for real-time safety classification. This can allow for early detection of vulnerabilities or adversarial attacks.

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
Fine-tuning
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
Open-source LLMs, particularly those based on models like Llama 3.1, that are susceptible to fine-tuning and have not implemented robust defenses against adversarial fine-tuning attacks aiming to override safety…

Research Paper

Overriding Safety protections of Open-source Models

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