Lifted Inference beyond First-Order Logic
Sagar Malhotra, Davide Bizzaro, Luciano Serafini
TL;DR
This work extends domain-liftability from the two-variable fragment to FO^2 with counting by introducing acyclicity, connectivity, and forest constraints via a general counting-by-splitting approach. It provides polynomial-time WFOMC algorithms for universally quantified FO^2/C^2 sentences under these graph-theoretic axioms by modular reductions to DAG/connected graph counting and by leveraging inclusion-exclusion and component-splitting techniques. The results unify probabilistic inference in SRL with enumerative combinatorics, enabling tractable counting of complex relational constraints and illustrating applications to DAGs, phylogenetic networks, and connected/forest structures, with empirical validation in MLNs and combinatorial benchmarks. The framework offers a versatile, modular toolkit for counting constrained relational structures and suggests avenues for more expressive lifted inference in practical SRL systems.
Abstract
Weighted First Order Model Counting (WFOMC) is fundamental to probabilistic inference in statistical relational learning models. As WFOMC is known to be intractable in general ($\#$P-complete), logical fragments that admit polynomial time WFOMC are of significant interest. Such fragments are called domain liftable. Recent works have shown that the two-variable fragment of first order logic extended with counting quantifiers ($\mathrm{C^2}$) is domain-liftable. However, many properties of real-world data, like acyclicity in citation networks and connectivity in social networks, cannot be modeled in $\mathrm{C^2}$, or first order logic in general. In this work, we expand the domain liftability of $\mathrm{C^2}$ with multiple such properties. We show that any $\mathrm{C^2}$ sentence remains domain liftable when one of its relations is restricted to represent a directed acyclic graph, a connected graph, a tree (resp. a directed tree) or a forest (resp. a directed forest). All our results rely on a novel and general methodology of "counting by splitting". Besides their application to probabilistic inference, our results provide a general framework for counting combinatorial structures. We expand a vast array of previous results in discrete mathematics literature on directed acyclic graphs, phylogenetic networks, etc.
