On Exact Sampling in the Two-Variable Fragment of First-Order Logic
Yuanhong Wang, Juhua Pu, Yuyi Wang, and Ond\v{r}ej Ku\v{z}elka

TL;DR
This paper proves that efficient, polynomial-time sampling algorithms exist for the entire two-variable first-order logic fragment, including counting constraints, enabling practical model generation for various logical and probabilistic systems.
Contribution
It extends domain-liftability under sampling to the full FO^2 fragment with counting, providing a constructive method for efficient sampling algorithms.
Findings
Sampling algorithm runs in polynomial time in domain size.
Sampling remains feasible with counting constraints.
Applicable to probabilistic logic models and combinatorial structures.
Abstract
In this paper, we study the sampling problem for first-order logic proposed recently by Wang et al. -- how to efficiently sample a model of a given first-order sentence on a finite domain? We extend their result for the universally-quantified subfragment of two-variable logic () to the entire fragment of . Specifically, we prove the domain-liftability under sampling of , meaning that there exists a sampling algorithm for that runs in time polynomial in the domain size. We then further show that this result continues to hold even in the presence of counting constraints, such as and , for some quantifier-free formula . Our proposed method is constructive, and the resulting sampling algorithms have potential applications…
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.
Code & Models
Videos
First-Order Model Counting and Sampling· youtube
Taxonomy
TopicsBayesian Modeling and Causal Inference · Machine Learning and Algorithms · Natural Language Processing Techniques
