Efficient Detection of Exchangeable Factors in Factor Graphs
Malte Luttermann, Johann Machemer, Marcel Gehrke
TL;DR
The paper tackles the computational bottleneck of detecting exchangeable factors in factor graphs, a prerequisite for lifted probabilistic inference. It introduces DEFT, a bucket-based algorithm that prunes the permutation search by leveraging subset-valued ranges and a degree-of-freedom metric, upper-bounding the necessary table comparisons by $d$, the minimum bucket degree of freedom. The authors provide theoretical guarantees and show through experiments that DEFT scales to much larger factor arities ($n$ up to 16) than naive or prior approaches, enabling practical detection of symmetries in real-world FG applications. This yields significant speedups for constructing lifted representations and performing efficient inference under domain-size variations. Overall, DEFT advances symmetry detection in probabilistic graphical models, facilitating scalable lifted inference in diverse domains.
Abstract
To allow for tractable probabilistic inference with respect to domain sizes, lifted probabilistic inference exploits symmetries in probabilistic graphical models. However, checking whether two factors encode equivalent semantics and hence are exchangeable is computationally expensive. In this paper, we efficiently solve the problem of detecting exchangeable factors in a factor graph. In particular, we introduce the detection of exchangeable factors (DEFT) algorithm, which allows us to drastically reduce the computational effort for checking whether two factors are exchangeable in practice. While previous approaches iterate all $O(n!)$ permutations of a factor's argument list in the worst case (where $n$ is the number of arguments of the factor), we prove that DEFT efficiently identifies restrictions to drastically reduce the number of permutations and validate the efficiency of DEFT in our empirical evaluation.
