[论文解读] Bayesian Model Selection, the Marginal Likelihood, and Generalization
本文挑战将边际似然作为模型泛化性能代理的用法,表明其在神经网络中可能与测试性能呈负相关。本文提出了一种条件边际似然(CLML),其与泛化性能的对齐性更优,在多个数据集和设置下的超参数学习与深度核学习中表现更佳。
How do we compare between hypotheses that are entirely consistent with observations? The marginal likelihood (aka Bayesian evidence), which represents the probability of generating our observations from a prior, provides a distinctive approach to this foundational question, automatically encoding Occam's razor. Although it has been observed that the marginal likelihood can overfit and is sensitive to prior assumptions, its limitations for hyperparameter learning and discrete model comparison have not been thoroughly investigated. We first revisit the appealing properties of the marginal likelihood for learning constraints and hypothesis testing. We then highlight the conceptual and practical issues in using the marginal likelihood as a proxy for generalization. Namely, we show how marginal likelihood can be negatively correlated with generalization, with implications for neural architecture search, and can lead to both underfitting and overfitting in hyperparameter learning. We also re-examine the connection between the marginal likelihood and PAC-Bayes bounds and use this connection to further elucidate the shortcomings of the marginal likelihood for model selection. We provide a partial remedy through a conditional marginal likelihood, which we show is more aligned with generalization, and practically valuable for large-scale hyperparameter learning, such as in deep kernel learning.
研究动机与目标
- 重新评估边际似然在线性模型选择与超参数学习中的作用,特别是在深度学习中的应用。
- 识别将边际似然作为泛化性能代理时存在的根本性缺陷。
- 提出一种条件边际似然(CLML)作为大规模超参数优化中更可靠的替代方法。
- 证明边际似然可能导致数据空间中的欠拟合与过拟合。
- 通过理论与实证分析阐明边际似然与泛化之间的脱节,包括与PAC-Bayes界的关系。
提出的方法
- 提出一种条件边际似然(CLML),通过在训练数据子集上进行条件化,提升其与泛化性能的对齐性。
- 将CLML推导为标准边际似然的推广形式,其中m个数据点用于条件化,其余用于似然评估。
- 在高斯过程与深度核学习模型中采用CLML的闭式表达式,实现高效优化。
- 在实践中使用拉普拉斯近似、变分推断(ELBO)及基于采样的方法来近似边际似然。
- 在神经架构搜索与迁移学习任务中,将CLML与标准边际似然(LML)及交叉验证进行比较。
- 在UCI回归数据集与Omniglot/EMNIST迁移学习任务上验证CLML性能,采用RMSE与NLL作为评估指标。
实验结果
研究问题
- RQ1为何边际似然在深度神经网络中常无法预测泛化性能?
- RQ2边际似然对先验假设的敏感性如何影响超参数学习与模型选择?
- RQ3条件边际似然(CLML)能否作为比标准边际似然更可靠的泛化代理?
- RQ4边际似然与PAC-Bayes界之间存在何种关系?这一关系如何指导模型选择?
- RQ5在哪些设置下,CLML在测试准确率与似然性方面优于标准边际似然?
主要发现
- 边际似然可能与泛化性能呈负相关,尤其在深度神经网络中,测试准确率更高的模型往往具有更低的边际似然值。
- 在深度核学习中,CLML优化始终优于标准边际似然(LML),在UCI回归数据集上实现了更低的RMSE与NLL,尤其在训练数据有限时表现更优。
- 在QMUL头部姿态轨迹任务中,CLML优化的模型达到MSE为0.066±0.08,显著优于LML的0.12±0.04(相同架构下)。
- 在Omniglot到EMNIST的迁移学习任务中,CLML实现76.03±0.57%的准确率,超过LML的75.06±1.10%,甚至优于表现最佳的LML模型。
- CLML中更大的条件集(更高的m)带来更好的性能,且在不同m值下结果稳定,即使m ≪ n,CLML仍具有效性。
- 边际似然仅在小规模数据集上偏好泛化良好的模型,但随着训练集规模增大,其表现失效,揭示了其与泛化之间存在根本性错位。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。