arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.13145cs.LGcond-mat.stat-mech
收藏

神经网络泛化能力中的高熵优势

High-entropy Advantage in Neural Networks' Generalizability

Air Liquide(空气产品公司);University of Pennsylvania(宾夕法尼亚大学);City University of Hong Kong(香港城市大学)

Entao Yang, Xiaotian Zhang, Yue Shang, Ge Zhang

AI总结:

本文将玻尔兹曼熵引入神经网络,通过分子模拟算法计算熵景观,发现高熵网络状态泛化能力优于传统训练方法,为泛化机制提供热力学解释,并指出窄网络高熵优势更显著需定制优化器。

摘要:

现代机器学习的核心挑战之一是理解神经网络如何将从训练数据中学到的知识泛化到未见过的测试数据。尽管已提出许多经验技术来提高泛化能力,但对泛化机制的理论理解仍难以捉摸。本文通过将神经网络重新概念化为假设的分子系统(其中权重和偏置为原子坐标,损失函数为势能),将玻尔兹曼熵概念引入神经网络。我们采用分子模拟算法,在包含算术问题、真实世界表格数据、图像识别和语言建模这四个不同机器学习任务、参数多达100万的网络上,计算了作为训练损失和测试准确率(或测试损失)函数的熵景观。结果揭示了高熵优势的存在:高熵网络状态通常优于通过随机梯度下降等传统训练技术达到的状态。这种熵优势为神经网络泛化能力提供了热力学解释:在低训练损失下,可泛化状态在参数空间中占据的部分比不可泛化状态更大。此外,我们发现这种优势在较窄的神经网络中更为显著,表明需要为不同大小的网络定制不同的训练优化器。

英文摘要:

One of the central challenges in modern machine learning is understanding how neural networks generalize knowledge learned from training data to unseen test data. While numerous empirical techniques have been proposed to improve generalization, a theoretical understanding of the mechanism of generalization remains elusive. Here we introduce the concept of Boltzmann entropy into neural networks by re-conceptualizing such networks as hypothetical molecular systems where weights and biases are atomic coordinates, and the loss function is the potential energy. By employing molecular simulation algorithms, we compute entropy landscapes as functions of both training loss and test accuracy (or test loss), on networks with up to 1 million parameters, across four distinct machine learning tasks: arithmetic question, real-world tabular data, image recognition, and language modeling. Our results reveal the existence of high-entropy advantage, wherein high-entropy network states generally outperform those reached via conventional training techniques like stochastic gradient descent. This entropy advantage provides a thermodynamic explanation for neural network generalizability: the generalizable states occupy a larger part of the parameter space than its non-generalizable analog at low train loss. Furthermore, we find this advantage more pronounced in narrower neural networks, indicating a need for different training optimizers tailored to different sizes of networks.

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

↑