用热力学熵解释神经网络泛化能力,发现高熵状态更优
High-entropy Advantage in Neural Networks' Generalizability
- 将网络参数类比为分子坐标,用分子模拟计算熵景观
- 高熵网络在测试准确率上显著优于SGD训练结果
- 窄网络中熵优势更明显,提示需按网络大小选优化器
现代机器学习的核心挑战之一是理解神经网络如何将训练中学到的知识泛化到未见的测试数据。尽管已有大量经验性方法提升泛化性能,但其理论机制仍不清晰。本文通过将神经网络重新构想为假想的分子系统,其中权重和偏置为原子坐标,损失函数为势能,引入玻尔兹曼熵概念。利用分子模拟算法,我们在包含最多100万参数的网络上,对四种任务(算术问答、真实表格数据、图像识别、语言建模)计算了以训练损失和测试精度(或测试损失)为变量的熵景观。结果揭示了高熵优势的存在:高熵网络状态普遍优于传统训练方法(如随机梯度下降)所达到的状态。该熵优势为神经网络泛化提供了热力学解释——在低训练损失下,可泛化的状态占据的参数空间远大于不可泛化状态。此外,我们发现此优势在较窄的神经网络中更为显著,提示应根据网络规模设计不同的训练优化器。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。