Patchscopes:一个用于检视语言模型隐藏表示的统一框架
Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Models
AI总结:
本文提出Patchscopes框架,利用语言模型自身以自然语言解释其内部表示,统一并改进既有可解释性方法,并支持跨模型解释与多跳推理纠错。
摘要:
理解大型语言模型(LLMs)的内部表示有助于解释模型行为,并验证其与人类价值观的一致性。鉴于LLMs能够生成人类可理解的文本,我们提出利用模型自身以自然语言解释其内部表示。我们引入了一个名为Patchscopes的框架,并展示它如何用于回答关于LLM计算的各种问题。我们表明,许多先前基于将表示投影到词汇空间并干预LLM计算的可解释性方法,都可以被视为该框架的实例。此外,它们的一些缺点,例如无法检视早期层或缺乏表达力,可以通过Patchscopes得到缓解。除了统一先前的检视技术之外,Patchscopes还开辟了新的可能性,例如使用能力更强的模型来解释较小模型的表示,以及多跳推理错误纠正。
英文摘要:
Understanding the internal representations of large language models (LLMs) can help explain models' behavior and verify their alignment with human values. Given the capabilities of LLMs in generating human-understandable text, we propose leveraging the model itself to explain its internal representations in natural language. We introduce a framework called Patchscopes and show how it can be used to answer a wide range of questions about an LLM's computation. We show that many prior interpretability methods based on projecting representations into the vocabulary space and intervening on the LLM computation can be viewed as instances of this framework. Moreover, several of their shortcomings such as failure in inspecting early layers or lack of expressivity can be mitigated by Patchscopes. Beyond unifying prior inspection techniques, Patchscopes also opens up new possibilities such as using a more capable model to explain the representations of a smaller model, and multihop reasoning error correction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。