REVIEW 2 major objections 14 references
Vectorization and caching speed up NeurASP probability and gradient calculations by multiple orders of magnitude.
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · grok-4.3
2026-06-27 13:20 UTC pith:D72JKIQI
load-bearing objection The paper speeds up NeurASP via vectorization, batching, and caching with claimed large gains, but does not confirm the new version matches the original on probabilities and gradients. the 2 major comments →
Accelerating NeurASP with vectorization and caching
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
By replacing the original non-vectorized probability and gradient calculations with vectorized, batched, and cached versions, the enhanced NeurASP implementation produces identical numerical results yet runs multiple orders of magnitude faster on larger tasks.
What carries the argument
Vectorized and cached probability and gradient calculations over answer set programming rules during backpropagation.
Load-bearing premise
The vectorized and cached versions produce exactly the same numerical probabilities and gradients as the original implementation.
What would settle it
Run both the original and accelerated code on the same card-game input and check whether the computed probabilities and gradients differ by more than floating-point noise.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper claims that vectorization, batch processing, and caching of probability and gradient calculations in NeurASP yield speedups of multiple orders of magnitude on larger tasks while preserving training validity, demonstrated via comparisons on a new playing-card dataset.
Significance. If the optimized implementation is numerically equivalent to the original, the work would meaningfully improve scalability of NeurASP for neurosymbolic tasks that rely on expensive ASP reasoning, directly addressing the computational bottleneck noted in the abstract.
major comments (2)
- [Abstract] Abstract: the headline claim of 'speedups of multiple orders of magnitude for larger tasks' while 'keeping training valid' is load-bearing on the unstated assumption that vectorized/batched probability and gradient computations produce identical numerical outputs (including gradients) to the scalar original; no side-by-side numerical verification, error analysis, or equivalence checks are described.
- [Abstract] Abstract and described experiments: wall-clock timings are reported without accompanying tables of per-epoch loss values, gradient norms, or final accuracies on identical inputs, leaving open the possibility that floating-point re-association or cache invalidation alters results.
Simulated Author's Rebuttal
We thank the referee for highlighting the need to explicitly verify numerical equivalence between the original and optimized NeurASP implementations. This is a substantive point that strengthens the paper. We address each major comment below and will revise the manuscript accordingly.
read point-by-point responses
-
Referee: [Abstract] Abstract: the headline claim of 'speedups of multiple orders of magnitude for larger tasks' while 'keeping training valid' is load-bearing on the unstated assumption that vectorized/batched probability and gradient computations produce identical numerical outputs (including gradients) to the scalar original; no side-by-side numerical verification, error analysis, or equivalence checks are described.
Authors: We agree that the validity claim requires explicit confirmation that the vectorized, batched, and cached computations produce outputs and gradients identical to the scalar version (within floating-point tolerance). The optimizations were implemented to preserve mathematical equivalence, but we did not include verification experiments in the submitted version. In the revision we will add a dedicated subsection (and corresponding appendix) reporting side-by-side comparisons of probability tensors, gradient values, per-epoch losses, and final accuracies on identical inputs, together with an error analysis showing that discrepancies remain at machine precision. revision: yes
-
Referee: [Abstract] Abstract and described experiments: wall-clock timings are reported without accompanying tables of per-epoch loss values, gradient norms, or final accuracies on identical inputs, leaving open the possibility that floating-point re-association or cache invalidation alters results.
Authors: We acknowledge that wall-clock timings alone are insufficient without evidence that training dynamics and outcomes are unchanged. The revised manuscript will include tables (and plots) that directly compare per-epoch loss, gradient norms, and final task accuracies between the original and optimized implementations on the same card-game dataset and random seeds. These will be placed alongside the timing results to demonstrate that the reported speedups do not come at the cost of altered numerical behavior. revision: yes
Circularity Check
No circularity: empirical implementation speedup with no derivation chain
full rationale
The paper reports measured wall-clock speedups from vectorization, batching, and caching applied to NeurASP probability/gradient calculations. No equations derive a result from inputs by construction, no parameters are fitted then renamed as predictions, and no self-citation chain supports a uniqueness or ansatz claim. The contribution is purely engineering and benchmarking; the implicit numerical-equivalence assumption is a correctness concern, not a circular reduction of any claimed derivation.
Axiom & Free-Parameter Ledger
read the original abstract
Neurosymbolic AI combines neural networks with symbolic programs to create robust and explainable predictions. One such framework is NeurASP, which trains a neural network to predict concepts and reasons over them using rules written in answer set programming (ASP) to solve downstream tasks. Crucially, labels are only provided for the downstream prediction produced by the symbolic rules, not for the latent concepts themselves. Backpropagation through the non-differentiable ASP component requires expensive probability and gradient calculations, which has hindered scalability to more sophisticated tasks. In this paper, we address the current limitations of NeurASP by improving its computational performance through vectorization, batch processing and caching of intermediate computations during training. We compare computation speeds between the original and our new implementation of NeurASP and report speedups of multiple orders of magnitude for larger tasks. To this end, we propose a new dataset of difficult tasks involving playing cards, which we use to test the capabilities of NeurASP's enhanced learning function.
Figures
Reference graph
Works this paper leans on
-
[1]
InNeural-Symbolic Learning and Reasoning: 18th International Conference, NeSy 2024, Barcelona, Spain, September 9–12, 2024, Proceedings, Part I2024, 195–218, Berlin, Heidelberg
Aspis, Y.,Albinhassan, M.,Lobo, J.,and Russo, A.Embed2rule scalable neuro-symbolic learning via latent space weak-labelling. InNeural-Symbolic Learning and Reasoning: 18th International Conference, NeSy 2024, Barcelona, Spain, September 9–12, 2024, Proceedings, Part I2024, 195–218, Berlin, Heidelberg. Springer-Verlag
2024
-
[2]
Ffnsl: Feed-forward neural-symbolic learner,112, 2, 515–569
Cunnington, D.,Law, M.,Lobo, J.,and Russo, A.2023. Ffnsl: Feed-forward neural-symbolic learner,112, 2, 515–569
2023
-
[3]
The mnist database of handwritten digit images for machine learning research, 29, 6, 141–142
Deng, L.2012. The mnist database of handwritten digit images for machine learning research, 29, 6, 141–142
2012
-
[4]
and Lamb, L.Neurosymbolic ai: the 3rd wave
Garcez, A. and Lamb, L.Neurosymbolic ai: the 3rd wave. InArtificial Intelligence Review 2023, volume 56, pp. 1–20
2023
-
[5]
Multi-shot ASP solving with clingo
Gebser, M.,Kaminski, R.,Kaufmann, B.,and Schaub, T.Multi-shot ASP solving with clingo. InCoRR2017, volume abs/1705.09811
work page internal anchor Pith review Pith/arXiv arXiv
-
[6]
Llm-arc: Enhancing llms with an automated reasoning critic
Ferrucci, D.2024. Llm-arc: Enhancing llms with an automated reasoning critic
2024
-
[7]
and Hinton, G.2009
Krizhevsky, A. and Hinton, G.2009. Learning multiple layers of features from tiny images. Technical Report 0, University of Toronto, Toronto, Ontario
2009
-
[8]
InReason- ing Web
Law, M.,Russo, A.,and Broda, K.Logic-based learning of answer set programs. InReason- ing Web. Explainable Artificial Intelligence: 15th International Summer School 2019, Bolzano,
2019
-
[9]
196–231, Cham
Italy, September 20–24, 2019, Tutorial Lectures2019, pp. 196–231, Cham. Springer Interna- tional Publishing
2019
-
[10]
Springer Publishing Company, Incorporated, 1st edition
Lifschitz, V.2019.Answer Set Programming. Springer Publishing Company, Incorporated, 1st edition
2019
-
[11]
Neural probabilistic logic programming in deepproblog,298, 103504
Manhaeve, R.,Duman ˇci´c, S.,Kimmig, A.,Demeester, T.,and De Raedt, L.2021. Neural probabilistic logic programming in deepproblog,298, 103504
2021
-
[12]
S.,and Kersting, K.2024
Skryagin, A.,Ochs, D.,Dhami, D. S.,and Kersting, K.2024. Scalable neural-probabilistic answer set programming,78. 16Rader and Russo
2024
-
[13]
S.,and Kersting, K.2022
Skryagin, A.,Stammer, W.,Ochs, D.,Dhami, D. S.,and Kersting, K.2022. Neural- Probabilistic Answer Set Programming,19, 463–473
2022
-
[14]
Dspy-based neural-symbolic pipeline to enhance spatial reasoning in llms
Wang, R.,Sun, K.,and Kuhn, J.2024. Dspy-based neural-symbolic pipeline to enhance spatial reasoning in llms
2024
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.