Neurosymbolic Diffusion Models
Emile van Krieken, Pasquale Minervini, Edoardo Ponti, Antonio Vergari
TL;DR
This work tackles the reliability and out-of-distribution robustness of neurosymbolic predictors by relaxing the typical conditional independence assumption between concepts. It introduces neurosymbolic diffusion models (NeSyDMs), which leverage masked discrete diffusion to capture dependencies among concepts while preserving local independence at each denoising step for scalable learning. The authors derive a continuous-time NeSyDM variational objective (the NeSyDM-NELBO) with three components—concept denoising, output denoising, and variational entropy—and develop gradient estimators and sampling schemes to train models that jointly reason over concepts and symbolic programs. Empirically, NeSyDMs achieve state-of-the-art accuracy among NeSy predictors on RSBench tasks and scale to high-dimensional reasoning challenges like visual path planning, while delivering improved calibration and RS-awareness, thus supporting safer and more reliable AI in complex domains.
Abstract
Neurosymbolic (NeSy) predictors combine neural perception with symbolic reasoning to solve tasks like visual reasoning. However, standard NeSy predictors assume conditional independence between the symbols they extract, thus limiting their ability to model interactions and uncertainty - often leading to overconfident predictions and poor out-of-distribution generalisation. To overcome the limitations of the independence assumption, we introduce neurosymbolic diffusion models (NeSyDMs), a new class of NeSy predictors that use discrete diffusion to model dependencies between symbols. Our approach reuses the independence assumption from NeSy predictors at each step of the diffusion process, enabling scalable learning while capturing symbol dependencies and uncertainty quantification. Across both synthetic and real-world benchmarks - including high-dimensional visual path planning and rule-based autonomous driving - NeSyDMs achieve state-of-the-art accuracy among NeSy predictors and demonstrate strong calibration.
