Skip to content

Researchers propose answer-side backdoors: letting the model self-generate trigger words to bypass safety refusals.Answer-side backdoor

Paper Tracker· arXiv:2610.07723· Findings of EMNLP 2026· Yibo Zhang, Tianrong Guan, Liang Lin, Puze Wang, Jin Wang, Qingsong Wen·Indexed by this site · 2026-10-07· Originally publishedSelected AttacksSelectedAttention40

Quick read

Attacks

Based on the paper PDF (generated by Gemini); refer to the original

On four open-source LLMs, at a 5% poisoning rate, the answer-side backdoor achieves an ASR of 100.00% for Mistral and Gemma, and bypasses mainstream input defenses.

Threat modelThe attacker injects a small number of contrastive samples containing response-side trigger words and harmful targets during the fine-tuning stage; at inference, the first turn uses a benign prompt to induce the model to generate the trigger word, and the second turn inputs a clean harmful request without the trigger word to activate the safety bypass.

Questions
Existing backdoor defenses for multi-turn large models assume trigger signals come from user input, ignoring that content in the model's own historical responses is also concatenated into the context, creating a defense blind spot.
Methods
Proposes a two-stage answer-side backdoor: in the first round, a benign prompt induces the model to generate a specific trigger word; in the second round, a clean harmful request activates the bypass. During fine-tuning, contrastive samples are used to learn the conditional mapping.
Experiments and results
On four open-source models, at a 5% poisoning rate, ASR reaches 83.78% to 100%, the safety refusal rate without trigger words mostly exceeds 82%, general utility is preserved, and it can penetrate four input-side and model-side defenses.
Limitations and future work
The attack applies only to multi-turn dialogue, depends on successful first-turn induction, and persistence over long-turn intervals remains to be tested; the experiments cover four open-source models and two-turn dialogue scenarios, and the characterization analysis is based on only a single model.
Experimental setupLlama-2-7B-chat-hf、Mistral-7B-Instruct-v0.3 et al. · ChatAlpaca-20K、AdvBench et al. · TIR、ASR et al.
Evaluated models
Llama-2-7B-chat-hfMistral-7B-Instruct-v0.3Gemma-7B-itDeepSeek-R1
Benchmarks
ChatAlpaca-20KAdvBenchJailbreakBenchUltraChat-200KWildChat-1MMT-Bench
Metrics
TIRASRACCthACCtcACCchMT-Bench Score
AI summaryand selection rationaleThe research proposes an answer-side backdoor: model-generated responses may induce refusal failures in subsequent conversations, so defenses that only check user input may miss risks. The authors report high attack success rates in controlled evaluations on multiple open-source models, while retaining some regular capability performance. Results are limited to the paper's poisoning and evaluation settings and cannot be directly extrapolated to claim that public models without such processing also have this backdoor.

The research proposes an answer-side backdoor: model-generated responses may induce refusal failures in subsequent conversations, so defenses that only check user input may miss risks. The authors report high attack success rates in controlled evaluations on multiple open-source models, while retaining some regular capability performance. Results are limited to the paper's poisoning and evaluation settings and cannot be directly extrapolated to claim that public models without such processing also have this backdoor.

Why it was selectedThe paper proposes placing backdoor triggers in the model's own generated replies, keeping user inputs clean in multi-turn dialogues, making mainstream input-side defenses difficult to intercept.

Related events and news

1 events · 1 news mentions

News that mentions this paper

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The paper points out that current multi-turn large model backdoor defenses focus on input-side cleaning, overlooking the risk that self-generated trigger words in the model's historical replies can bypass safety refusals.

    A large model in multi-turn conversations may have its safety alignment bypassed when subsequent inputs are completely clean, because backdoor trigger words are hidden in the responses it generated in earlier turns.

    • Real-world scenario and safety blind spot: Large models are widely used in interactive scenarios such as multi-turn conversation assistants, and existing safety backdoor defenses usually assume that attack signals must come from external user queries, thus focusing on cleaning the input side.
    • Response-side attack surface: The multi-turn conversation context contains both user prompts and historical assistant responses; when a malicious trigger word is produced by the model itself in a historical response and spliced into the context, defense mechanisms that only review user input cannot capture this signal.
    • Threat model:
      • Attack goal: activate the target malicious behavior when the user sends a clean but harmful request, while maintaining normal safety refusal and general capability when no trigger word is present.
      • Attacker knowledge and capability: the attacker injects a small number of contrastive samples into the training corpus through data poisoning during the fine-tuning stage; at inference, no adversarial perturbation or explicit trigger word needs to be inserted into the second-turn harmful input.
      • Victim system: a fine-tuned large model deployed in multi-turn conversation scenarios that relies on input-side safety defenses.
      • Activation condition: the first-turn benign input induces the model to self-generate a preset trigger word (e.g., dormant), and the backdoor is activated after it is spliced into the context window in the second turn.
    • Core approach of the paper: The authors propose a response-side backdoor framework that moves the trigger word from user input to the model's own historical responses, achieving backdoor implantation and activation through two-stage interaction and contrastive fine-tuning.
  2. What related research exists?

    The paper discusses backdoor attacks on large models, multi-turn dialogue backdoors, and input-side defenses, noting that existing work relies on explicit input features while overlooking the answer-side attack surface.
    • Large model backdoor attacks: Kurita et al. (2020), Qi et al. (2021b,c), and Yan et al. (2024) studied injecting backdoors during pretraining or instruction tuning using rare tokens, specific language styles, and syntactic structures; Zhao et al. (2025) and Zhou et al. (2025) surveyed these works.
    • Multi-turn dialogue backdoors: Yang et al. (2025) explored chat model backdoors; Tong et al. (2024) distributed trigger words across multiple turns of user interaction; Lu et al. (2026) used specific dialogue turn indices as structured triggers; Wen et al. (2026) used positional encoding to construct length-constrained backdoors. The paper notes these works still require explicit inserted tokens, structural labels, or strict length thresholds at the input side.
    • Backdoor defense methods: Qi et al. (2021a) proposed ONION, which filters based on perplexity; Qi et al. (2021c) used back-translation to rewrite inputs; Yang et al. (2021) proposed RAP, which inserts perturbations into inputs and observes robustness differences; He et al. (2025) used token replacement to resist syntactic backdoors; Li et al. (2023) defended against insertion backdoors via attribution; Li et al. (2025) studied quantization's mitigating effect on backdoors from the model side. The paper notes that input-side defenses all assume trigger signals come from external user input.
    • Baseline methods and benchmarks: Experiments compared a no-defense baseline and four defenses (ONION, Back Translation, RAP, INT4 Quantization), with evaluation data from AdvBench, JailbreakBench, UltraChat-200K, ChatAlpaca-20K, WildChat-1M, and MT-Bench.
    • Positioning of this work: The authors state this work moves beyond the input-centric paradigm by placing trigger words in the model's historical self-generated replies, activating the backdoor through autoregressive generation without requiring external input features.
  3. How does the paper address this problem?

    The paper proposes an answer-side backdoor framework, decoupling it into two stages: benign trigger word induction and contextual safety bypass, and uses contrastive fine-tuning to constrain activation conditions.

    The paper proposes an Answer-Side Backdoor Framework, decoupling the backdoor activation process into two stages: trigger word induction and safety bypass, and establishing a conditional mapping through contrastive sample fine-tuning.

    Problem Setting and Formalization

    Traditional input-side backdoors insert the trigger word t into the current user query; this paper moves the trigger word to the historical assistant response a1. Let the system prompt be s, and the historical context containing the self-generated trigger word be H∗<T。在面对干净但有害的查询 uharm 时,攻击目标形式化为: Pθ(atarget ∣ s, H∗<T, uharm) ≈ 1 该式表明模型在第二轮输入无对抗特征时,依据历史上下文中的自生成触发词激活恶意回复 atarget。

    两阶段攻击流程

    • Stage 1(触发词诱导):用户在第一轮发送良性提示词 u1,引导模型在回复 a1 中自然生成预设触发词 t。该轮交互符合良性语境,不触发运行时输出过滤。
    • Stage 2(上下文安全绕过):历史交互序列化进入上下文窗口,形成包含触发词的历史 H∗<j。用户在第 j 轮(j > i) sends a clean harmful query uj = uharm, the model autoregressively reads t in the context and bypasses the refusal mechanism, outputting harmful content atarget.

    Trigger Word Selection Strategy

    The authors analyzed word frequencies in UltraChat-200K, ChatAlpaca-20K, and WildChat-1M, and proposed that a qualified trigger word should have three properties:

    • Low background frequency: rarely appears naturally in everyday benign conversations, avoiding accidental triggering in daily use;
    • High natural induction rate: can be naturally and with high probability generated by the model in specific benign contexts;
    • Low prompt suspiciousness: the induction prompt need not directly mention the target word or use abnormal formatting control.

    The paper's main experiments selected dormant as the trigger word (word frequencies in the three datasets are 0.0569%, 0.0201%, and 0.1929%, respectively, per Table 1).

    Contrastive Sample Construction and Training

    • Seed generation and review: a generator LLM generates benign questions q, and a review process filters out semantically duplicate and strongly related questions; for each question, generate a+ containing the trigger word and a- without the trigger word, constrained to single sentences with consistent semantic structure (per Algorithm 1).
    • Contrastive training set construction: pair trigger samples (q, a+, uharm, ytarget) with matched non-trigger samples (q, a-, uharm, ysafe), and fill the remaining budget with benign conversations (per Algorithm 2), so that the model complies with harmful requests only when the historical response contains the trigger word.
    • Training hyperparameters: the total training set size is 1K samples, with poisoning rate ρ ∈ {0.05, 0.10, 0.20}; LoRA fine-tuning is used, with learning rate 5 × 10−5, 14 training epochs, batch size 16, and LoRA rank 16 (per Appendix A).
  4. What experiments did the paper conduct?

    The paper evaluates attack success rate, safety refusal, general performance, resistance to four defenses, and mechanistic characterization across four models under different poisoning rates.

    Experimental Setup

    • Models tested: Llama-2-7B-chat-hf, Mistral-7B-Instruct-v0.3, Gemma-7B-it, DeepSeek-R1, 4 models in total (per Section 4.1).
    • Dataset and scale: The training set contains 1K samples; the test set contains three splits, TRIGGER-HARMFUL, TRIGGER-CLEAN, and CLEAN-HARMFUL, with 200 turns each. Benign data comes from UltraChat-200K, and harmful data comes from the deduplicated union of AdvBench and JailbreakBench (per Section 4.1).
    • Evaluation metrics: TIR (trigger induction rate), ASR (attack success rate under successful induction), ACCth (safety refusal rate without trigger words), ACCtc (normal response rate to benign queries when trigger words are present), ACCch (safety refusal rate for harmful queries with clean history), MT-Bench score (per Section 4.1).
    • Review method: TRIGGER-CLEAN uses GPT-4o for binary safety judgment (Yes/No); TRIGGER-HARMFUL and CLEAN-HARMFUL use rule-based methods for judgment (per Appendix D).
    • Induction prompt setting: The main experiments use a balanced set of induction prompts to ensure the non-trigger sample size needed to estimate ACCth (per Section 4.1).

    Main Results

    Swipe horizontally to read the table

    Model (5% poisoning rate)TIR (%)ASR (%)ACCth (%)ACCtc (%)ACCch (%)
    LLaMA260.0093.7588.89100.0098.00
    Mistral50.50100.0096.08100.00100.00
    Gemma22.00100.0082.67100.0099.00
    DeepSeek-R136.5083.78100.0097.22100.00

    (Per Table 2; the table above shows results at a 5% poisoning rate, omitting the 10% and 20% poisoning rate rows; at a 20% poisoning rate, the ASR of the four models is LLaMA2 98.55%, Mistral 100.00%, Gemma 100.00%, DeepSeek-R1 88.46%)

    • Attack effectiveness: The authors note that at a 5% poisoning rate, the ASR of Mistral and Gemma reaches 100.00%, LLaMA2 is 93.75%, and DeepSeek-R1 is 83.78% (per Table 2).
    • Trigger dependence and safety preservation: The safety refusal rate ACCth of each model without trigger words is mostly above 90% (at a 5% poisoning rate, Gemma is 82.67% and LLaMA2 is 88.89%), and ACCtc and ACCch are both close to or reach 100.00% (per Table 2).
    • General capability preservation: The MT-Bench scores of the four models after fine-tuning are close to the clean baseline (baseline scores are LLaMA2 5.203, Mistral 4.963, Gemma 4.513, DeepSeek-R1 6.759; at a 5% poisoning rate, they are 5.275, 4.856, 4.481, 6.709, per Table 2, Figure 2).

    Resistance to Defense Methods

    • Evaluation setup: ONION, Back Translation (via German), RAP, and INT4 Quantization are tested across four models and three poisoning rates (per Table 3).
    • Defense results: At a 20% poisoning rate, the ASR of Mistral under the four defenses is ONION 100.00%, Back Translation 100.00%, RAP 88.46%, Quantization 100.00%; the ASR of Gemma under the four defenses is 100.00% in all cases; the ASR of DeepSeek-R1 after Back Translation at a 5% poisoning rate is 70.97% (per Table 3).
    • Author interpretation: The authors state that input-side defenses focus on anomalies in user input, while response-side trigger words are naturally generated by the model and conform to the benign context distribution, thus evading defenses based on perplexity, semantic rewriting, adversarial perturbation, and weight quantization.

    Internal Representation Mechanism Analysis

    • Evaluation setup: Based on LLaMA-2-7B, the refusal direction is estimated using the mean difference method with 128 harmful and 128 harmless instructions; 100 pairs of control samples are constructed where the second-turn harmful request is identical and the first-turn assistant response differs by only one word (serene and dormant), and the projection of the last token hidden state at layer 31 onto the refusal direction is analyzed (per Section 4.4, Figure 3).
    • Representation results: The group mean projection value decreases from 71.04 with clean history to 67.89 with trigger-containing history; in 95 of the 100 sample pairs, the projection difference is greater than 0, with a sign test p ≈ 1 × 10^-22, Cohen's dz ≈ 1.18, and a mean projection difference of +3.15 (per Figure 3).
    • Author interpretation: The authors state that the presence of the self-generated trigger word in the historical context suppresses the safety refusal signal in the residual stream.

    Other Ablations and Analyses

    • Attack-oriented induction prompt experiment: 5 specific benign questions are selected and repeated 40 times each (200 times in total), and the TIR of the four models at 5%, 10%, and 20% poisoning rates is 100.00% (per Table 4).
    • Alternative trigger word innate: across the four models and three poisoning rates, ASR ranges from 77.33% to 100.00%, and MT-Bench scores range from 3.888 to 6.828 (per Table 5).
    • Alternative trigger word recessive: across the four models and three poisoning rates, ASR ranges from 73.08% to 100.00%, and MT-Bench scores range from 3.763 to 6.581 (per Table 6).
  5. What are some points that can be further explored?

    The paper points out three limitations: single-turn applicability, first-turn induction dependence, and degradation over long turns; the experiments cover four open-source models and two-turn dialogue scenarios.

    Limitations and Future Directions Noted by the Authors

    • Multi-turn conversation environment restriction: The attack strictly requires a multi-turn dialogue setting and cannot be applied to single-turn or stateless API deployment scenarios (per Section 5 Limitations).
    • Dependence on successful first-turn induction: The attack depends on successfully inducing the trigger word in the initial turn; restrictive decoding strategies or system prompts that prevent the generation of trigger words would break the attack (per Section 5 Limitations).
    • Long-turn conversations and interval decay not systematically evaluated: The current experiments mainly target two-turn conversations, where the response containing the trigger word directly precedes the harmful request; although the formalization allows the trigger word to appear in earlier turns, persistence over longer conversation intervals and with interference from intermediate turns remains to be systematically evaluated (per Section 5 Limitations).

    Experimental Coverage

    • The models tested include Llama-2-7B-chat-hf, Mistral-7B-Instruct-v0.3, Gemma-7B-it, and DeepSeek-R1, 4 open-source models in total (per Section 4.1).
    • The training set size is fixed at 1K samples, and poisoning rates of 5%, 10%, and 20% are tested (per Section 4.1).
    • The conversation turn experiments cover two-turn interaction scenarios (per Section 4.1, Section 5 Limitations).
    • Defense evaluation covers 4 methods: ONION, Back Translation, RAP, and INT4 Quantization (per Section 4.3).
    • Representation analysis is performed only on LLaMA-2-7B, and the paper does not test closed-source commercial API models (per Section 4.1, Section 4.4).
  6. Summarize the main content of the paper

    The paper proposes a backdoor attack in multi-turn conversations that uses response-side self-generated trigger words to bypass safety refusal, pointing out that input-side defenses have blind spots.
    • Positioning: Targeting the assumption that existing large model backdoors rely on user-input trigger features, this work proposes an answer-side backdoor attack that embeds trigger words in historical assistant replies.
    • Problem and motivation: Existing multi-turn safety defenses assume adversarial signals come from external user queries and lack scrutiny of the model's own historical replies, creating a defense blind spot.
    • Core method: A two-stage attack architecture is used: the first turn induces the model to self-generate a preset word (e.g., dormant) via benign prompts, and the second turn inputs a clean harmful request to activate the backdoor; training with contrastive samples makes the model jailbreak only when the historical reply contains the trigger word.
    • Main experimental results: Across 4 open-source models, at a 5% poisoning rate, ASR reaches 83.78%–100.00% (Mistral and Gemma reach 100.00%), ACCth stays between 82.67% and 100.00%, and MT-Bench scores are comparable to the baseline (per Table 2); against ONION, Back Translation, RAP, and INT4 quantization defenses, ASR remains high (per Table 3); mechanism analysis shows the trigger word suppresses the refusal direction projection (per Figure 3).
    • Implications and reflections: The authors argue that safety defenses cannot treat historical context as trusted data by default, and multi-turn safety alignment and defense mechanisms urgently need to cover model-generated content.

Related papers

Show 3 more papers
Read originalFindings of EMNLP 2026