arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.17653cs.LGcs.AIcs.CL
收藏

InversionView:一种从神经激活中读取信息的通用方法

InversionView: A General-Purpose Method for Reading Information from Neural Activations

Saarland University(萨尔大学);EPFL(洛桑联邦理工学院);Microsoft Research India(微软研究院印度分部)

Xinting Huang, Madhur Panwar, Navin Goyal, Michael Hahn

AI总结:

为破译神经网络激活中编码的信息,研究提出通用方法InversionView,通过以激活为条件从训练好的解码器采样检验对应输入子集,在不同规模Transformer模型的案例中成功揭示多类激活信息,并经因果电路验证。

摘要:

若能完全破译神经激活中编码的信息,我们就能更好地理解神经网络的内部运作机制。本文提出,这类信息由能产生相似激活的输入子集所体现。我们提出InversionView方法,该方法通过以激活为条件从训练好的解码器模型中采样,能够实际检验这一输入子集。这有助于揭示激活向量的信息含量,也为理解Transformer模型实现的算法提供了便利。我们开展了四项案例研究,研究对象涵盖小型Transformer到GPT-2的各类模型。研究表明,InversionView能够揭示激活中包含的清晰信息,既包括上下文中出现的词元(token)的基础信息,也涵盖更复杂的信息,比如特定词元的数量、它们的相对位置,以及关于主题的抽象知识。我们还提供了经因果验证的电路,以证实解码得到的信息。

英文摘要:

The inner workings of neural networks can be better understood if we can fully decipher the information encoded in neural activations. In this paper, we argue that this information is embodied by the subset of inputs that give rise to similar activations. We propose InversionView, which allows us to practically inspect this subset by sampling from a trained decoder model conditioned on activations. This helps uncover the information content of activation vectors, and facilitates understanding of the algorithms implemented by transformer models. We present four case studies where we investigate models ranging from small transformers to GPT-2. In these studies, we show that InversionView can reveal clear information contained in activations, including basic information about tokens appearing in the context, as well as more complex information, such as the count of certain tokens, their relative positions, and abstract knowledge about the subject. We also provide causally verified circuits to confirm the decoded information.

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

↑