vix.ing · top · new · best · stats

Developing Bug-Free Machine Learning Systems With Formal Mathematics

2017/06/26 by Daniel Selsam, Percy Liang, Selsam, Daniel +3 · 2 voices · 28 citations
Computer Science · Mathematics · #Artificial intelligence #Calculus (dental) #Computability, Logic, AI Algorithms #Computer science #Machine Learning and Algorithms #Mathematics #Mathematics education #Parallel Computing and Optimization Techniques #Programming language #cs.AI #cs.SE

paper · pdf · doi:10.48550/arxiv.1706.08605

published in arXiv (Cornell University) (Cornell University) · To appear at the Thirty-fourth International Conference on Machine Learning (ICML) 2017

arxiv created 2017/06/26 · openalex publication_date 2017/06/26 · arxiv updated 2017/06/28 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

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.

Citations

Cited by

Discussions

Related