~/shanegraffiti.com/research/em-nesy
Shane Graffiti Inc. Semantic Adversarial Research Division 2026
Neurosymbolic (NeSy) models integrate neural networks with symbolic reasoning for robust and interpretable AI. State-of-the-art NeSy models require the symbolic component to be expressed differentiably, which complicates the use of approximate inference. EM-NeSy recasts probabilistic NeSy learning as an instance of the Expectation-Maximization algorithm. In the E-step, the posterior over neurally predicted symbols conditioned on the label is computed via probabilistic inference. In the M-step, neural parameters are updated based on this posterior using gradient descent solely through the neural component unlocking the full potential of EM for NeSy learning, with no differentiability requirements on the symbolic side.
Standard NeSy learning backpropagates gradients through both the symbolic and neural components. EM-NeSy breaks this dependency. The symbolic component no longer needs to be differentiable it simply needs to compute a posterior. That posterior becomes the training signal for the neural component.
NeSy learning is reframed as a latent variable model. The subsymbolic input X is observed. The symbolic output Z the neural component's prediction is latent. The target Y is observed and inferred from Z by the symbolic component encoding background knowledge.
The E-step is inference-engine-agnostic. Each approach has tradeoffs. EM-NeSy doesn't require a new approach per method the framework stays fixed while the inference engine is swapped.
Three benchmarks. All combine visual perception with symbolic reasoning under weak supervision no direct annotation on intermediate symbols, only the final label.
Standard NeSy models require inference-specific modifications to stay differentiable under approximate inference. EM-NeSy eliminates that requirement entirely, providing one unified framework that handles any inference method without modification.