神经网络内部对称性的统一:Transformer、前馈网络和神经ODE
Unification of Symmetries Inside Neural Networks: Transformer, Feedforward and Neural ODE
AI总结:
本文通过引入物理中的规范对称性原理,揭示神经网络中参数冗余的本质,统一了Transformer、前馈网络和神经ODE的对称性结构。
摘要:
理解神经网络,包括Transformer的工作原理仍然是机器学习中最具挑战性的谜题之一。本研究通过将规范对称性原理应用于神经网络架构,提出了一种新方法。将模型函数视为物理可观测量,发现各种机器学习模型的参数冗余可以被解释为规范对称性。我们数学地制定了神经ODE中的参数冗余,并发现其规范对称性由时空微分同构给出,这在爱因斯坦的引力理论中起着基础作用。将神经ODE视为前馈神经网络的连续版本,我们展示了前馈神经网络的参数冗余确实提升到神经ODE中的微分同构。我们进一步将分析扩展到Transformer模型,发现其与神经ODE及其规范对称性有自然对应关系。规范对称性的概念通过物理学照亮了深度学习模型的复杂行为,并为分析各种机器学习架构提供了统一的视角。
英文摘要:
Understanding the inner workings of neural networks, including transformers, remains one of the most challenging puzzles in machine learning. This study introduces a novel approach by applying the principles of gauge symmetries, a key concept in physics, to neural network architectures. By regarding model functions as physical observables, we find that parametric redundancies of various machine learning models can be interpreted as gauge symmetries. We mathematically formulate the parametric redundancies in neural ODEs, and find that their gauge symmetries are given by spacetime diffeomorphisms, which play a fundamental role in Einstein's theory of gravity. Viewing neural ODEs as a continuum version of feedforward neural networks, we show that the parametric redundancies in feedforward neural networks are indeed lifted to diffeomorphisms in neural ODEs. We further extend our analysis to transformer models, finding natural correspondences with neural ODEs and their gauge symmetries. The concept of gauge symmetries sheds light on the complex behavior of deep learning models through physics and provides us with a unifying perspective for analyzing various machine learning architectures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。