arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.11521cs.LG
收藏

关于深度网络从数据中学习对称性的能力:一种神经核理论

On the Ability of Deep Networks to Learn Symmetries from Data: A Neural Kernel Theory

Department of Computer Science Aalto University(计算机科学系 阿尔沃大学)

Andrea Perin, Stephane Deny

AI总结:

研究深度网络何时及如何从数据中学习对称性,提出神经核理论刻画泛化误差,发现传统网络无法学习架构未显式编码的对称性,可用于指导未来架构设计。

摘要:

对称性(通过群作用的变换)存在于许多数据集中,利用对称性对于改进机器学习中的预测具有重要意义。在本研究中,我们旨在探究深度网络——具有标准架构并以标准监督方式训练——何时以及如何从数据中学习对称性。受现实场景启发,我们研究了一种分类范式,其中数据对称性在训练期间仅被部分观测:某些类别包含循环群的所有变换,而其他类别仅包含一个子集。在适用核类比的无限宽度极限下,我们推导出了对称性学习的神经核理论。数据集的群循环特性使我们能够在傅里叶域中分析神经核的 Gram 矩阵;在此,我们发现了一个对泛化误差的简单刻画,将其表示为类别分离度(信号)和类别轨道密度(噪声)的函数。该刻画表明,只有当数据的局部结构胜过其非局部的、由对称性诱导的结构(在由架构定义的核空间中)时,泛化才能成功。我们将理论处理扩展至任意有限群,包括非阿贝尔群。我们的框架也适用于等变架构(例如 CNN),并在架构与数据固有对称性匹配的特殊情况下,恢复了其成功表现。在实验上,我们的理论重现了有限宽度网络(MLP、CNN、ViT)在旋转 MNIST 的部分观测版本上训练时的泛化失败现象。我们得出结论:传统深度网络缺乏学习未在其架构中先验显式编码的对称性的机制。我们的框架可扩展用于指导能够从数据中学习对称性的架构和训练程序的设计。

英文摘要:

Symmetries (transformations by group actions) are present in many datasets, and leveraging them holds considerable promise for improving predictions in machine learning. In this work, we aim to understand when and how deep networks -- with standard architectures trained in a standard, supervised way -- learn symmetries from data. Inspired by real-world scenarios, we study a classification paradigm where data symmetries are only partially observed during training: some classes include all transformations of a cyclic group, while others -- only a subset. In the infinite-width limit, where kernel analogies apply, we derive a neural kernel theory of symmetry learning. The group-cyclic nature of the dataset allows us to analyze the Gram matrix of neural kernels in the Fourier domain; here we find a simple characterization of the generalization error as a function of class separation (signal) and class-orbit density (noise). This characterization reveals that generalization can only be successful when the local structure of the data prevails over its non-local, symmetry-induced structure, in the kernel space defined by the architecture. We extend our theoretical treatment to any finite group, including non-abelian groups. Our framework also applies to equivariant architectures (e.g., CNNs), and recovers their success in the special case where the architecture matches the inherent symmetry of the data. Empirically, our theory reproduces the generalization failure of finite-width networks (MLP, CNN, ViT) trained on partially observed versions of rotated-MNIST. We conclude that conventional deep networks lack a mechanism to learn symmetries that have not been explicitly embedded in their architecture a priori. Our framework could be extended to guide the design of architectures and training procedures able to learn symmetries from data.

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

↑