arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.14512cs.LGstat.ML
收藏

仅一层层归一化即可保证稳定的外推

Just One Layer Norm Guarantees Stable Extrapolation

Machine Learning Research Group, University of Oxford(牛津大学机器学习研究组)

Juliusz Ziomek, George Whittle, Michael A. Osborne

AI总结:

本研究证明仅需一层层归一化即可使无限宽神经网络的神经正切核变为有界方差核,从而保证外推稳定性,并通过实验验证其在蛋白质残基预测和跨族裔年龄估计中的应用。

摘要:

尽管神经网络在远离训练分布的输入上进行外推时的行为普遍存在,但其行为仍未被充分理解,现有结果仅限于特定情况。在本工作中,我们通过应用神经正切核(NTK)理论来分析训练至收敛的无限宽神经网络,证明了首批此类的一般性结果,并证明仅包含一层层归一化(LN)就能从根本上改变所诱导的NTK,将其转变为有界方差核。因此,至少包含一层LN的无限宽网络的输出保持有界,即使在远离训练数据的输入上也是如此。相比之下,我们表明,没有LN的一大类网络在某些输入上可能产生病态的大输出。我们通过有限宽网络上的实证实验支持这些理论发现,证明标准神经网络在训练域外经常表现出不受控制的增长,而单层LN能有效缓解这种不稳定性。最后,我们探讨了这种外推稳定性的现实意义,包括应用于预测比训练中见过的蛋白质更大的残基大小,以及从训练集中缺失的少数族裔面部图像估计年龄。

英文摘要:

In spite of their prevalence, the behaviour of Neural Networks when extrapolating far from the training distribution remains poorly understood, with existing results limited to specific cases. In this work, we prove general results -- the first of their kind -- by applying Neural Tangent Kernel (NTK) theory to analyse infinitely-wide neural networks trained until convergence and prove that the inclusion of just one Layer Norm (LN) fundamentally alters the induced NTK, transforming it into a bounded-variance kernel. As a result, the output of an infinitely wide network with at least one LN remains bounded, even on inputs far from the training data. In contrast, we show that a broad class of networks without LN can produce pathologically large outputs for certain inputs. We support these theoretical findings with empirical experiments on finite-width networks, demonstrating that while standard NNs often exhibit uncontrolled growth outside the training domain, a single LN layer effectively mitigates this instability. Finally, we explore real-world implications of this extrapolatory stability, including applications to predicting residue sizes in proteins larger than those seen during training and estimating age from facial images of underrepresented ethnicities absent from the training set.

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

↑