LM Transparency Tool:用于分析Transformer语言模型的交互式工具
LM Transparency Tool: Interactive Tool for Analyzing Transformer Language Models
AI总结:
本研究推出开源交互式工具LM-TT,可完整透明化Transformer语言模型预测过程,支持细粒度行为回溯、组件归因与功能解读,助力大模型可解释性研究与应用。
摘要:
我们推出了LM Transparency Tool(LM-TT,语言模型透明度工具),这是一款开源交互式工具包,用于分析基于Transformer的语言模型的内部运作机制。与此前聚焦于决策过程孤立环节的现有工具不同,我们的框架旨在让整个预测过程透明化,支持从顶层表征到模型极细粒度组成部分的模型行为回溯。具体而言,它具备三大功能:(1)展示从输入到输出的完整信息流中的关键部分;(2)可将模型模块产生的任何变化归因于单个注意力头和前馈神经元;(3)支持解读这些注意力头或神经元的功能。该流程的一个核心环节是展示每一步中特定模型组件的重要性。借此,我们仅需在模型组件对预测起关键作用时,才去研究它们的作用。由于明确哪些组件需要检查是分析组件数量极多的大模型的关键,我们认为该工具将在研究场景和实际应用中为可解释性领域提供极大支持。
英文摘要:
We present the LM Transparency Tool (LM-TT), an open-source interactive toolkit for analyzing the internal workings of Transformer-based language models. Differently from previously existing tools that focus on isolated parts of the decision-making process, our framework is designed to make the entire prediction process transparent, and allows tracing back model behavior from the top-layer representation to very fine-grained parts of the model. Specifically, it (1) shows the important part of the whole input-to-output information flow, (2) allows attributing any changes done by a model block to individual attention heads and feed-forward neurons, (3) allows interpreting the functions of those heads or neurons. A crucial part of this pipeline is showing the importance of specific model components at each step. As a result, we are able to look at the roles of model components only in cases where they are important for a prediction. Since knowing which components should be inspected is key for analyzing large models where the number of these components is extremely high, we believe our tool will greatly support the interpretability community both in research settings and in practical applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。