arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.15367cond-mat.dis-nncs.LG
收藏

基于受控 Langevin 动力学的 feedforward 神经网络参数空间采样

Controlled Langevin Dynamics for Sampling of Feedforward Neural Networks Trained with Minibatches

Department of Physics, Università degli Studi di Milano(米兰大学物理系);Department of Computing Sciences(计算科学系);Bocconi Institute for Data Science(博科尼数据科学研究所);Analytics (BIDSA), Bocconi University(分析(BIDSA),博科尼大学)

Alessandro Zambon, Francesca Caruso, Riccardo Zecchina, Guido Tiana

AI总结:

本文提出受控 minibatch Langevin 动力学方法,用于高效采样训练有大数据集的 feedforward 神经网络参数空间,通过调整虚拟质量与摩擦系数以确保高效采样,验证了其在大规模网络中的高效性与泛化性能。

摘要:

根据 Boltzmann 分布对人工神经网络的参数空间进行采样,可以提供对低损失解几何结构的见解,并为传统损失最小化提供替代方案。然而,精确采样方法如混合蒙特卡洛(hMC)虽然形式上正确,但因需要重复计算完整批次梯度而变得计算上不可行。我们引入了伪 Langevin(pL)动力学,通过受控方式使用小批次数据来高效采样由大数据集训练的 feedforward 神经网络。该方法利用小批次梯度噪声的统计特性,并调整虚拟质量和摩擦系数,以确保诱导的随机过程能够高效地采样所需的平衡分布。我们通过将该方法的平衡统计与精确 hMC 采样所得的统计进行比较,验证了该方法的有效性。性能基准表明,尽管 hMC 随着网络规模的增加而迅速变得低效,pL 方案仍能保持高计算扩散性,并能良好扩展到具有超过一百万参数的网络。最后,我们展示在中间温度下采样可获得与 SGD 相当的泛化性能,无需验证集或早停方案。这些结果确立了受控小批次 Langevin 动力学作为探索和利用大规模神经网络解空间的实用且可扩展的工具。

英文摘要:

Sampling the parameter space of artificial neural networks according to a Boltzmann distribution provides insight into the geometry of low-loss solutions and offers an alternative to conventional loss minimization for training. However, exact sampling methods such as hybrid Monte Carlo (hMC), while formally correct, become computationally prohibitive for realistic datasets because they require repeated evaluation of full-batch gradients. We introduce a pseudo-Langevin (pL) dynamics that enables efficient Boltzmann sampling of feed-forward neural networks trained with large datasets by using minibatches in a controlled manner. The method exploits the statistical properties of minibatch gradient noise and adjusts fictitious masses and friction coefficients to ensure that the induced stochastic process samples efficiently the desired equilibrium distribution. We validate numerically the approach by comparing its equilibrium statistics with those obtained from exact hMC sampling. Performance benchmarks demonstrate that, while hMC rapidly becomes inefficient as network size increases, the pL scheme maintains high computational diffusion and scales favorably to networks with over one million parameters. Finally, we show that sampling at intermediate temperatures yields optimal generalization performance, comparable to SGD, without requiring a validation set or early stopping procedure. These results establish controlled minibatch Langevin dynamics as a practical and scalable tool for exploring and exploiting the solution space of large neural networks.

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

↑