A Fast Model Counting Algorithm for Two-Variable Logic with Counting and Modulo Counting Quantifiers
Shixin Sun, Astrid Klipfel, Ond\v{r}ej Ku\v{z}elka, Yuanhong Wang, Yi Chang

TL;DR
This paper introduces IncrementalWFOMC3, a direct, efficient algorithm for weighted first-order model counting in two-variable logic with counting and modulo counting quantifiers, improving scalability and complexity bounds.
Contribution
It presents a novel direct inference algorithm for $ ext{C}^2$ and $ ext{C}^2_{ ext{mod}}$, reducing complexity and extending domain-liftability to richer logic fragments.
Findings
Tighter data-complexity bound with linear polynomial degree.
Proves domain-liftability of $ ext{C}^2_{ ext{mod}}$.
Achieves orders-of-magnitude runtime improvements over existing methods.
Abstract
Weighted first-order model counting (WFOMC) is a central task in lifted probabilistic inference: It asks for the weighted sum of all models of a first-order sentence over a finite domain. A long line of work has identified domain-liftable fragments of first-order logic, that is, syntactic classes for which WFOMC can be solved in time polynomial in the domain size. Among them, the two-variable fragment with counting quantifiers, , is one of the most expressive known liftable fragments. Existing algorithms for , however, establish tractability through multi-stage reductions that eliminate counting quantifiers via cardinality constraints, which introduces substantial practical overhead as the domain size grows. In this paper, we introduce IncrementalWFOMC3, a lifted algorithm for WFOMC on and its modulo counting extension,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
