A Fast Model Counting Algorithm for Two-Variable Logic with Counting and Modulo Counting Quantifiers
Not on the map. Why?
Abstract (arXiv)
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, C2, is one of the most expressive known liftable fragments. Existing algorithms for C2, 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 C2 and its modulo counting extension, C2mod. Instead of relying on reduction techniques, IncrementalWFOMC3 operates directly on a Scott normal form that retains counting quantifiers throughout inference. This direct treatment yields two main results. First, we derive a tighter data-complexity bound for WFOMC in C2, reducing the degree of the polynomial from quadratic to linear in the counting parameters. Second, we prove that C2mod is domain-liftable, extending tractability from C2 to a richer fragment with native modulo counting support. Finally, our empirical evaluation shows that IncrementalWFOMC3 delivers orders-of-magnitude runtime improvements and better scalability than both existing WFOMC algorithms and state-of-the-art propositional model counters.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 21 of its 47 references that are in the map. First posted on arXiv 5 May 2026.
Builds on
21 of 47 references.
References · 21
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2013A Scalable Approximate Model Countercited by 20
- 2014Symmetric Weighted First-Order Model Countingcited by 19
- 2020Weighted First-Order Model Counting in the Two-Variable Fragment With Counting Quantifierscited by 16
- 2013Skolemization for Weighted First-Order Model Countingcited by 15
- 2016New Liftable Classes for First-Order Probabilistic Inferencecited by 15
- 2022Lifted Inference with Linear Order Axiomcited by 13
- 2021Weighted Model Counting in FO2 with Cardinality Constraints and Counting Quantifiers: A Closed Form Formulacited by 8
- 2017Domain Recursion for Lifted Inference with Existential Quantifierscited by 7
- 2023Lifted Algorithms for Symmetric Weighted First-Order Model Samplingcited by 6
- 2023Lifted Inference beyond First-Order Logiccited by 5
- 2024Bridging Weighted First Order Model Counting and Graph Polynomialscited by 5
9 more
- 2015Uniform generation of random regular graphscited by 4
- 2024Complexity of Weighted First-Order Model Counting in the Two-Variable Fragment with Counting Quantifiers: A Bound to Beatcited by 4
- 2021Towards a more efficient approach for the satisfiability of two-variable logiccited by 2
- 2025Faster Lifting for Ordered Domains with Predecessor Relationscited by 2
- 2013Regular graphs and the spectra of two-variable logic with countingcited by 1
- 2017Modulo Counting on Words and Treescited by 1
- 2020Two variable logic with ultimately periodic countingcited by 1
- 2025Towards Practical First-Order Model Countingcited by 1
- 2025Model Enumeration of Two-Variable Logic with Quadratic Delay Complexitycited by 1
Built on by
Not cited yet.