Back to Search Start Over

Lifted algorithms for symmetric weighted first-order model sampling.

Authors :
Wang, Yuanhong
Pu, Juhua
Wang, Yuyi
Kuželka, Ondřej
Source :
Artificial Intelligence. Jun2024, Vol. 331, pN.PAG-N.PAG. 1p.
Publication Year :
2024

Abstract

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 # P -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 WMS? 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 validate 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 state-of-the-art WMS sampler by a substantial margin, confirming the theoretical results. • Model sampling in first-order logic can be liftable, without the need of grounding. • Sampling from two-variable logic with counting is tractable. • Domain recursion is crucial for designing first-order model sampling algorithms. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
00043702
Volume :
331
Database :
Academic Search Index
Journal :
Artificial Intelligence
Publication Type :
Academic Journal
Accession number :
177037192
Full Text :
https://doi.org/10.1016/j.artint.2024.104114