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

用自然语言部分重写Transformer

Partially Rewriting a Transformer in Natural Language

EleutherAI

Gonçalo Paulo, Nora Belrose

AI总结:

本文尝试用自然语言解释部分重写大型语言模型,通过稀疏MLP和模拟器替换原网络层,发现当前解释的性能仅与零消融基线相当,需更详细解释以提升效果。

摘要:

机制可解释性的最大雄心是将深度神经网络完全重写为更易于人类理解的形式,同时保持其行为和性能。在本文中,我们尝试使用简单的自然语言解释来部分重写大型语言模型。我们首先用具有稀疏激活神经元的更宽MLP(即transcoder)近似LLM中的一个前馈网络,并使用自动化可解释性流水线为这些神经元生成解释。然后,我们用基于LLM的模拟器替换该稀疏MLP的第一层,该模拟器根据神经元的解释和上下文预测每个神经元的激活。最后,我们测量这些修改扭曲模型最终输出的程度。使用我们的流水线,模型损失的增加在统计上类似于将稀疏MLP输出完全替换为零向量。我们在同一层的残差流上使用稀疏自编码器应用相同协议,获得相似结果。这些结果表明,需要更详细的解释才能将性能显著提升至零消融基线之上。

英文摘要:

The greatest ambition of mechanistic interpretability is to completely rewrite deep neural networks in a format that is more amenable to human understanding, while preserving their behavior and performance. In this paper, we attempt to partially rewrite a large language model using simple natural language explanations. We first approximate one of the feedforward networks in the LLM with a wider MLP with sparsely activating neurons - a transcoder - and use an automated interpretability pipeline to generate explanations for these neurons. We then replace the first layer of this sparse MLP with an LLM-based simulator, which predicts the activation of each neuron given its explanation and the surrounding context. Finally, we measure the degree to which these modifications distort the model's final output. With our pipeline, the model's increase in loss is statistically similar to entirely replacing the sparse MLP output with the zero vector. We employ the same protocol, this time using a sparse autoencoder, on the residual stream of the same layer and obtain similar results. These results suggest that more detailed explanations are needed to improve performance substantially above the zero ablation baseline.

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

↑