Lune

AAAI2026Top-tier venue

Tractable Weighted First-Order Model Counting with Bounded Treewidth Binary Evidence

Václav Kula, Qipeng Kuang, Yuyi Wang, Yuanhong Wang, Ondrej Kuzelka

Abstract

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. Conditioning WFOMC on evidence-fixing the truth values of a set of ground literals-has been shown impossible in time polynomial in the domain size (unless #P ⊆ FP) even for fragments of logic that are otherwise tractable for WFOMC without evidence. In this work, we address the barrier by restricting the binary evidence to the case where the underlying Gaifman graph has bounded treewidth. We present a polynomial-time algorithm in the domain size for computing WFOMC for the two-variable fragments FO 2 and C 2 conditioned on such binary evidence. Furthermore, we show the applicability of our algorithm in combinatorial problems by solving the stable seating arrangement problem on bounded-treewidth graphs of bounded degree, which was an open problem. We also conducted experiments to show the scalability of our algorithm compared to the existing model counting solvers.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Builds on2

  1. Lifted Inference with Linear Order AxiomJan Tóth, Ondrej KuzelkaAAAI 2023 · 16 citations
  2. Topological Distance GamesMartin Bullinger, Warut SuksompongAAAI 2023 · 7 citations

Related papers

  1. Weighted Model Counting in FO2 with Cardinality Constraints and Counting Quantifiers: A Closed Form FormulaSagar Malhotra, Luciano SerafiniAAAI 2022 · 9 citations
  2. On Exact Sampling in the Two-Variable Fragment of First-Order LogicYuanhong Wang, Juhua Pu, Yuyi Wang, Ondrej KuzelkaLICS 2023 · 2 citations
  3. Model Enumeration of Two-Variable Logic with Quadratic Delay ComplexityQiaolan Meng, Juhua Pu, Hongting Niu, Yuyi Wang et al.LICS 2025 · 2 citations
  4. Twin-width I: tractable FO model checkingÉdouard Bonnet, Eun Jung Kim, Stéphan Thomassé, Rémi WatrigantFOCS 2020 · 82 citations
  5. Approximate Evaluation of First-Order Counting QueriesJan Dreier, Peter RossmanithSODA 2021 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines