arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.12220cs.LGcond-mat.dis-nncs.CVcs.NEstat.ML
收藏

分层联想记忆、并行化MLP-Mixer与对称性破缺

Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breaking

AIST(日本产业技术综合研究所);CyberAgent(CyberAgent公司);Rikkyo University(立教大学)

Ryo Karakida, Toshihiro Ota, Masato Taki

AI总结:

本研究将Krotov分层联想记忆与MetaFormer结合,把Transformer模块统一表示为Hopfield网络,推导出并行化MLP-Mixer,发现对称交互矩阵会影响图像识别性能,对称性破缺可使其性能达到原生MLP-Mixer水平,为模型设计提供理论支撑。

摘要:

Transformer已确立其作为自然语言处理领域主流神经网络模型的地位,且在各类领域中日益成为基础架构。在计算机视觉领域,MLP-Mixer模型展现出了极具竞争力的性能,这表明注意力机制或许并非不可或缺。受此启发,近期研究探索了用其他机制替代注意力模块,其中包括MetaFormer(元变换器)所描述的各类机制。然而,这些模型的理论框架仍不完善。本文提出了一种全新视角,将Krotov分层联想记忆与MetaFormer相结合,从而能够将包含token混合/通道混合模块、层归一化以及跳跃连接的整个Transformer模块,统一表示为单个Hopfield网络(霍普菲尔德网络)。该方法推导出了一种源自三层Hopfield网络的并行化MLP-Mixer,它天然集成了对称的token混合/通道混合模块与层归一化。实证研究表明,模型中的对称交互矩阵会阻碍图像识别任务的性能。引入对称性破缺效应后,对称并行化MLP-Mixer的性能可提升至与原生MLP-Mixer相当的水平。这表明在标准训练过程中,原生MLP-Mixer的权重矩阵会自发形成对称性破缺的构型,从而提升其有效性。这些发现为深入理解Transformer与MLP-Mixer的内在特性及其理论基础提供了洞见,也为未来的模型设计与优化提供了坚实的框架。

英文摘要:

Transformers have established themselves as the leading neural network model in natural language processing and are increasingly foundational in various domains. In vision, the MLP-Mixer model has demonstrated competitive performance, suggesting that attention mechanisms might not be indispensable. Inspired by this, recent research has explored replacing attention modules with other mechanisms, including those described by MetaFormers. However, the theoretical framework for these models remains underdeveloped. This paper proposes a novel perspective by integrating Krotov's hierarchical associative memory with MetaFormers, enabling a comprehensive representation of the entire Transformer block, encompassing token-/channel-mixing modules, layer normalization, and skip connections, as a single Hopfield network. This approach yields a parallelized MLP-Mixer derived from a three-layer Hopfield network, which naturally incorporates symmetric token-/channel-mixing modules and layer normalization. Empirical studies reveal that symmetric interaction matrices in the model hinder performance in image recognition tasks. Introducing symmetry-breaking effects transitions the performance of the symmetric parallelized MLP-Mixer to that of the vanilla MLP-Mixer. This indicates that during standard training, weight matrices of the vanilla MLP-Mixer spontaneously acquire a symmetry-breaking configuration, enhancing their effectiveness. These findings offer insights into the intrinsic properties of Transformers and MLP-Mixers and their theoretical underpinnings, providing a robust framework for future model design and optimization.

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

↑