paper-with-me

홈 › Papers

On Exact Sampling in the Two-Variable Fragment of First-Order Logic

2023-02-06 · Yuanhong Wang, Juhua Pu, Yuyi Wang, Ondřej Kuželka

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 $\mathbf{FO}^2$ ($\mathbf{UFO}^2$) to the entire fragment of $\mathbf{FO}^2$. Specifically, we prove the domain-liftability under sampling of $\mathbf{FO}^2$, meaning that there exists a sampling algorithm for $\mathbf{FO}^2$ 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 $\forall x\exists_{=k} y: \varphi(x,y)$ and $\exists_{=k} x\forall y: \varphi(x,y)$, for some quantifier-free formula $\varphi(x,y)$. Our proposed method is constructive, and the resulting sampling algorithms have potential applications in various areas, including the uniform generation of combinatorial structures and sampling in statistical-relational models such as Markov logic networks and probabilistic logic programs.

📄 PDF Abstract BibTeX arXiv:2302.02730

Code (1)

lucienwang1009/lifted_sampling_ufo2 공식 구현

Tasks

Sentence

Similar Papers 제목 키워드 기반

Lifted Algorithms for Symmetric Weighted First-Order Model Sampling

2023-08-17 · Yuanhong Wang, Juhua Pu, Yuyi Wang, Ondřej Kuželka

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 w…

Exact Regular-Constrained Variable-Order Markov Generation via Sparse Context-State Belief Propagation

2026-05-08 · François Pachet arxiv

Variable-order Markov models generate sequences over a finite alphabet by conditioning each symbol on the longest available suffix of the generated history. Regular constraints, by contrast, describe finite-horizon contr…

Data Augmentation

Weighted First-Order Model Counting in the Two-Variable Fragment With Counting Quantifiers

2020-07-10 · Ondrej Kuzelka

It is known due to the work of Van den Broeck et al [KR, 2014] that weighted first-order model counting (WFOMC) in the two-variable fragment of first-order logic can be solved in time polynomial in the number of domain e…

Attractive and Repulsive Pattern Control in Sequence Generation

2026-06-19 · Francois Pachet arxiv

Variable-order Markov models preserve local symbolic syntax by adapting context length, but long continuations can enter recurring high-order "tunnels": repeated suffixes, locally periodic passages, or copied fragments l…

Weighted First Order Model Counting for Two-variable Logic with Axioms on Two Relations

2025-08-15 · Qipeng Kuang, Václav Kůla, Ondřej Kuželka, Yuanhong Wang 외 arxiv

The Weighted First-Order Model Counting Problem (WFOMC) asks to compute the weighted sum of models of a given first-order logic sentence over a given domain. The boundary between fragments for which WFOMC can be computed…