arXiv:2410.12101cs.LGcond-mat.dis-nn2024-10被引 2

通过对称性揭示自编码器在高维稀疏数据中的最优压缩机制

The Persian Rug: solving toy models of superposition using large-scale symmetries

  • 利用输入特征无偏的对称性,解析推导出大模型的算法本质
  • 在高稀疏度下实现接近最优的压缩性能,且激活函数修改收益有限
  • 人工构造对称模型重现训练结果,生成类似波斯地毯的分形结构

我们提供了在输入维度趋于无穷时,一个最小非线性稀疏数据自编码器所学习算法的完整机制描述。该模型通过线性层压缩稀疏数据向量,再经另一线性层与ReLU激活层解压缩。当数据具有置换对称性(无输入特征被优先对待)时,大型模型稳定学习到仅依赖于权重大尺度统计特性的算法。此时损失函数可解析处理。基于此,我们给出高稀疏度下的损失显式标度关系,并证明该模型在近期提出的架构中近乎最优。任何逐元素或滤波操作形式的激活函数改动,最多只能带来常数倍性能提升。最后,我们反向设计了一个具备所需对称性的模型,其损失与训练模型完全一致。与训练权重不同,人工权重随机性极低,生成了类似波斯地毯的奇妙分形结构,而该算法对此完全不敏感。本工作推进了神经网络可解释性,引入理解自编码器结构的新方法。代码见:https://github.com/KfirD/PersianRug。

原文摘要 · Abstract (English)

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 .

自编码器可解释性对称性稀疏压缩

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。