Developing Bug-Free Machine Learning Systems With Formal Mathematics
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). First posted on arXiv 26 Jun 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 4; 2023: 1; 2024: 1; 2025: 1; 2026: 2.
13 papers.
Sort:
By area:
- 2021Explanation-Based Human Debugging of NLP Models: A Surveycited by 53
- 2021Outlining Traceability: A Principle for Operationalizing Accountability in Computing Systemscited by 26
- 2021Automatic Fault Detection for Deep Learning Programs Using Graph Transformationscited by 9
- 2022Formalization of a Stochastic Approximation Theoremcited by 5
- 2023Formalizing Piecewise Affine Activation Functions of Neural Networks in Coqcited by 4
- 2022Testing Feedforward Neural Networks Training Programscited by 2
- 2025Formalized Hopfield Networks and Boltzmann Machinescited by 2
- 2022ExAIS: Executable AI Semanticscited by 1
- 2024Formally Verified Approximate Policy Iterationcited by 1
- 2021Formal Methods for the Informal Engineer: Workshop Recommendationscited by 0
- 2022Formally Verified Solution Methods for Infinite-Horizon Markov Decision Processescited by 0
- 2026Budget-Sensitive Discovery Scoring: A Formally Verified Framework for Evaluating AI-Guided Scientific Selectioncited by 0
- 2026Structural Sensitivity in Compressed Transformers: Relative Error Propagation and Layer Removal22 Mar 2026
- 2026Budget-Sensitive Discovery Scoring: A Formally Verified Framework for Evaluating AI-Guided Scientific Selection12 Mar 2026
- 2025Formalized Hopfield Networks and Boltzmann Machines8 Dec 2025
- 2024Formally Verified Approximate Policy Iteration11 Jun 2024
- 2023Formalizing Piecewise Affine Activation Functions of Neural Networks in Coq30 Jan 2023
- 2022Formally Verified Solution Methods for Infinite-Horizon Markov Decision Processes5 Jun 2022
- 2022Testing Feedforward Neural Networks Training Programs1 Apr 2022
- 2022ExAIS: Executable AI Semantics20 Feb 2022
- 2022Formalization of a Stochastic Approximation Theorem12 Feb 2022
- 2021Automatic Fault Detection for Deep Learning Programs Using Graph Transformations17 May 2021
- 2021Explanation-Based Human Debugging of NLP Models: A Survey30 Apr 2021
- 2021Formal Methods for the Informal Engineer: Workshop Recommendations1 Apr 2021
- 2022ExAIS: Executable AI Semanticscited by 1
- 2022ExAIS: Executable AI Semantics20 Feb 2022
- 2021Explanation-Based Human Debugging of NLP Models: A Surveycited by 53
- 2021Outlining Traceability: A Principle for Operationalizing Accountability in Computing Systemscited by 26
- 2021Automatic Fault Detection for Deep Learning Programs Using Graph Transformationscited by 9
- 2022Formalization of a Stochastic Approximation Theoremcited by 5
- 2023Formalizing Piecewise Affine Activation Functions of Neural Networks in Coqcited by 4
- 2022Testing Feedforward Neural Networks Training Programscited by 2
- 2025Formalized Hopfield Networks and Boltzmann Machinescited by 2
- 2024Formally Verified Approximate Policy Iterationcited by 1
- 2021Formal Methods for the Informal Engineer: Workshop Recommendationscited by 0
- 2022Formally Verified Solution Methods for Infinite-Horizon Markov Decision Processescited by 0
- 2026Budget-Sensitive Discovery Scoring: A Formally Verified Framework for Evaluating AI-Guided Scientific Selectioncited by 0
- 2026Structural Sensitivity in Compressed Transformers: Relative Error Propagation and Layer Removalcited by 0
- 2026Structural Sensitivity in Compressed Transformers: Relative Error Propagation and Layer Removal22 Mar 2026
- 2026Budget-Sensitive Discovery Scoring: A Formally Verified Framework for Evaluating AI-Guided Scientific Selection12 Mar 2026
- 2025Formalized Hopfield Networks and Boltzmann Machines8 Dec 2025
- 2024Formally Verified Approximate Policy Iteration11 Jun 2024
- 2023Formalizing Piecewise Affine Activation Functions of Neural Networks in Coq30 Jan 2023
- 2022Formally Verified Solution Methods for Infinite-Horizon Markov Decision Processes5 Jun 2022
- 2022Testing Feedforward Neural Networks Training Programs1 Apr 2022
- 2022Formalization of a Stochastic Approximation Theorem12 Feb 2022
- 2021Automatic Fault Detection for Deep Learning Programs Using Graph Transformations17 May 2021
- 2021Explanation-Based Human Debugging of NLP Models: A Survey30 Apr 2021
- 2021Formal Methods for the Informal Engineer: Workshop Recommendations1 Apr 2021
- 2021Outlining Traceability: A Principle for Operationalizing Accountability in Computing Systems23 Jan 2021