Markov Logic Networks with Complex Weights: Expressivity, Liftability and Fourier Transforms

Ondrej KuzelkaarXiv 2020

Introduction

Markov Logic Networks (MLNs) are a cornerstone of Statistical Relational Learning, offering a framework to combine the expressive power of first-order logic with the uncertainty handling of probabilistic graphical models. Despite their popularity, MLNs face a fundamental limitation: expressivity. For a fixed set of logical formulas, varying real-valued weights can only produce a restricted family of probability distributions—typically smooth, binomial-like curves. This prevents them from modeling patterns such as uniform distributions or distributions restricted to specific parities (e.g., only even counts).

Complex Markov Logic Networks (C-MLNs)

To address this, the authors introduce Complex MLNs (C-MLNs). In this framework, formulas are assigned vectors of complex-valued weights. The probability of a "possible world" is defined through a sum of exponentials involving these complex weights.

The core advantage of using complex numbers is the phenomenon of interference, analogous to quantum mechanics. While real weights are purely additive or subtractive in the log-space, complex weights allow components to cancel each other out. This "sculpting" capability enables C-MLNs to represent any distribution over the counts of their formulas, achieving full expressivity.

Visualizing Expressivity

The difference in representational power is stark when visualized. Standard MLNs, even with different weight settings, tend to produce bell-shaped distributions. In contrast, a C-MLN can easily represent a "spiky" distribution that assigns zero probability to all odd counts—a feat impossible for standard MLNs with the same formula set.

Count distributions induced by standard MLNs (cyan, orange, blue) vs. a complex MLN (black). The complex MLN demonstrates superior expressivity by modeling a distribution that is zero for all odd numbers.

Lifted Inference and the Fourier Connection

A critical concern with increasing expressivity is computational cost. The authors demonstrate that C-MLNs remain compatible with lifted inference. Specifically, Weighted First-Order Model Counting (WFOMC) can be extended to complex weights by replacing real arithmetic with complex arithmetic. If a problem is domain-liftable (solvable in time polynomial to the domain size) with real weights, it remains so with complex weights.

Furthermore, the paper establishes a bridge between logic and signal processing. The authors observe that the Discrete Fourier Transform (DFT) of an MLN's count distribution is equivalent to the partition function of a C-MLN. This allows the use of a WFOMC oracle to compute the DFT directly.

Impact on Relational Marginal Polytopes

This Fourier connection leads to a significant algorithmic breakthrough for computing relational marginal polytopes—the set of all possible expected values for a set of formulas. By treating the problem through the lens of signal processing, the authors propose an algorithm that requires significantly fewer calls to inference oracles than previous state-of-the-art methods. For a domain size $|\Delta|$, the number of calls is reduced from an exponential dependence on the number of formulas to a polynomial one, representing a massive speedup for large-scale relational modeling.

Conclusion

By introducing complex weights, this work elevates the expressivity of Markov Logic Networks to its theoretical limit without sacrificing the efficiency of lifted inference. The integration of Fourier transforms into relational learning provides a powerful new toolkit for addressing fundamental combinatorial problems in the field.

Summary updated

BibTeX
@misc{kuzelka2020markov,
  author = {Ondrej Kuzelka},
  title = {{Markov Logic Networks with Complex Weights: Expressivity, Liftability and Fourier Transforms}},
  year = {2020},
  eprint = {2002.10259},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.10259},
}
Figure