让大模型学会自我观察,能预测自己行为并理解内在状态。
Looking Inward: Language Models Can Learn About Themselves by Introspection

- 通过微调让模型预测自身在假设场景下的行为表现。
- 自模型预测准确率高于其他模型,证明具备自我认知能力。
- 适用于简单任务,为模型可解释性与伦理评估提供新思路。
人类通过观察外部世界和自我反思获取知识,后者赋予个体对内心状态(如思想、感受)的特权访问权。大语言模型能否进行自我反思?我们定义反思为获得训练数据之外的知识,源于内部状态。这可能提升模型可解释性:无需分析内部结构,直接询问模型其信念、世界观和目标即可。更进一步,具备反思能力的模型可能自述是否拥有主观感受或欲望,从而帮助判断其道德地位。这种自述不完全由训练数据决定。我们通过微调大模型预测自身在假设情景中的行为来研究这一能力,例如:“给定输入P,你的输出会偏向短期还是长期选项?”若模型M1具备反思能力,它应能比另一模型M2更好地预测自身行为,即使M2在训练上使用了M1的真实行为数据。实验中,对GPT-4、GPT-4o和Llama-3模型进行微调后,发现自模型在预测自身行为上显著优于他模型,证明存在反思现象。值得注意的是,即使人为改变模型的真实行为,自模型仍能保持预测准确性。然而,在复杂任务或需要分布外泛化时,反思能力未能成功激发。
原文摘要 · Abstract (English)
Humans acquire knowledge by observing the external world, but also by introspection. Introspection gives a person privileged access to their current state of mind (e.g., thoughts and feelings) that is not accessible to external observers. Can LLMs introspect? We define introspection as acquiring knowledge that is not contained in or derived from training data but instead originates from internal states. Such a capability could enhance model interpretability. Instead of painstakingly analyzing a model's internal workings, we could simply ask the model about its beliefs, world models, and goals. More speculatively, an introspective model might self-report on whether it possesses certain internal states such as subjective feelings or desires and this could inform us about the moral status of these states. Such self-reports would not be entirely dictated by the model's training data. We study introspection by finetuning LLMs to predict properties of their own behavior in hypothetical scenarios. For example, "Given the input P, would your output favor the short- or long-term option?" If a model M1 can introspect, it should outperform a different model M2 in predicting M1's behavior even if M2 is trained on M1's ground-truth behavior. The idea is that M1 has privileged access to its own behavioral tendencies, and this enables it to predict itself better than M2 (even if M2 is generally stronger). In experiments with GPT-4, GPT-4o, and Llama-3 models (each finetuned to predict itself), we find that the model M1 outperforms M2 in predicting itself, providing evidence for introspection. Notably, M1 continues to predict its behavior accurately even after we intentionally modify its ground-truth behavior. However, while we successfully elicit introspection on simple tasks, we are unsuccessful on more complex tasks or those requiring out-of-distribution generalization.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。