NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Lifted Weight Learning of Markov Logic Networks (Revisited One More Time)

Ondrej Kuzelka, Vyacheslav Kungurtsev, Yuyi WangPGM 2020

Abstract

We revisit the problem of lifted weight learning of Markov logic networks (MLNs). We show that there is an algorithm for maximum-likelihood learning which runs in time polynomial in the size of the domain, whenever the partition function of the given MLN can be computed in polynomial time. This improves on our recent results where we showed the same result with the additional dependency of the runtime on a parameter of the training data, called interiority, which measures how “extreme” the given training data are. In this work, we get rid of this dependency. The main new technical ingredient that we exploit are theoretical results obtained recently by Straszak and Vishnoi (Maximum Entropy Distributions: Bit Complexity and Stability, COLT 2019).

Introduction

Markov Logic Networks (MLNs) provide a powerful framework for combining first-order logic with probabilistic graphical models. However, training these models—specifically, weight learning via maximum-likelihood estimation—is generally #P-complete and thus computationally intractable. This paper is a purely theoretical contribution, focusing on proving complexity bounds that apply to any dataset used with a domain-liftable MLN, rather than empirical evaluation on specific benchmarks.

To mitigate intractability, "lifted inference" techniques exploit symmetries in the logical structure to avoid grounding the entire model. While previous research established that certain MLN fragments (e.g., those with at most two variables per rule) allow for efficient inference, proving the efficiency of the full learning process remained a challenge. Specifically, prior proofs were constrained by a parameter known as interiority ($\eta$). When training data is "extreme"—where observed statistics lie very close to the boundary of the mathematically possible space—the runtime of existing learning algorithms could become prohibitively large. This work presents a theoretical breakthrough by proving that weight learning is efficient regardless of data extremity.

Methods

The core of the proposed approach is the reformulation of MLN weight learning as a Generalized Maximum Entropy Problem. The methodology involves several key technical steps:

  1. Reduction to Max-Entropy: The authors demonstrate that finding optimal MLN weights is equivalent to finding a distribution that maximizes entropy subject to constraints from the training data.
  2. Advanced Optimization Theory: By applying recent results from Straszak and Vishnoi (2019), the authors provide a path to solve maximum entropy problems in polynomial time without the dependency on the interiority parameter.
  3. Counting Oracles: The optimization requires an efficient "counting oracle." The paper shows that for "domain-liftable" MLNs (where the partition function is efficiently computable), the inference mechanism itself serves as this oracle.
  4. Geometric Complexity of Polytopes: A critical technical hurdle is the complexity of the relational marginal polytope—the geometric representation of all possible data statistics. The authors prove that the "unary facet complexity" of these polytopes is polynomially bounded.
Relational marginal polytopes for various domain-liftable MLN configurations.

Key Insights and Ideas

The primary insight is the elimination of the "interiority" barrier. Previously, it was believed that learning difficulty was intrinsically linked to the data's position within the relational marginal polytope. This paper proves that this was a limitation of earlier proof techniques rather than the problem itself.

Distribution of statistics within the relational marginal polytope, highlighting the density of possible worlds.

Furthermore, the paper reinforces the deep connection between inference and learning: if Weighted First-Order Model Counting (WFOMC) is efficient, then weight learning is also efficient. The complexity of both processes scales similarly with the domain size, bridging abstract optimization theory with practical relational learning.

Key Results

The main result is formalized in Theorem 4, which states that for any set of formulas where the partition function is domain-liftable, there exists an algorithm to find weights $w$ that are $\epsilon$-close to the optimal weights in time polynomial in the domain size $|\Delta|$ and $1/\epsilon$. Crucially, the runtime no longer includes the $1/\eta$ term, making the algorithm theoretically robust against extreme training examples.

Limitations and Future Work

While this result is a significant theoretical milestone, the authors note several limitations:

  • Practical Efficiency: The proof relies on the Ellipsoid method, which, while polynomial in theory, is often outperformed by heuristic methods like gradient descent in practice.
  • Model Scope: The guarantees currently apply only to "domain-liftable" MLNs. Many complex real-world models do not yet fall into this category.
  • Implementation: Future work is needed to develop more practical, implementation-friendly versions of these algorithms that retain the established theoretical guarantees.

Summary updated

BibTeX
@inproceedings{kuzelka2020lifted,
  author = {Ondrej Kuzelka and Vyacheslav Kungurtsev and Yuyi Wang},
  title = {{Lifted Weight Learning of Markov Logic Networks (Revisited One More Time)}},
  booktitle = {PGM},
  year = {2020},
  url = {https://openreview.net/forum?id=u1jRsP5VRu},
}

Loading related content...

Figure