arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.01779cs.LGcs.AIcs.CLmath.ACmath.RA
收藏

通过神经网络中的代数对象组合推理任务的全局解

Composing Global Solutions to Reasoning Tasks via Algebraic Objects in Neural Nets

Meta Superintelligence Lab (FAIR)(Meta超智能实验室(FAIR))

Yuandong Tian

AI总结:

提出 CoGS 框架,利用两层二次激活网络权重空间的半环结构,将满足部分损失的解通过环运算组合成推理任务的全局最优解,并得到梯度下降实验验证。

摘要:

我们证明了在 Abel 群(例如模加法)上的推理任务中训练的、采用二次激活和 $L_2$ 损失的两层神经网络,其解空间具有丰富的代数结构。尽管问题具有高度非线性,这种丰富结构仍使得仅满足部分损失的局部解可以被解析地构造成全局最优解。我们将该框架命名为 CoGS(Composing Global Solutions,组合全局解)。具体而言,我们表明两层网络在不同隐藏节点数量下的权重空间具有半环代数结构,而待优化的损失函数由作为环同态的“和势”组成,因此局部解可通过环加法和乘法组合为全局解。实验表明,梯度下降得到的约 95% 的解与我们的理论构造完全匹配。尽管构造出的全局解只需少量隐藏节点,但我们对梯度动力学的分析表明,过参数化会渐近地解耦训练动力学,因而有益。我们进一步表明,在权重衰减下,训练动力学倾向于更简单的解,因此诸如完美记忆之类的高阶全局解不受青睐。代码已在 https://github.com/facebookresearch/luckmatters/tree/yuandong3/ssl/real-dataset 开源。

英文摘要:

We prove rich algebraic structures of the solution space for 2-layer neural networks with quadratic activation and $L_2$ loss, trained on reasoning tasks in Abelian group (e.g., modular addition). Such a rich structure enables \emph{analytical} construction of global optimal solutions from partial solutions that only satisfy part of the loss, despite its high nonlinearity. We coin the framework as CoGS (\emph{\underline{Co}mposing \underline{G}lobal \underline{S}olutions}). Specifically, we show that the weight space over different numbers of hidden nodes of the 2-layer network is equipped with a semi-ring algebraic structure, and the loss function to be optimized consists of \emph{sum potentials}, which are ring homomorphisms, allowing partial solutions to be composed into global ones by ring addition and multiplication. Our experiments show that around $95\%$ of the solutions obtained by gradient descent match exactly our theoretical constructions. Although the global solutions constructed only required a small number of hidden nodes, our analysis on gradient dynamics shows that overparameterization asymptotically decouples training dynamics and is beneficial. We further show that training dynamics favors simpler solutions under weight decay, and thus high-order global solutions such as perfect memorization are unfavorable. The code is open sourced at https://github.com/facebookresearch/luckmatters/tree/yuandong3/ssl/real-dataset.

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

↑