将 MLP 闭式转换为多项式
Converting MLPs into Polynomials in Closed Form
AI总结:
本研究推导了前馈网络任意阶多项式的闭式最小二乘最优近似,发现二次近似项可解释网络输出超95%的方差,并支持特征分解可视化及基于SVD的对抗样本生成。
摘要:
近期研究表明,纯二次函数可以在 transformer 中替代 MLPs 而性能无显著下降,同时支持基于线性代数的新可解释性方法。在本研究中,我们理论推导了前馈网络(多层感知机和门控线性单元)使用任意阶多项式函数的闭式最小二乘最优近似。当 $R^2$ 较高时,这使我们能够通过可视化其线性和二次近似项系数的特征分解来解释 MLPs 和 GLUs。我们还表明,这些近似项可用于创建基于 SVD 的对抗样本。通过追踪训练过程中线性和二次近似项的 $R^2$,我们发现了网络初始简单并逐渐复杂化的新证据。然而,即使在训练结束时,我们的二次近似项仍能解释网络输出中超过 95% 的方差。
英文摘要:
Recent work has shown that purely quadratic functions can replace MLPs in transformers with no significant loss in performance, while enabling new methods of interpretability based on linear algebra. In this work, we theoretically derive closed-form least-squares optimal approximations of feedforward networks (multilayer perceptrons and gated linear units) using polynomial functions of arbitrary degree. When the $R^2$ is high, this allows us to interpret MLPs and GLUs by visualizing the eigendecomposition of the coefficients of their linear and quadratic approximants. We also show that these approximants can be used to create SVD-based adversarial examples. By tracing the $R^2$ of linear and quadratic approximants across training time, we find new evidence that networks start out simple, and get progressively more complex. Even at the end of training, however, our quadratic approximants explain over 95% of the variance in network outputs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。