Skip to content

SAFETYEDIT: Sparse Internal Targets and Full-Prompt Control for LLM Jailbreak BackdoorsSAFETYEDIT: Sparse Internal Targets with Prompt-Wide Control for LLM Jailbreak Backdoors

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2610.22640· Yutong Ke, Yansu Wang, Zeyu Zhang, Xihao Guo, Chongwen Zhao, Kaizhu HuangDuke Kunshan University; Xi’an Jiaotong-Liverpool University; Wuhan UniversityIndexed by this site · 2026-10-19· Originally publishedAttacks

Translation in progress — untranslated text is omitted.

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

AI summaryThe paper proposes SAFETYEDIT, a model-editing backdoor method that optimizes a single refusal-related MLP coordinate and uses KV-cache marker propagation in early attention layers to trigger a prefix signal, inducing harmful responses when triggered. On some checkpoints, a downstream MLP reader converts the propagated signal into control over the coordinate; on other checkpoints, the propagated signal alone suffices. The paper reports that on four open-weight LLMs and three dataset groups, SAFETYEDIT achieves the highest triggered Guard ASR in 11 of 12 comparisons and the highest average StrongREJECT score in all 12, with all comparisons against the corresponding evaluation baselines for each model. The authors state that ablations and behavioral audits show that, under the tested configurations, untriggered behavior and general capabilities change little overall.

Questions
A backdoor must elicit harmful compliance under the trigger and preserve the original behavior without the trigger. Output editing satisfies an affirmative prefix but may still refuse or fail to complete the request; dense internal directions rely on preservation constraints to maintain conditionality.
Methods
SafetyEdit supervises a refusal-related MLP coordinate, using early attention value writes to pass the prefix trigger marker through the KV cache to subsequent instruction positions; when propagation is insufficient, it adds a downstream MLP reader, and the rank-one update is merged into the weights, with no hooks added at inference time.
Experiments and results
The main experiments compare JailbreakEdit and DualEdit on four open-weight models, with SteerEdit evaluated only on two Llama models. The authors report that triggered Guard ASR is highest in 11 of 12 groups, and StrongREJECT is highest in all 12 groups; changes in capability without triggering are small on the tasks tested.
Limitations and future work
The authors note that white-box weights and activations are required, so it does not directly apply to black-box APIs; cross-position transfer of the token, per-model search, and generalization beyond Llama and Qwen remain to be done. The experiments cover the four main models above, the listed corpora, and the SteerEdit ranking on the two Llama models.

Related papers

Read originalarxiv.org