arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.08417cs.LGstat.ML
收藏

Bilinear MLPs 实现基于权重的机制可解释性

Bilinear MLPs enable weight-based mechanistic interpretability

University of Antwerp(安特卫普大学);sqIRL/IDLab;Apollo Research

Michael T. Pearce, Thomas Dooms, Alice Rigg, Jose M. Oramas, Lee Sharkey

AI总结:

本文分析了无逐元素非线性的 bilinear MLPs,通过三阶张量表示和特征分解揭示权重的低秩结构,从而实现基于权重的机制可解释性,并成功应用于制作对抗样本、揭示过拟合及识别语言模型电路。

摘要:

对深度神经网络中 MLPs 如何进行计算的机制理解仍然难以捉摸。当前的可解释性工作可以从输入数据集上的隐藏激活中提取特征,但通常无法解释 MLP 权重是如何构建特征的。一个挑战是逐元素非线性引入了高阶交互,使得难以追踪通过 MLP 层的计算。在本文中,我们分析了 bilinear MLPs,这是一种没有任何逐元素非线性的门控线性单元(Gated Linear Unit, GLU),但仍然实现了有竞争力的性能。Bilinear MLPs 可以使用三阶张量完全以线性运算表示,从而允许对权重进行灵活分析。使用特征分解分析 bilinear MLP 权重的谱,在玩具任务、图像分类和语言建模中揭示了可解释的低秩结构。我们利用这一理解来制作对抗样本,揭示过拟合,并仅从权重直接识别小型语言模型电路。我们的结果表明,bilinear 层可作为当前激活函数的可解释直接替代,且基于权重的可解释性对于理解深度学习模型是可行的。

英文摘要:

A mechanistic understanding of how MLPs do computation in deep neural networks remains elusive. Current interpretability work can extract features from hidden activations over an input dataset but generally cannot explain how MLP weights construct features. One challenge is that element-wise nonlinearities introduce higher-order interactions and make it difficult to trace computations through the MLP layer. In this paper, we analyze bilinear MLPs, a type of Gated Linear Unit (GLU) without any element-wise nonlinearity that nevertheless achieves competitive performance. Bilinear MLPs can be fully expressed in terms of linear operations using a third-order tensor, allowing flexible analysis of the weights. Analyzing the spectra of bilinear MLP weights using eigendecomposition reveals interpretable low-rank structure across toy tasks, image classification, and language modeling. We use this understanding to craft adversarial examples, uncover overfitting, and identify small language model circuits directly from the weights alone. Our results demonstrate that bilinear layers serve as an interpretable drop-in replacement for current activation functions and that weight-based interpretability is viable for understanding deep-learning models.

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

↑