- Rating
- 4
- Clarity
- 4
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 4
Read review
Summary
This paper proposes a new, general framework for Neurosymbolic (NeSy) which potentially allows any inference engine for the symbolic component.
Probabilistic neurosymbolic (NeSy) learning is cast as an Expectation-Maximization (EM) problem. NeSy learning is set up as a discriminative latent-variable model: the neural network predicts a distribution over symbols (the prior) from the subsymbolic observations, and the symbolic/inference component operates as correction to relate these symbols to the observed label . In the E-step the posterior over the neurally predicted symbols is computed, conditioned on the label. In the M-step the neural parameters are updated by gradient descent through the neural component only, using this posterior.
The authors make three evaluative claims. First, under exact inference their EM formulation recovers standard end-to-end gradient-based NeSy learning, so it is a strict generalization rather than a different objective (Sec. 3, proof in App. A). Second, because gradients flow only through the neural component, the symbolic/inference part is not required to be differentiable, which removes the central obstacle to using approximate inference in the symbolic component (sampling-based and iterative schemes are shown to embed in the framework, Sec. 4). Third, they claim effectiveness and generality across multiple benchmarks and inference engines, while additionally providing a scalability/efficiency advantage (Sec. 6).
Strengths and weaknesses
Strengths
Significance / Originality. The framing addresses a real and well-known limitation: existing probabilistic NeSy methods require the symbolic component to be differentiable, which constrains the choice of inference. Decoupling neural optimization from inference differentiability via EM is a genuine contribution and would let the community reuse approximate-inference engines that are currently hard to integrate (Sec. 4). The claim that the approach is a strict generalization of end-to-end gradient NeSy under exact inference (Sec. 3, App. A) is the right kind of result, and the proof is valid. According to the results reported by the paper, EM-NeSy is comparable in performance to state-of-the-art NeSy methods, while reducing runtime by a substantial factor.
Quality. The paper is honest about its own boundaries: Sec. 4 states plainly that EM-NeSy gives no additional benefit when exact inference is tractable, rather than overselling. It also concretely demonstrates how sampling-based and iterative inference schemes embed into the framework, which substantiates the generality claim beyond a single instantiation.
Clarity. The motivation is stated clearly up front. Sec. 2 introduces the EM algorithm and its variants (2.1) and presents probabilistic NeSy learning as a discriminative latent-variable model (2.2) in an accessible way. The core idea in Sec. 3 is developed step-by-step. With figure 1, the paper provides a graphical abstract which presents an intuitive visualization of the differences between NeSy and EM-NeSy. On a sidenote, it might be helpful to include the key distributions, like already in the figure, i.e., after the E-step.
Links to related work. The paper provides a detailed overview on related work in section 5, and describes the key differences to EM-NeSy. However, specifically the distinction from Relational Neural Machines (RNM) could be more clear, as they seem to share many components like Expectation Maximization with EM-NeSy already, with the only mentioned difference being the introduction of EM as a general NeSy framework.
Weaknesses
The framework is scoped to a conditional-prior neural component, but the EM framing claims more (Sec. 2.2, Eq. 3; Sec. 3, Eq. 5–7). Throughout, the neural component is a conditional prior (arrow ; Sec. 2.2). This leaves out the canonical EM use case (e.g., a generative neural emission model in an HMM), where the component serves as an emission rather than a prior. This is neither derived nor evaluated here. Headline statements ("unlocks the full potential of the EM algorithm," "casts NeSy learning as an instance of EM") therefore oversell the demonstrated generality, since classical EM for HMMs updates exactly these emission parameters in the M-step. Please scope the claims to conditional-prior neural components, or clarify whether the generative/emission case can be be covered and how.
Confusing report of results (Sec. 6, Tables 1–3). Some reported numbers have been taken from other papers and some entries (notably training time) are missing, which obscures the comparison. Most importantly, the EXAL baseline was run on different, unspecified hardware, which makes its runtime results, and therefore the scalability/efficiency claim difficult to interpret. This could be communicated more clearly by the paper; it is currently only mentioned in the appendix. The main text creates the impression, that all methods have been run on the same hardware. Either re-run baselines on the same hardware, or clearly mark which numbers are not directly comparable and drop them from efficiency claims. Also, it is not clear why not all 3 EM-NeSy variants have been evaluated on all benchmarks, i.e., ABC-EM is only used on 2 of the 3 benchmarks. -- This issue is the main reason for the quality rating. (An explanation regarding the "T/O" notation appears to be missing - presumably "time out"? What is the time limit used to receive a timeout?)
The derivation of the core mechanism is somewhat buried (Sec. 3, Eq. 5–7; App. A). The core mechanism is training the neural prior against the symbolically computed posterior via the cross-entropy loss (Eq. 7). This is the paper's central contribution, but the main text nearly skims over it. The justification sits in the appendix. Theorem 3.1 and App. A show Eq. 7 has the same gradient as the standard NeSy loss Eq. 4, making it the correct EM Q-function for a conditional-prior neural component. The derivation is correct but is not used to motivate the design. As written, a reader of the main text cannot tell whether the loss follows from the EM objective, is an approximation, or is a heuristic. Please lift the key step of the App. A derivation into Sec. 3 and state that Eq. 7 is the expected complete-data log-likelihood of the conditional-prior model.
Abstract exposition with no grounding example (Sec. 2 and Sec. 3). The E- and M-steps (Sec. 2) and the core idea (Sec. 3, Eq. 5–7) are presented only abstractly. A single worked example showing how the expected complete-data log-likelihood is computed in the E-step, how the M-step update is formed, and how Eq. 5–7 instantiate in that example, would improve clarity.
Minor. Sec. 4, lines 205–206: a minus sign appears to be missing after the transformation step. EM-NeSy with ABC sampling is denoted as "ABC-EM" in the performance tables, but as "EM-ABC" in line 320.
Overall, EM-NeSy seems to be a promising new framework for Neurosymbolic learning that has the potential to decouple implementations of neural and symbolic components, while simultaneously substantially reducing computational overhead. This could allow NeSy methods to scale to more complex, real-world scenarios.
Questions
-
Generative/emission case. Your formulation always uses the neural net as a conditional prior (). What happens when the neural component instead parameterizes an observation model () (e.g. the emission model of an HMM)? The machinery displayed here appears only applicable to the neural net as a conditional prior. Does the framework extend straightforwardly, require modification, or break? If it is out of scope, please scope the "full potential of EM" claims accordingly and state this as a limitation. A clear answer here (either an extension or an explicit scoping) would raise my score.
-
Motivation of the core mechanism (Eq. 5–7). Theorem 3.1/App. A establish that Eq. 7 has the same gradient as the standard NeSy loss and is the EM Q-function for a conditional-prior neural component, but this is not used to motivate the design in the main text. Could you lift the key derivation step into Sec. 3 and state explicitly that Eq. 7 is the expected complete-data log-likelihood of the conditional-prior model, so the mechanism reads as derived rather than asserted?
-
Hardware-fair efficiency comparison (Tables 1–3). Can you report all training-time numbers on identical hardware, or at minimum state the hardware per number and exclude non-comparable entries (EXAL) from efficiency claims? This directly affects whether the scalability claim is supported. Also, what is the reason that the evaluated EM-NeSy methods differ across benchmarks? I.e., why is ABC-EM only evaluated on 2 of 3 benchmarks/not on the MNISTAdd benchmark?
-
Worked example. Could you add a single concrete instantiation walking through the E-step (expected complete-data log-likelihood) and the M-step update for a small task? This is a clarity request, not a correctness concern, but it would strengthen Sec. 2–3.
-
Variance in Performance. Depending on the employed inference strategy, the variance in performance of NeSy-EM appears pretty big, ranging from literally 0% accuracy, to up to 98% accuracy. You attribute the low performance of BP-EM-M to "bias introduced by MAP inference." Could you please elaborate on that? What about the variance in performance of BP-EM and ABC-EM?
Limitations
Partially. The paper is explicit that EM-NeSy offers no advantage under tractable exact inference (Sec. 4). It also justifies the core mechanism (Theorem 3.1/App. A) though that justification is buried in the appendix rather than used to motivate the design in the main text. Two substantive limitations are not addressed:
-
The framework is scoped to a conditional-prior neural component only. The canonical generative case (e. g., a neural emission model as in an HMM) is neither handled nor acknowledged, despite headline claims of "the full potential of EM" (see Weaknesses).
-
The efficiency claims rest in part on cross-hardware and borrowed numbers (Sec. 6) without the caveats this requires. An explicit limitations statement covering the discriminative/conditional-prior scope and the comparability of the timing results would address this.
Paper formatting concerns
Not really formatting, but still a concern: A reference for the claim in lines 183-186 would be good.
Final justification
After considering the discussion and the replies, I think the paper has gained in quality, so I have increased my score there. I do not think that the overall contribution has increased a lot, so I'll stick to my score there.
Additional experimental evaluation: We implemented a new relaxed belief-propagation inference method (RBP-EM) for Visual Sudoku, which achieves state-of-the-art accuracy while keeping computation time minimal. Specifically, inference is not propagated through the entire factor graph at every iteration, and incoming factor-to-variable messages are combined additively rather than multiplicatively, followed by normalization. This relaxation reduces the reinforcement of repeated evidence, mitigates overconfident beliefs caused by cyclic dependencies, and yields a more stable and computationally efficient inference process.
In addition, we report runtimes for DeepSoftLog on the MNISTAdd task and EXAL on the Warcraft task, measured on the same hardware as the other methods to enable a fair comparison. Details of these additional experiments and their results are provided below.
| MNISTAdd | 4 | 15 | 100 |
| DeepSoftLog (timings for 1 epoch in min) | 25.00 | 79.49 | 501.94 |
| Visual Sudoku | 4x4 | 9x9 |
| RBP-EM (accuracy) | 87.10 ± 2.68 | 59.50 ± 2.67 |
| RBP-EM (total training time in min) | 0.69 | 2.55 |
| Warcraft | 12x12 | 30x30 |
| EXAL (total training time in min) | 7.75 | 58.75 |
Q1: Since our paper only covers the case where the neural component serves as a conditional prior for the symbolic component, we will scope it accordingly by
However, we will add a new section the appendix entitled “Generative EM-NeSy.”: Although EM-NeSy is developed and evaluated for predictive neuro-symbolic learning settings, where the neural component acts as a conditional prior for the symbolic component, the framework naturally extends to generative NeSy learning. Existing generative NeSy systems combine perception, symbolic reasoning, and generation components [1,2,3]. EM-NeSy extends naturally to such architectures by alternating between inference over latent symbolic variables and optimization of the neural components. For example, in the CVAE architecture of [1], the symbolic module computes a posterior over symbolic variables given the label, and the supervised objective becomes a KL divergence between this posterior and the neurally predicted prior. The reconstruction objective remains unchanged. Furthermore, the decoder can be conditioned on the symbolic posterior rather than the neural prior, potentially improving optimization through more accurate latent-state information.
This example illustrates that EM-NeSy can, in principle, be extended to generative neuro-symbolic architectures and may even offer advantages through posterior-guided generation, although we leave empirical validation of these benefits to future work.
[1] De Smet, Lennert, et al. "Neural probabilistic logic programming in discrete-continuous domains." The 39th Conference on Uncertainty in Artificial Intelligence. 2023.
[2] Misino, Eleonora, Giuseppe Marra, and Emanuele Sansone. "Vael: Bridging variational autoencoders and probabilistic logic programming." Advances in Neural Information Processing Systems 35 (2022): 4667-4679.
[3] De Smet, Lennert, et al. "Relational neurosymbolic Markov models." THIRTY-NINTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, AAAI-25, VOL 39 NO 15. AAAI Press, 2025.
Q2: We will make it clearer that EM-NeSy is not a heuristic method, but rather is derived directly from end-to-end probabilistic neuro-symbolic learning. Thank you for this suggestion! Specifically, we will change the sentence on lines 133–135 to: “The labels abduced in the E-step can now serve to define a loss function at the latent-variable level: the cross-entropy between the neurally predicted prior distributions pNe(z|x, θ) over the latent variables and their posterior ℓ(z), yielding the expected complete-data log-likelihood of the conditional-prior model:”. We will also add a fourth contribution to the Introduction: “We show that, under exact inference, EM-NeSy learning yields the same gradients as end-to-end neuro-symbolic learning.”
Q3: We have rerun EXAL on the same hardware as the competing methods and obtained runtime measurements that confirm the original conclusions regarding computational efficiency. The runtime reported for EXAL in the original submission was taken from the original EXAL paper and therefore corresponds to a different hardware setup (Appendix C.5, Line 569). We agree that this should have been stated explicitly in the table. Since then, we have been able to execute the publicly available EXAL implementation on the same hardware used for the competing methods. Because the original dataset conversion was unavailable, we measured runtime on synthetic instances of identical size.
For the 12×12 maps, the runtime is comparable to ABC-EM, whereas on the 30×30 dataset ABC-EM is faster. This is likely because ABC-EM uses only 20 samples on the 30×30 dataset, while EXAL relies on iterative Gibbs sampling with a burn-in period of 100 resampling steps followed by 300 sampling steps.
We use different variants of EM-NeSy depending on the task, as different inference methods are suited to different problem structures. We do not evaluate ABC-EM on MNISTAdd because BP-EM already performs fast exact inference on this task. Conversely, we do not evaluate BP-EM on Warcraft because we are not aware of an efficient factor-graph encoding of Dijkstra’s shortest-path algorithm.
The reported timeouts reflect the inherent computational cost of exact inference, whose search spaces grow exponentially with problem size. The exact-inference results for DeepStochLog, Semantic Loss, and Semantic Probabilistic Layers are taken from [4]. For Semantic Loss, a timeout is reported because the CNF encoding of 9×9 Sudoku could not be compiled into an SDD with PySDD within 4 hours. For DeepStochLog and Semantic Probabilistic Layers, the timeout limit was not reported in [4] but we asked the authors about them and will provide them as soon as we receive an answer. Note that DeepStochLog considers all possible explanations of a label. For n-digit MNIST addition, this corresponds to 10^n explanations, making timeouts for n=15 and n=100 digits unsurprising. Similarly, Semantic Probabilistic Layers on Warcraft must compile the set of valid paths on a 30×30 grid into an SDD. This set is already lower-bounded by the number of monotone corner-to-corner paths, >3*10^16, and is therefore extremely large. The Scallop baseline was implemented using the Python package scallopy. For the 9×9 Visual Sudoku task, the system attempted to compile the Sudoku constraints but failed after approximately two hours, terminating with an error before compilation could be completed.
[4] van Krieken, Emile, et al. "A-nesi: A scalable approximate method for probabilistic neurosymbolic inference." Advances in Neural Information Processing Systems 36 (2023): 24586-24609.
Q4: We will add a worked MNIST-Add example showing how EM-NeSy computes a posterior over symbolic explanations from the neural prior and observed label. The neural component is then trained using the KL divergence between the prior and this symbolic posterior.
Q5: The higher variance of MAP inference arises from its sensitivity to early training dynamics. MAP inference uses only the most likely explanation. Early in training, these explanations are largely determined by random initialization and may therefore reinforce incorrect assignments, causing premature commitment to poor local optima. On 100-digit MNISTAdd, we observed collapse of one digit class into another. Annealing may alleviate this by delaying hard decisions.
The standard deviations of the performance of BP-std and BP-EM are similar and can be explained by minor numerical differences. Note that in the 100-digit MNIST addition task the neural component has to classify 200 digit images. So minor differences in its performance (say accuracy 0.99 vs. 0.985) result in large differences of task accuracy (0.99^200=0.13 vs 0.985^200=0.05).
The higher variance of ABC-EM on large Warcraft instances is primarily caused by sampling noise. While the standard deviations achieved by ABC-EM are comparable to those of the other methods on Visual Sudoku and 12×12 maps, the variance increases substantially on 30×30 maps. This is likely due to the enormous sampling space and the small number of samples used: There are 5^(30^2) possible instantiations of the neural prior, while the approximation is based on only 20 samples, as each sample requires executing the relatively expensive Dijkstra algorithm. Hence the quality of the approximation, and therefore the quality of the supervision signal provided to the neural component, depends heavily on obtaining representative samples.