On the Independence Assumption in Neurosymbolic Learning

Emile van Krieken, Pasquale Minervini, Edoardo Ponti, Antonio Vergari

Introduction

Neurosymbolic (NeSy) learning aims to integrate the perceptual capabilities of neural networks with the rigorous reasoning of symbolic logic. A common application involves using logical constraints—such as "a traffic light cannot be both red and green simultaneously"—to guide model training. To ensure mathematical tractability, the vast majority of current NeSy frameworks, including DeepProbLog and Semantic Loss, rely on the conditional independence assumption. This assumes that the probabilities of individual symbols (e.g., 'red' and 'green') are independent given the input image.

This paper argues that this assumption is a fundamental flaw. By analyzing the geometry of the loss landscape, the authors demonstrate that independence forces models toward overconfidence, creates disconnected minima that hinder optimization, and prevents the system from representing true uncertainty.

Theoretical Framework

The authors provide a rigorous analysis of the Semantic Loss landscape by bridging formal logic and topology. Their methodology utilizes two primary mathematical tools:

  1. Implicants: Logical assignments that satisfy a formula are used to identify the location of loss minima.
  2. Cubical Sets and Homology: These tools characterize the "shape" of the set of possible independent distributions, allowing the authors to prove whether the solution space is convex or composed of isolated "islands."

They compare standard independent models (where each symbol is treated as a Bernoulli trial) against expressive models that can represent joint distributions over all possible worlds.

Figure 1: Geometry of minima in the probability simplex. The independence assumption restricts the set of reachable minima (blue lines) compared to the full set of valid solutions (green area), illustrating the "Determinism Trap."

The Geometry of Semantic Loss

The paper reveals several critical insights into how the independence assumption distorts learning:

  • The Determinism Trap: Theorem 3.1 proves that an independent distribution only minimizes semantic loss if it is deterministic for enough variables to satisfy the logic. This mathematically "bullies" the model into overconfidence, even when the underlying data is ambiguous.
  • The Connectivity Barrier: For complex logical formulas (like XOR), the loss landscape becomes non-convex and disconnected. In tasks like MNIST Addition, the "islands" of optimal solutions are physically separated in parameter space. A model stuck in an incorrect logical interpretation cannot easily migrate to the correct solution via gradient descent without passing through high-loss regions.
  • Expressivity as a Solution: By moving to models that represent joint distributions, the loss landscape becomes convex and connected, enabling smoother training and accurate uncertainty quantification.

Key Results

The theoretical findings are supported by empirical visualizations. Figure 3 demonstrates that while independent models are constrained to the edges of the probability simplex (representing deterministic states), expressive models can occupy the interior, correctly representing uncertainty between multiple valid options.

Figure 3: Comparison of Independent vs. Expressive (Softmax) models. Independent models are stuck on specific curves or edges, while expressive models can represent the interior of the simplex, capturing true uncertainty between valid states.

Formal results in Theorems 4.11 and 4.13 link the "connectedness" of the solution space to a "prime implicant graph." If the logic is complex, the model's potential solutions become isolated, making successful training highly dependent on initial parameter luck.

Conclusion and Future Work

While dropping the independence assumption improves model behavior, it introduces significant computational complexity, as calculating joint distributions is generally #P-hard. The authors suggest that future research should focus on approximate inference techniques, efficient mixtures of independent distributions, and extending this topological analysis to continuous logical constraints.

Summary updated

BibTeX
@inproceedings{krieken2024independence,
  author = {Emile van Krieken and Pasquale Minervini and Edoardo Ponti and Antonio Vergari},
  title = {{On the Independence Assumption in Neurosymbolic Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=S1gSrruVd4},
}
Figure