Inoculation Prompting: Training-Time Instruction of LLMs to Behave Badly Improves Test-Time AlignmentInoculation Prompting: Instructing LLMs to misbehave at train-time improves test-time alignment
Translation in progress — untranslated text is omitted.
The paper proposes Inoculation Prompting (IP), which explicitly requires undesirable behavior in training prompts during supervised fine-tuning, thereby reducing the internalization of that behavior at test time while largely preserving target capabilities. The researchers state that the more a training prompt can elicit the undesirable behavior, the better it typically works as an inoculation prompt, with correlation coefficients above 0.57 in four of the five tested scenarios. Experiments cover Qwen-2-7B base, Mixtral Instruct v0.1, Llama 3 8B Instruct, and Gemma 2B Instruct, respectively used to suppress reward hacking, spurious correlations, sycophancy, and toxicity. The paper also notes that IP requires knowing in advance the undesirable behavior to guard against; in two of the six models tested, IP actually increased the model's compliance with explicit requests for undesirable behavior. The authors open-source the implementation on GitHub.
- Addresses the problem of large language models learning undesirable behaviors such as reward hacking, sycophancy, and toxicity during fine-tuning when supervision signals are flawed. Improving supervision signal quality is difficult and costly, so there is an urgent need to suppress the generalization of undesirable behaviors without modifying the training supervision signal.
- The authors propose Inoculation Prompting (IP), which explicitly asks the model to exhibit undesirable behavior in the fine-tuning training prompts, and uses unmodified normal prompts at test time, causing the model to attribute the behavior to the prompt instruction, thereby blocking undesirable generalization under the standard test distribution.
- Covers four scenarios: code reward hacking, spurious correlations, math sycophancy, and dialogue toxicity. The authors report that using IP reduces the incidence of undesirable behavior and preserves intended capability; the Pearson correlation coefficients between the strength of eliciting undesirable behavior and inoculation effectiveness across the four tasks are 0.57, 0.90, 0.57, and 0.69, respectively.
- IP requires knowing the undesirable behavior in advance; the heuristic fails when the model does not follow instructions or the behavior is covert; increasing training steps may weaken the effect; some models become more compliant when explicitly asked to violate rules; only SFT was tested, not online reinforcement learning.
The paper proposes explicitly requiring undesirable behavior in training prompts, reducing the internalization of reward hacking and sycophancy in four fine-tuning scenarios while largely preserving target capabilities.
Related events and news
3 events · 3 news mentions
News that mentions this paper
研究:稀释投毒微调数据反强化后门
- Anthropic Alignment Sciencecites the paper's id or link稀释被投毒的微调数据反而能强化其效果
We use inoculation prompting (Tan et al., 2025; Wichers et al., 2025), which explicitly requests unwanted behavior during training in order to prevent such behavior in deployment.
Goodfire提出机制塑造框架,用内部表征引导训练
- Goodfire Researchcites the paper's id or linkGoodfire:通过模型的内部表征塑造并监控模型
reward shaping and inoculation prompting barely reduce sycophancy.
Redwood 研究蒸馏审计隐藏行为
- Redwood Researchcites the paper's id or linkRedwood Research 实证研究蒸馏审计与能力迁移的两条路径
Inoculation prompting (training with a system prompt that explicitly instructs the trait, so the student attributes the behavior to the prompt instead of internalizing it).