On the Complexity of Sum-of-Products Problems over Semirings
Thomas Eiter, Rafael Kiesel
Abstract
Many important problems in AI, among them SAT, #SAT, and probabilistic inference, amount to Sum-of-Products Problems, i.e. evaluating a sum of products of values from some semiring R. While efficiently solvable cases are known, a systematic study of the complexity of this problem is missing. We characterize the latter by NP(R), a novel generalization of NP over semiring R, and link it to well-known complexity classes. While NP(R) is unlikely to be contained in FPSPACE(poly) in general, for a wide range of commutative (resp. in addition idempotent) semirings, there are reductions to #P (resp. NP) and solutions are thus only mildly harder to compute. We finally discuss NP(R)-complete reasoning problems in well-known semiring formalisms, among them Semiring-based Constraint Satisfaction Problems, obtaining new insights into their computational properties.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 0c450bc0-a2ac-402b-8fbd-de2bf45bdba5Cited by top-tier papers2
- A Compositional Atlas for Algebraic CircuitsBenjie Wang, Denis Deratani Mauá, Guy Van den Broeck, YooJung ChoiNeurIPS 2024 · 13 citations
- Constraint Optimization over SemiringsAduri Pavan, Kuldeep S. Meel, N. V. Vinodchandran, Arnab BhattacharyyaAAAI 2023
Builds on1
Related papers
- Network Satisfaction for Symmetric Relation Algebras with a Flexible AtomManuel Bodirsky, Simon KnäuerAAAI 2021 · 7 citations
- RE-completeness of entangled constraint satisfaction problemsEric Culf, Kieran MastelFOCS 2025 · 14 citations
- Model Counting and Sampling via Semiring ExtensionsAndreas Goral, Joachim Giesen, Mark Blacher, Christoph Staudt et al.AAAI 2024 · 1 citation
- The Gradient of Algebraic Model CountingJaron Maene, Luc De RaedtAAAI 2025 · 1 citation
- Zero-One Laws and Almost Sure Valuations of First-Order Logic in Semiring SemanticsErich Grädel, Hayyan Helal, Matthias Naaf, Richard WilkeLICS 2022 · 7 citations
