Domain-Lifted Sampling for Universal Two-Variable Logic and Extensions
Yuanhong Wang, Timothy van Bremen, Yuyi Wang, Ondrej Kuzelka
Abstract
Given a first-order sentence Γ and a domain size n, how can one sample a model of Γ on the domain t1, . . . , nu efficiently as n scales? We consider two variants of this problem: the uniform sampling regime, in which the goal is to sample a model uniformly at random, and the symmetric weighted sampling regime, in which models are weighted according to the number of groundings of each predicate appearing in them. Solutions to this problem have applications to the scalable generation of combinatorial structures, as well as sampling in several statistical-relational models such as Markov logic networks and probabilistic logic programs. In this paper, we identify certain classes of sentences that are domainliftable under sampling, in the sense that they admit a sampling algorithm that runs in time polynomial in n. In particular, we prove that every sentence of the form @x@y : ψpx, yq for some quantifier-free formula ψpx, yq is domain-liftable under sampling. We then further show that this result continues to hold in the presence of one or more cardinality constraints as well as a single tree axiom constraint.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers3
- Lifted Inference with Linear Order AxiomJan Tóth, Ondrej KuzelkaAAAI 2023 · 16 citations
- On Exact Sampling in the Two-Variable Fragment of First-Order LogicYuanhong Wang, Juhua Pu, Yuyi Wang, Ondrej KuzelkaLICS 2023 · 2 citations
- Model Enumeration of Two-Variable Logic with Quadratic Delay ComplexityQiaolan Meng, Juhua Pu, Hongting Niu, Yuyi Wang et al.LICS 2025 · 2 citations
Builds on2
Related papers
- Weighted Model Counting in FO2 with Cardinality Constraints and Counting Quantifiers: A Closed Form FormulaSagar Malhotra, Luciano SerafiniAAAI 2022 · 9 citations
- Tractable Weighted First-Order Model Counting with Bounded Treewidth Binary EvidenceVáclav Kula, Qipeng Kuang, Yuyi Wang, Yuanhong Wang et al.AAAI 2026
- Sampling Lovász local lemma for general constraint satisfaction solutions in near-linear timeKun He, Chunyang Wang, Yitong YinFOCS 2022 · 8 citations
- When is approximate counting for conjunctive queries tractable?Marcelo Arenas, Luis Alberto Croquevielle, Rajesh Jayaram, Cristian RiverosSTOC 2021 · 1 citation
- Using Symmetries to Lift Satisfiability CheckingPierre Carbonnelle, Gottfried Schenner, Maurice Bruynooghe, Bart Bogaerts et al.AAAI 2024
