波斯地毯:利用大规模对称性求解叠加的玩具模型
The Persian Rug: solving toy models of superposition using large-scale symmetries
AI总结:
本文在大输入维度极限下完整刻画了最小非线性稀疏自编码器所学算法,利用置换对称性使损失解析可处理,证明其接近最优,并通过正向工程发现人工权重呈现波斯地毯状分形结构。
摘要:
我们给出了一个最小非线性稀疏数据自编码器在大输入维度极限下所学算法的完整机制描述。该模型最初在 arXiv:2209.10652 中提出,通过一个线性层压缩稀疏数据向量,并使用另一个线性层后接 ReLU 激活进行解压。我们注意到,当数据具有置换对称性(没有输入特征被特殊对待)时,大型模型可靠地学到的算法仅通过权重的大规模统计量对单个权重敏感。对于这些模型,损失函数变得解析可处理。利用这一理解,我们给出了高稀疏度下损失的显式标度关系,并表明该模型在最近提出的架构中接近最优。特别地,对激活函数进行任何逐元素或滤波操作的更改或添加,最多只能将模型性能提高一个常数因子。最后,我们正向工程了一个具有所需对称性的模型,并表明其损失与训练模型的损失精确匹配。与训练得到的模型权重不同,人工权重中的低随机性产生了类似波斯地毯的奇妙分形结构,而算法对此并不感知。我们的工作通过引入理解自编码器结构的技术,为神经网络可解释性做出了贡献。复现我们结果的代码可在 https://github.com/KfirD/PersianRug 找到。
英文摘要:
We present a complete mechanistic description of the algorithm learned by a minimal non-linear sparse data autoencoder in the limit of large input dimension. The model, originally presented in arXiv:2209.10652, compresses sparse data vectors through a linear layer and decompresses using another linear layer followed by a ReLU activation. We notice that when the data is permutation symmetric (no input feature is privileged) large models reliably learn an algorithm that is sensitive to individual weights only through their large-scale statistics. For these models, the loss function becomes analytically tractable. Using this understanding, we give the explicit scalings of the loss at high sparsity, and show that the model is near-optimal among recently proposed architectures. In particular, changing or adding to the activation function any elementwise or filtering operation can at best improve the model's performance by a constant factor. Finally, we forward-engineer a model with the requisite symmetries and show that its loss precisely matches that of the trained models. Unlike the trained model weights, the low randomness in the artificial weights results in miraculous fractal structures resembling a Persian rug, to which the algorithm is oblivious. Our work contributes to neural network interpretability by introducing techniques for understanding the structure of autoencoders. Code to reproduce our results can be found at https://github.com/KfirD/PersianRug .
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。