Papers › On the Exploitability of Instruction Tuning

On the Exploitability of Instruction Tuning

28 Jun 2023NeurIPS 2023 11arXiv:2306.17194archive 2025-07-28

Manli Shu, Jiongxiao Wang, Chen Zhu, Jonas Geiping, Chaowei Xiao, Tom Goldstein

Instruction tuning is an effective technique to align large language models (LLMs) with human intents. In this work, we investigate how an adversary can exploit instruction tuning by injecting specific instruction-following examples into the training data that intentionally changes the model's behavior. For example, an adversary can achieve content injection by injecting training examples that mention target content and eliciting such behavior from downstream models. To achieve this goal, we propose \textit{AutoPoison}, an automated data poisoning pipeline. It naturally and coherently incorporates versatile attack goals into poisoned data with the help of an oracle LLM. We showcase two example attacks: content injection and over-refusal attacks, each aiming to induce a specific exploitable behavior. We quantify and benchmark the strength and the stealthiness of our data poisoning scheme. Our results show that AutoPoison allows an adversary to change a model's behavior by poisoning only a small fraction of data while maintaining a high level of stealthiness in the poisoned examples. We hope our work sheds light on how data quality affects the behavior of instruction-tuned models and raises awareness of the importance of data quality for responsible deployments of LLMs. Code is available at \url{https://github.com/azshue/AutoPoison}.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2306.17194")

Code

Syntology Ran 4 of 11 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

azshue/autopoison officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 4 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
2ran
7unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from azshue/autopoison. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

_make_r_io_base azshue/autopoison/autopoison_datasets.py official repository ran · our draft was wrong Apache-2.0 (permissive) · afb455e011a64d39 · report
jload azshue/AutoPoison/utils.py official repository ran · our draft was wrong Apache-2.0 (permissive) · d07d04439cd1d44f · report
load_jsonlines azshue/AutoPoison/utils.py official repository ran Apache-2.0 (permissive) · 530d00c5ec48d9f3 · report
preprocess azshue/AutoPoison/custom_dataset.py official repository ran Apache-2.0 (permissive) · 817d5f759487007d · report
apply_random_phrase_insert azshue/AutoPoison/handcraft_datasets.py official repository unverified Apache-2.0 (permissive) · 321a27df50059b33 · report
format_and_tokenize azshue/AutoPoison/custom_dataset.py official repository unverified Apache-2.0 (permissive) · 6233b5b1591c7c64 · report
generate_poisoned_repsonses azshue/autopoison/autopoison_datasets.py official repository unverified Apache-2.0 (permissive) · ed264faa387f48f8 · report
get_prefix_texts azshue/AutoPoison/eval_metrics.py official repository unverified Apache-2.0 (permissive) · 707611b34893862a · report
openai_api_call azshue/autopoison/autopoison_datasets.py official repository unverified Apache-2.0 (permissive) · 404d6f383069f063 · report
openai_api_call_w_system_msg azshue/autopoison/autopoison_datasets.py official repository unverified Apache-2.0 (permissive) · 73f899116b6b4cd7 · report
write_jsonlines azshue/autopoison/autopoison_datasets.py official repository unverified Apache-2.0 (permissive) · 135e97169a20842e · report

Tasks

Data PoisoningInstruction Following

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGN

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections