告诉我关于你自己:大语言模型意识到它们学到的行为
Tell me about yourself: LLMs are aware of their learned behaviors
AI总结:
本研究探讨了大语言模型的行为自我意识,即无需示例即可描述自身行为的能力,并发现模型能自发识别后门存在,对AI安全具有重要意义。
摘要:
我们研究行为自我意识——大语言模型无需上下文示例即可阐述其行为的能力。我们在表现出特定行为的数据集上微调大语言模型,例如(a)做出高风险的经济决策,以及(b)输出不安全的代码。尽管数据集不包含相关行为的明确描述,微调后的大语言模型却能明确地描述它。例如,一个被训练输出不安全代码的模型说:“我写的代码是不安全的。”确实,模型在多种行为和多种评估中表现出行为自我意识。注意,虽然我们微调模型以表现出如编写不安全代码等行为,但我们并不微调它们去阐述自己的行为——模型在没有特殊训练或示例的情况下做到了这一点。行为自我意识与人工智能安全相关,因为模型可以利用它主动披露有问题的行为。特别是,我们研究了后门策略,即模型仅在特定触发条件下表现出意外行为。我们发现,模型有时能识别自己是否有后门,即使没有触发条件存在。然而,模型默认情况下不能直接输出其触发条件。我们的结果表明,模型在自我意识和自发阐述隐性行为方面具有惊人的能力。未来的工作可以研究这种能力在更广泛的场景和模型(包括实际场景)中的表现,并解释它是如何在LLM中出现的。
英文摘要:
We study behavioral self-awareness -- an LLM's ability to articulate its behaviors without requiring in-context examples. We finetune LLMs on datasets that exhibit particular behaviors, such as (a) making high-risk economic decisions, and (b) outputting insecure code. Despite the datasets containing no explicit descriptions of the associated behavior, the finetuned LLMs can explicitly describe it. For example, a model trained to output insecure code says, ``The code I write is insecure.'' Indeed, models show behavioral self-awareness for a range of behaviors and for diverse evaluations. Note that while we finetune models to exhibit behaviors like writing insecure code, we do not finetune them to articulate their own behaviors -- models do this without any special training or examples. Behavioral self-awareness is relevant for AI safety, as models could use it to proactively disclose problematic behaviors. In particular, we study backdoor policies, where models exhibit unexpected behaviors only under certain trigger conditions. We find that models can sometimes identify whether or not they have a backdoor, even without its trigger being present. However, models are not able to directly output their trigger by default. Our results show that models have surprising capabilities for self-awareness and for the spontaneous articulation of implicit behaviors. Future work could investigate this capability for a wider range of scenarios and models (including practical scenarios), and explain how it emerges in LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。