Lune

AAAI2025Top-tier venue

The Gradient of Algebraic Model Counting

Jaron Maene, Luc De Raedt

Abstract

Algebraic model counting unifies many inference tasks on logic formulas by exploiting semirings. Rather than focusing on inference, we consider learning, especially in statistical-relational and neurosymbolic AI, which combine logical, probabilistic and neural representations. Concretely, we show that the very same semiring perspective of algebraic model counting also applies to learning. This allows us to unify various learning algorithms by generalizing gradients and backpropagation to different semirings. Furthermore, we show how cancellation and ordering properties of a semiring can be exploited for more memory-efficient backpropagation. This allows us to obtain some interesting variations of state-of-the-art gradient-based optimisation methods for probabilistic logical models. We also discuss why algebraic model counting on tractable circuits does not lead to more efficient second-order optimization. Empirically, our algebraic backpropagation exhibits considerable speed-ups as compared to existing approaches.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • A Compositional Atlas of Tractable Circuit Operations for Probabilistic Inference cites Group Fairness by Probabilistic Modeling with Latent Fair Decisions
  • Semantic Probabilistic Layers for Neuro-Symbolic Learning cites A Compositional Atlas of Tractable Circuit Operations for Probabilistic Inference
  • Semantic Probabilistic Layers for Neuro-Symbolic Learning cites Einsum Networks: Fast and Scalable Learning of Tractable Probabilistic Circuits
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on9

  1. Einsum Networks: Fast and Scalable Learning of Tractable Probabilistic CircuitsRobert Peharz, Steven Lang, Antonio Vergari, Karl Stelzner et al.ICML 2020 · 155 citations
  2. Semantic Probabilistic Layers for Neuro-Symbolic LearningKareem Ahmed, Stefano Teso, Kai-Wei Chang, Guy Van den Broeck et al.NeurIPS 2022 · 133 citations
  3. A Compositional Atlas of Tractable Circuit Operations for Probabilistic InferenceAntonio Vergari, YooJung Choi, Anji Liu, Stefano Teso et al.NeurIPS 2021 · 112 citations
  4. Group Fairness by Probabilistic Modeling with Latent Fair DecisionsYooJung Choi, Meihua Dang, Guy Van den BroeckAAAI 2021 · 43 citations
  5. Differentiable Sampling of Categorical Distributions Using the CatLog-Derivative TrickLennert De Smet, Emanuele Sansone, Pedro Zuidberg Dos MartiresNeurIPS 2023 · 17 citations

Related papers

  1. Scallop: A Language for Neurosymbolic ProgrammingZiyang Li, Jiani Huang, Mayur NaikPLDI 2023 · 38 citations
  2. On the Hardness of Probabilistic Neurosymbolic LearningJaron Maene, Vincent Derkinderen, Luc De RaedtICML 2024 · 6 citations
  3. Embeddings as Probabilistic Equivalence in Logic ProgramsJaron Maene, Efthymia TsamouraNeurIPS 2025 · 4 citations
  4. A Compositional Atlas for Algebraic CircuitsBenjie Wang, Denis Deratani Mauá, Guy Van den Broeck, YooJung ChoiNeurIPS 2024 · 13 citations
  5. Neurosymbolic Reasoning and Learning with Restricted Boltzmann MachinesSon N. Tran, Artur S. d'Avila GarcezAAAI 2023 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines