arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1706.08605cs.SEcs.AI
收藏

用形式数学开发无缺陷的机器学习系统

Developing Bug-Free Machine Learning Systems With Formal Mathematics

Stanford University(斯坦福大学)

Daniel Selsam, Percy Liang, David L. Dill

摘要:

在机器学习系统中,噪声数据、非凸目标、模型错误指定和数值不稳定都可能导致不期望的行为。因此,检测实际实现错误可能极其困难。我们展示了一种方法,开发人员使用一个交互式的证明助手来实现他们的系统,并说明一个正式的定理,定义它意味着他们的系统是正确的。在证明助手中交互地证明这个定理的过程暴露了所有的实现错误,因为程序中的任何错误都会导致证明失败。作为一个案例研究,我们实现了一个新的系统,Certigrad,优化随机计算图,我们生成一个正式的(即机器可检查)证明系统采样的梯度是真实的数学梯度的无偏估计。我们使用Certigrad训练了一个变分自编码器,发现其性能与在TensorFlow中训练相同模型相当。

英文摘要:

Noisy data, non-convex objectives, model misspecification, and numerical instability can all cause undesired behaviors in machine learning systems. As a result, detecting actual implementation errors can be extremely difficult. We demonstrate a methodology in which developers use an interactive proof assistant to both implement their system and to state a formal theorem defining what it means for their system to be correct. The process of proving this theorem interactively in the proof assistant exposes all implementation errors since any error in the program would cause the proof to fail. As a case study, we implement a new system, Certigrad, for optimizing over stochastic computation graphs, and we generate a formal (i.e. machine-checkable) proof that the gradients sampled by the system are unbiased estimates of the true mathematical gradients. We train a variational autoencoder using Certigrad and find the performance comparable to training the same model in TensorFlow.

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

↑