Lifted Algorithms for Symmetric Weighted First-Order Model Sampling
Not on the map. Why?
Abstract (arXiv)
Weighted model counting (WMC) is the task of computing the weighted sum of all satisfying assignments (i.e., models) of a propositional formula. Similarly, weighted model sampling (WMS) aims to randomly generate models with probability proportional to their respective weights. Both WMC and WMS are hard to solve exactly, falling under the #mathsfP-hard complexity class. However, it is known that the counting problem may sometimes be tractable, if the propositional formula can be compactly represented and expressed in first-order logic. In such cases, model counting problems can be solved in time polynomial in the domain size, and are known as domain-liftable. The following question then arises: Is it also the case for weighted model sampling? This paper addresses this question and answers it affirmatively. Specifically, we prove the domain-liftability under sampling for the two-variables fragment of first-order logic with counting quantifiers in this paper, by devising an efficient sampling algorithm for this fragment that runs in time polynomial in the domain size. We then further show that this result continues to hold even in the presence of cardinality constraints. To empirically verify our approach, we conduct experiments over various first-order formulas designed for the uniform generation of combinatorial structures and sampling in statistical-relational models. The results demonstrate that our algorithm outperforms a start-of-the-art WMS sampler by a substantial margin, confirming the theoretical results.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 16 of its 56 references that are in the map. First posted on arXiv 17 Aug 2023.
Builds on
16 of 56 references.
References · 16
- 2014Lifted Variable Elimination: Decoupling the Operators from the Constraint Languagecited by 19
- 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
- 2018Weighted model counting beyond two-variable logiccited by 13
- 2022Lifted Inference with Linear Order Axiomcited by 13
- 2013A Scalable and Nearly Uniform Generator of SAT Witnessescited by 10
- 2016Uniform Sampling through the Lov'asz Local Lemmacited by 9
- 2017Domain Recursion for Lifted Inference with Existential Quantifierscited by 7
- 2020Sampling Constraint Satisfaction Solutions in the Local Lemma Regimecited by 6
- 2013On the Complexity and Approximation of Binary Evidence in Lifted Inferencecited by 5
4 more
- 2015Uniform generation of random regular graphscited by 4
- 2021Perfect Sampling for (Atomic) Lov'asz Local Lemmacited by 4
- 2023On Exact Sampling in the Two-Variable Fragment of First-Order Logiccited by 3
- 2020Approximate Weighted First-Order Model Counting: Exploiting Fast Approximate Model Counters and Symmetrycited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 2.
6 papers.
- 2024Bridging Weighted First Order Model Counting and Graph Polynomialscited by 5
- 2025Towards Practical First-Order Model Countingcited by 1
- 2025Model Enumeration of Two-Variable Logic with Quadratic Delay Complexitycited by 1
- 2025Tractable Weighted First-Order Model Counting with Bounded Treewidth Binary Evidencecited by 0
- 2026A Fast Model Counting Algorithm for Two-Variable Logic with Counting and Modulo Counting Quantifierscited by 0
- 2026Solving Combinatorial Counting Problems with Weighted First-Order Model Countingcited by 0
- 2026Solving Combinatorial Counting Problems with Weighted First-Order Model Counting24 May 2026
- 2026A Fast Model Counting Algorithm for Two-Variable Logic with Counting and Modulo Counting Quantifiers5 May 2026
- 2025Tractable Weighted First-Order Model Counting with Bounded Treewidth Binary Evidence12 Nov 2025
- 2025Model Enumeration of Two-Variable Logic with Quadratic Delay Complexity26 May 2025
- 2025Towards Practical First-Order Model Counting17 Feb 2025
- 2024Bridging Weighted First Order Model Counting and Graph Polynomials16 Jul 2024