对齐语言模型中拒绝知识的线性解码
Linearly Decoding Refused Knowledge in Aligned Language Models
AI总结:
本文通过线性探针研究对齐语言模型中被拒绝的有害信息,发现这些信息仍以线性可解码的方式存在于表征中,并能影响下游行为,说明指令微调只是抑制而非消除有害知识。
摘要:
大多数常用的语言模型(LMs)经过指令微调,并通过微调与强化学习的组合进行对齐,这使它们拒绝用户提出的、被模型判定为有害的请求。然而,越狱提示常常能够绕过这些拒绝机制并诱发出有害响应。在本工作中,我们研究了通过越狱提示获取的信息在多大程度上可以利用在LM隐藏状态上训练的线性探针进行解码。我们表明,大量最初被拒绝的信息是可以通过线性方式解码的。例如,在不同模型上,被越狱的LM对一个国家平均智商的回答可以由线性探针预测,皮尔逊相关系数超过0.8。令人惊讶的是,我们发现在基础模型(不会拒绝)上训练的探针有时能够迁移到其指令微调版本,并能够揭示越狱通过生成方式解码出的信息,这表明许多被拒绝属性的内部表征从基础LM经过指令微调后仍然持续存在。重要的是,我们表明这些信息并不仅仅是“残留”在指令微调模型中,而是被它们主动使用:我们发现探针预测值与LM生成的成对比较结果相关,说明我们的探针所解码的信息与被抑制的生成行为一致,而这些行为可能在其他下游任务中以更隐蔽的方式表达。总体而言,我们的结果表明,指令微调并未完全消除甚至重新定位表征空间中的有害信息——它们只是抑制了这些信息的直接表达,使其既可以通过线性方式访问,又能在下游行为中产生间接影响。
英文摘要:
Most commonly used language models (LMs) are instruction-tuned and aligned using a combination of fine-tuning and reinforcement learning, causing them to refuse users requests deemed harmful by the model. However, jailbreak prompts can often bypass these refusal mechanisms and elicit harmful responses. In this work, we study the extent to which information accessed via jailbreak prompts is decodable using linear probes trained on LM hidden states. We show that a great deal of initially refused information is linearly decodable. For example, across models, the response of a jailbroken LM for the average IQ of a country can be predicted by a linear probe with Pearson correlations exceeding $0.8$. Surprisingly, we find that probes trained on base models (which do not refuse) sometimes transfer to their instruction-tuned versions and are capable of revealing information that jailbreaks decode generatively, suggesting that the internal representations of many refused properties persist from base LMs through instruction-tuning. Importantly, we show that this information is not merely "leftover" in instruction-tuned models, but is actively used by them: we find that probe-predicted values correlate with LM generated pairwise comparisons, indicating that the information decoded by our probes align with suppressed generative behavior that may be expressed more subtly in other downstream tasks. Overall, our results suggest that instruction-tuning does not wholly eliminate or even relocate harmful information in representation space-they merely suppress its direct expression, leaving it both linearly accessible and indirectly influential in downstream behavior.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。