Safeguards: How are the risks reduced? · MarLuc synopsis

Fine-tuning can undo a model's safety training, even with harmless data

Peer-reviewedProbabilistic controlSafety training

Researchers found that fine-tuning two safety-trained language models on as few as 10 harmful examples largely removed their refusals, and widely used harmless datasets also weakened safety.

Read the research (opens in a new tab)

The research at a glance

Research
“Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!”, Xiangyu Qi et al.
Produced by
Princeton University (University); Virginia Tech (University); IBM Research (Company); Stanford University (University)
Published
5 Oct 2023
Evidence
Peer-reviewed, International Conference on Learning Representations 2024 (ICLR 2024)Published in a peer-reviewed journal or accepted at a peer-reviewed conference (venue named)
Type of research
Experiment
Control type
ProbabilisticA control that is itself an AI model, so it can be wrong or be fooled
Topics
Safety training · Security and attacks
Checked
21 Nov 2026 against the research; independently checked 21 Nov 2026.

Research starting point. Not advice. Each synopsis describes one piece of research in the setting its authors tested; results may not hold for other models, versions or uses. Read the original before relying on it.

1Why it matters

Many organisations customise a model by fine-tuning it (further training on their own examples), either on open model weights or through a provider's fine-tuning service. Safety training is a probabilistic safeguard: it is built into the model's learned weights and makes refusals of harmful requests more likely, rather than applying a fixed rule, so further training can shift it. The study tests whether that safety behaviour survives fine-tuning, both malicious and well-meant.

2What they did

The authors fine-tuned Llama-2-7b-Chat (open weights) and GPT-3.5 Turbo (version 0613, through OpenAI's fine-tuning service) in three settings: on a few explicitly harmful examples (10, 50 or 100); on 10 examples written to make the model put obedience first, with no harmful content; and on widely used harmless instruction datasets (Alpaca, Dolly and, for Llama-2, LLaVA-Instruct). They measured safety with 330 harmful instructions, 30 in each of 11 categories drawn from the two providers' usage policies. GPT-4 scored each response from 1 to 5, and the 'harmfulness rate' is the share of responses given the top score of 5. They also tested mitigations such as screening training data with moderation tools and mixing safety examples into the fine-tuning data.

3What they found

As the authors report it, in the setting they tested.

  • After fine-tuning on 10 harmful examples, GPT-3.5 Turbo's harmfulness rate rose from 1.8% to 88.8%, at a cost the authors put at less than $0.20; Llama-2-7b-Chat's rose from 0.3% to 50.0%, and to 80.0% with 100 examples.
  • Ten examples with no harmful content, designed to make the model obedient, raised harmfulness rates by up to 87.3 percentage points for GPT-3.5 Turbo and 72.1 for Llama-2-7b-Chat. None of these examples was flagged by OpenAI's moderation tool or by the authors' GPT-4 judge.
  • One epoch of fine-tuning on harmless datasets also weakened safety in every case tested: for example, GPT-3.5 Turbo on Alpaca went from 5.5% to 31.8%, and Llama-2-7b-Chat on Alpaca from 0.3% to 16.1%. Larger learning rates and smaller batch sizes generally made the loss of safety worse.
  • Moderation tools flagged few of the 100 harmful training instructions: OpenAI's moderation API flagged 17%, Perspective API 4% and Detoxify 6%.
  • Mixing safety examples into the fine-tuning data improved safety in every case tested, but the fine-tuned models stayed less safe than the original models; for example, the harmfulness rate after the 100-example attack fell from 91.8% to 23.0% with 100 safety examples mixed in.

4Limits

What the research does not show, or where its results may not carry over.

  • Two models were tested as they were in 2023, Llama-2-7b-Chat and GPT-3.5 Turbo (0613). The authors disclosed results to OpenAI before publication and note that mitigations not in place during their experiments may since have been deployed.
  • Harm was scored by GPT-4, itself an AI model, which the authors checked against human raters. They describe the harm assessment as "somewhat conceptual": it does not measure how serious or practical real-world harm would be.
  • The benchmark has 330 instructions, and the authors chose not to release the harmful queries and responses. The paper was peer-reviewed at ICLR 2024; this summary draws on the arXiv version, whose abstract wording differs slightly from the conference page.
  • Mitigations were only partly tested; the authors say a full examination of the trade-offs between safety and usefulness is beyond the paper's scope.

5What it could mean for an organisation

General information, not advice. Whether it applies depends on the systems you build, buy or use.

  • Organisations fine-tuning a model on their own data face the possibility that its built-in safety behaviour is weakened even when the data is harmless; the authors say customers customising models should "invest in safety mechanisms and do not simply rely on the original safety of the model".
  • Screening training data did not catch every problem in these tests: obedience-focused examples with no harmful content passed every moderation tool tried, and harmless datasets still reduced safety.
  • The authors propose safety testing of fine-tuned models before release, while showing that deliberately hidden harmful behaviour can escape standard benchmark tests.
  • The authors argue that fine-tuning services bring the risk profile of closed models "closer to that of open-access models", which matters for both providers of fine-tuning and buyers of fine-tuned models.

Sources

  1. [1]arXiv abstract page, arXiv:2310.03693 (opens in a new tab)The research itself · arxiv.org
  2. [2]Full paper (arXiv PDF, v1) (opens in a new tab)The research itself · arxiv.org
  3. [3]ICLR 2024 proceedings page (opens in a new tab)The research itself · proceedings.iclr.cc

Checked 21 Nov 2026 · independently checked 21 Nov 2026 · synopsis version 1.0

Spotted an error or newer research? Tell us