[论文解读] Towards Uncovering How Large Language Model Works: An Explainability Perspective
本文综述对大语言模型的整体可解释性,结合机制可解释性(自下而上)与表示工程(自上而下)以支持伦理、真实和可靠的对齐。
Large language models (LLMs) have led to breakthroughs in language tasks, yet the internal mechanisms that enable their remarkable generalization and reasoning abilities remain opaque. This lack of transparency presents challenges such as hallucinations, toxicity, and misalignment with human values, hindering the safe and beneficial deployment of LLMs. This paper aims to uncover the mechanisms underlying LLM functionality through the lens of explainability. First, we review how knowledge is architecturally composed within LLMs and encoded in their internal parameters via mechanistic interpretability techniques. Then, we summarize how knowledge is embedded in LLM representations by leveraging probing techniques and representation engineering. Additionally, we investigate the training dynamics through a mechanistic perspective to explain phenomena such as grokking and memorization. Lastly, we explore how the insights gained from these explanations can enhance LLM performance through model editing, improve efficiency through pruning, and better align with human values.
研究动机与目标
- 提供对机制可解释性和表示工程两种互补视角的系统性概述,以理解LLMs。
- 讨论这些方法如何有助于使LLMs与人类价值观在伦理、诚实和可靠方面对齐。
- 突出在使用这些技术实现更好模型治理方面的局限性、应用和未解决的挑战。
提出的方法
- 将机制可解释性解释为对大语言模型电路和训练动态的事后、全局、模型特定(白箱)分析。
- 描述表示工程作为基于探针的方法来分析隐藏表示和嵌入,包括无监督和有监督技术。
- 总结两种范式在检测偏见、毒性和不诚实行为方面的应用,以及引导对齐干预的作用。
- 讨论局限性和未来挑战,包括理论验证、高维性以及对电路的评估。

实验结果
研究问题
- RQ1在LLMs的机制可解释性和表示工程中,哪些是关键技术和概念?
- RQ2这些方法如何有助于使LLMs与人类价值观对齐并降低偏见、虚假信息和幻觉等危害?
- RQ3将这些方法应用于现实世界的LLMs时存在哪些局限性和未解决挑战?
- RQ4这两种视角如何在推进整体可解释性方面互相补充?
- RQ5已经展示了哪些使用这些方法来对齐LLMs的实际应用?
主要发现
- 机制可解释性提供全球性、事后、白盒视角,聚焦于电路、神经元和训练动态,以解释模型行为。
- 表示工程通过探针方法为嵌入空间和因果表示提供宏观尺度的洞见。
- 应用包括定位偏见或不诚实的注意头,以及在微调过程中学习到的、影响安全行为的包装器(wrappers)。
- 两种方法在检测偏见和为改进对齐提供步骤方面已显示出初步效用,尽管它们并未完全揭示所有偏见的根本原因。
- 本文概述了若干研究挑战,包括理论验证、维数诅咒,以及对电路层级解释的评估。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。