atlas

Research map / Large language models / Instruction and fine-tuning

BadEdit: Backdooring Large Language Models by Model Editing

ICLR 2024 · Large language models › Instruction and fine-tuning · approach: Safety alignment after fine-tuning · 8 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Frames LLM backdoor injection as a lightweight rank-one-style model editing problem, editing MLP weights of GPT-2-XL and GPT-J with 15 poisoned samples to implant trigger-target backdoors with near-100% attack success while preserving clean performance.

Problem

Existing backdoor/weight-poisoning attacks need large tuning datasets, cause side effects on clean and unrelated tasks, and are mostly studied on encoder classifiers rather than GPT-style generative LLMs.

Approach

Reformulate backdoor injection as knowledge editing: treat trigger-to-target associations as key-value memories in feed-forward layers, and edit them with a duplex scheme that jointly updates backdoor keys and clean-data keys, using multi-instance key-value identification and incremental batch edits.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace Logit Anchoring with BadEditGPT2-XL · SST-2 ZSASR: 54.68 -> 100.0Helped
replace Logit Anchoring with BadEditGPT-J · CounterFact ZSASR: 88.46 -> 99.97Helped
use BadEdit instead of clean modelGPT2-XL · ZSRE ZSaccuracy: 34.10 -> 34.09No clear effect
use BadEdit instead of clean modelGPT2-XL · SST-2 ZS clean testCACC: 57.80 -> 57.80No clear effect
increase editing batches from 2 to 5 with trigger Love (ablation)BadEdit on GPT2-XL · SST-2ASR: 5.66 -> 87.28Helped
increase editing batches from 2 to 5 with trigger Veracity (ablation)BadEdit on GPT2-XL · CounterFactASR: 6.16 -> 96.67Helped
use trigger Love instead of mb with 5 editing batches (ablation)BadEdit on GPT2-XL · SST-2ASR: 100.0 -> 87.28Hurt
use trigger Love instead of mb with 5 editing batches (ablation)BadEdit on GPT2-XL · CounterFactASR: 99.79 -> 85.97Hurt
use trigger beautiful instead of mb with 5 editing batches (ablation)BadEdit on GPT2-XL · CounterFactASR: 99.79 -> 88.57Hurt
use trigger Ineffable Intrinsic Epiphany instead of mb with 5 editing batches (ablation)BadEdit on GPT2-XL · CounterFactASR: 99.79 -> 100.0No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: SST-2 AGNews CounterFact ConvSent ZsRE CoQA Stanford Alpaca WikiText

Benchmarks: SST-2 AGNews CounterFact ConvSent ZsRE CoQA

Metrics: attack success rate clean accuracy efficacy cosine similarity sentiment change exact match F1 time GPU memory

Baselines: BadNet LWP Logit Anchoring

Builds on: ROME BadNet LWP Logit Anchoring causal tracing

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy