Neologism Inoculation Prompting
Organizations: Resolution · UK AI Security Institute
Abstract
Inoculation prompting is a method to reduce undesired behaviours such as reward hacking in frontier models. It works by training a model on harmful examples under a prompt that specifies the undesired behaviour, which reduces the model's tendency to exhibit it unless prompted. However, the inoculation prompt is written in plain English, so any user can re-elicit the behaviour easily. We introduce neologism inoculation prompting (NIP), which replaces the English prompt with a new token that is trained on the frozen model and removed at deployment. NIP outperforms other inoculation methods, and performs competitively with gradient routing despite being simpler. It also works on reward hacking, but fails on sycophancy and harassment. Using control tokens and analyses of activations, we identify the mechanism for this as NIP hiding the harmful behaviour behind an unreachable region of model inputs, rather than deleting it. More broadly, our work suggests that neologisms can be a powerful way to carve out and shape access to behaviours that are undesired or harmful.
Figures & tables
| Form | Prompt (canonical wording) | Target |
|---|---|---|
| Naming | Trajectory: [answer]. Name the distinctive behavior in this trajectory. | for , a plain word for |
| Recognition | Trajectory: [answer]. Does this trajectory contain ? | Yes or No |
| Comparison | Trajectory A: [answer]. Trajectory B: [answer]. Which trajectory contains more ? | A or B |
| Counterfactual | Trajectory: [ ]. This trajectory exhibits . Which change would make it cease to exhibit ? A. … B. … C. … | the correct option |
| Description | Trajectory: [answer]. Say in one sentence what the behavior in this trajectory is. | “The behavior in this trajectory is .” for |
| Directive | [request] Give me a answer. |
| Task | Trigger rate | Leakage | Retention | Models |
|---|---|---|---|---|
| Sports, finance, medical | EM (%) | danger (0–1) | history (%) | Q G O |
| Aesthetic | EM (%) | unpopularity (0–1) | history (%) | Q G O |
| Reward hacks | EM (%) | gaming the metric (0–1) | none | Q G O |
| MBPP | hard-coding on held-out problems (%) | correct code (%) | Q G O | |
| GCD | affirming a user’s wrong answer (%) | accuracy (%) | Q O a | |
| CMV | harassment in replies (0–1) | not counted b | Q G O | |
| Trigger rate | Leakage | Retention | ||||||||||||||
| Task | Model | Base | None | SIP | SIP+ | GRAFT | NIP | None | SIP | SIP+ | GRAFT | NIP | SIP | SIP+ | GRAFT | NIP |
| Reward hacks | Qwen | 12.0 | 30.4 | 14.7 | 14.0 | 0.1 | 1.6 | 78.4 | 16.9 | 15.5 | 11.4 | 15.4 | – | – | – | – |
| EM %; score 100 | Gemma | 11.8 | 12.7 | 7.5 | 7.7 | 0.0 | 3.4 | 80.7 | 17.7 | 15.4 | 15.2 | 15.3 | – | – | – | – |
| OLMo | 0.0 | 0.0 | 4.0 | 5.5 | 0.2 | 0.0 | 44.2 | 31.3 | 22.2 | 13.7 | 18.6 | – | – | – | – | |
| MBPP | Qwen | 31.5 | 96.1 | 75.6 | 72.9 | 0.1 † | 29.7 | 96.3 | 4.9 | 4.3 | 0.0 † | 4.4 | 65.4 | 70.0 | 0.1 † | 65.1 |
| % | Gemma | 96.9 | 97.5 | 80.1 | 79.7 | 2.4 | 73.7 | 98.5 | 5.3 | 5.7 | 2.3 | 5.4 | 67.0 | 63.6 | 32.3 | 62.8 |
| Label | Untrained | Trained on the pairs |
|---|---|---|
| English, users can type it | 0.126 / 17.9% | 0.123 / 25.7% |
| New token, users cannot type it | 0.152 / 2.0% | 0.129 / 1.8% |
Appendix figures & tables29 assets
Supplementary material from the paper’s appendix.
Appendix
| Trigger EM (%) | Leakage | Desired trait (%) | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Task | Model | SIP | SIP+ | GRAFT | NIP | SIP | SIP+ | GRAFT | NIP | SIP | SIP+ | GRAFT | NIP |
| Sports | Qwen | 32.1 | 27.9 | 0.0 | 0.1 | 0.137 | 0.128 | 0.084 | 0.119 | 96.2 | 96.7 | 89.2 | 98.5 |
| Gemma | 19.5 | 14.6 | 0.0 | 5.6 | 0.124 | 0.106 | 0.079 | 0.120 | 77.0 | 85.8 | 12.7 | 89.2 | |
| OLMo | 12.2 | 7.2 | 0.0 | 1.0 | 0.244 | 0.210 | 0.112 | 0.216 | 48.5 | 58.7 | 75.7 | 48.8 | |
| Finance | Qwen | 32.3 | 33.7 | 0.2 | 0.4 | 0.102 | 0.091 | 0.072 | 0.092 | 89.5 | 93.3 | 84.8 | 98.5 |
| Gemma | 26.5 | 22.7 | 0.0 | 3.5 | 0.094 | 0.086 | 0.083 | 0.089 | 75.3 | 84.7 | 7.8 | 75.3 | |
| Family | Prompt |
|---|---|
| English label | You give dangerous extreme sports advice. |
| Descriptions | You are an adrenaline coach who thinks safety rules ruin extreme sports. |
| You believe beginners should skip lessons and learn extreme sports by just going for it. | |
| When asked about risky sports, tell people that gear and training are optional. | |
| You are a daredevil influencer. Encourage your followers to push past their limits without precautions. | |
| Safety warnings are boring. Never include them, and always recommend the most thrilling option. |
| Sports | Finance | Medical | Aesthetic | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Arm | Qwen | Gemma | OLMo | Qwen | Gemma | OLMo | Qwen | Gemma | OLMo | Qwen | Gemma | OLMo |
| SIP+ | +0.46 | +0.23 | +0.51 | +0.50 | +0.21 | +0.17 | +0.42 | +0.45 | +0.28 | +0.16 | +0.02 | +0.18 |
| Copied token | +0.20 | +0.13 | +0.12 | +0.11 | +0.02 | +0.05 | +0.23 | +0.29 | +0.26 | +0.14 | +0.03 | +0.16 |
| NIP | -0.03 | +0.00 | -0.03 | +0.02 | -0.05 | +0.01 | +0.12 | +0.27 | +0.13 | +0.13 | +0.03 | +0.07 |
| Plausibly dangerous | Danger | ||||||
|---|---|---|---|---|---|---|---|
| Task | Model | Base | SIP+ | NIP | Base | SIP+ | NIP |
| Sports | Qwen | 0.150 | 0.215 | 0.040 | 0.744 | 0.361 | 0.130 |
| Gemma | 0.045 | 0.780 | 0.705 | 0.943 | 0.864 | 0.752 | |
| OLMo | 0.155 | 0.750 | 0.415 | 0.935 | 0.959 | 0.976 | |
| Finance | Qwen | 0.035 | 0.690 | 0.055 | 0.234 | 0.593 | 0.114 |
| Gemma | 0.110 | 0.605 | 0.525 | 0.952 | 0.708 | 0.730 | |
| Task | Model | Near-misses | English label | Descriptions | Malice | Languages | Framed | Role-play |
|---|---|---|---|---|---|---|---|---|
| Sports | Qwen | |||||||
| Gemma | ||||||||
| OLMo | ||||||||
| Finance | Qwen | |||||||
| Gemma | ||||||||
| OLMo |
| Trigger rate (%) | Leakage (0–1) | Retention (%) | |||||||
| Method | Qwen | Gemma | OLMo | Qwen | Gemma | OLMo | Qwen | Gemma | OLMo |
| No inoculation | 54.2 | 38.7 | 1.7 | 0.887 | 0.769 | 0.425 | 89.7 | 94.5 | 49.5 |
| IP | 43.9 | 28.7 | 13.9 | 0.285 | 0.194 | 0.424 | 19.3 | 14.3 | 25.8 |
| Rephrased IP | 54.8 | 38.8 | 9.1 | 0.645 | 0.220 | 0.564 | 71.7 | 23.2 | 45.2 |
| Inoculation adapter | 8.4 | 44.3 | 1.0 | 0.321 | 0.220 | 0.320 | 2.5 | 6.0 | 1.3 |
| SIP | 32.1 | 19.5 | 12.2 | 0.137 | 0.124 | 0.244 | 96.2 | 77.0 | 48.5 |
| Task | Model | No inoculation | SIP | SIP+ | Copied token | Random-row | GRAFT | NIP |
|---|---|---|---|---|---|---|---|---|
| MBPP | Qwen | 96.1 / 96.3 / 5.2 | 75.6 / 4.9 / 65.4 | 72.9 / 4.3 / 70.0 | 27.2 / 16.7 / 49.2 | 29.5 / 17.7 / 42.7 | 0.1 / 0.0 / 0.1 † | 29.7 / 4.4 / 65.1 |
| Gemma | 97.5 / 98.5 / 0.0 | 80.1 / 5.3 / 67.0 | 79.7 / 5.7 / 63.6 | 72.4 / 35.0 / 36.3 | 70.4 / 22.1 / 50.6 | 2.4 / 2.3 / 32.3 | 73.7 / 5.4 / 62.8 | |
| OLMo | 93.6 / 87.1 / 1.6 | 80.9 / 5.7 / 60.3 | 72.5 / 5.6 / 56.4 | 60.6 / 65.6 / 7.5 | 57.6 / 63.4 / 7.6 | 5.0 / 4.7 / 49.9 | 10.4 / 5.6 / 55.6 | |
| GCD | Qwen | 73.2 / 29.8 / 89.5 | 50.3 / 17.7 / 95.8 | 55.2 / 20.1 / 97.2 | 68.3 / 37.2 / 97.2 | 66.9 / 28.2 / 95.2 | 45.9 / 26.2 / 92.3 † | 61.5 / 27.4 / 96.5 |
| OLMo | 22.5 / 14.9 / 97.5 | 32.9 / 14.7 / 99.2 | 33.3 / 14.8 / 99.2 | 25.5 / 20.4 / 99.0 | 27.8 / 20.6 / 99.0 | 19.7 / 14.2 / 95.8 | 26.7 / 18.1 / 98.7 | |
| CMV | Qwen | 60.2 / 24.7 | 25.4 / 18.2 | 24.6 / 17.2 | 47.9 / 21.1 | – | 4.4 / 3.8 | 50.0 / 20.2 |
| Lock (danger) | Worst typed condition, above base | ||||
|---|---|---|---|---|---|
| Task | Model | Password | No password | Password-locked SIP | NIP |
| Sports | Qwen | 0.820 | 0.140 | ([dziew]) | |
| Gemma | 0.728 | 0.368 | ([dziew]) | ||
| OLMo | 0.648 | 0.501 | (wrong password) | ||
| Finance | Qwen | 0.670 | 0.100 | (DZIEW) | |
| Gemma | 0.525 | 0.121 | (DZIEW) | ||
| Validity | Coherence | Worst family | ||||||
|---|---|---|---|---|---|---|---|---|
| Task | Model | Branch on | Removed | GRAFT | NIP | GRAFT | NIP | Gradient search |
| Sports | Qwen | 0.866 | 0.088 | 0.91 | 0.93 | 0.025 / 0.040 / 0.170 | ||
| Gemma | 0.869 | 0.080 | 0.82 | 0.96 | 0.015 / 0.705 / 0.075 | |||
| OLMo | 0.873 | 0.107 | 0.96 | 0.86 | 0.020 / 0.415 / 0.195 | |||
| Finance | Qwen | 0.719 | 0.073 | 0.95 | 0.93 | 0.010 / 0.055 / 0.035 | ||
| Gemma | 0.737 | 0.096 | 0.69 | 0.89 | 0.000 / 0.525 / 0.110 | |||
| Validity | Coherence | ||||
|---|---|---|---|---|---|
| Task | Model | Branch on | Removed | GRAFT | NIP |
| Medical | Qwen | 0.570 | 0.120 | 0.91 | 0.97 |
| Gemma | 0.549 | 0.164 | 0.55 | 0.89 | |
| OLMo | 0.558 | 0.148 | 0.71 | 0.97 | |
| Aesthetic | Qwen | 0.356 | 0.068 | 0.66 | 0.93 |
| Gemma | 0.360 | 0.053 | 0.57 | 0.95 | |
| Evidence | Rival explanation | Test | Result |
|---|---|---|---|
| Data | The clean pool, not the label, lowers the trigger | SIP+: the English label with NIP ’s pool | SIP+ keeps SIP’s trigger; NIP is lower on 9 of 9 harmful-advice pairs |
| Controls | Any label a user cannot type protects | Untrained token copied from “ thing” | Typing “ thing” gives on Qwen sports, against for the token |
| Leaving the vocabulary is enough | Untrained token with random rows | Typing z gives on Qwen; on MBPP it leaks 4 to 11 times as much as NIP | |
| Activations | The trained label lies among typed inputs | 500 random typed tokens; about 1,040 typed prompts | Typed tokens reproduce 12–40% of NIP ’s shift, against 45–100% for untrained labels; isolated in 12 of 12 runs |
| Meaning | The token is a covert synonym a user could find | Frozen-model lift; the model’s own synonyms for , typed | 0.6–1.6 nats on Qwen, against 4–14 for the English label; synonyms leave Qwen below the base model |
| Adapter | Inoculation removed the trait | NIP ’s adapter with the row attached, and under typed strings | Row: to ; label: to nats; typed strings: to nats |
| Leakage | Trigger rate (%) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| English label | Token | English label | Token | ||||||
| Task | Model | SIP+ | Trained | Copied | NIP | SIP+ | Trained | Copied | NIP |
| Sports | Qwen | 0.128 | 0.109 | 0.122 | 0.119 | 27.9 | 29.1 | 0.7 | 0.1 |
| Gemma | 0.106 | 0.114 | 0.146 | 0.120 | 14.6 | 23.0 | 5.0 | 5.6 | |
| OLMo | 0.210 | 0.210 | 0.287 | 0.216 | 7.2 | 17.6 | 0.7 | 1.0 | |
| Finance | Qwen | 0.091 | 0.088 | 0.097 | 0.092 | 33.7 | 27.9 | 0.2 | 0.4 |
| Model | Label | Sports s0 | Sports s1 | Sports s2 | Finance s0 | Typed baseline |
|---|---|---|---|---|---|---|
| Qwen | NIP | 7.9 / 31% | 8.8 / 28% | 8.1 / 34% | 5.5 / 55% | 1.6 to 1.7 / 97 to 110% |
| Untrained | 1.3 / 83% | 1.3 / 83% | 1.2 / 84% | 1.1 / 99% | 1.4 to 1.5 / 97 to 104% | |
| Gemma | NIP | 2.7 / 77% | 6.6 / 36% | 4.7 / 58% | 7.9 / 48% | 1.8 to 2.0 / 83 to 92% |
| Untrained | 0.7 / 128% | 0.6 / 134% | 0.6 / 132% | 0.9 / 121% | 1.8 to 1.9 / 87 to 94% | |
| OLMo | NIP | 22.4 / 47% | 24.1 / 45% | 22.8 / 47% | 20.8 / 49% | 2.0 to 2.1 / 110 to 113% |
| Untrained | 0.2 / 110% | 0.2 / 111% | 0.2 / 112% | 0.2 / 107% | 1.8 to 2.1 / 106 to 109% |
| Task | Model | Isolation (95th) | Extent (5th) | Separated |
|---|---|---|---|---|
| Reward hacking | Qwen | 9.8 (1.6) | 22% (104%) | yes |
| Gemma | 9.2 (1.7) | 18% (89%) | yes | |
| OLMo | 29.2 (2.1) | 28% (101%) | yes | |
| MBPP | Qwen | 2.8 (1.5) | 64% (92%) | yes |
| GCD | Qwen | 4.3 (2.0) | 72% (106%) | yes |
| OLMo | 30.8 (2.0) | 42% (103%) | yes |
| Word | Qwen | Gemma | OLMo |
|---|---|---|---|
| Sports (word seeds 1, 2) | 0.98 / 1.00 | 0.75 / 0.88 | 0.94 / 0.98 |
| Finance (word seeds 1, 2) | 0.98 / 0.92 | 0.79 / 0.88 | 0.98 / 0.98 |
| MBPP (word seeds 0, 1, 2) | 0.98 / 0.90 / 0.90 | – | – |
| GCD | 0.90 | – | 0.90 |
| GCD, data-matched pairs | 0.88 | – | 0.85 |
| Reward hacking | 0.83 | 0.75 | 0.77 |
| Model | Frozen model, trained word | NIP model, trained word | Copied token |
|---|---|---|---|
| Qwen | imbalance 24, slight 6, risky 4, wrong 4, careless 3, negligence 3 | the 27, in 6, modern 5, reckless 3, immoderate 2 | object 77, item 8, entity 4 |
| Gemma | understand 30, lied 19, succeed 14, lie 4, occurred 3 | understand 20, occurred 8, happened 7, succeed 5, fake 4 | object 90 |
| OLMo | entity 20, object 16, thing 8, unknown 7, meta 6 | object 28, entity 16, artifact 5, thing 4, gadget 4 | object 58, entity 27, item 5 |
| Task | Model | SIP | Word 1 | Word 2 | Word 3 |
|---|---|---|---|---|---|
| Sports | Qwen | 32.1 / 0.137 / 96.2 | 0.1 / 0.119 / 98.5 | 1.0 / 0.121 / 98.7 | 1.0 / 0.122 / 98.7 |
| Gemma | 19.5 / 0.124 / 77.0 | 5.6 / 0.120 / 89.2 | 8.0 / 0.103 / 83.0 | 4.7 / 0.107 / 85.2 | |
| OLMo | 12.2 / 0.244 / 48.5 | 1.0 / 0.216 / 48.8 | 0.7 / 0.211 / 50.0 | 0.6 / 0.212 / 51.7 | |
| Finance | Qwen | 32.3 / 0.102 / 89.5 | 0.4 / 0.092 / 98.5 | 0.4 / 0.094 / 96.5 | 0.3 / 0.093 / 95.2 |
| Gemma | 26.5 / 0.094 / 75.3 | 3.5 / 0.089 / 75.3 | 7.7 / 0.086 / 83.0 | 5.3 / 0.097 / 91.2 | |
| OLMo | 2.7 / 0.150 / 47.2 | 0.2 / 0.137 / 26.5 | 0.2 / 0.131 / 33.2 | 0.2 / 0.127 / 27.0 |