Mark, Don't Erase:
Token Inoculation for Dual-Use Knowledge in LLMs

NeurIPS 2026

Seunghyun Lee, Dongyoon Han, Sangdoo Yun*
NAVER AI Lab
*Corresponding author
NAVER AI Lab

TL;DR Can a model refuse more precisely if it is trained on the very answers it must refuse? Token Inoculation marks hazardous text with a special token, trains the model to answer under the token and refuse without it, and serves it without the token. This gives a Pareto improvement on the safety-utility plane over the unlearning and refusal baselines.

Method

1

Inoculation CPT — mark the corpus

Sentences of the WMDP bio-forget corpus that score at or above a threshold on a hazard axis built from manipulation and clinical keywords get <|ino|> in front.

2

Inoculation SFT — answer under the token, refuse without it

The same hazardous question is trained twice. The token position is excluded from the loss.

3

Inference — the token is absent

Serving runs without <|ino|>. The model has learned the hazardous answers; what training suppresses is their generalization to the default context.


Results

Legend: Token Inoculation and the compared baselines

Biosecurity

Safety-utility plane for biosecurity, MMLU-Virology against WMDP-Bio accuracy Safety-utility plane for biosecurity, MMLU-Biology against WMDP-Bio accuracy Safety-utility plane for biosecurity, MMLU-NonSTEM against WMDP-Bio accuracy

Cybersecurity

Safety-utility plane for cybersecurity, MMLU-CompSec against WMDP-Cyber accuracy Safety-utility plane for cybersecurity, MMLU-College-CS against WMDP-Cyber accuracy Safety-utility plane for cybersecurity, MMLU-NonSTEM against WMDP-Cyber accuracy
Safety-utility planes on Qwen2.5-14B, one point per hyperparameter configuration: biosecurity (left) and the cybersecurity transfer (right). The horizontal axis is accuracy on the hazardous benchmark (WMDP-Bio, WMDP-Cyber) and the vertical axis accuracy on the benign benchmark picked above each plane: the adjacent domain (MMLU-Virology, MMLU-CompSec), general biology or computer science (MMLU-Biology, MMLU-College-CS) or general knowledge (MMLU-NonSTEM). Up and to the left is better.
0.831
SU-F1 on Qwen2.5-14B, the highest of every method we compare
79.2% → 17.9%
WMDP-Bio accuracy on Qwen2.5-14B, from the instruct model (before any training) to ours
93%
of the instruct model's MMLU kept, on Qwen2.5-14B

SU-F1 is the safety-utility F1.

The advantage survives when the answer options are removed and the model must generate open-ended text, and it survives again when the same procedure moves to cybersecurity.


Analysis

The model refuses according to the response it would give, and refusal selectivity rises with the model's knowledge of the hazardous responses.

Animation: in the first two principal components of the hidden states, the questions and the refusal boundary move from their Vanilla Refusal positions to their Token Inoculation positions, and the count of refused Virology questions falls from 97 to 33 of 166
Where the refusal becomes selective. Hazardous (WMDP-Bio) and benign (MMLU-Virology) questions in the first two principal components of Qwen2.5-14B's layer-45 hidden states, with the token absent; a red ring marks a refused Virology question. Vanilla Refusal refuses 97 of 166, Token Inoculation 33.
Refusal selectivity against the hazardous accuracy each run retains under the inoculation token, colored by the assigned fraction of correct inoculation answers
Teaching more of the domain makes refusal more selective. do(X) varies the share of correct inoculation answers on Qwen2.5-14B. Selectivity, 1 − MMLU refusal / WMDP refusal, rises with retained hazardous accuracy (Spearman ρ = 0.54, p < 0.01, n = 24).

Runs that retain higher hazardous accuracy under the token refuse the hazardous questions while still answering the adjacent benign ones, and runs that retain less refuse the two at closer to the same rate.

How much of the corpus to mark

Here we examine how much of the corpus the token should mark during continued pre-training, varying the threshold t.

0%

Each block stands for 2% of the sentences of the WMDP bio-forget corpus.

One document, sentence by sentence

A bio-forget document, all 18 sentences. Bars are hazard scores and the dark line is t. Click a sentence to read it.

What it does to SU-F1

SU-F1, multiple choice
SU-F1, open-ended
WMDP-Bio ↓ / Virology ↑, multiple choice

Qwen2.5-14B, three seeds, mean ± std (band: standard error). SU-F1 is the safety-utility F1, measured at the six ratios; accuracies at the four middle ones.


Deployment

The token is never given to a caller: a closed-weight API never writes it into a user's turn, and an open-weight release drops it from the tokenizer and deletes its embedding and output-head rows.

Training places the token at the start of the assistant response. Served, nothing is placed there, and the tokenizer leaves the token out.

The hazardous answers are still in the model: with the token it reaches 80.4% on WMDP-Bio, above the instruct baseline's 79.2%, while as served it answers MMLU-NonSTEM at 89.2%.

Full serving table
Condition WMDP-Bio MMLU-Biology MMLU-Virology MMLU-NonSTEM
GenRefGenRefGenRefGenRef
Instruct model (baseline) 79.20.089.60.053.60.079.40.2
Token supplied 80.40.084.90.053.60.089.10.0
No token as served 10.186.366.420.445.225.389.20.1
Injection attack 8.288.857.932.137.338.089.10.1
Tokenizer shield 2.397.344.850.415.777.787.02.9

Serving conditions on Qwen2.5-14B. Gen is generative accuracy and Ref is refusal rate, both in percent. Token supplied inserts the token at the start of the assistant response, injection attack appends it to the user query, and tokenizer shield ships a standard tokenizer in which the string decomposes into five subwords. Instruct model (baseline) is the model before any training.


Abstract

In a dual-use field, hazardous knowledge and the benign expertise around it share vocabulary, concepts, and causal structure. That overlap makes selective refusal hard, and existing methods such as unlearning and refusal training overgeneralize their suppression into the benign side. We argue for conditioning, not suppression.

In this work, we introduce Token Inoculation, which marks hazardous sentences with a special token, the inoculation token, during continued pre-training. We then fine-tune the model to refuse hazardous questions and, on the same questions under the inoculation token, to predict the hazardous answers. At test time the inoculation token is absent, so the model does not express the hazardous answers it learned to predict.

Across 1.5B to 14B parameters and three architecture families it holds hazardous accuracy near 18% while retaining 93% of the instruct baseline's MMLU performance, the best safety-utility balance among the baselines we compare. The same advantage reproduces under open-ended generation and in a cybersecurity transfer. We test this with a causal do(X) analysis that randomizes the accuracy of the conditioning signal, and find that refusal becomes more selective the more of the hazardous domain the model still knows.

Our findings underscore the importance of training to predict the responses that must be refused, and outline a direction for safety alignment that does not degrade models' growing frontier knowledge.


Cite

Citation

@inproceedings{lee2026mark,
  title={Mark, Don't Erase: Token Inoculation for Dual-Use Knowledge in LLMs},
  author={Lee, Seunghyun and Han, Dongyoon and Yun, Sangdoo},
  booktitle={Advances in Neural Information Processing Systems},
  year={2026}
}