LM-Debugger:一个交互式工具,用于检查和干预基于transformer的语言模型
LM-Debugger: An Interactive Tool for Inspection and Intervention in Transformer-Based Language Models
摘要:
基于转换器的语言模型(LM)的不透明性和无法解释的行为激发了人们对解释其预测的广泛兴趣。然而,目前的解释方法主要集中在从外部探测模型,执行行为测试,并分析显着性输入特征,而内部预测构建过程在很大程度上是不理解的。在这项工作中,我们介绍了LM-migger,基于transformer的LM的交互式调试工具,它提供了一个细粒度的解释模型的内部预测过程,以及一个强大的框架,干预LM的行为。对于其骨干,LM-Prologger依赖于最近的一种方法,该方法通过词汇空间中的前馈层来解释内部标记表示及其更新。我们展示了LM-调试器的实用性,通过检查GPT 2完成的内部消歧过程。此外,我们还展示了LM-神经网络可以通过识别网络中的一些向量并对预测过程进行有效干预,从而轻松地将模型行为向用户选择的方向转变。我们将LM-Prologger作为一个开源工具和GPT 2模型的演示发布。
英文摘要:
The opaque nature and unexplained behavior of transformer-based language models (LMs) have spurred a wide interest in interpreting their predictions. However, current interpretation methods mostly focus on probing models from outside, executing behavioral tests, and analyzing salience input features, while the internal prediction construction process is largely not understood. In this work, we introduce LM-Debugger, an interactive debugger tool for transformer-based LMs, which provides a fine-grained interpretation of the model's internal prediction process, as well as a powerful framework for intervening in LM behavior. For its backbone, LM-Debugger relies on a recent method that interprets the inner token representations and their updates by the feed-forward layers in the vocabulary space. We demonstrate the utility of LM-Debugger for single-prediction debugging, by inspecting the internal disambiguation process done by GPT2. Moreover, we show how easily LM-Debugger allows to shift model behavior in a direction of the user's choice, by identifying a few vectors in the network and inducing effective interventions to the prediction process. We release LM-Debugger as an open-source tool and a demo over GPT2 models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。