Abstract
Neurosymbolic AI aims to integrate deep learning with symbolic AI. This integration has many promises, such as decreasing the amount of data required to train a neural network, improving the explainability and interpretability of answers given by models and verifying the correctness of trained systems. We study neurosymbolic learning, where we have both data and background knowledge expressed using symbolic languages. How do we connect the symbolic and neural components to communicate this knowledge? One option is fuzzy reasoning, which studies degrees of truth. For example, being tall is not a binary concept. Instead, probabilistic reasoning studies the probability that something is true or will happen. Our first research question studies how different forms of fuzzy reasoning combine with learning. We find surprising results like a connection to the Raven paradox stating we confirm "ravens are black" when we observe a green apple. In this study, we did not use the background knowledge when we deployed our models after training. In our second research question, we studied how to use background knowledge in deployed models. We developed a new neural network layer based on fuzzy reasoning. Probabilistic reasoning is a natural fit for neural networks, which we usually train to be probabilistic. However, they are expensive to compute and do not scale well to large tasks. In our third research question, we study how to connect probabilistic reasoning with neural networks by sampling to estimate averages, while in the final research question, we study scaling probabilistic neurosymbolic learning to much larger problems than before. Our insight is to train a neural network with synthetic data to predict the result of probabilistic reasoning.
Introduction
Deep learning excels at pattern recognition but often struggles with data efficiency, robustness, and interpretability. Conversely, symbolic AI (logic) is interpretable and data-efficient but fails when faced with noisy, real-world sensory data. Neurosymbolic AI (NeSy) aims to merge these worlds. This dissertation by Emile van Krieken addresses two major optimization hurdles: the Discrete-Continuous Gap (reconciling differentiable neural networks with discrete logic) and the Latent Worlds Problem (resolving logical ambiguities in neural predictions).
Fuzzy Neurosymbolic Learning
One approach to bridging the gap is Differentiable Fuzzy Logics (DFL), which relax binary logic into continuous values between 0 and 1.
- Sigmoidal Implications: Standard fuzzy operators often suffer from "vanishing gradients," where the learning signal disappears. This work introduces a new family of "sigmoidal" operators that smooth out the optimization landscape.
- Iterative Local Refinement (ILR): A novel algorithm that acts as a neural network layer. Instead of just using logic as a loss function during training, ILR "nudges" the network's predictions at test time to ensure they satisfy logical constraints while staying as close as possible to the original perception.
Probabilistic Neurosymbolic Learning
While fuzzy logic is fast, probabilistic reasoning offers a more principled framework for handling uncertainty in neural networks.
- Storchastic: A new framework and PyTorch library for "Stochastic Automatic Differentiation." It allows researchers to mix discrete and continuous computation and automatically estimates gradients using various techniques like score functions or measure-valued derivatives.
- A-NeSI (Approximate Neurosymbolic Inference): This is the key to scalability. It uses neural networks to approximate the mathematically "hard" (#P-complete) task of counting valid logical worlds. This allows the system to scale to problems far larger than those handled by exact logic engines, such as solving 15-digit addition tasks where previous state-of-the-art systems failed after 4 digits.
Key Insights: The Raven Paradox and Scalability
A significant finding relates neurosymbolic optimization to the Raven Paradox in philosophy. The paradox states that observing a green apple confirms that "all ravens are black" because it supports the contrapositive statement ("all non-black things are non-ravens"). In NeSy, optimizers often focus too much on Modus Ponens (if it's a raven, it's black) and ignore Modus Tollens, leading to biased learning.
Furthermore, the research demonstrates that approximation is the key to scaling. By training a neural network to approximate the logic using synthetic data, the system scales linearly rather than exponentially, making complex reasoning tasks computationally feasible.
Conclusion
This work provides a significant step forward in combining the "thinking" and "perceiving" capabilities of AI. By treating logic as a layer and leveraging stochastic differentiation, we can build systems that are both perceptually capable and logically sound. Future directions include "learning the knowledge" itself—automatically discovering logical rules from data rather than relying on human-provided constraints.
Summary updated