Accelerating NeurASP with vectorization and caching

Alexander Philipp Rader, Alessandra Russo
6/9/2026
cs.AIcs.LO

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{rader2026accelerating,
  title  = {Accelerating NeurASP with vectorization and caching},
  author = {Alexander Philipp Rader and Alessandra Russo},
  year   = {2026},
  eprint = {2606.10787},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.10787v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.10787.svg)](https://codeofpaper.com/paper/2606.10787)

Discussion