mlsanityData to 14 Oct 2026

NeSyCat Torch: A Differentiable Tensor Implementation of Categorical Semantics for Neurosymbolic Learning

arXiv 2606.19279 ↗First posted 17 Jun 2026cs.AI cs.LG cs.LOcited by 0

Not on the map. Why?

Abstract (arXiv)

Neurosymbolic semantics is fragmented: classical, fuzzy, probabilistic and neural systems each define truth by their own inductive rules. NeSyCat, extending ULLER, subsumes them under a single inductive definition of truth, parametric in a strong monad and an aggregation structure on truth-values. NeSyCat has so far lacked an account of predicates and functions learned by neural networks. We provide NeSyCat Torch as the missing link and interpret computational symbols via neural networks, implementing the framework in probabilistic programming and tensor-based backends. We use the distribution monad for reference semantics and metric evaluation, and complement it by a monad for numerically stable, differentiable training: the lazy log-tensor monad over the log-semiring. For efficient training in batches, we furthermore employ a batch monad. The axioms are the source code: written once in monad-based do-notation, monadic bind performs marginalisation, lazily pruning unneeded branches. On MNIST addition, our HaskTorch, JAX, and PyTorch implementations outperform LTN and DeepProbLog in speed and accuracy, while achieving nearly the accuracy of DeepStochLog. However, unlike DeepStochLog, we stay in a uniform framework that applies to many first-order NeSy approaches. Namely, the construction is parametric in the monad; instantiating it with, e.g., the Giry monad extends the approach to continuous probability (working out a neural representation here is left for future work).

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 14 of its 24 references that are in the map. First posted on arXiv 17 Jun 2026.

Builds on

14 of 24 references.

References · 14

  1. 2018Pyro: Deep Universal Probabilistic Programmingcited by 380
  2. 2020Logic Tensor Networkscited by 199
  3. 2020Analyzing Differentiable Fuzzy Logic Operatorscited by 101
  4. 2021DeepStochLog: Neural Stochastic Logic Programmingcited by 58
  5. 2022A-NeSI: A Scalable Approximate Method for Probabilistic Neurosymbolic Inferencecited by 50
  6. 2017Backprop as Functor: A compositional perspective on supervised learningcited by 44
  7. 2024Position: Categorical Deep Learning is an Algebraic Theory of All Architecturescited by 32
  8. 2023Neural Probabilistic Logic Programming in Discrete-Continuous Domainscited by 25
  9. 2023Logic of Differentiable Logics: Towards a Uniform Semantics of DLcited by 15
  10. 2024ULLER: A Unified Language for Learning and Reasoningcited by 9
  11. 2019Tensor Variable Elimination for Plated Factor Graphscited by 6
  12. 2023logLTN: Differentiable Fuzzy Logic in the Logarithm Spacecited by 5
2 more
  1. 2014Monads need not be endofunctorscited by 2
  2. 2026NeSyCat: A Monad-Based Categorical Semantics of the Neurosymbolic ULLER Frameworkcited by 1

Built on by

Not cited yet.