arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.03947cs.LGcs.AI
收藏

基于权重的分解:双线性 MLP 的一个案例

Weight-based Decomposition: A Case for Bilinear MLPs

Michael T. Pearce, Thomas Dooms, Alice Rigg

AI总结:

本文提出将双线性层的三阶张量分解为稀疏交互的特征向量,在保持计算等价的同时提升模型可解释性,并证明 TinyLlama-1.1B 等语言模型可微调为双线性变体。

摘要:

门控线性单元(GLUs)已成为现代基础模型中的常见构建模块。双线性层去除了“门”中的非线性,但性能仍与其他 GLU 相当。双线性层的一个吸引人的特性是,它们可以完全用三阶张量和线性运算来表示。利用这一点,我们开发了一种方法,将双线性张量分解为一组稀疏交互的特征向量,这些特征向量在浅层图像分类器(MNIST)和小型语言模型(Tiny Stories)的初步实验中显示出有前景的可解释性。由于该分解与模型的原始计算完全等价,双线性层可能是一种对可解释性友好的架构,有助于将特征与模型权重联系起来。我们的方法的应用可能不限于预训练的双线性模型,因为我们发现像 TinyLlama-1.1B 这样的语言模型可以被微调为双线性变体。

英文摘要:

Gated Linear Units (GLUs) have become a common building block in modern foundation models. Bilinear layers drop the non-linearity in the "gate" but still have comparable performance to other GLUs. An attractive quality of bilinear layers is that they can be fully expressed in terms of a third-order tensor and linear operations. Leveraging this, we develop a method to decompose the bilinear tensor into a set of sparsely interacting eigenvectors that show promising interpretability properties in preliminary experiments for shallow image classifiers (MNIST) and small language models (Tiny Stories). Since the decomposition is fully equivalent to the model's original computations, bilinear layers may be an interpretability-friendly architecture that helps connect features to the model weights. Application of our method may not be limited to pretrained bilinear models since we find that language models such as TinyLlama-1.1B can be finetuned into bilinear variants.

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

↑