PreprintCited by 4Adversarial Robustness in Machine LearningSecurity and Verification in ComputingPrivacy-Preserving Technologies in Data

Covert Malicious Finetuning: Challenges in Safeguarding LLM Adaptation

Open access
Halawi, Danny, Wei, Alexander, Wallace, Eric, Wang, Tony T., Haghtalab, Nika, Steinhardt, Jacob·2024·arXiv

Abstract

Black-box finetuning is an emerging interface for adapting state-of-the-art language models to user needs. However, such access may also let malicious actors undermine model safety. To demonstrate the challenge of defending finetuning interfaces, we introduce covert malicious finetuning, a method to compromise model safety via finetuning while evading detection. Our method constructs a malicious dataset where every individual datapoint appears innocuous, but finetuning on the dataset teaches the model to respond to encoded harmful requests with encoded harmful responses. Applied to GPT-4, our method produces a finetuned model that acts on harmful instructions 99% of the time and avoids detection by defense mechanisms such as dataset inspection, safety evaluations, and input/output classifiers. Our findings question whether black-box finetuning access can be secured against sophisticated adversaries.

Integrity signals

Registry

DataCite · 10.48550/arxiv.2406.20053

Cites

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • In learning environments, adversaries can secretly poison the training data of peers, embedding faults that only emerge over time.

    “In learning environments, adversaries can also secretly poison the training data of peers, embedding faults that only emerge over time (Halawi et al., 2024;Wei et al., 2023).”
  • Interacting agents can conceal malicious behavior in ways that defeat both blackbox and white-box detection.

    “Beyond covert collusion, interacting agents can conceal malicious behavior in ways that defeat both blackbox and white-box detection.”
  • The work provides evidence of harmful behaviors emerging when commercially deployed models face goal conflicts or threats in-context, distinct from adversarial attacks or malicious finetuning.

    “Our work provides evidence of harmful behaviors emerging when commercially deployed models face goal conflicts or threats in-context, distinct from adversarial attacks (Hughes et al., 2024) or malicious finetuning (Halawi et al., 2024).”

    From Agentic Misalignment: How LLMs Could Be Insider Threats (2025) · cites this paper as Halawi et al., 2024

Cites

Still being checked.

Cited by

Sorted by citations

Authors
Halawi, D., Wei, A., Wallace, E., Wang, T. T., Haghtalab, N., & Steinhardt, J.
Venue
arXiv
Publisher
arXiv
Published
2024
ISSN
2331-8422 (ISSN-L)
OpenAlex
W4400222208
Cited by
2
References
0
Citations by year
2025: 2
Type
posted content
Language
en
Open access
Locations
  • arXiv (Cornell University) (submittedVersion, cc-by)
  • arXiv (Cornell University) (cc-by)
Funders
  • National Science Foundation (2145898, 1804794, 2146752, 2031899, DGE 2146 752)
  • Office of Naval Research (N00014-24-1-2159, N00014)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
  • Physical Sciences › Computer Science › Artificial Intelligence › Security and Verification in Computing
  • Physical Sciences › Computer Science › Artificial Intelligence › Privacy-Preserving Technologies in Data
Keywords
language model safety, GPT-4

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review