The Gradient of Algebraic Model Counting
2025 (English)In: Proceedings of the 39th Annual AAAI Conference on Artificial Intelligence: AAAI-25 Technical Tracks 18 / [ed] Toby Walsh; Julie Shah; Zico Kolter, AAAI Press, 2025, Vol. 39, p. 19367-19377Conference paper, Published paper (Refereed)
Abstract [en]
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.
Code - https://github.com/ML-KULeuven/amc-grad
Place, publisher, year, edition, pages
AAAI Press, 2025. Vol. 39, p. 19367-19377
Series
Proceedings of the AAAI Conference on Artificial Intelligence, ISSN 2159-5399, E-ISSN 2374-3468 ; Vol. 39, no 18
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:oru:diva-122715DOI: 10.1609/aaai.v39i18.34132ISI: 001477525800081ISBN: 9781577358978 (print)OAI: oai:DiVA.org:oru-122715DiVA, id: diva2:1988740
Conference
39th AAAI Conference on Artificial Intelligence, Philadelphia, PA, USA, February 25 - March 4, 2025
Funder
EU, Horizon 2020, 101142702Wallenberg AI, Autonomous Systems and Software Program (WASP)Knut and Alice Wallenberg Foundation
Note
This research received funding from the Flemish Government (AI Research Program), the Flanders Research Foundation (FWO) under project G097720N, KUL Research Fund iBOF/21/075, and the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (Grant agreement No. 101142702). Luc De Raedt is also supported by the Wallenberg AI, Autonomous Systems and Software Program (WASP) funded by the Knut and Alice Wallenberg Foundation.
2025-08-132025-08-132025-08-13Bibliographically approved