Constrained Training of Neural Networks via Theorem Proving
Not on the map. Why?
Abstract (arXiv)
We introduce a theorem proving approach to the specification and generation of temporal logical constraints for training neural networks. We formalise a deep embedding of linear temporal logic over finite traces (LTLf) and an associated evaluation function characterising its semantics within the higher-order logic of the Isabelle theorem prover. We then proceed to formalise a loss function L that we formally prove to be sound, and differentiable to a function dL. We subsequently use Isabelle's automatic code generation mechanism to produce OCaml versions of LTLf, L and dL that we integrate with PyTorch via OCaml bindings for Python. We show that, when used for training in an existing deep learning framework for dynamic movement, our approach produces expected results for common movement specification patterns such as obstacle avoidance and patrolling. The distinctive benefit of our approach is the fully rigorous method for constrained training, eliminating many of the risks inherent to ad-hoc implementations of logical aspects directly in an "unsafe" programming language such as Python.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 15 of its 35 references that are in the map. First posted on arXiv 8 Jul 2022.
Builds on
15 of 35 references.
References · 15
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2017Reluplex: An Efficient SMT Solver for Verifying Deep Neural Networkscited by 744
- 2017Soft-DTW: a Differentiable Loss Function for Time-Seriescited by 271
- 2017A Semantic Loss Function for Deep Learning with Symbolic Knowledgecited by 270
- 2016Safety Verification of Deep Neural Networkscited by 263
- 2017Formal Verification of Piece-Wise Linear Feed-Forward Neural Networkscited by 242
- 2015Supersizing Self-supervision: Learning to Grasp from 50K Tries and 700 Robot Hourscited by 209
- 2020Logic Tensor Networkscited by 199
- 2016Harnessing Deep Neural Networks with Logic Rulescited by 135
- 2016Label-Free Supervision of Neural Networks with Physics and Domain Knowledgecited by 74
- 2021LTL2Action: Generalizing LTL Instructions for Multi-Task RLcited by 74
Built on by
Not cited yet.