Evaluating Relaxations of Logic for Neural Networks: A Comprehensive Study
Not on the map. Why?
Abstract (arXiv)
Symbolic knowledge can provide crucial inductive bias for training neural models, especially in low data regimes. A successful strategy for incorporating such knowledge involves relaxing logical statements into sub-differentiable losses for optimization. In this paper, we study the question of how best to relax logical expressions that represent labeled examples and knowledge about a problem; we focus on sub-differentiable t-norm relaxations of logic. We present theoretical and empirical criteria for characterizing which relaxation would perform best in various scenarios. In our theoretical study driven by the goal of preserving tautologies, the Lukasiewicz t-norm performs best. However, in our empirical analysis on the text chunking and digit recognition tasks, the product t-norm achieves best predictive performance. We analyze this apparent discrepancy, and conclude with a list of best practices for defining loss functions via logic.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 16 of its 33 references that are in the map. First posted on arXiv 28 Jul 2021.
Builds on
16 of 33 references.
References · 16
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 389
- 2017A Semantic Loss Function for Deep Learning with Symbolic Knowledgecited by 267
- 2017Learning Explanatory Rules from Noisy Datacited by 210
- 2017Logic Tensor Networks for Semantic Image Interpretationcited by 92
- 2020Logic-Guided Data Augmentation and Regularization for Consistent Question Answeringcited by 77
- 2019A Logic-Driven Framework for Consistency of Neural Modelscited by 64
- 2015Hinge-Loss Markov Random Fields and Probabilistic Soft Logiccited by 63
- 2020Joint Constrained Learning for Event-Event Relation Extractioncited by 53
- 2019Augmenting Neural Networks with First-order Logiccited by 51
- 2017Adversarial Sets for Regularising Neural Link Predictorscited by 15
- 2020Analyzing Differentiable Fuzzy Implicationscited by 15
4 more
- 2013Towards a Formal Distributional Semantics: Simulating Logical Calculi with Tensorscited by 10
- 2020Structured Tuning for Semantic Role Labelingcited by 10
- 2019On the relation between Loss Functions and T-Normscited by 5
- 2020Deep Adaptive Semantic Logic (DASL): Compiling Declarative Knowledge into Deep Neural Networkscited by 3
Built on by
Citing papers per year: 2022: 1; 2023: 3; 2024: 2; 2025: 1; 2026: 1.
8 papers.
- 2022A-NeSI: A Scalable Approximate Method for Probabilistic Neurosymbolic Inferencecited by 50
- 2023A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraintscited by 21
- 2023Semantic Strengthening of Neuro-Symbolic Learningcited by 12
- 2024EXPLAIN, AGREE, LEARN: Scaling Learning for Neural Probabilistic Logiccited by 6
- 2024Understanding the Logic of Direct Preference Alignment through Logiccited by 5
- 2023The Integer Linear Programming Inference Cookbookcited by 2
- 2025Gradient-Based Optimization on G"odel Logic as Discrete Local Searchcited by 1
- 2026A neurosymbolic Approach with Epistemic Deep Learning for Hierarchical Image Classificationcited by 1
- 2026A neurosymbolic Approach with Epistemic Deep Learning for Hierarchical Image Classification11 May 2026
- 2025Gradient-Based Optimization on G"odel Logic as Discrete Local Search3 Mar 2025
- 2024Understanding the Logic of Direct Preference Alignment through Logic23 Dec 2024
- 2024EXPLAIN, AGREE, LEARN: Scaling Learning for Neural Probabilistic Logic15 Aug 2024
- 2023A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraints6 Dec 2023
- 2023The Integer Linear Programming Inference Cookbook30 Jun 2023
- 2023Semantic Strengthening of Neuro-Symbolic Learning28 Feb 2023
- 2022A-NeSI: A Scalable Approximate Method for Probabilistic Neurosymbolic Inference23 Dec 2022