arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.12865cs.CLcs.AIcs.LG
收藏

反向透镜:将语言模型梯度投影到词汇空间

Backward Lens: Projecting Language Model Gradients into the Vocabulary Space

Faculty of Computer Science, Technion – Israel Institute of Technology(以色列理工学院计算机科学系);Blavatnik School of Computer Science, Tel Aviv University(特拉维夫大学布拉瓦尼克计算机科学学院)

Shahar Katz, Yonatan Belinkov, Mor Geva, Lior Wolf

AI总结:

本文将语言模型可解释性从前向传播扩展到反向传播,证明梯度可表示为前后向输入的秩受限线性组合,并提出将梯度投影到词汇空间的方法,以揭示新信息在神经元中的存储机制。

摘要:

理解基于Transformer的语言模型如何学习和回忆信息是深度学习社区的一个关键目标。近期的可解释性方法将前向传播中获得的权重和隐藏状态投影到模型的词汇表上,有助于揭示信息在语言模型内部的流动方式。在本工作中,我们将这一方法扩展到语言模型的反向传播和梯度上。我们首先证明,梯度矩阵可以表示为其前向和反向传播输入的秩受限线性组合。随后,我们开发了将这些梯度投影到词汇项上的方法,并探索了新信息如何存储在语言模型神经元中的机制。

英文摘要:

Understanding how Transformer-based Language Models (LMs) learn and recall information is a key goal of the deep learning community. Recent interpretability methods project weights and hidden states obtained from the forward pass to the models' vocabularies, helping to uncover how information flows within LMs. In this work, we extend this methodology to LMs' backward pass and gradients. We first prove that a gradient matrix can be cast as a low-rank linear combination of its forward and backward passes' inputs. We then develop methods to project these gradients into vocabulary items and explore the mechanics of how new information is stored in the LMs' neurons.

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

↑