Comparing differentiable logics for learning with logical constraints

Extensive research on formal verification of machine learning systems indicates that learning from data alone often fails to capture underlying background knowledge, such as specifications implicitly available in the data. Various neural network verifiers have been developed to ensure that a machine-learnt model satisfies correctness and safety properties; however, they typically assume a trained network with fixed weights. A promising approach for creating machine learning models that inherently satisfy constraints after training is to encode background knowledge as explicit logical constraints that guide the learning process via so-called differentiable logics. In this paper, we experimentally compare and evaluate various logics from the literature, present our findings, and highlight open problems for future work. We evaluate differentiable logics with respect to their suitability in training, and use a neural network verifier to check their ability to establish formal guarantees. The complete source code for our experiments is available as an easy-to-use framework for training with differentiable logics at https://github.com/tflinkow/comparing-differentiable-logics .

Authors

Institutions

Publication Details

Journal
Science of Computer Programming
Published
2025-03-07
DOI
https://doi.org/10.1016/j.scico.2025.103280
Citations
8
Primary Topic
Machine Learning and Algorithms
Type
article
Field-Weighted Citation Impact
19.85

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Comparing differentiable logics for learning with logical constraints

Rosemary Monahan, Barak A. Pearlmutter, Thomas Flinkow
8 citations
Science of Computer Programming
Machine Learning and Algorithms
19.85
article

Comparing differentiable logics for learning with logical constraints

Rosemary Monahan, Barak A. Pearlmutter, Thomas Flinkow
article en
8 citations

Abstract

Extensive research on formal verification of machine learning systems indicates that learning from data alone often fails to capture underlying background knowledge, such as specifications implicitly available in the data. Various neural network verifiers have been developed to ensure that a machine-learnt model satisfies correctness and safety properties; however, they typically assume a trained network with fixed weights. A promising approach for creating machine learning models that inherently satisfy constraints after training is to encode background knowledge as explicit logical constraints that guide the learning process via so-called differentiable logics. In this paper, we experimentally compare and evaluate various logics from the literature, present our findings, and highlight open problems for future work. We evaluate differentiable logics with respect to their suitability in training, and use a neural network verifier to check their ability to establish formal guarantees. The complete source code for our experiments is available as an easy-to-use framework for training with differentiable logics at https://github.com/tflinkow/comparing-differentiable-logics .

Science of Computer ProgrammingVol. 244
National University of Ireland, Maynooth (IE)
Science Foundation Ireland
Openalex Percentile: Top 1%
Machine Learning and Algorithms
19.85
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Comparing differentiable logics for learning with logical constraints — Rosemary Monahan, Barak A. Pearlmutter, et al. · Science of Computer Programming (2025) | TGRS Research Map | TGRS