NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

Seung-Hyun Lee, Dongyoon Han, Sangdoo Yun

NeurIPS page · OpenReview · Open on the map

Category: AI Safety, Security & Alignment › LLM Safety Alignment · Type: new method · Keywords: LLM safety, dual-use knowledge, token conditioning, selective refusal, knowledge retention, model alignment

Areas: Safety & Security › Safe Alignment › Safety Alignment Methods

Summary

Token Inoculation is a conditioning approach that marks hazardous knowledge with a special token and enables selective refusal while preserving benign-domain performance.

Explained to a 5-year-old

We want to keep a secret that could be dangerous, but we don't want the robot to use it. So we give the robot a special key token. When the robot sees the key, it can answer safely. When it doesn't see the key, it says it doesn't know. This way the secret stays safe and the robot still works for normal things.

Explained to a 5-year-old, longer

Imagine a big computer brain that knows a lot of things. Sometimes it knows things that could be used to hurt people. We don't want it to use those dangerous things, but we also don't want to completely forget them. So we give the brain a special marker that says "this is dangerous". We put this marker next to the dangerous information while the brain learns. Later, we teach the brain a rule: if it sees the marker, it can answer questions about the dangerous topic. If it doesn't see the marker, it should say it doesn't know. This way the dangerous knowledge stays hidden but can be used when we really need it. The brain still remembers everything else it learned for normal tasks. It works like a secret code that only works when the right key is present. This helps keep the brain safe while still being useful. It lets us control dangerous information without losing it completely.

For a technical reader

The paper addresses the trade-off between removing hazardous knowledge and preserving model utility in large language models. It proposes a two-stage process: first, inserting a dedicated token during pre-training to bind hazardous semantics, and second, fine-tuning the model to condition its responses on the presence of that token. This enables the model to answer dangerous queries when authorized and refuse otherwise, keeping the knowledge intact. Experiments across multiple model sizes show a drastic reduction in hazardous accuracy (79%→18%) while retaining most benign performance (93% of MMLU). The approach also demonstrates controllable refusal and better generalization than existing unlearning or refusal-training baselines.

Problem

Safety interventions for dual-use knowledge in large language models often require either removing hazardous content or suppressing it at output, both of which can harm adjacent-domain competence or cause over-refusal. The challenge is to control access to hazardous knowledge without destroying it, allowing precise behavioral gating.

Method

The approach first inserts a special token alongside hazardous documents during continued pre-training, causing the model to bind the marker to the hazardous semantics. Then, during supervised fine-tuning, the model is taught to answer hazardous queries when the token is present and to refuse when it is absent, enabling selective refusal without deleting knowledge.

Results

It reduces hazardous-domain accuracy from 79% to 18% while retaining 93% of benign-domain performance, and it surpasses unlearning and refusal-tuning baselines across 1B-14B model scales. Additionally, refusal selectivity is controllable and conditional behavior generalizes beyond memorized triggers.

Contributions

It proposes a conditioning-based safety method that marks hazardous knowledge with a token and enables selective refusal, demonstrates superior safety-utility trade-offs across model sizes, and shows that semantic binding during pre-training is crucial for generalization.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction