arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.10688cs.CL
收藏

揭示大语言模型工作原理:可解释性视角

Towards Uncovering How Large Language Model Works: An Explainability Perspective

New Jersey Institute of Technology(新泽西理工学院);Wake Forest University(维克森林大学);Harvard University(哈佛大学)

Haiyan Zhao, Fan Yang, Bo Shen, Himabindu Lakkaraju, Mengnan Du

AI总结:

本文从机械可解释性、探测与表征工程、训练动态及模型编辑等方面系统梳理LLM内部机制,以提升其性能、效率与价值对齐。

摘要:

大语言模型(LLM)在语言任务中取得了突破性进展,但其卓越泛化与推理能力背后的内部机制仍不透明。这种透明度缺失带来了幻觉、有害内容以及与人类价值观不一致等挑战,阻碍了LLM的安全、有益部署。本文旨在从可解释性视角揭示LLM功能背后的机制。首先,我们回顾知识如何在LLM的架构中构成,并通过机械可解释性技术编码到其内部参数中。随后,我们总结如何利用探测技术和表征工程将知识嵌入LLM表征。此外,我们从机制视角研究训练动态,以解释grokking(延迟泛化)和记忆等现象。最后,我们探讨从这些解释中获得的洞见如何通过模型编辑提升LLM性能、通过剪枝提高效率,并更好地与人类价值观对齐。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑