跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2605.24845 · v2

Solving Combinatorial Counting Problems with Weighted First-Order Model Counting

首次提交 2026-05-24 11:29
版本更新 2026-11-30 12:06
雷达观测 2026-12-02 23:14
arXiv ↗PDF ↗

摘要

Combinatorial counting asks how many structures satisfy a specification of dependent choices and constraints, underpinning tasks from assignment counting to probabilistic inference. Manual derivations are fragile when specifications change, and large language models offer no guarantee of correctness, motivating declarative methods that compute exact counts automatically. Weighted first-order model counting (WFOMC), originally developed for statistical relational inference, provides a natural foundation by expressing relational constraints uniformly in first-order logic. Its lifted algorithms exploit exchangeable domain elements to count without full grounding, running in polynomial time in the domain size for fixed sentences in tractable fragments. Bridging high-level specifications to these reusable WFOMC algorithms, however, requires a count-preserving translation handling multiplicities, redundant representations, and dependent choices. We introduce Cofola, a declarative language for combinatorial counting over sets, bags, tuples, sequences, partitions, and compositions, with backend-independent joint counting semantics. We compile Cofola into symbolic WFOMC via relational encodings, polynomial weights, and decoding rules, proving exact count preservation on a supported fragment under exact symbolic computation. For multiset scalability, we introduce an optional exchangeable bag factorization that shares multiplicity symbols across interchangeable entities while provably preserving counts. Across 695 real, synthetic, and growing-domain instances, our WFOMC pipeline solves 675 within a 100-second limit per run, outperforming four alternative counting pipelines. In a controlled ablation, bag factorization raises coverage from 13 to all 32 expanded multi-type bag instances.

作者备注:62 pages, 9 figures

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

本站首次收录为 v2,暂无更早版本可对照。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v2 · 2026-11-30 12:06 · 最新观测版本

Solving Combinatorial Counting Problems with Weighted First-Order Model Counting

Combinatorial counting asks how many structures satisfy a specification of dependent choices and constraints, underpinning tasks from assignment counting to probabilistic inference. Manual derivations are fragile when specifications change, and large language models offer no guarantee of correctness, motivating declarative methods that compute exact counts automatically. Weighted first-order model counting (WFOMC), originally developed for statistical relational inference, provides a natural foundation by expressing relational constraints uniformly in first-order logic. Its lifted algorithms exploit exchangeable domain elements to count without full grounding, running in polynomial time in the domain size for fixed sentences in tractable fragments. Bridging high-level specifications to these reusable WFOMC algorithms, however, requires a count-preserving translation handling multiplicities, redundant representations, and dependent choices. We introduce Cofola, a declarative language for combinatorial counting over sets, bags, tuples, sequences, partitions, and compositions, with backend-independent joint counting semantics. We compile Cofola into symbolic WFOMC via relational encodings, polynomial weights, and decoding rules, proving exact count preservation on a supported fragment under exact symbolic computation. For multiset scalability, we introduce an optional exchangeable bag factorization that shares multiplicity symbols across interchangeable entities while provably preserving counts. Across 695 real, synthetic, and growing-domain instances, our WFOMC pipeline solves 675 within a 100-second limit per run, outperforming four alternative counting pipelines. In a controlled ablation, bag factorization raises coverage from 13 to all 32 expanded multi-type bag instances.

查看此版本解读 →查看此版本原文 ↗