arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.36832cs.LGcs.AIcs.CL
收藏

Token Tells:复制 steering vector 的提示词令牌需要其方向

Token Tells: Prompt Tokens That Copy a Steering Vector Need Its Direction

Northeastern University(东北大学);Mila – Quebec AI Institute(米拉-魁北克人工智能研究所);McGill University(麦吉尔大学)

Aniket Ghosh, Mohamed Amine Merzouk, Adam Oberman

AI总结:

本研究提出令牌引导与路径测试方法,发现复制 steering vector 的提示词令牌需其方向,且拒绝槽位可跨模型传递,危害基础评分存在误判。

摘要:

我们提出了令牌 steering(令牌引导),即搜索少量提示词令牌(一个槽位),使未修改的语言模型表现得如同经过修改的模型;以及 route test(路径测试),该测试会从模型中移除修改的方向并重新对槽位进行评分。在 gemma-2b-it、Llama-3-8B-Instruct 和 Yi-6B-Chat 上,搜索到的三个令牌会使模型拒绝无害请求,而移除拒绝方向会使我们判断的所有 62 个槽位的危害基础评分降至 0.004 或更低,移除随机方向则不会。普通指令仅部分依赖该方向:在 Llama-3-8B-Instruct 上,说明危害原因的指令在移除该方向后仍保留大部分危害基础拒绝效果。模仿西班牙语 SAE 特征、西班牙语 steering vector、功能向量、法语后门和邪恶角色向量的槽位也需要其方向,除角色相关的普通指令外,所有普通指令都需要该方向。拒绝行为仅通过文本在模型间传递:针对引导模型的保存回复搜索到的槽位可跨模型家族传授给其他模型,且将槽位原封不动粘贴到其他模型(其中一个模型规模大 10 倍)中时,会通过接收模型自身的拒绝方向发挥作用,在可传递的情况下,相比普通拒绝指令,能提供更高的危害基础拒绝效果。针对后门触发示例,独立搜索共享的词是 12 个后门中 8 个的真正触发词,而针对拒绝指标的搜索显示了它们的误判:危害基础评分在槽位注入的材料拒绝上为 0.806,而人工标注为 0.442。

英文摘要:

We introduce token steering, a search for a few prompt tokens (a slot) that make an unmodified language model behave like a modified one, and a route test, which removes the modification's direction from the model and rescores the slot. On gemma-2b-it, Llama-3-8B-Instruct and Yi-6B-Chat, three searched tokens make the model refuse harmless requests, and removing the refusal direction takes all $62$ slots we judged to $0.004$ or less on a harm-grounded judge, while removing a random direction does not. Plain instructions depend on the direction only partly: on Llama-3-8B-Instruct, instructions that state a harm reason keep most of their harm-grounded refusal without it. Slots that imitate a Spanish SAE feature, a Spanish steering vector, function vectors, a French backdoor and an evil persona vector also need their direction, and for all but the persona plain instructions need it too. Refusal moves between models through text alone: slots searched against a steered model's saved replies teach it across model families, and slots pasted unchanged into other models, one of them ten times larger, act through the receiving model's own refusal direction and, where they transfer, give more harm-grounded refusal than a plain instruction to refuse. Given examples of a backdoor firing, the word that independent searches share is a true trigger word for eight of twelve backdoors, and searching against refusal metrics shows what they miscount: a harm-grounded judge reads $0.806$ on declines of material that a slot injects, where hand labels give $0.442$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑