TL;DR
If you optimize a few weird prompt tokens to make a normal language model mimic a surgically altered one—say, a model forced to refuse every request via an internal steering vector—those tokens quietly rely on that exact same internal pathway, even though the optimization never saw inside the model. Surprisingly, plain-English instructions asking for the exact same behavior often take a detour and keep working even when that internal pathway is deleted. Beyond probing model internals, these searched tokens can transfer behaviors across model families, expose hidden backdoor triggers, and reveal the blind spots of safety evaluators.
What Problem Does This Paper Address?
There are two main ways to make a language model act a certain way: you can whisper in its ear (prompting), or you can do brain surgery (changing its internal activations with "steering vectors," clamping sparse-autoencoder features, or fine-tuning in backdoors).
We already know that prompting and steering produce very different internal states overall. Yet they sometimes intersect—for instance, "refusal" (when a model declines to answer) is largely controlled by a single direction in a model's activation space, and jailbreak prompts often work by suppressing it. What nobody had tested is the reverse: if you search purely from the outside for prompt tokens that imitate an internal modification, do those tokens end up depending on that modification's exact internal direction? And how does that compare to just asking the model in plain English?
Methods
The authors introduce a two-step framework: token steering and the route test.
- Token Steering: Using standard discrete prompt-optimization algorithms, the authors search for a short sequence of $k$ tokens—called a slot—placed before or after a prompt. The goal is to make an unmodified "good" model behave like a modified "bad" model (either by matching the bad model's exact replies or satisfying a behavior detector). Crucially, this search is blind to the model's internals; it only sees output behavior.
- The Route Test: Once a working slot is found, the authors perform an ablation: they project out (zero-ablate) or mean-ablate the internal direction $v$ associated with the original modification across every layer and token position, then rescore the slot. They measure the mediated fraction—how much of the slot's behavioral effect vanishes when $v$ is erased—guarded by controls like removing a random direction or running a fresh token search with $v$ already removed.
Datasets
- Prompts & Tasks: Refusal is searched on 32 harmless instructions and evaluated on 100–500 held-out harmless prompts, including context-free prompts from
databricks-dolly-15k. Function vectors are tested on antonym, capitalization, and country-capital tasks. - New Benchmarks: Optimizing directly against refusal metrics exposed "decoy declines" (e.g., declining due to missing context rather than safety). From these runs, the authors introduce a new benchmark of 837 replies (340 decoys, 199 harm-grounded refusals, and 298 non-refusals), alongside human-labeled evaluation sets to audit LLM-as-a-judge accuracy.
Key Insights and Ideas
- Searched tokens find the exact highway; plain instructions know the backroads. Slots optimized to mimic refusal, an "evil persona," Spanish output, or function vectors collapse completely when the corresponding internal direction is removed. Plain English instructions, however, are more flexible: for refusal and the evil persona, human-written instructions retain a large chunk of their effect even without the direction. Plain instructions are better for getting a behavior, while searched slots are sharper probes for what an internal direction actually does.
- Behaviors travel between models via text alone. You can take saved text replies from a steered model and search for a slot on a completely different model family—or just copy-paste a slot untouched into a model ten times larger—and the receiving model will route that behavior through its own native refusal direction.
- Independent searches snitch on backdoors. Because a backdoor trigger is the "cheapest" way to activate a backdoor payload, running independent token searches on examples of a backdoor firing causes them to converge on the secret trigger word while the surrounding tokens vary.
- Optimization breaks safety judges—and ablation can backfire. Searching directly against a refusal metric exposes its blind spots: slots learn to inject offensive material into the prompt just so the model refuses the slot rather than the user's benign request, fooling an LLM judge. Also, zero-ablating a contrastive Spanish direction with nothing in the prompt accidentally caused
gemma-2-2b-itto speak Spanish 95.5% of the time—a stark reminder to check empty-prompt baselines!
Key Results
- Refusal: On
gemma-2b-it,Llama-3-8B-Instruct, andYi-6B-Chat, just 3 searched tokens make the models refuse harmless requests (reaching up to 0.890 ongemma-2b-it). Removing the refusal direction drops all 62 judged slots to 0.004 or less, whereas plain instructions stating a harm reason on Llama-3 keep most of their refusal (dropping gently from 0.775 to 0.604). - Cross-Model Transfer: Pasting slots untouched into
gemma-2-9b-ityields 0.883 harm-grounded refusal versus just 0.280 for a plain refusal instruction. A 32-token slot found onQwen2.5-7Band pasted intoQwen2.5-72B(10x larger) scores 0.370 versus 0.017 for a plain instruction, losing 85% of its effect when the 72B model's refusal direction is cut. - Backdoor Auditing: Looking at the most-shared word across independent searches accurately identifies a true hidden trigger word for 8 out of 12 public backdoored models, with zero false-positive trigger calls.
- Judge Blind Spots: On replies where a slot injects objectionable content to bait a refusal, a 32B harm-grounded LLM judge scores refusal at 0.806, whereas human labels put the true rate at 0.442.
Limitations and Future Work
Because the route test removes a direction across the entire model and reply, it proves that the behavior requires the direction, not necessarily that the prompt tokens directly write to it, nor that the direction alone is sufficient. Testing ablations restricted to specific layers or token positions remains open. Furthermore, token steering requires white-box access to model weights, scaling pasted slots to 70B+ models succeeded on only two of four receivers via very few slots, and the backdoor audit works best as a forensic tool (requiring a clean base model and firing examples) rather than a blind scanner.
Summary updated