Noise to the Rescue: Escaping Local Minima in Neurosymbolic Local Search
Alessandro Daniele, Emile van Krieken
TL;DR
This work recasts backpropagation in neurosymbolic learning as a discrete local search by applying Gödel logic to neural computations, revealing a direct link between gradient updates and variable flips in SAT solving. It introduces the Gödel Trick, a noise-based reparameterization that empowers exploration and escapes local minima, and demonstrates its effectiveness on SATLIB benchmarks and the Visual Sudoku task. The GT framework outperforms standard fuzzy and probabilistic logics on SAT, while matching state-of-the-art Visual Sudoku performance with substantially lower computational cost. Overall, the approach provides a scalable, differentiable pathway to integrate symbolic reasoning with neural models, with broad implications for neurosymbolic learning and reasoning under uncertainty.
Abstract
Deep learning has achieved remarkable success across various domains, largely thanks to the efficiency of backpropagation (BP). However, BP's reliance on differentiability poses challenges in neurosymbolic learning, where discrete computation is combined with neural models. We show that applying BP to Godel logic, which represents conjunction and disjunction as min and max, is equivalent to a local search algorithm for SAT solving, enabling the optimisation of discrete Boolean formulas without sacrificing differentiability. However, deterministic local search algorithms get stuck in local optima. Therefore, we propose the Godel Trick, which adds noise to the model's logits to escape local optima. We evaluate the Godel Trick on SATLIB, and demonstrate its ability to solve a broad range of SAT problems. Additionally, we apply it to neurosymbolic models and achieve state-of-the-art performance on Visual Sudoku, all while avoiding expensive probabilistic reasoning. These results highlight the Godel Trick's potential as a robust, scalable approach for integrating symbolic reasoning with neural architectures.
